set-c++: New module.
[gnulib.git] / ChangeLog
blobfbcc0c1edbd3600c4b82b7fd8ad6faf7788935a8
1 2020-02-02  Bruno Haible  <bruno@clisp.org>
3         set-c++: New module.
4         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5         * modules/set-c++: New file.
7 2020-02-02  Bruno Haible  <bruno@clisp.org>
9         list-c++: Add tests.
10         * tests/test-list-c++.cc: New file.
11         * modules/list-c++-tests: New file.
13         list-c++: New module.
14         * lib/gl_list.hh: New file, based on lib/gl_list.h.
15         * modules/list-c++: New file.
17 2020-02-02  Bruno Haible  <bruno@clisp.org>
19         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
20         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
21         '_Noreturn'.
22         * lib/sigpipe-die.h (sigpipe_die): Likewise.
24 2020-02-02  Pádraig Brady  <P@draigBrady.com>
26         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
27         On x86_64 with glibc-2.30, gcc 9.2 is giving:
28           error: argument 2 value '18446744073709551615'
29           exceeds maximum object size 9223372036854775807
30           [-Werror=alloc-size-larger-than=]
31         The details of this restriction are discussed at:
32         https://stackoverflow.com/q/42574890/4421
33         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
35 2020-02-02  Pádraig Brady  <P@draigBrady.com>
37         sysctl.h: avoid including on glibc
38         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
39         * lib/physmem.c: Likewise.
41 2020-02-02  Bruno Haible  <bruno@clisp.org>
43         list, set, oset, map, omap: Avoid imperative voice in documentation.
44         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
45         in the specification of functions.
46         * lib/gl_set.h: Likewise.
47         * lib/gl_oset.h: Likewise.
48         * lib/gl_map.h: Likewise.
49         * lib/gl_omap.h: Likewise.
50         * lib/gl_*.h: Likewise.
52 2020-02-01  Bruno Haible  <bruno@clisp.org>
54         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
55         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
56         does.
58 2020-01-29  Bruno Haible  <bruno@clisp.org>
60         array-map, hash-map, linkedhash-map: Fix module description.
61         * modules/array-map (Description): Fix description.
62         * modules/hash-map (Description): Likewise.
63         * modules/linkedhash-map (Description): Likewise.
65 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
67         dfa: do not depend on isblank
68         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
69         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
70         * modules/dfa (Depends-on): Remove isblank.
71         * modules/isblank: Add a module indicator, for lib/dfa.c.
73         dfa: do not assume 64-bit int
74         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
75         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
76         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
77         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
78         Fall back to 32-bit words.
79         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
80         of 4 64-bit args.  All uses changed.
82 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
84         regex: remove limits-h dependency
85         * modules/regex (Depends-on): Remove limits-h, since the
86         code no longer depends on ULONG_WIDTH already being defined.
88         regex: port to non-GCC pre-IEC-60559
89         Problem reported by Arnold Robbins in:
90         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
91         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
93 2020-01-25  Bruno Haible  <bruno@clisp.org>
95         c32isxdigit: Add tests.
96         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
97         * tests/test-c32isxdigit.sh: New file.
98         * modules/c32isxdigit-tests: New file.
100         c32isxdigit: New module.
101         * lib/c32isxdigit.c: New file.
102         * modules/c32isxdigit: New file.
103         * doc/posix-functions/iswxdigit.texi: Mention the new module.
105 2020-01-25  Bruno Haible  <bruno@clisp.org>
107         c32isupper: Add tests.
108         * tests/test-c32isupper.c: New file.
109         * tests/test-c32isupper.sh: New file.
110         * modules/c32isupper-tests: New file.
112         c32isupper: New module.
113         * lib/c32isupper.c: New file.
114         * modules/c32isupper: New file.
115         * doc/posix-functions/iswupper.texi: Mention the new module.
117 2020-01-25  Bruno Haible  <bruno@clisp.org>
119         c32isspace: Add tests.
120         * tests/test-c32isspace.c: New file.
121         * tests/test-c32isspace.sh: New file.
122         * modules/c32isspace-tests: New file.
124         c32isspace: New module.
125         * lib/c32isspace.c: New file.
126         * modules/c32isspace: New file.
127         * doc/posix-functions/iswspace.texi: Mention the new module.
129 2020-01-25  Bruno Haible  <bruno@clisp.org>
131         c32ispunct: Add tests.
132         * tests/test-c32ispunct.c: New file.
133         * tests/test-c32ispunct.sh: New file.
134         * modules/c32ispunct-tests: New file.
136         c32ispunct: New module.
137         * lib/c32ispunct.c: New file.
138         * modules/c32ispunct: New file.
139         * doc/posix-functions/iswpunct.texi: Mention the new module.
141 2020-01-25  Bruno Haible  <bruno@clisp.org>
143         c32isprint: Add tests.
144         * tests/test-c32isprint.c: New file.
145         * tests/test-c32isprint.sh: New file.
146         * modules/c32isprint-tests: New file.
148         c32isprint: New module.
149         * lib/c32isprint.c: New file.
150         * modules/c32isprint: New file.
151         * doc/posix-functions/iswprint.texi: Mention the new module.
153 2020-01-25  Bruno Haible  <bruno@clisp.org>
155         c32islower: Add tests.
156         * tests/test-c32islower.c: New file.
157         * tests/test-c32islower.sh: New file.
158         * modules/c32islower-tests: New file.
160         c32islower: New module.
161         * lib/c32islower.c: New file.
162         * modules/c32islower: New file.
163         * doc/posix-functions/iswlower.texi: Mention the new module.
165 2020-01-25  Bruno Haible  <bruno@clisp.org>
167         c32isgraph: Add tests.
168         * tests/test-c32isgraph.c: New file.
169         * tests/test-c32isgraph.sh: New file.
170         * modules/c32isgraph-tests: New file.
172         c32isgraph: New module.
173         * lib/c32isgraph.c: New file.
174         * modules/c32isgraph: New file.
175         * doc/posix-functions/iswgraph.texi: Mention the new module.
177 2020-01-25  Bruno Haible  <bruno@clisp.org>
179         c32isdigit: Add tests.
180         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
181         * tests/test-c32isdigit.sh: New file.
182         * modules/c32isdigit-tests: New file.
184         c32isdigit: New module.
185         * lib/c32isdigit.c: New file.
186         * modules/c32isdigit: New file.
187         * doc/posix-functions/iswdigit.texi: Mention the new module.
189 2020-01-25  Bruno Haible  <bruno@clisp.org>
191         c32iscntrl: Add tests.
192         * tests/test-c32iscntrl.c: New file.
193         * tests/test-c32iscntrl.sh: New file.
194         * modules/c32iscntrl-tests: New file.
196         c32iscntrl: New module.
197         * lib/c32iscntrl.c: New file.
198         * modules/c32iscntrl: New file.
199         * doc/posix-functions/iswcntrl.texi: Mention the new module.
201 2020-01-25  Bruno Haible  <bruno@clisp.org>
203         c32isblank: Add tests.
204         * tests/test-c32isblank.c: New file.
205         * tests/test-c32isblank.sh: New file.
206         * modules/c32isblank-tests: New file.
208         c32isblank: New module.
209         * lib/c32isblank.c: New file.
210         * modules/c32isblank: New file.
211         * doc/posix-functions/iswblank.texi: Mention the new module.
213 2020-01-25  Bruno Haible  <bruno@clisp.org>
215         c32isalpha: Add tests.
216         * tests/test-c32isalpha.c: New file.
217         * tests/test-c32isalpha.sh: New file.
218         * modules/c32isalpha-tests: New file.
220         c32isalpha: New module.
221         * lib/c32isalpha.c: New file.
222         * modules/c32isalpha: New file.
223         * doc/posix-functions/iswalpha.texi: Mention the new module.
225 2020-01-25  Bruno Haible  <bruno@clisp.org>
227         c32isalnum: Add tests.
228         * tests/test-c32isalnum.c: New file.
229         * tests/test-c32isalnum.sh: New file.
230         * modules/c32isalnum-tests: New file.
232         c32isalnum: New module.
233         * lib/c32isalnum.c: New file.
234         * lib/c32is-impl.h: New file.
235         * modules/c32isalnum: New file.
236         * doc/posix-functions/iswalnum.texi: Mention the new module.
238 2020-01-25  Bruno Haible  <bruno@clisp.org>
240         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
241         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
242         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
243         c32isupper, c32isxdigit): New declarations.
244         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
245         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
246         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
247         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
248         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
249         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
250         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
251         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
252         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
253         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
254         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
255         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
256         c32ispunct, c32isspace, c32isupper, c32isxdigit.
258 2020-01-25  Bruno Haible  <bruno@clisp.org>
260         mbchar, wctype: Use the corrected iswxdigit function.
261         * modules/mbchar (Depends-on): Add iswxdigit.
262         * modules/wctype (Depends-on): Likewise.
264         iswxdigit: Add tests.
265         * tests/test-iswxdigit.c: New file.
266         * tests/test-iswxdigit.sh: New file.
267         * modules/iswxdigit-tests: New file.
269         iswxdigit: New module.
270         * m4/iswxdigit.m4: New file.
271         * lib/wctype.in.h (iswxdigit): Potentially override.
272         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
273         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
274         * lib/iswxdigit.c: New file.
275         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
276         REPLACE_ISWXDIGIT.
277         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
278         REPLACE_ISWXDIGIT.
279         * modules/iswxdigit: New file.
280         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
282 2020-01-25  Bruno Haible  <bruno@clisp.org>
284         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
285         Reported by John Donoghue <john.david.donoghue@gmail.com> in
286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
287         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
288         off_t on mingw, invoke _lseeki64 instead of lseek.
290 2020-01-25  Bruno Haible  <bruno@clisp.org>
292         iswdigit tests: Avoid test failure on Cygwin.
293         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
294         byte sequence, return 0.
296         iswdigit: Fix test failure on native Windows.
297         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
299         mbchar, wctype: Use the corrected iswdigit function.
300         * modules/mbchar (Depends-on): Add iswdigit.
301         * modules/wctype (Depends-on): Likewise.
303         iswdigit: Add tests.
304         * tests/test-iswdigit.c: New file.
305         * tests/test-iswdigit.sh: New file.
306         * modules/iswdigit-tests: New file.
308         iswdigit: New module.
309         * m4/iswdigit.m4: New file.
310         * lib/wctype.in.h (iswdigit): Potentially override.
311         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
312         * lib/iswdigit.c: New file.
313         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
314         REPLACE_ISWDIGIT.
315         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
316         REPLACE_ISWDIGIT.
317         * modules/iswdigit: New file.
318         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
320 2020-01-25  Bruno Haible  <bruno@clisp.org>
322         hard-locale tests: Make it easy to reuse the musl test.
323         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
324         * modules/hard-locale-tests (Files): Add it.
325         (configure.ac): Invoke gl_MUSL_LIBC.
327 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
329         regex: port to Gawk on nonstandard platforms
330         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
331         This is useful for Gawk, which does not use the Gnulib stdlib-h
332         module.  Problem reported by Arnold Robbins in:
333         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
335 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
337         regex: fix bug with >=16 subexpressions
338         * lib/regex_internal.h (struct re_backref_cache_entry):
339         Use bitset_word_t as the type of eps_reachable_subexps_map,
340         instead of unsigned short int.  This fixes a bug I introduced
341         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
342         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
343         Remove unused member 'unused'.
345         regex: simplify definition of BITSET_WORD_BITS
346         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
347         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
348         * lib/regex_internal.h (BITSET_WORD_BITS):
349         * modules/regex (Depends-on): Add limits-h.
350         Simplify now that we can use ULONG_WIDTH.
352 2020-01-20  Bruno Haible  <bruno@clisp.org>
354         mbrtoc32: Add note about FreeBSD 12.
355         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
356         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
357         affected.
359 2020-01-20  Bruno Haible  <bruno@clisp.org>
361         unistr/u8-uctomb: Fix warning.
362         Reported by Andreas Schwab <schwab@suse.de> in
363         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
364         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
365         (u8_uctomb): Add FALLTHROUGH markers.
367 2020-01-20  Bruno Haible  <bruno@clisp.org>
369         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
370         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
371         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
372         (glthread_once): Use it.
374 2020-01-19  Bruno Haible  <bruno@clisp.org>
376         threadlib: Disable use of weak symbols on FreeBSD 11.
377         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
378         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
379         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
380         against a bug in FreeBSD 11.
382 2020-01-19  Bruno Haible  <bruno@clisp.org>
384         iconv_open: Improve z/OS support.
385         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
386         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
387         Remove mapping for EUC-TW.
389 2020-01-18  Bruno Haible  <bruno@clisp.org>
391         Rename ~~gnulib.m4 to zzgnulib.m4.
392         Suggested by Paul Eggert.
393         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
394         * gnulib-tool (func_get_filelist): Update.
395         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
397 2020-01-18  Bruno Haible  <bruno@clisp.org>
399         doc: Update license notices.
400         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
401         reference to a section or to a "file as part of this distribution".
403 2020-01-18  Bruno Haible  <bruno@clisp.org>
405         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
406         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
407         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
408         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
409         AC_EGREP_CPP.
411 2020-01-18  Bruno Haible  <bruno@clisp.org>
413         Ensure Automake does not drop ~~gnulib.m4.
414         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
415         * m4/gnulib-common.m4 (gl_COMMON): Require it.
417 2020-01-18  Bruno Haible  <bruno@clisp.org>
419         Fix major regression from 2020-01-10.
420         Reported by Paul Eggert in
421         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
422         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
423         Don't AC_REQUIRE anything.
424         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
425         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
426         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
427         use ac_compile instead.
428         (AC_CHECK_DECL): Remove override.
429         * m4/~~gnulib.m4: New file.
430         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
431         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
433 2020-01-17  Bruno Haible  <bruno@clisp.org>
434             Paul Eggert  <eggert@cs.ucla.edu>
436         glob: Fix use-after-free bug.
437         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
438         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
439         * lib/glob.c (__glob): Delay freeing dirname until after the use of
440         end_name.
442 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
444         vcs-to-changelog: Fix parsing of fndecl without args.
445         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
446         for empty arguments.
448 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
450         vcs-to-changelog: Add documentation.
451         * doc/vcs-to-changelog.texi: New file.
452         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
453         section.
455 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
457         vcs-to-changelog: Allow loading of custom quirks file.
458         * build-aux/vcs_to_changelog.py: New commandline option -q.
460 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
462         vcs-to-changelog: Fix formatting of ChangeLog output.
463         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
464         output.
466 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
468         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
469         Reported in
470         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
471         * build-aux/vcstocl/frontend_c.py: Remove shebang.
473 2020-01-15  Simon Josefsson  <simon@josefsson.org>
475         crypto/gc-pbkdf2: New module.
476         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
477         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
478         * lib/gc-pbkdf2.c: New file.
479         * lib/gc-pbkdf2-sha1.c: Use new interface.
480         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
481         * modules/crypto/gc-pbkdf2: New file.
482         * modules/crypto/gc-pbkdf2-tests: New file.
483         * tests/test-gc-pbkdf2.c: New file.
485 2020-01-12  Bruno Haible  <bruno@clisp.org>
487         c32stombs: Add tests.
488         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
489         * tests/test-c32stombs-1.sh: New file, based on
490         tests/test-c32srtombs-1.sh.
491         * tests/test-c32stombs-2.sh: New file, based on
492         tests/test-c32srtombs-2.sh.
493         * tests/test-c32stombs-3.sh: New file, based on
494         tests/test-c32srtombs-3.sh.
495         * tests/test-c32stombs-4.sh: New file, based on
496         tests/test-c32srtombs-4.sh.
497         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
499         c32stombs: New module.
500         * lib/uchar.in.h (c32stombs): New declaration.
501         * lib/c32stombs.c: New file.
502         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
503         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
504         * modules/c32stombs: New file.
505         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
506         * doc/posix-functions/wcstombs.texi: Mention the new module.
508 2020-01-11  Jim Meyering  <meyering@fb.com>
510         perl: require the "warnings" module
511         * m4/perl.m4: Also "use warnings", so we reject the perl found
512         on at least one IRIX 6.5 system. Reported by Bruno Haible in
513         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
515 2020-01-10  Bruno Haible  <bruno@clisp.org>
517         Fix major regression from 2020-01-04.
518         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
520         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
521         AC_DEFUN_ONCE.
522         (AC_CHECK_DECL): Invoke, not require, it.
524 2020-01-10  Bruno Haible  <bruno@clisp.org>
526         c32snrtombs: Add tests.
527         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
528         * tests/test-c32snrtombs-1.sh: New file, based on
529         tests/test-wcsnrtombs1.sh.
530         * tests/test-c32snrtombs-2.sh: New file, based on
531         tests/test-wcsnrtombs2.sh.
532         * tests/test-c32snrtombs-3.sh: New file, based on
533         tests/test-wcsnrtombs3.sh.
534         * tests/test-c32snrtombs-4.sh: New file, based on
535         tests/test-wcsnrtombs4.sh.
536         * modules/c32snrtombs-tests: New file, based on
537         modules/wcsnrtombs-tests.
539         c32snrtombs: New module.
540         * lib/uchar.in.h (c32snrtombs): New declaration.
541         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
542         INTERNAL_STATE, WCRTOMB.
543         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
544         * lib/c32snrtombs.c: New file.
545         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
546         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
547         * modules/c32snrtombs: New file.
548         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
549         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
551 2020-01-09  Bruno Haible  <bruno@clisp.org>
553         c32srtombs: Add tests.
554         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
555         * tests/test-c32srtombs-1.sh: New file, based on
556         tests/test-wcsrtombs1.sh.
557         * tests/test-c32srtombs-2.sh: New file, based on
558         tests/test-wcsrtombs2.sh.
559         * tests/test-c32srtombs-3.sh: New file, based on
560         tests/test-wcsrtombs3.sh.
561         * tests/test-c32srtombs-4.sh: New file, based on
562         tests/test-wcsrtombs4.sh.
563         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
565         c32srtombs: New module.
566         * lib/uchar.in.h (c32srtombs): New declaration.
567         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
568         INTERNAL_STATE, WCRTOMB.
569         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
570         * lib/c32srtombs.c: New file.
571         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
572         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
573         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
574         * modules/c32srtombs: New file.
575         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
576         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
578 2020-01-08  Bruno Haible  <bruno@clisp.org>
580         c32tob: Make consistent with mbrtoc32.
581         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
582         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
583         use c32rtomb, not wctob.
584         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
585         (Depends-on): Add c32rtomb.
586         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
588 2020-01-08  Bruno Haible  <bruno@clisp.org>
590         c32rtomb: Add tests.
591         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
592         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
593         * tests/test-c32rtomb-w32.c: New file, based on
594         tests/test-wcrtomb-w32.c.
595         * tests/test-c32rtomb-w32-1.sh: New file, based on
596         tests/test-wcrtomb-w32-1.sh.
597         * tests/test-c32rtomb-w32-2.sh: New file, based on
598         tests/test-wcrtomb-w32-2.sh.
599         * tests/test-c32rtomb-w32-3.sh: New file, based on
600         tests/test-wcrtomb-w32-3.sh.
601         * tests/test-c32rtomb-w32-4.sh: New file, based on
602         tests/test-wcrtomb-w32-4.sh.
603         * tests/test-c32rtomb-w32-5.sh: New file, based on
604         tests/test-wcrtomb-w32-5.sh.
605         * tests/test-c32rtomb-w32-6.sh: New file, based on
606         tests/test-wcrtomb-w32-6.sh.
607         * tests/test-c32rtomb-w32-7.sh: New file, based on
608         tests/test-wcrtomb-w32-7.sh.
609         * modules/c32rtomb-tests: New file.
611         c32rtomb: New module.
612         * lib/uchar.in.h (c32rtomb): New declaration.
613         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
614         * m4/c32rtomb.m4: New file.
615         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
616         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
617         REPLACE_C32RTOMB.
618         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
619         HAVE_C32RTOMB, REPLACE_C32RTOMB.
620         * modules/c32rtomb: New file.
621         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
622         * doc/posix-functions/c32rtomb.texi: Document the new module.
623         * doc/posix-functions/wcrtomb.texi: Mention the new module.
625 2020-01-08  Bruno Haible  <bruno@clisp.org>
627         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
628         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
629         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
630         but is not working.
631         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
632         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
633         differ, use the system's mbrtoc32, adding workarounds.
634         * modules/mbrtoc32 (Depends-on): Add hard-locale.
635         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
636         Windows problem.
637         * lib/btoc32.c: Include <stdio.h>, <string.h>.
638         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
639         use mbrtoc32, not btowc.
640         * modules/btoc32 (Depends-on): Add mbrtoc32.
641         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
642         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
643         * modules/mbsrtoc32s (Depends-on): Update conditions.
644         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
645         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
646         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
647         * modules/mbsnrtoc32s (Depends-on): Update conditions.
648         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
650 2020-01-07  Bruno Haible  <bruno@clisp.org>
652         wcrtomb: Make multithread-safe, except possibly on IRIX.
653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
654         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
655         WCRTOMB_RETVAL_BUG.
656         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
657         wctomb only on IRIX.
659 2020-01-05  Jim Meyering  <meyering@fb.com>
661         tests: skip thread-using tests when threading is disabled
662         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
663         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
664         of those, so they are skipped in this case.
665         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
666         * tests/test-setlocale_null-mt-all.c (main): Likewise.
667         * tests/test-setlocale_null-mt-one.c (main): Likewise.
669 2020-01-05  Bruno Haible  <bruno@clisp.org>
671         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
672         Reported by Jim Meyering in
673         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
674         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
675         (GNULIB_defined_ptsname_r): New macro.
676         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
677         (main): Disable the NULL argument test if canonicalize_file_name does
678         not come from gnulib.
679         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
680         (main): Disable the NULL argument test if canonicalize_file_name does
681         not come from gnulib.
682         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
683         (test_errors): Disable the NULL argument test if ptsname_r does not come
684         from gnulib.
686 2020-01-04  Jim Meyering  <meyering@fb.com>
688         update-copyright: reenable its always-skipped test
689         * tests/test-update-copyright.sh: Restore the "-pi" options removed
690         on 2019-06-15. Without those, an internal preliminary test would
691         fail, causing this test always to be skipped.
692         Verify that the test is now run and passes via this:
693           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
695 2020-01-05  Bruno Haible  <bruno@clisp.org>
697         mbstoc32s: Add tests.
698         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
699         * tests/test-mbstoc32s-1.sh: New file, based on
700         tests/test-mbsrtoc32s-1.sh.
701         * tests/test-mbstoc32s-2.sh: New file, based on
702         tests/test-mbsrtoc32s-2.sh.
703         * tests/test-mbstoc32s-3.sh: New file, based on
704         tests/test-mbsrtoc32s-3.sh.
705         * tests/test-mbstoc32s-4.sh: New file, based on
706         tests/test-mbsrtoc32s-4.sh.
707         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
709         mbstoc32s: New module.
710         * lib/uchar.in.h (mbstoc32s): New declaration.
711         * lib/mbstoc32s.c: New file.
712         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
713         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
714         * modules/mbstoc32s: New file.
715         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
716         * doc/posix-functions/mbstowcs.texi: Mention the new module.
718 2020-01-05  Bruno Haible  <bruno@clisp.org>
720         Tweak recently added tests.
721         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
722         * tests/test-mbsrtoc32s.c: Likewise.
723         * tests/test-mbsnrtoc32s.c: Likewise.
725 2020-01-04  Bruno Haible  <bruno@clisp.org>
727         mbsnrtoc32s: Add tests.
728         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
729         * tests/test-mbsnrtoc32s-1.sh: New file, based on
730         tests/test-mbsnrtowcs1.sh.
731         * tests/test-mbsnrtoc32s-2.sh: New file, based on
732         tests/test-mbsnrtowcs2.sh.
733         * tests/test-mbsnrtoc32s-3.sh: New file, based on
734         tests/test-mbsnrtowcs3.sh.
735         * tests/test-mbsnrtoc32s-4.sh: New file, based on
736         tests/test-mbsnrtowcs4.sh.
737         * modules/mbsnrtoc32s-tests: New file, based on
738         modules/mbsnrtowcs-tests.
740         mbsnrtoc32s: New module.
741         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
742         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
743         INTERNAL_STATE, MBRTOWC.
744         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
745         * lib/mbsnrtoc32s.c: New file.
746         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
747         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
748         * modules/mbsnrtoc32s: New file.
749         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
750         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
752 2020-01-04  Bruno Haible  <bruno@clisp.org>
754         mbsrtoc32s tests: Enhance test.
755         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
756         test strings for UTF-8 and GB18030.
758 2020-01-04  Bruno Haible  <bruno@clisp.org>
760         mbsrtoc32s: Fix bug.
761         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
762         that SMALL_WCHAR_T is defined.
764 2020-01-04  Bruno Haible  <bruno@clisp.org>
766         mbsrtoc32s: Add tests.
767         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
768         * tests/test-mbsrtoc32s-1.sh: New file, based on
769         tests/test-mbsrtowcs1.sh.
770         * tests/test-mbsrtoc32s-2.sh: New file, based on
771         tests/test-mbsrtowcs2.sh.
772         * tests/test-mbsrtoc32s-3.sh: New file, based on
773         tests/test-mbsrtowcs3.sh.
774         * tests/test-mbsrtoc32s-4.sh: New file, based on
775         tests/test-mbsrtowcs4.sh.
776         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
778         mbsrtoc32s: New module.
779         * lib/uchar.in.h (mbsrtoc32s): New declaration.
780         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
781         INTERNAL_STATE, MBRTOWC.
782         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
783         * lib/mbsrtoc32s.c: New file.
784         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
785         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
786         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
787         * modules/mbsrtoc32s: New file.
788         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
789         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
791 2020-01-04  Bruno Haible  <bruno@clisp.org>
793         mbrtowc, mbrtoc32: Tighten dependendies.
794         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
795         REPLACE_MBSTATE_T is 1.
796         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
797         REPLACE_MBSTATE_T is 0.
798         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
799         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
800         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
801         REPLACE_MBSTATE_T is 0.
803 2020-01-04  Bruno Haible  <bruno@clisp.org>
805         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
806         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
807         * modules/uchar (Files): Add stdint.m4.
808         (Makefile.am): Substitute SMALL_WCHAR_T.
809         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
811 2020-01-04  Bruno Haible  <bruno@clisp.org>
813         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
814         Reported by Martin Storsjö <martin@martin.st> in
815         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
816         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
817         New macros.
818         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
820 2020-01-04  Bruno Haible  <bruno@clisp.org>
822         btoc32: Add tests.
823         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
824         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
825         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
826         * modules/btoc32-tests: New file, based on modules/btowc-tests.
828         btoc32: New module.
829         * lib/uchar.in.h (btoc32): New declaration.
830         * lib/btoc32.c: New file.
831         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
832         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
833         * modules/btoc32: New file.
834         * tests/test-uchar-c++.cc: Test the signature of btoc32.
835         * doc/posix-functions/btowc.texi: Mention the new module.
837 2020-01-03  Bruno Haible  <bruno@clisp.org>
839         uchar tests: Avoid compilation error with HP cc.
840         * tests/test-uchar.c: Disable a test when HP cc is in use.
842 2020-01-03  Bruno Haible  <bruno@clisp.org>
844         mbrtoc32: Add tests.
845         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
846         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
847         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
848         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
849         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
850         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
851         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
852         * tests/test-mbrtoc32-w32-1.sh: New file, based on
853         tests/test-mbrtowc-w32-1.sh.
854         * tests/test-mbrtoc32-w32-2.sh: New file, based on
855         tests/test-mbrtowc-w32-2.sh.
856         * tests/test-mbrtoc32-w32-3.sh: New file, based on
857         tests/test-mbrtowc-w32-3.sh.
858         * tests/test-mbrtoc32-w32-4.sh: New file, based on
859         tests/test-mbrtowc-w32-4.sh.
860         * tests/test-mbrtoc32-w32-5.sh: New file, based on
861         tests/test-mbrtowc-w32-5.sh.
862         * tests/test-mbrtoc32-w32-6.sh: New file, based on
863         tests/test-mbrtowc-w32-6.sh.
864         * tests/test-mbrtoc32-w32-7.sh: New file, based on
865         tests/test-mbrtowc-w32-7.sh.
866         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
868         mbrtoc32: New module.
869         * lib/uchar.in.h (mbrtoc32): New declaration.
870         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
871         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
872         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
873         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
874         REPLACE_MBRTOC32.
875         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
876         HAVE_MBRTOC32, REPLACE_MBRTOC32.
877         * modules/mbrtoc32: New file, based on modules/mbrtowc.
878         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
879         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
880         $(LIB_MBRTOWC).
881         * doc/posix-functions/mbrtoc32.texi: Document the new module.
882         * doc/posix-functions/mbrtowc.texi: Mention the new module.
884 2020-01-03  Bruno Haible  <bruno@clisp.org>
886         mbrtowc: Refactor to share code with mbrtoc32.
887         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
888         * lib/mbrtowc-impl-utf8.h: Likewise.
889         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
890         mbrtowc-impl.h.
891         * modules/mbrtowc (Files): Add the new files.
893 2020-01-03  Jim Meyering  <meyering@fb.com>
895         doc: fix time.texi wording
896         * doc/posix-headers/time.texi (time.h): Typo.
898 2020-01-03  Bruno Haible  <bruno@clisp.org>
900         mbrtowc: Refactor locale charset dispatching.
901         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
902         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
903         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
904         localcharset.h, streq.h.
905         (enc_t): Remove type.
906         (locale_enc): Remove function.
907         (cached_locale_enc): Remove variable.
908         (locale_enc_cached): Remove function.
909         (mbrtowc): Invoke locale_encoding_classification.
910         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
911         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
912         lc-charset-dispatch.c.
913         (configure.ac): Arrange to compile lc-charset-dispatch.c.
915 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
917         doc: mention 32-bit time_t issue
918         * doc/posix-headers/sys_stat.texi (sys/stat.h):
919         * doc/posix-headers/time.texi (time.h): Mention 2038.
921 2020-01-03  Bruno Haible  <bruno@clisp.org>
923         mbrtowc: Ensure the mbtowc_lock is unique.
924         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
925         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
926         lib/setlocale_null.c.
927         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
928         glthread/lock.h. Include mbtowc-lock.h.
929         (mbtowc_lock): Remove declaration.
930         (mbrtowc): Use mbtowc_with_lock.
931         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
932         threads.h. Set LIB_MBRTOWC.
933         (gl_PREREQ_MBTOWC_LOCK): New macro.
934         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
935         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
936         (Depends-on): Remove lock.
937         (configure.ac): Arrange to compile mbtowc-lock.c.
938         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
939         * modules/acl (Link): Likewise.
940         * modules/argmatch (Link): Likewise.
941         * modules/backup-rename (Link): Likewise.
942         * modules/backupfile (Link): Likewise.
943         * modules/closein (Link): Likewise.
944         * modules/closeout (Link): Likewise.
945         * modules/copy-file (Link): Likewise.
946         * modules/csharpcomp (Link): Likewise.
947         * modules/csharpexec (Link): Likewise.
948         * modules/dfa (Link): Likewise.
949         * modules/exclude (Link): Likewise.
950         * modules/fnmatch (Link): Likewise.
951         * modules/fnmatch-gnu (Link): Likewise.
952         * modules/fnmatch-posix (Link): Likewise.
953         * modules/glob (Link): Likewise.
954         * modules/human (Link): Likewise.
955         * modules/javacomp (Link): Likewise.
956         * modules/javaexec (Link): Likewise.
957         * modules/javaversion (Link): Likewise.
958         * modules/mbfile (Link): Likewise.
959         * modules/mbiter (Link): Likewise.
960         * modules/mbmemcasecmp (Link): Likewise.
961         * modules/mbmemcasecoll (Link): Likewise.
962         * modules/mbrlen (Link): Likewise.
963         * modules/mbscasecmp (Link): Likewise.
964         * modules/mbscasestr (Link): Likewise.
965         * modules/mbschr (Link): Likewise.
966         * modules/mbscspn (Link): Likewise.
967         * modules/mbsinit (Link): Likewise.
968         * modules/mbslen (Link): Likewise.
969         * modules/mbsncasecmp (Link): Likewise.
970         * modules/mbsnlen (Link): Likewise.
971         * modules/mbsnrtowcs (Link): Likewise.
972         * modules/mbspbrk (Link): Likewise.
973         * modules/mbspcasecmp (Link): Likewise.
974         * modules/mbsrchr (Link): Likewise.
975         * modules/mbsrtowcs (Link): Likewise.
976         * modules/mbssep (Link): Likewise.
977         * modules/mbsspn (Link): Likewise.
978         * modules/mbsstr (Link): Likewise.
979         * modules/mbstok_r (Link): Likewise.
980         * modules/mbswidth (Link): Likewise.
981         * modules/mbuiter (Link): Likewise.
982         * modules/mkdir-p (Link): Likewise.
983         * modules/propername (Link): Likewise.
984         * modules/quote (Link): Likewise.
985         * modules/quotearg (Link): Likewise.
986         * modules/quotearg-simple (Link): Likewise.
987         * modules/regex-quote (Link): Likewise.
988         * modules/rpmatch (Link): Likewise.
989         * modules/sh-quote (Link): Likewise.
990         * modules/system-quote (Link): Likewise.
991         * modules/trim (Link): Likewise.
992         * modules/unistdio/ulc-asnprintf (Link): Likewise.
993         * modules/unistdio/ulc-fprintf (Link): Likewise.
994         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
995         * modules/unistdio/ulc-vasprintf (Link): Likewise.
996         * modules/unistdio/ulc-vfprintf (Link): Likewise.
997         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
998         * modules/unistdio/ulc-vsprintf (Link): Likewise.
999         * modules/xfreopen (Link): Likewise.
1000         * modules/xmemcoll (Link): Likewise.
1001         * modules/yesno (Link): Likewise.
1002         * modules/regex (Link): Add $(LIB_MBRTOWC).
1003         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
1004         instead of $(LIBTHREAD).
1005         * modules/argmatch-tests (Makefile.am): Likewise.
1006         * modules/closein-tests (Makefile.am): Likewise.
1007         * modules/copy-file-tests (Makefile.am): Likewise.
1008         * modules/dfa-tests (Makefile.am): Likewise.
1009         * modules/fnmatch-tests (Makefile.am): Likewise.
1010         * modules/glob-tests (Makefile.am): Likewise.
1011         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1012         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1013         * modules/mbrtowc-tests (Makefile.am): Likewise.
1014         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1015         * modules/mbscasestr-tests (Makefile.am): Likewise.
1016         * modules/mbschr-tests (Makefile.am): Likewise.
1017         * modules/mbscspn-tests (Makefile.am): Likewise.
1018         * modules/mbsinit-tests (Makefile.am): Likewise.
1019         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1020         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1021         * modules/mbspbrk-tests (Makefile.am): Likewise.
1022         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1023         * modules/mbsrchr-tests (Makefile.am): Likewise.
1024         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1025         * modules/mbsspn-tests (Makefile.am): Likewise.
1026         * modules/mbsstr-tests (Makefile.am): Likewise.
1027         * modules/quotearg-simple-tests (Makefile.am): Likewise.
1028         * modules/quotearg-tests (Makefile.am): Likewise.
1029         * modules/readtokens-tests (Makefile.am): Likewise.
1030         * modules/sh-quote-tests (Makefile.am): Likewise.
1031         * modules/system-quote-tests (Makefile.am): Likewise.
1032         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
1033         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1034         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
1035         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
1036         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
1037         * modules/yesno-tests (Makefile.am): Likewise.
1038         * modules/exclude-tests (Makefile.am): Link the programs with
1039         $(LIB_MBRTOWC).
1040         * modules/regex-tests (Makefile.am): Likewise.
1041         * modules/regex-quote-tests (Makefile.am): Likewise.
1043 2020-01-03  Bruno Haible  <bruno@clisp.org>
1045         getopt-posix: Fix compilation failure in testdirs.
1046         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
1047         when the gnulib module 'getopt-posix' is enabled.
1048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
1049         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
1050         module indicator.
1051         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
1053 2020-01-03  Bruno Haible  <bruno@clisp.org>
1055         doc: Mention the 64-bit inode number problem.
1056         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
1057         64-bit inode number problem.
1058         * doc/posix-functions/stat.texi: Mention that this module fixes the
1059         64-bit inode number problem.
1060         * doc/posix-functions/lstat.texi: Likewise.
1061         * doc/posix-functions/fstat.texi: Likewise.
1062         * doc/posix-functions/readdir.texi: Add more details.
1063         * doc/posix-functions/readdir_r.texi: Likewise.
1065 2020-01-02  Bruno Haible  <bruno@clisp.org>
1067         wcrtomb: Add more tests.
1068         * tests/test-wcrtomb-w32.c: Include localcharset.h.
1069         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1070         locale_charset() returns the expected value; otherwise, skip the test.
1071         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
1072         * tests/test-wcrtomb-w32-7.sh: Likewise.
1073         * modules/wcrtomb-tests (Files): Add these files.
1074         (Depends-on): Add localcharset.
1075         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
1077 2020-01-02  Bruno Haible  <bruno@clisp.org>
1079         mbrtowc: Add more tests.
1080         * tests/test-mbrtowc-w32.c: Include localcharset.h.
1081         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
1082         locale_charset() returns the expected value; otherwise, skip the test.
1083         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
1084         * tests/test-mbrtowc-w32-7.sh: Likewise.
1085         * modules/mbrtowc-tests (Files): Add these files.
1086         (Depends-on): Add localcharset.
1087         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
1089 2020-01-02  Bruno Haible  <bruno@clisp.org>
1091         mbrtowc: Fix test failures on MSVC (regression by previous commit).
1092         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
1093         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
1094         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
1095         MBRTOWC_STORES_INCOMPLETE_BUG.
1096         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
1098 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1100         doc: mention glibc bug 24269
1101         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
1102         Reformat slightly so that it looks nicer in the Grep manual.
1104 2020-01-02  Bruno Haible  <bruno@clisp.org>
1106         mbrtowc: Don't replace mbstate_t on MSVC.
1107         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
1108         a missing mbsinit function on native Windows.
1109         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
1110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
1111         MSVC bug.
1112         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
1114 2020-01-02  Bruno Haible  <bruno@clisp.org>
1116         setlocale-null: Avoid crashing the MSVC linker.
1117         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
1118         MSVC.
1120 2020-01-02  Bruno Haible  <bruno@clisp.org>
1122         wchar: Make the HP-UX workaround work on HP-UX 11.31.
1123         * modules/wchar (Depends-on): Add inttypes-incomplete.
1124         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
1125         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
1126         of strtoimax.
1128 2020-01-02  Bruno Haible  <bruno@clisp.org>
1130         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
1131         * lib/mbrtowc.c: Include <stdint.h>.
1132         * modules/mbrtowc (Depends-on): Add stdint.
1134 2020-01-01  Pádraig Brady  <P@draigBrady.com>
1136         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
1137         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
1138         which will auto enable use of openssl, only for >= version 3,
1139         which is newly licensed under the Apache Software License.
1141 2020-01-01  Bruno Haible  <bruno@clisp.org>
1143         mbrtowc: Include function name in macro names.
1144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
1145         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
1146         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
1147         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
1148         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
1149         C_LOCALE_MAYBE_EILSEQ.
1151 2020-01-01  Bruno Haible  <bruno@clisp.org>
1153         c32tob: New module.
1154         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
1155         (c32tob): New declaration.
1156         * lib/c32tob.c: New file.
1157         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
1158         macros.
1159         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
1160         * modules/uchar (Depends-on): Add snippet/c++defs.
1161         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
1162         uchar.h.
1163         * modules/c32tob: New file.
1164         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
1165         defined.
1166         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
1167         c32tob.
1168         * modules/uchar-c++-tests (Files): Add tests/signature.h.
1169         * doc/posix-functions/wctob.texi: Mention the new module.
1171 2020-01-01  Bruno Haible  <bruno@clisp.org>
1173         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
1174         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
1175         $(LIB_SETLOCALE).
1177 2020-01-01  Bruno Haible  <bruno@clisp.org>
1179         hard-locale tests: Fix a conflict with the C++ tests.
1180         * modules/hard-locale-tests (Makefile.am): Build a program named
1181         'current-locale', not 'locale'.
1183 2020-01-01  Bruno Haible  <bruno@clisp.org>
1185         doc: Update documentation about wchar_t.
1186         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
1187         wchar_t type.
1189 2020-01-01  Bruno Haible  <bruno@clisp.org>
1191         mbrtowc tests: Fix typos.
1192         * tests/test-mbrtowc.c (main): Fix typo.
1193         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
1195 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1197         maint: update copyright notices
1198         Before doing the following changes done by hand, I also ran ‘make
1199         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
1200         to do most of the copyright years automatically.  A few upstream
1201         sources are still in 2019 but these should eventually be changed
1202         automatically too.
1203         * build-aux/declared.sh (func_version):
1204         * build-aux/libtool-next-version (func_version):
1205         * build-aux/run-test (func_version):
1206         Update these notices by hand.  Put just the last year
1207         in output of programs, as per GNU coding standards.
1209 2019-12-31  Bruno Haible  <bruno@clisp.org>
1211         uchar: Add C++ tests.
1212         * tests/test-uchar-c++.cc: New file.
1213         * tests/test-uchar-c++2.cc: New file.
1214         * modules/uchar-c++-tests: New file.
1216         uchar: Add tests.
1217         * tests/test-uchar.c: New file.
1218         * modules/uchar-tests: New file.
1220         uchar: New module.
1221         * lib/uchar.in.h: New file.
1222         * m4/uchar.m4: New file.
1223         * modules/uchar: New file.
1224         * doc/posix-headers/uchar.texi: Mention the new module.
1226 2019-12-30  Jim Meyering  <meyering@fb.com>
1228         localeinfo: ->simple would be wrong for LC_ALL=C
1229         That would lead to using unnecessary and expensive code paths in dfa.c.
1230         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
1231         error that would have made grep many times slower in the C locale.
1232         With this change, and a file created like this:
1233           yes 00 | head -10000000 > in
1234         Running grep as follows becomes more than 40 times faster:
1235           LC_ALL=C grep -Fw 0 in
1237 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1239         doc: document trouble with back-references
1240         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
1242 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1244         doc: use “back-reference” for \1 etc.
1245         * doc/regex.texi: Consistently spell “back-reference” with
1246         a hyphen, since that’s how POSIX does it.
1248 2019-12-26  Jim Meyering  <meyering@fb.com>
1250         test-framework-sh: tighten an internal grep regexp
1251         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
1252         that helps test for a working printf.
1254 2019-12-26  Bruno Haible  <bruno@clisp.org>
1256         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
1257         Reported by Paul Eggert in
1258         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
1259         Simplification by Jim Meyering.
1260         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
1261         octal escape sequence in a UTF-8 locale.
1263 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
1265         mbrtowc: port better to narrow-wchar_t platforms
1266         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
1267         wchar_t is too narrow to represent all the Unicode characters,
1268         consider a byte sequence for an out-of-wchar_t-range character to
1269         be an encoding error.  This fixes grep’s surrogate-pair test
1270         failure on AIX 7.2.
1272 2019-12-24  Bruno Haible  <bruno@clisp.org>
1274         localcharset: Avoid referencing rpl_setlocale on native Windows.
1275         * lib/localcharset.c (setlocale): Undefine.
1277 2019-12-24  Bruno Haible  <bruno@clisp.org>
1279         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
1280         * m4/semaphore.m4: New file.
1281         * modules/lock-tests (Files): Add it.
1282         (configure.ac): Require gl_SEMAPHORE.
1283         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
1285 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1287         strptime: fix typo in previous patch
1288         Problem and fix reported by Bruno Haible in:
1289         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
1290         * lib/strptime.c (day_of_the_week): Fix paren bug.
1292 2019-12-24  Bruno Haible  <bruno@clisp.org>
1294         setlocale-null: Make it easy to rely on the lock in another library.
1295         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
1296         defined.
1298 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1300         gethrxtime, mktime, nstrftime, strptime: tweak division performance
1301         Performanced analyzed by Bruno Haible in:
1302         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
1303         * config/srclist.txt: Do not sync mktime.c for now.
1304         * lib/mktime.c (shr, ydhms_diff):
1305         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
1306         * lib/strptime.c (day_of_the_week):
1307         * lib/xtime.h (xtime_sec):
1308         Redo with neither ‘%’ nor conditional branches.
1310 2019-12-23  Bruno Haible  <bruno@clisp.org>
1312         setlocale-null: Export the lock function also on non-Windows platforms.
1313         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
1314         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
1315         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
1316         * modules/setlocale-null (configure.ac): Invoke it.
1317         (Files): Add m4/visibility.m4.
1319 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1321         gethrxtime: fix rounding bug with negative args
1322         Problem reported by Bruno Haible in:
1323         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
1324         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
1325         with negative rounding.  Common platforms can compute / and % with
1326         a single instruction, so the simplified code should be shorter and
1327         faster on these platforms anyway.
1329 2019-12-22  Bruno Haible  <bruno@clisp.org>
1331         gethrxtime: remove incorrect overflow detection
1332         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
1333         integer overflow, as it didn’t suffice.  This reverts the xtime.h
1334         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
1335         cannot now see the need for anyway (even in cases where it works),
1336         as the patch is helpful only when the signs of S and NS disagree,
1337         and all callers pass nonnegative values for S and NS.
1339 2019-12-22  Bruno Haible  <bruno@clisp.org>
1341         setlocale-null: Add standalone include file.
1342         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
1343         * lib/locale.in.h: Include setlocale_null.h.
1344         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
1345         setlocale_null): Remove declarations.
1346         * lib/setlocale_null.c: Include setlocale_null.h.
1347         * lib/localename.c: Likewise.
1348         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
1349         (Depends-on): Add snippet/arg-nonnull.
1350         (Include): Allow either "setlocale_null.h" or <locale.h>.
1352 2019-12-22  Bruno Haible  <bruno@clisp.org>
1354         strfmon_l: Fix test failures on FreeBSD and Cygwin.
1355         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
1356         AC_RUN_IFELSE test.
1357         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
1358         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
1359         problem.
1361 2019-12-22  Bruno Haible  <bruno@clisp.org>
1363         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
1364         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
1365         unconditional AC_LIBOBJ.
1366         * modules/selinux-at: Likewise.
1367         * modules/xmemdup0: Likewise.
1368         * modules/xstrtoll: Likewise.
1370 2019-12-22  Bruno Haible  <bruno@clisp.org>
1372         longlong: Mark module obsolete.
1373         * modules/longlong (Status, Notice): New sections.
1375         stdint: Assume that the compiler supports 'long long'.
1376         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
1377         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
1378         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1379         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
1380         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1381         * modules/stdint (Files): Remove longlong.m4.
1382         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
1383         HAVE_UNSIGNED_LONG_LONG_INT.
1385         inttypes-incomplete: Assume that the compiler supports 'long long'.
1386         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
1387         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
1388         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1389         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
1390         HAVE_LONG_LONG_INT to be 1.
1391         * modules/inttypes-incomplete (Makefile.am): Don't substitute
1392         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
1394         malloca: Assume that the compiler supports 'long long'.
1395         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
1396         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
1397         * modules/malloca (Files): Remove longlong.m4.
1398         * modules/relocatable-prog-wrapper (Files): Likewise.
1400         atoll: Assume that the compiler supports 'long long'.
1401         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
1402         * modules/atoll (Files): Remove longlong.m4.
1404         strtoll: Assume that the compiler supports 'long long'.
1405         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
1406         * modules/strtoll (Files): Remove longlong.m4.
1408         strtoull: Assume that the compiler supports 'long long'.
1409         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
1410         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1411         * modules/strtoull (Files): Remove longlong.m4.
1413         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
1414         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
1415         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
1416         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
1417         AC_TYPE_LONG_LONG_INT.
1418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
1419         AC_TYPE_UNSIGNED_LONG_LONG_INT.
1420         * modules/strtoimax (Files): Remove longlong.m4.
1421         * modules/strtoumax (Files): Likewise.
1423         xstrtoll: Assume that the compiler supports 'long long'.
1424         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
1425         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
1427         vasnprintf: Assume that the compiler supports 'long long'.
1428         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
1429         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
1430         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1431         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
1432         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
1433         require AC_TYPE_LONG_LONG_INT.
1434         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
1435         gl_PREREQ_VASNPRINTF): Likewise.
1436         * modules/vasnprintf (Files): Remove longlong.m4.
1437         * modules/c-vasnprintf (Files): Likewise.
1438         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1439         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1440         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1441         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1442         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1443         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1444         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1446         gethrxtime: Assume that the compiler supports 'long long'.
1447         * lib/xtime.h (xtime_t): Define to 'long long int' always.
1448         (XTIME_PRECISION): Define to 1000000000 always.
1449         (xtime_make, xtime_sec): Optimize accordingly.
1450         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
1451         * modules/gethrxtime (Files): Remove longlong.m4.
1453         integer_length*: Assume that the compiler supports 'long long'.
1454         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
1455         * modules/integer_length (Files): Remove longlong.m4.
1456         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1457         * modules/integer_length_l (Files): Remove longlong.m4.
1458         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1459         * modules/integer_length_ll (Files): Remove longlong.m4.
1460         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
1462         count-one-bits: Assume that the compiler supports 'long long'.
1463         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
1464         * m4/count-one-bits.m4: Remove file.
1465         * modules/count-one-bits (Files): Remove it.
1466         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
1467         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
1468         unconditionally.
1470         count-trailing-zeros: Assume that the compiler supports 'long long'.
1471         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
1472         unconditionally.
1473         * m4/count-trailing-zeros.m4: Remove file.
1474         * modules/count-trailing-zeros (Files): Remove it.
1475         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
1476         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
1477         unconditionally.
1479         count-leading-zeros: Assume that the compiler supports 'long long'.
1480         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
1481         unconditionally.
1482         * m4/count-leading-zeros.m4: Remove file.
1483         * modules/count-leading-zeros (Files): Remove it.
1484         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
1485         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
1486         unconditionally.
1488 2019-12-22  Bruno Haible  <bruno@clisp.org>
1490         localcharset: Update support for OpenBSD.
1491         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
1493 2019-12-21  Bruno Haible  <bruno@clisp.org>
1495         pthread_sigmask: Avoid test failure on NetBSD 8.0.
1496         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
1497         NetBSD.
1498         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
1500 2019-12-21  Bruno Haible  <bruno@clisp.org>
1502         threadlib: Improve code structure.
1503         * m4/threadlib.m4: Reorder macros. Add comments.
1505 2019-12-21  Bruno Haible  <bruno@clisp.org>
1507         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
1508         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
1509         here from m4/threads.m4).
1510         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
1511         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
1512         (gl_STDTHREADLIB): New macro.
1513         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
1514         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
1516 2019-12-21  Bruno Haible  <bruno@clisp.org>
1518         sched_yield: Don't depend on threadlib and yield.
1519         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
1520         LIB_SCHED_YIELD.
1521         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
1522         m4/yield.m4).
1523         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
1524         gl_THREADLIB and gl_YIELD.
1525         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
1526         based on $(LIB_SCHED_YIELD).
1527         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
1528         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
1529         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
1530         (Depends-on): Remove threadlib.
1531         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
1532         * modules/threads-h (Files): Remove m4/yield.m4.
1533         * modules/pthread-cond-tests (Makefile.am): Link the programs against
1534         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
1535         * modules/pthread-mutex-tests (Makefile.am): Likewise.
1536         * modules/pthread-once-tests (Makefile.am): Likewise.
1537         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
1538         * modules/pthread-tss-tests (Makefile.am): Likewise.
1540 2019-12-21  Bruno Haible  <bruno@clisp.org>
1542         threads-h: Don't depend on threadlib.
1543         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
1544         not gl_THREADLIB_EARLY.
1546 2019-12-21  Bruno Haible  <bruno@clisp.org>
1548         nl_langinfo tests: Fix link error (regression from 2019-12-18).
1549         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
1550         with $(LIB_SETLOCALE).
1552 2019-12-21  Bruno Haible  <bruno@clisp.org>
1554         threadlib: Remove unused dependency (left over from 2019-07-06).
1555         * modules/threadlib (Depends-on): Remove havelib.
1557 2019-12-21  Bruno Haible  <bruno@clisp.org>
1559         New convention for multithread-safety tests.
1560         * tests/test-setlocale_null-mt-one.c: Renamed from
1561         tests/test-setlocale_null-one.c.
1562         * tests/test-setlocale_null-mt-all.c: Renamed from
1563         tests/test-setlocale_null-all.c.
1564         * modules/setlocale-null-tests (Files, Makefile.am): Update.
1566 2019-12-21  Bruno Haible  <bruno@clisp.org>
1568         quotearg tests: Fix conflict with hard-locale tests.
1569         * tests/testlocale: Renamed from tests/locale.
1570         * modules/quotearg-tests (Files): Update.
1571         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
1573 2019-12-21  Bruno Haible  <bruno@clisp.org>
1575         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
1576         Reported by Daniel Richard G. in
1577         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
1578         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
1579         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
1580         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
1581         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
1582         alternative to PTHREAD_RWLOCK_INITIALIZER.
1583         * lib/glthread/lock.c: Likewise.
1585 2019-12-21  Bruno Haible  <bruno@clisp.org>
1587         memcmp tests: Work around the clang bug.
1588         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
1589         the clang optimization.
1591 2019-12-20  Bruno Haible  <bruno@clisp.org>
1593         localcharset: Add support for z/OS encoding names.
1594         * lib/localcharset.h: Mention which encodings are used as locale
1595         encodings on z/OS.
1597 2019-12-20  Bruno Haible  <bruno@clisp.org>
1599         iconv_open: Add support for z/OS encoding names.
1600         Reported by Daniel Richard G. in
1601         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
1602         * lib/iconv_open-zos.gperf: New file.
1603         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
1604         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
1605         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
1606         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
1607         * doc/posix-functions/iconv_open.texi: Mention z/OS.
1609 2019-12-20  Bruno Haible  <bruno@clisp.org>
1611         doc: Document the problem of the per-thread locale functions on z/OS.
1612         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
1613         * doc/posix-functions/newlocale.texi: Likewise.
1614         * doc/posix-functions/duplocale.texi: Likewise.
1615         * doc/posix-functions/freelocale.texi: Likewise.
1617 2019-12-20  Bruno Haible  <bruno@clisp.org>
1619         localename, gettext: Fix host_os value for z/OS.
1620         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
1621         cross-configuration code.
1623 2019-12-19  Jim Meyering  <meyering@fb.com>
1625         nstrftime: avoid a shadowing warning
1626         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
1627         to avoid shadowing an "i" declared hundreds of lines above.
1629 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1631         dfa: struct dfamust now uses flexible array
1632         * lib/dfa.c: Include flexmember.h.
1633         (dfamust, dfamustfree): Adjust to struct dfamust change.
1634         This saves a call to malloc+free.
1635         * lib/dfa.h (struct dfamust): Make the final member a
1636         flexible array member.
1637         * modules/dfa (Depends-on): Add flexmember.
1639         dfa: fast->small for array elements
1640         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
1641         since this type is used in arrays.  This change is more for
1642         documentation than for any practical effect, since the two types
1643         are the same on all known platforms.
1645 2019-12-19  Bruno Haible  <bruno@clisp.org>
1647         iconv tests: Test canonicalized, not system-dependent, encoding names.
1648         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
1649         * modules/iconv-tests (Depends-on): Add iconv_open.
1651 2019-12-18  Bruno Haible  <bruno@clisp.org>
1653         localename: Fix test failure on AIX 7.2.
1654         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
1655         locales on AIX.
1656         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
1657         locales on AIX.
1659 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1661         Improve port of AC_C_RESTRICT to Oracle C++
1662         Problem reported by Christian Biesinger in:
1663         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
1664         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
1665         Oracle Developer Studio C++ 12.5 or later.
1667 2019-12-18  Bruno Haible  <bruno@clisp.org>
1669         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
1670         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
1672 2019-12-18  Bruno Haible  <bruno@clisp.org>
1674         localename: Ensure multithread-safety in future changes.
1675         * lib/localename.c (setlocale): Reference the system's setlocale().
1676         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
1677         (gl_locale_name_posix): Likewise.
1678         * modules/localename (Depends-on): Add setlocale-null.
1680 2019-12-18  Bruno Haible  <bruno@clisp.org>
1682         setlocale-null: Make API more useful.
1683         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
1684         callers changed.
1685         (setlocale_null): New declaration.
1686         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
1687         extracted from setlocale_null_unlocked.
1688         (setlocale_null_unlocked): Invoke it.
1689         (setlocale_null_r): Renamed from setlocale_null.
1690         (setlocale_null): New function, extracted from setlocale_mtsafe in
1691         setlocale.c.
1692         * lib/setlocale.c: Don't include <errno.h>.
1693         (setlocale_mtsafe): Invoke setlocale_null.
1694         * lib/setlocale-lock.c: Update comments.
1695         * doc/posix-functions/setlocale.texi: Mention both functions.
1697 2019-12-18  Bruno Haible  <bruno@clisp.org>
1699         localename: Optimize code for native Windows.
1700         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
1701         category (not allowed here).
1703 2019-12-18  Bruno Haible  <bruno@clisp.org>
1705         setlocale: Make calls with NULL argument multithread-safe.
1706         * lib/setlocale.c: Include <errno.h>.
1707         (setlocale_mtsafe): New function.
1708         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
1709         (setlocale_improved): Renamed from rpl_setlocale.
1710         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
1711         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
1712         LIB_SETLOCALE.
1713         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
1714         (Link): New section.
1715         * tests/locale.c: Undefine setlocale.
1716         * tests/test-setlocale_null-one.c: Likewise.
1717         * tests/test-setlocale_null-all.c: Likewise.
1718         * modules/setlocale-tests (Makefile.am): Link the test programs with
1719         $(LIB_SETLOCALE).
1720         * modules/astrxfrm-tests (Makefile.am): Likewise.
1721         * modules/btowc-tests (Makefile.am): Likewise.
1722         * modules/c-ctype-tests (Makefile.am): Likewise.
1723         * modules/c-snprintf-tests (Makefile.am): Likewise.
1724         * modules/c-strcase-tests (Makefile.am): Likewise.
1725         * modules/c-vasprintf-tests (Makefile.am): Likewise.
1726         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
1727         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
1728         * modules/dfa-tests (Makefile.am): Likewise.
1729         * modules/duplocale-tests (Makefile.am): Likewise.
1730         * modules/hard-locale-tests (Makefile.am): Likewise.
1731         * modules/localcharset-tests (Makefile.am): Likewise.
1732         * modules/localename-tests (Makefile.am): Likewise.
1733         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1734         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1735         * modules/mbrtowc-tests (Makefile.am): Likewise.
1736         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1737         * modules/mbscasestr-tests (Makefile.am): Likewise.
1738         * modules/mbschr-tests (Makefile.am): Likewise.
1739         * modules/mbscspn-tests (Makefile.am): Likewise.
1740         * modules/mbsinit-tests (Makefile.am): Likewise.
1741         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1742         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1743         * modules/mbspbrk-tests (Makefile.am): Likewise.
1744         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1745         * modules/mbsrchr-tests (Makefile.am): Likewise.
1746         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1747         * modules/mbsspn-tests (Makefile.am): Likewise.
1748         * modules/mbsstr-tests (Makefile.am): Likewise.
1749         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1750         * modules/quotearg-tests (Makefile.am): Likewise.
1751         * modules/regex-tests (Makefile.am): Likewise.
1752         * modules/strfmon_l-tests (Makefile.am): Likewise.
1753         * modules/strtod-tests (Makefile.am): Likewise.
1754         * modules/strtold-tests (Makefile.am): Likewise.
1755         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1756         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1757         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1758         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
1759         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1760         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1761         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1762         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1763         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1764         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1765         * modules/wcrtomb-tests (Makefile.am): Likewise.
1766         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1767         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1768         * modules/wcwidth-tests (Makefile.am): Likewise.
1769         * doc/posix-functions/setlocale.texi: Mention that the multithread-
1770         safety fix is also available in module 'setlocale'.
1772 2019-12-18  Bruno Haible  <bruno@clisp.org>
1774         hard-locale: Make multithread-safe.
1775         * lib/hard-locale.h (hard_locale): Move documentation to here.
1776         * lib/hard-locale.c: Don't include <stdlib.h>.
1777         (GLIBC_VERSION): Remove macro.
1778         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
1779         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
1780         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
1781         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
1782         (Link): New section.
1783         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
1784         $(LIB_HARD_LOCALE).
1786 2019-12-18  Bruno Haible  <bruno@clisp.org>
1788         hard-locale: Avoid test failure on Haiku.
1789         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
1791 2019-12-18  Bruno Haible  <bruno@clisp.org>
1793         setlocale-null: Handle NULL result from setlocale.
1794         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
1795         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
1796         from setlocale or _wsetlocale.
1798 2019-12-18  Bruno Haible  <bruno@clisp.org>
1800         hard-locale: Add test.
1801         * tests/test-hard-locale.c: New file.
1802         * tests/locale.c: New file.
1803         * modules/hard-locale-tests: New file.
1805 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1807         dfa: do not match invalid UTF-8
1808         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
1809         from 5 to 9 tokens; this is needed due to the changes to
1810         add_utf8_anychar.
1811         (charclass_index): 2nd arg is now pointer-to-const.
1812         (add_utf8_anychar): Match only valid UTF-8 byte sequences
1813         instead of allowing overlong encodings or surrogate halves.
1815         dfa: simplify charclass by assuming C99
1816         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
1817         (charclass_word): Now always uint_fast64_t.
1818         (CHARCLASS_PAIR): Remove.
1819         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
1821         fts: tune via calloc
1822         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
1824         dfa: tune via xzalloc
1825         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
1827 2019-12-17  Bruno Haible  <bruno@clisp.org>
1829         localcharset: Fix multithread-safety bug on Windows and OS/2.
1830         * lib/localcharset.h (locale_charset): Clarify when the result becomes
1831         invalid.
1832         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
1833         assemble the result.
1835 2019-12-17  Bruno Haible  <bruno@clisp.org>
1837         localcharset: Optimize code for native Windows.
1838         * lib/localcharset.c (locale_charset): Don't bother calling
1839         setlocale (LC_ALL, NULL) since we're not interested in its result.
1841 2019-12-17  Bruno Haible  <bruno@clisp.org>
1843         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
1844         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
1845         setlocale.
1846         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
1847         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
1848         * modules/nl_langinfo (Depends-on): Add setlocale-null.
1850 2019-12-17  Bruno Haible  <bruno@clisp.org>
1852         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
1853         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
1854         stack-allocated buffer to assemble each result and different static
1855         buffers to return it.
1856         * tests/test-nl_langinfo-mt.c: New file.
1857         * modules/nl_langinfo-tests (Files): Add it.
1858         (Depends-on): Add thread, nanosleep.
1859         (Makefile.am): Build test-nl_langinfo-mt test.
1861 2019-12-17  Bruno Haible  <bruno@clisp.org>
1863         langinfo: Document more details.
1864         * doc/posix-headers/langinfo.texi: List platform details.
1865         * doc/posix-functions/nl_langinfo.texi: Likewise.
1867 2019-12-17  Bruno Haible  <bruno@clisp.org>
1869         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
1870         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
1871         and Martin Storsjö <martin@martin.st>
1872         in <https://savannah.gnu.org/bugs/?57406>.
1873         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
1874         mingw.
1876 2019-12-17  Bruno Haible  <bruno@clisp.org>
1878         glob: Avoid warning on mingw.
1879         Reported by Christian Biesinger <cbiesinger@google.com> in
1880         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
1881         * lib/glob.c (__stat64): Undefine first.
1883 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1885         xalloc: tune xzalloc for fresh allocations
1886         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
1887         because when the memory is freshly allocated from the OS via sbrk
1888         or mmap, calloc can avoid doing the memset.
1890         dfa: new function dfacopysyntax
1891         * lib/dfa.c (struct dfa): Move syntax member later so
1892         that dfacopysyntax can easily clear earlier members.
1893         (dfacopysyntax): New function, used by Gawk.
1895 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
1897         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
1898         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
1899         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
1900         if not already defined.
1902         dfa: remove one dependency on MB_CUR_MAX
1903         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
1905         dfa: remove struct lexer_state.cur_mb_len
1906         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
1907         as it’s not needed and the code is simpler without it.
1908         All uses removed.
1910 2019-12-16  Bruno Haible  <bruno@clisp.org>
1912         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
1913         Reported by Arnold Robbins <arnold@skeeve.com>.
1914         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
1915         copied from lib/glthread/lock.h.
1916         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
1917         (setlocale_null_with_lock): If pthread_in_use() is false, use
1918         setlocale_null_unlocked directly.
1919         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
1920         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
1921         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
1922         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
1923         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
1924         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
1926 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
1928         dfa: make dfasyntax thread-safe
1929         Problem reported by Bruno Haible in:
1930         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
1931         * lib/dfa.c: Do not include locale.h.
1932         (struct dfa): Remove simple_locale member.
1933         All uses replaced by localeinfo.simple.
1934         (using_simple_locale): Remove; now present (with some
1935         changes) in localeinfo.c.
1936         (dfasyntax): No need to initialize removed member.
1938         localeinfo: record whether locale is simple
1939         * lib/localeinfo.c (using_simple_locale): New function,
1940         copied here from lib/dfa.c but with a change: it uses
1941         strcoll for its heuristic, instead of using setlocale.
1942         This lets it be thread-safe.
1943         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
1945 2019-12-15  Bruno Haible  <bruno@clisp.org>
1947         duplocale: Fix multithread-safety bug on AIX.
1948         * lib/duplocale.c: Don't include <stdlib.h>.
1949         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
1950         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
1951         Set LIB_DUPLOCALE.
1952         * modules/duplocale (Depends-on): Add setlocale-null.
1953         (Link): New section.
1954         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
1955         $(LIB_DUPLOCALE).
1957 2019-12-15  Bruno Haible  <bruno@clisp.org>
1959         setlocale-null: Add tests.
1960         * tests/test-setlocale_null.c: New file.
1961         * tests/test-setlocale_null-one.c: New file.
1962         * tests/test-setlocale_null-all.c: New file.
1963         * modules/setlocale-null-tests: New file.
1965         setlocale-null: New module.
1966         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
1967         setlocale_null): New declarations.
1968         * lib/setlocale_null.c: New file.
1969         * lib/setlocale-lock.c: New file.
1970         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
1971         * m4/setlocale_null.m4: New file.
1972         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
1973         GNULIB_SETLOCALE_NULL.
1974         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
1975         * modules/setlocale-null: New file.
1976         * doc/posix-functions/setlocale.texi: Mention the new module.
1978 2019-12-15  Bruno Haible  <bruno@clisp.org>
1980         lock tests: Skip test when no multithreading is enabled.
1981         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
1983 2019-12-14  Bruno Haible  <bruno@clisp.org>
1985         locale, duplocale, localename: Fix last patch.
1986         Reported by Daniel Richard G. in
1987         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
1988         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
1989         Don't define if locale_t does not exist.
1991 2019-12-13  Bruno Haible  <bruno@clisp.org>
1993         locale, duplocale, localename: Fix errors if locale_t does not exist.
1994         Reported by Daniel Richard G. in
1995         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
1996         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
1997         macros.
1998         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
1999         HAVE_NEWLOCALE.
2000         * tests/test-localename.c: Likewise.
2001         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
2002         HAVE_DUPLOCALE.
2003         * tests/test-locale-c++.cc: Likewise.
2005 2019-12-13  Bruno Haible  <bruno@clisp.org>
2007         wcstok: Fix test failure on HP-UX.
2008         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
2009         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
2011 2019-12-12  Bruno Haible  <bruno@clisp.org>
2013         strtod, strtold tests: Avoid test failure on AIX 7.2.
2014         * tests/test-strtod1.c (main): Allow implementations in which ',' and
2015         '.' both are radix characters.
2016         * tests/test-strtold1.c (main): Likewise.
2018 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2020         dfa: prefer ptrdiff_t for API, too
2021         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
2022         but do this only for internal use for now.
2023         * NEWS: Mention the API change.
2024         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
2025         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
2026         values known to be nonnegative.
2027         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
2028         Prefer idx_t or ptrdiff_t to size_t for API.
2029         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
2030         Prefer ptrdiff_t to size_t for API.
2032         stdalign: port to xlclang 16.01
2033         Problem reportd by Bruno Haible in:
2034         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
2035         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
2036         ((__aligned__ (...))) with xlclang, as a top-level
2037         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
2038         xlclang version 16.01.0000.0001; the alignment directive is ignored.
2040 2019-12-12  Bruno Haible  <bruno@clisp.org>
2042         duplocale: Fix test failure on AIX 7.2 with xlclang.
2043         * lib/duplocale.c: Include <stdlib.h>.
2044         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
2045         value.
2047 2019-12-12  Bruno Haible  <bruno@clisp.org>
2049         stddef: Document the AIX xlc issue.
2050         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
2052 2019-12-12  Bruno Haible  <bruno@clisp.org>
2054         duplocale: Don't attempt to override if locale_t does not exist.
2055         Reported by Daniel Richard G. in
2056         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
2057         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
2058         HAVE_DUPLOCALE to 0.
2060 2019-12-12  Bruno Haible  <bruno@clisp.org>
2062         wcwidth: Avoid test failure on AIX 7.2.
2063         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
2064         negative.
2065         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
2067 2019-12-12  Bruno Haible  <bruno@clisp.org>
2069         ilogbl: Work around Cygwin bug.
2070         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
2071         correct.
2072         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
2074 2019-12-12  Bruno Haible  <bruno@clisp.org>
2076         strtold: Work around Cygwin bug.
2077         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
2078         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
2079         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
2080         STRTOLD_HAS_UNDERFLOW_BUG is defined.
2081         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
2083 2019-12-12  Bruno Haible  <bruno@clisp.org>
2085         strtold: Fix autoconf test.
2086         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
2088 2019-12-11  Bruno Haible  <bruno@clisp.org>
2090         fsync tests: Skip test that is known to fail.
2091         * doc/posix-functions/fsync.texi: Update list of platforms.
2092         * tests/test-fsync.c (main): Skip test with read-only file descriptors
2093         that is known to fail on AIX and Cygwin.
2095 2019-12-11  Bruno Haible  <bruno@clisp.org>
2097         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
2098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
2099         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
2100         HAVE_GETADDRINFO as a C macro.
2101         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
2102         declare as replacement functions.
2103         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
2104         define as no-op overrides.
2105         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
2106         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
2107         * modules/getaddrinfo (Depends-on, configure.ac): Test
2108         REPLACE_GETADDRINFO.
2109         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
2110         problem.
2111         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
2112         convention problems.
2114 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2116         dfa: prefer signed integers for internals
2117         Signed integers can be checked more easily for integer overflow.
2118         * lib/dfa.c (position, struct lexer_state, struct parser_state)
2119         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
2120         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
2121         (nsubtoks, copytoks, closure, alloc_position_set, delete)
2122         (replace, state_index, epsclosure, charclass_context)
2123         (state_separate_contexts, merge_nfa_state, dfaoptimize)
2124         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
2125         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
2126         (comsubs, inboth, allocmust):
2127         Prefer a signed to an unsigned integer when calculating indexes,
2128         unless the integer is part of the external API (a bigger deal,
2129         and to be done later).
2131         dfa: fix index overflow
2132         * lib/dfa.c (compare): Avoid integer overflow when analyzing
2133         very large regular expressions.
2135         dfa: update commentary for previous change
2136         * NEWS: Mention the change.
2137         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
2139 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2141         dfa: separate parse and compile phase
2142         ‘dfamust’ must be called after parsing and before tokens are
2143         reordered, but both are executed in the compilation phase.
2144         Token reordering was introduced in Gnulib commit
2145         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
2146         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
2147         * lib/dfa.c (dfaparse): Change it to global function.
2148         (dfacomp): If first argument is NULL, skip parse.
2149         * lib/dfa.h: (dfaparse): Add a prototype.
2151 2019-12-11  Bruno Haible  <bruno@clisp.org>
2153         unistd tests: Fix link error on MSVC.
2154         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
2155         $(LIB_GETLOGIN).
2157 2019-12-11  Bruno Haible  <bruno@clisp.org>
2159         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
2160         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
2161         and POSIX substitutes are supported in C++ mode.
2162         * NEWS: Likewise.
2164 2019-12-11  Bruno Haible  <bruno@clisp.org>
2166         stddef: Fix compilation error in C++ mode on MSVC.
2167         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
2168         instead, include <cstddef>.
2170 2019-12-11  Bruno Haible  <bruno@clisp.org>
2172         unistd: Fix compilation error in C++ mode on MSVC.
2173         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
2174         does not have <unistd.h>.
2176 2019-12-11  Bruno Haible  <bruno@clisp.org>
2178         locale: Fix compilation error in C++ mode on MSVC.
2179         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
2180         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
2181         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
2182         int_n_sep_by_space): Define as macros on MSVC.
2184 2019-12-11  Bruno Haible  <bruno@clisp.org>
2186         wchar: Fix compilation error in C++ mode on MSVC.
2187         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
2189 2019-12-11  Bruno Haible  <bruno@clisp.org>
2191         pthread-thread: Fix compilation error in C++ mode on MSVC.
2192         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
2193         _GL_CXXALIAS_RPL invocation.
2195 2019-12-08  Bruno Haible  <bruno@clisp.org>
2197         Fix compilation errors in C++ mode on Haiku.
2198         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
2199         non-glibc systems.
2200         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
2201         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2202         posix_spawnattr_setschedparam): Likewise.
2203         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
2204         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2205         * lib/unistd.in.h (usleep): Likewise.
2207 2019-12-08  Bruno Haible  <bruno@clisp.org>
2209         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
2210         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
2211         * modules/fseeko (configure.ac-early): Require it instead of
2212         AC_FUNC_FSEEKO.
2213         * modules/ftello (configure.ac-early): Likewise.
2214         * modules/fflush (configure.ac-early): Likewise.
2216 2019-12-08  Bruno Haible  <bruno@clisp.org>
2218         Fix compilation error in C++ mode on HP-UX 11.
2219         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
2220         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
2222 2019-12-08  Bruno Haible  <bruno@clisp.org>
2224         Fix compilation errors on HP-UX 11/ia64.
2225         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
2226         _GL_FUNCDECL_SYS.
2228 2019-12-08  Bruno Haible  <bruno@clisp.org>
2230         Fix compilation error in C++ mode on OpenBSD.
2231         * lib/signal.in.h (signal): Declare on OpenBSD.
2233 2019-12-08  Bruno Haible  <bruno@clisp.org>
2235         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
2236         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
2237         instead of #error.
2239 2019-12-08  Bruno Haible  <bruno@clisp.org>
2241         Fix compilation errors in C++ mode on FreeBSD.
2242         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
2243         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
2244         * lib/threads.in.h (thrd_exit): Likewise.
2245         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
2247 2019-12-08  Bruno Haible  <bruno@clisp.org>
2249         Fix compilation errors in C++ mode on macOS and FreeBSD.
2250         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
2251         or FreeBSD with clang, use the approach without C preprocessor macro.
2253 2019-12-07  Bruno Haible  <bruno@clisp.org>
2255         Fix compilation errors in C++ mode on AIX with xlclang++.
2256         Reported by Christian Biesinger <cbiesinger@google.com> in
2257         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2258         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
2260 2019-12-07  Bruno Haible  <bruno@clisp.org>
2262         Document compilation error in C++ mode on NetBSD 8.0.
2263         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
2265 2019-12-07  Bruno Haible  <bruno@clisp.org>
2267         Fix compilation errors in C++ mode on Solaris 10.
2268         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
2269         to non-empty on Solaris with a non-GCC compiler.
2270         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
2272 2019-12-07  Bruno Haible  <bruno@clisp.org>
2274         Reword NEWS entry.
2275         * NEWS: Reword the latest NEWS entry.
2277 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
2279         Move xstrtol_fatal to a new xstrtol-error module.
2280         * lib/xstrtol.h: Stop including <getopt.h>.
2281         (xstrtol_fatal): Move ...
2282         * lib/xstrtol-error.h: ... here.  New file.
2283         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
2284         * tests/test-xstrtol.c: Likewise.
2285         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
2286         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
2287         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
2288         * modules/xstrtol-error: New file.
2289         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
2290         * MODULES.html.sh: Add xstrtol-error.
2291         * NEWS: Document the change.
2293 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2295         nstrftime: better width support for %N, %z
2296         * lib/nstrftime.c (width_add, width_add1, width_cpy):
2297         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
2298         a new WIDTH parameter.
2299         (add, add1, cpy): Use these macros.
2300         (width_add): Do not treat digits == 0 as a special case,
2301         do not pad if padding is ‘-’, and do not use a negative width.
2302         (__strftime_internal): Redo formatting of nanoseconds and numeric
2303         timezones to avoid buffer misuse in unusual cases, and so that
2304         widths make more sense.  Add support for widths greater than 9 to
2305         the %N format; they are zero filled on the right.
2306         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
2308 2019-12-05  Bruno Haible  <bruno@clisp.org>
2310         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
2311         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
2312         set REPLACE_ISFINITE to 1.
2313         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
2314         REPLACE_ISINF to 1.
2315         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
2316         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
2317         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
2318         * lib/threads.in.h (call_once): Likewise.
2319         * lib/iconv.in.h (iconv): Likewise.
2321 2019-12-05  Bruno Haible  <bruno@clisp.org>
2323         wchar: Add more C++ tests.
2324         Reported by Christian Biesinger <cbiesinger@google.com> in
2325         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
2326         * tests/test-wchar-c++3.cc: New file.
2327         * modules/wchar-c++-tests (Files): Add it.
2328         (Makefile.am): Compile it.
2330 2019-12-05  Bruno Haible  <bruno@clisp.org>
2332         Add more C++ tests.
2334         assert-h: Add C++ tests.
2335         * tests/test-assert-h-c++.cc: New file.
2336         * tests/test-assert-h-c++2.cc: New file.
2337         * modules/assert-h-c++-tests: New file.
2338         * modules/assert-h-tests: New file.
2340         ctype: Add C++ tests.
2341         * tests/test-ctype-c++.cc: New file.
2342         * tests/test-ctype-c++2.cc: New file.
2343         * modules/ctype-c++-tests: New file.
2344         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
2346         errno: Add C++ tests.
2347         * tests/test-errno-c++.cc: New file.
2348         * tests/test-errno-c++2.cc: New file.
2349         * modules/errno-c++-tests: New file.
2350         * modules/errno-tests (Depends-on): Add errno-c++-tests.
2352         float: Add C++ tests.
2353         * tests/test-float-c++.cc: New file.
2354         * tests/test-float-c++2.cc: New file.
2355         * modules/float-c++-tests: New file.
2356         * modules/float-tests (Depends-on): Add float-c++-tests.
2358         inttypes: Add more C++ tests.
2359         * tests/test-inttypes-c++2.cc: New file.
2360         * modules/inttypes-c++-tests (Files): Add it.
2361         (Makefile.am): Compile it.
2363         limits-h: Add C++ tests.
2364         * tests/test-limits-h-c++.cc: New file.
2365         * tests/test-limits-h-c++2.cc: New file.
2366         * modules/limits-h-c++-tests: New file.
2367         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
2369         stdarg: Add C++ tests.
2370         * tests/test-stdarg-c++.cc: New file.
2371         * tests/test-stdarg-c++2.cc: New file.
2372         * modules/stdarg-c++-tests: New file.
2373         * modules/stdarg-tests: New file.
2375         stdbool: Add C++ tests.
2376         * tests/test-stdbool-c++.cc: New file.
2377         * tests/test-stdbool-c++2.cc: New file.
2378         * modules/stdbool-c++-tests: New file.
2379         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
2381         stddef: Add C++ tests.
2382         * tests/test-stddef-c++.cc: New file.
2383         * tests/test-stddef-c++2.cc: New file.
2384         * modules/stddef-c++-tests: New file.
2385         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
2387         stdint: Add C++ tests.
2388         * tests/test-stdint-c++.cc: New file.
2389         * tests/test-stdint-c++2.cc: New file.
2390         * modules/stdint-c++-tests: New file.
2391         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
2393         wchar: Add more C++ tests.
2394         * tests/test-wchar-c++2.cc: New file.
2395         * modules/wchar-c++-tests (Files): Add it.
2396         (Makefile.am): Compile it.
2398         wctype-h: Add more C++ tests.
2399         * tests/test-wctype-h-c++2.cc: New file.
2400         * modules/wctype-h-c++-tests (Files): Add it.
2401         (Makefile.am): Compile it.
2403 2019-12-04  Bruno Haible  <bruno@clisp.org>
2405         Fix compilation errors in C++ mode with xlclang++ on AIX.
2406         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
2407         C++ mode on AIX.
2408         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
2409         without C preprocessor macro.
2410         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
2411         _GL_CXXALIAS_SYS.
2412         * lib/threads.in.h (thrd_exit): Likewise.
2414 2019-12-04  Bruno Haible  <bruno@clisp.org>
2416         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
2417         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
2418         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
2420 2019-12-04  Bruno Haible  <bruno@clisp.org>
2422         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
2423         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
2424         _GL_CXXALIASWARN invocation on non-glibc systems.
2425         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
2426         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
2427         iswctype, towlower, towupper): Likewise.
2429 2019-12-03  Bruno Haible  <bruno@clisp.org>
2431         Avoid hassles caused by [[noreturn]] in C++.
2432         Reported by Christian Biesinger <cbiesinger@google.com> in
2433         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
2434         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
2435         * lib/_Noreturn.h: Likewise.
2437 2019-12-02  Bruno Haible  <bruno@clisp.org>
2439         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
2440         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
2441         LIBMULTITHREAD.
2442         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
2443         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
2444         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
2445         gl_THREADLIB.
2446         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
2448 2019-12-02  Bruno Haible  <bruno@clisp.org>
2450         Fix some more link errors with --enable-threads=isoc.
2451         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
2452         * modules/pthread-rwlock (Depends-on): Likewise.
2454 2019-12-02  Bruno Haible  <bruno@clisp.org>
2456         Fix link errors with --enable-threads=posix on AIX.
2457         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
2458         program with $(LIBTHREAD).
2459         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
2460         program with $(LIBTHREAD).
2462 2019-12-02  Bruno Haible  <bruno@clisp.org>
2464         Fix link errors with --enable-threads=posix on AIX.
2465         * modules/mbrtowc (Link): New section.
2466         * modules/acl (Link): Likewise.
2467         * modules/argmatch (Link): Likewise.
2468         * modules/backup-rename (Link): Likewise.
2469         * modules/backupfile (Link): Likewise.
2470         * modules/closein (Link): Likewise.
2471         * modules/closeout (Link): Likewise.
2472         * modules/copy-file (Link): Likewise.
2473         * modules/csharpcomp (Link): Likewise.
2474         * modules/csharpexec (Link): Likewise.
2475         * modules/dfa (Link): Likewise.
2476         * modules/exclude (Link): Likewise.
2477         * modules/fnmatch (Link): Likewise.
2478         * modules/fnmatch-gnu (Link): Likewise.
2479         * modules/fnmatch-posix (Link): Likewise.
2480         * modules/glob (Link): Likewise.
2481         * modules/human (Link): Likewise.
2482         * modules/javacomp (Link): Likewise.
2483         * modules/javaexec (Link): Likewise.
2484         * modules/javaversion (Link): Likewise.
2485         * modules/mbfile (Link): Likewise.
2486         * modules/mbiter (Link): Likewise.
2487         * modules/mbmemcasecmp (Link): Likewise.
2488         * modules/mbmemcasecoll (Link): Likewise.
2489         * modules/mbrlen (Link): Likewise.
2490         * modules/mbscasecmp (Link): Likewise.
2491         * modules/mbscasestr (Link): Likewise.
2492         * modules/mbschr (Link): Likewise.
2493         * modules/mbscspn (Link): Likewise.
2494         * modules/mbsinit (Link): Likewise.
2495         * modules/mbslen (Link): Likewise.
2496         * modules/mbsncasecmp (Link): Likewise.
2497         * modules/mbsnlen (Link): Likewise.
2498         * modules/mbsnrtowcs (Link): Likewise.
2499         * modules/mbspbrk (Link): Likewise.
2500         * modules/mbspcasecmp (Link): Likewise.
2501         * modules/mbsrchr (Link): Likewise.
2502         * modules/mbsrtowcs (Link): Likewise.
2503         * modules/mbssep (Link): Likewise.
2504         * modules/mbsspn (Link): Likewise.
2505         * modules/mbsstr (Link): Likewise.
2506         * modules/mbstok_r (Link): Likewise.
2507         * modules/mbswidth (Link): Likewise.
2508         * modules/mbuiter (Link): Likewise.
2509         * modules/mkdir-p (Link): Likewise.
2510         * modules/propername (Link): Likewise.
2511         * modules/quote (Link): Likewise.
2512         * modules/quotearg (Link): Likewise.
2513         * modules/quotearg-simple (Link): Likewise.
2514         * modules/regex-quote (Link): Likewise.
2515         * modules/rpmatch (Link): Likewise.
2516         * modules/sh-quote (Link): Likewise.
2517         * modules/system-quote (Link): Likewise.
2518         * modules/trim (Link): Likewise.
2519         * modules/unistdio/ulc-asnprintf (Link): Likewise.
2520         * modules/unistdio/ulc-fprintf (Link): Likewise.
2521         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
2522         * modules/unistdio/ulc-vasprintf (Link): Likewise.
2523         * modules/unistdio/ulc-vfprintf (Link): Likewise.
2524         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
2525         * modules/unistdio/ulc-vsprintf (Link): Likewise.
2526         * modules/xfreopen (Link): Likewise.
2527         * modules/xmemcoll (Link): Likewise.
2528         * modules/yesno (Link): Likewise.
2529         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
2530         * modules/argmatch-tests (Makefile.am): Likewise.
2531         * modules/closein-tests (Makefile.am): Likewise.
2532         * modules/copy-file-tests (Makefile.am): Likewise.
2533         * modules/dfa-tests (Makefile.am): Likewise.
2534         * modules/fnmatch-tests (Makefile.am): Likewise.
2535         * modules/glob-tests (Makefile.am): Likewise.
2536         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2537         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2538         * modules/mbrtowc-tests (Makefile.am): Likewise.
2539         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2540         * modules/mbscasestr-tests (Makefile.am): Likewise.
2541         * modules/mbschr-tests (Makefile.am): Likewise.
2542         * modules/mbscspn-tests (Makefile.am): Likewise.
2543         * modules/mbsinit-tests (Makefile.am): Likewise.
2544         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2545         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2546         * modules/mbspbrk-tests (Makefile.am): Likewise.
2547         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2548         * modules/mbsrchr-tests (Makefile.am): Likewise.
2549         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2550         * modules/mbsspn-tests (Makefile.am): Likewise.
2551         * modules/mbsstr-tests (Makefile.am): Likewise.
2552         * modules/quotearg-tests (Makefile.am): Likewise.
2553         * modules/quotearg-simple-tests (Makefile.am): Likewise.
2554         * modules/readtokens-tests (Makefile.am): Likewise.
2555         * modules/regex-quote-tests (Makefile.am): Likewise.
2556         * modules/sh-quote-tests (Makefile.am): Likewise.
2557         * modules/system-quote-tests (Makefile.am): Likewise.
2558         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
2559         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2560         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
2561         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
2562         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
2563         * modules/yesno-tests (Makefile.am): Likewise.
2565 2019-12-02  Bruno Haible  <bruno@clisp.org>
2567         Simplify link sections.
2568         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
2569         * modules/lock (Link): Likewise.
2570         * modules/cond (Link): Likewise.
2571         * modules/tls (Link): Likewise.
2572         * modules/yield (Link): Likewise.
2573         * modules/regex (Link): Likewise.
2574         * modules/localename (Link): Likewise.
2575         * modules/unicase/locale-language (Link): Likewise.
2576         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
2578 2019-12-02  Bruno Haible  <bruno@clisp.org>
2580         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
2581         * tests/test-thread_self.c (main): Disable test on AIX.
2583 2019-12-01  Bruno Haible  <bruno@clisp.org>
2585         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
2586         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
2587         gl_THREADLIB_EARLY_BODY.
2588         (gl_THREADLIB_EARLY_BODY): Invoke it.
2589         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
2590         (gl_THREADLIB_BODY): Invoke it.
2591         (gl_PTHREADLIB): New macro.
2592         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
2593         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
2594         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
2595         * modules/pthread-h (Files): Add threadlib.m4.
2596         (Depends-on): Remove threadlib.
2597         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
2598         and _THREAD_SAFE here.
2599         (Link): Use LIBPTHREAD, not LIBTHREAD.
2600         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
2601         LIBMULTITHREAD.
2602         * modules/pthread-once (Link): Likewise.
2603         * modules/pthread-mutex (Link): Likewise.
2604         * modules/pthread-rwlock (Link): Likewise.
2605         * modules/pthread-cond (Link): Likewise.
2606         * modules/pthread-tss (Link): Likewise.
2607         * modules/pthread-spin (Link): Likewise.
2608         * modules/pthread (Link): Likewise.
2609         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
2610         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
2611         * modules/pthread-once-tests (test_pthread_once1_LDADD,
2612         test_pthread_once2_LDADD): Likewise.
2613         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
2614         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
2615         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
2616         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
2618 2019-12-01  Bruno Haible  <bruno@clisp.org>
2620         cond: State linking requirements.
2621         * modules/cond (Link): New section.
2623 2019-12-01  Bruno Haible  <bruno@clisp.org>
2625         threadlib: Remove unnecessary file (left over from 2019-07-06).
2626         * modules/threadlib (Files): Remove config.rpath.
2628 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
2630         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
2631         Reported by Dagobert Michelsen <dam@opencsw.org> in
2632         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
2633         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
2634         list of strings instead of one string.
2635         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
2636         * pygnulib/GLImport.py (execute): Likewise.
2638 2019-11-27  Bruno Haible  <bruno@clisp.org>
2640         openpty, forkpty: Fix build error on Solaris 11.4.
2641         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
2642         also in <termios.h>.
2643         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
2644         of the function also in <termios.h>.
2645         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
2646         * doc/glibc-functions/forkpty.texi: Likewise.
2648 2019-11-27  Bruno Haible  <bruno@clisp.org>
2650         New options --enable-threads=isoc and --enable-threads=isoc+posix.
2651         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
2652         --enable-threads=isoc and --enable-threads=isoc+posix.
2653         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
2654         When both the ISO C and the POSIX threads API are available, choose
2655         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
2656         --enable-threads=isoc+posix was specified. When only the ISO C threads
2657         API is available and --enable-threads=iso was specified, choose
2658         USE_ISOC_THREADS.
2659         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
2660         USE_ISOC_AND_POSIX_THREADS.
2661         * lib/glthread/lock.c: Likewise.
2662         * lib/glthread/cond.h: Likewise.
2663         * lib/glthread/cond.c: Likewise.
2664         * lib/glthread/tls.h: Likewise.
2665         * lib/glthread/tls.c: Likewise.
2666         * lib/glthread/yield.h: Likewise.
2667         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
2668         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
2669         * lib/glthread/thread.c: Likewise.
2670         * lib/glthread/threadlib.c: Likewise.
2671         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
2672         USE_ISOC_AND_POSIX_THREADS.
2673         * tests/test-cond.c: Consider USE_ISOC_THREADS and
2674         USE_ISOC_AND_POSIX_THREADS.
2675         * tests/test-tls.c: Likewise.
2676         * tests/test-thread_create.c (main): Likewise.
2677         * tests/test-pthread-cond.c: Likewise.
2678         * tests/test-pthread-mutex.c: Likewise.
2679         * tests/test-pthread-once2.c: Likewise.
2680         * tests/test-pthread-rwlock.c: Likewise.
2681         * tests/test-pthread-tss.c: Likewise.
2682         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
2683         USE_POSIX_THREADS.
2685 2019-11-24  Bruno Haible  <bruno@clisp.org>
2687         mbrtowc: Modernize autoconf test.
2688         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
2689         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
2690         try a UTF-8 locale.
2691         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
2693 2019-11-24  Bruno Haible  <bruno@clisp.org>
2695         Fix errors in C++ mode on mingw.
2696         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
2697         instead of _GL_CXXALIAS_SYS.
2698         * lib/signal.in.h (pthread_sigmask): Likewise.
2699         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
2700         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2701         Likewise.
2702         * lib/wchar.in.h (btowc): Likewise.
2704 2019-11-24  Bruno Haible  <bruno@clisp.org>
2706         sys_time: Fix errors in C++ mode on mingw.
2707         * lib/sys_time.in.h (timeval): Restore the redirection
2708         '#define timeval rpl_timeval', for when the symbol timeval is being used
2709         outside the 'gnulib' namespace.
2710         * lib/sys_select.in.h (select): In C++, write 'timeval', not
2711         'struct timeval'.
2713 2019-11-24  Bruno Haible  <bruno@clisp.org>
2715         iswctype: Fix errors in C++ mode on mingw.
2716         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
2717         is 1.
2718         * lib/iswctype.c (iswctype): Add another implementation, for the
2719         GNULIB_defined_wint_t case.
2720         * modules/iswctype (configure.ac): Compile iswctype.c also if
2721         GNULIB_OVERRIDES_WINT_T is 1.
2723 2019-11-24  Bruno Haible  <bruno@clisp.org>
2725         windows-timedmutex: Fix errors in C++ mode on mingw.
2726         * lib/windows-timedmutex.h: Add closing brace.
2728 2019-11-24  Bruno Haible  <bruno@clisp.org>
2730         Fix errors in C++ mode on Cygwin.
2731         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
2732         _GL_CXXALIAS_SYS.
2734 2019-11-24  Bruno Haible  <bruno@clisp.org>
2736         time_r: Fix for mingw (regression from 2019-11-16).
2737         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
2738         AC_LINK_IFELSE test only if the function does not appear to exist.
2740 2019-11-24  Bruno Haible  <bruno@clisp.org>
2742         wcstok: Add tests.
2743         * tests/test-wcstok.c: New file.
2744         * modules/wcstok-tests: New file.
2746 2019-11-24  Bruno Haible  <bruno@clisp.org>
2748         wcstok: Work around wrong signature on native Windows.
2749         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
2750         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
2751         REPLACE_WCSTOK.
2752         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
2753         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
2754         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
2755         * doc/posix-functions/wcstok.texi: Mention the problem.
2757 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2759         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
2760         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
2761         remove workaround for GCC bug 91450 as the bug should be fixed
2762         there too.
2764 2019-11-21  Bruno Haible  <bruno@clisp.org>
2766         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
2767         Reported by Christian Biesinger <cbiesinger@google.com> in
2768         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
2769         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
2770         non-glibc systems.
2771         * lib/locale.in.h (localeconv, setlocale): Likewise.
2772         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2773         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
2774         rint, round, trunc): Likewise.
2775         * lib/monetary.in.h (strfmon_l): Likewise.
2776         * lib/pthread.in.h (pthread_mutexattr_getrobust,
2777         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
2778         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
2779         pthread_spin_destroy): Likewise.
2780         * lib/signal.in.h (raise, signal): Likewise.
2781         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
2782         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
2783         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
2784         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
2785         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
2786         Likewise.
2787         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
2788         Likewise.
2789         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
2790         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
2791         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
2792         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
2793         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
2794         wcsftime): Likewise.
2795         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
2797 2019-11-21  Bruno Haible  <bruno@clisp.org>
2799         Fix various errors in _GL_CXXALIAS_SYS invocations.
2800         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
2801         _GL_CXXALIAS_SYS.
2802         * lib/pthread.in.h (pthread_mutexattr_gettype,
2803         pthread_mutexattr_getrobust): Likewise.
2804         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
2805         * lib/sys_socket.in.h (recv, send): Likewise.
2806         * lib/unistd.in.h (getdtablesize): Likewise.
2807         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
2808         'struct timeval'.
2810 2019-11-21  Bruno Haible  <bruno@clisp.org>
2812         math tests: Update after 2019-08-28 change.
2813         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
2814         return type of 'bool', not 'int'.
2816 2019-11-21  Bruno Haible  <bruno@clisp.org>
2818         pthread-spin: Fix errors in C++ mode.
2819         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
2820         functions as nonexistent when <pthread.h> exists but does not define
2821         the pthread_spinlock_t type.
2823 2019-11-21  Bruno Haible  <bruno@clisp.org>
2825         pthread-mutex: Fix errors in C++ mode.
2826         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
2827         pthread_mutexattr_getrobust exists. If not, define
2828         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
2829         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
2830         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
2831         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
2832         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
2833         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
2834         definition.
2836 2019-11-19  Bruno Haible  <bruno@clisp.org>
2838         threads-h tests: Fix typo.
2839         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
2841 2019-11-19  Bruno Haible  <bruno@clisp.org>
2843         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
2844         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
2845         to 'const pthread_attr_t *'.
2846         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
2847         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
2849 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2851         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
2852         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
2853         work around GCC bug 91450 as the bug should be fixed there.
2855 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2857         glob: get closer to glibc glob.c
2858         Omit differences from glibc when the differences don’t matter.
2859         * lib/glob.c [_LIBC]: Include shlib-compat.h.
2860         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
2861         (glob_lstat): New function.
2862         (glob_in_dir): Use it.
2863         (GLOB_ATTRIBUTE): Define to empty if not already defined.
2864         Use changed.
2866 2019-11-18  Bruno Haible  <bruno@clisp.org>
2868         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
2869         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
2870         UINTPTR_MAX): Consider _WIN64.
2871         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
2872         a pointer.
2874 2019-11-18  Bruno Haible  <bruno@clisp.org>
2876         stdint: Fix value of WINT_MAX when we override wint_t.
2877         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
2878         when GNULIB_OVERRIDES_WINT_T is 1.
2880 2019-11-18  Bruno Haible  <bruno@clisp.org>
2882         vcs-to-changelog: New module.
2883         * modules/vcs-to-changelog: New file.
2884         * MODULES.html.sh (func_all_modules): Add it.
2886 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2888         vcs-to-changelog: New script to generate ChangeLog-like output.
2889         Discussion:
2890         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
2891         * build-aux/vcs_to_changelog.py: New file.
2892         * build-aux/vcstocl/frontend_c.py: New file.
2893         * build-aux/vcstocl/misc_util.py: New file.
2894         * build-aux/vcstocl/vcs_git.py: New file.
2896 2019-11-18  Bruno Haible  <bruno@clisp.org>
2898         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
2899         Reported by Keith Marshall <keith@users.osdn.me> in
2900         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
2901         and <https://osdn.net/projects/mingw/ticket/39677>.
2902         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
2903         already been defined by mingw's <crtdefs.h>.
2905 2019-11-18  Bruno Haible  <bruno@clisp.org>
2907         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
2908         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
2909         conditionally enabled.
2911 2019-11-18  Bruno Haible  <bruno@clisp.org>
2913         gc: Mirror libgcrypt.m4 from libgcrypt.
2914         * config/srclistvars.sh (LIBGCRYPT): New variable.
2915         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
2917 2019-11-17  Bruno Haible  <bruno@clisp.org>
2919         locale, localename: Improve z/OS support.
2920         Reported by Daniel Richard G. in
2921         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
2922         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
2923         gl_LOCALE_H.
2924         (gl_LOCALE_H): Require it.
2925         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
2926         defined, don't even check for newlocale, duplocale, freelocale.
2927         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
2928         locale_t is not defined.
2930 2019-11-17  Bruno Haible  <bruno@clisp.org>
2932         havelib: Make libdirstems processing more flexible.
2933         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
2934         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
2935         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
2936         patch from 2017-02-19).
2937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
2938         libdirs, even when the first one exists as a directory.
2940 2019-11-17  Bruno Haible  <bruno@clisp.org>
2942         havelib: Match the bitness when searching for libraries.
2943         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
2944         acl_is_expected_elfclass.
2945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
2946         file exists, in ELF, also test whether it has the ELF class that
2947         corresponds to the host's bitness.
2949 2019-11-17  Bruno Haible  <bruno@clisp.org>
2951         host-cpu-c-abi: Add support for unknown CPUs.
2952         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
2953         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
2954         32-bit or 64-bit.
2956 2019-11-17  Bruno Haible  <bruno@clisp.org>
2958         havelib: Remove redundant code.
2959         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
2960         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
2962 2019-11-17  Bruno Haible  <bruno@clisp.org>
2964         havelib: Fix a bug in dependency processing.
2965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
2966         of .la files, don't overwrite the value of additional_libdir for the
2967         next rounds.
2969 2019-11-16  Bruno Haible  <bruno@clisp.org>
2971         wctype-h: When overriding wint_t, override also the related functions.
2972         Reported by Christian Biesinger <cbiesinger@google.com> in
2973         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
2974         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
2975         REPLACE_ISWCNTRL to 1.
2976         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
2977         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
2978         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
2979         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
2980         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
2981         on mingw.
2982         * doc/posix-headers/wctype.texi: Likewise.
2984 2019-11-16  Bruno Haible  <bruno@clisp.org>
2986         time_r: Fix for mingw.
2987         Reported by Christian Biesinger <cbiesinger@google.com> in
2988         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
2989         * lib/time.in.h: On mingw, include <unistd.h>.
2990         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
2991         <time.h>. Test for localtime_r in a way that works when it is defined
2992         as an inline function.
2994 2019-11-13  Bruno Haible  <bruno@clisp.org>
2996         havelib: Revert last change.
2997         * build-aux/config.rpath: Revert last change. We can add msys2 support
2998         when it has been added to libtool.m4 upstream.
3000 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3002         config: add msys support
3003         Requested by Arnold Robbins in:
3004         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
3005         He also requested a change to config.guess, which I’ll forward
3006         upstream.
3007         * build-aux/ar-lib (func_file_conv):
3008         * build-aux/compile (func_file_conv):
3009         * build-aux/config.rpath (wl, with_gnu_ld)
3010         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
3011         Treat msys like cygwin.
3013 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3015         regex: now back in sync with glibc
3016         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
3017         regexec.c got merged into glibc and are now copies again.
3019 2019-10-27  Bruno Haible  <bruno@clisp.org>
3021         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
3022         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
3023         statement.
3024         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
3025         32-bit CPUs.
3027 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3029         timespec-add, timespec-sub: simplify
3030         * lib/timespec-add.c (timespec_add):
3031         * lib/timespec-sub.c (timespec_sub):
3032         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
3033         work on unsigned integers.
3035 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3037         nstrftime: speed up integer overflow checking
3038         * lib/nstrftime.c: Include intprops.h.
3039         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
3040         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
3041         instead of doing it by hand.
3042         * modules/nstrftime (Depends-on): Add intprops.
3044         Port better to GCC under macOS
3045         Work around macOS header that has ‘#define __has_builtin(x) 0’
3046         when compiled by GCC.  Apple really, really doesn’t want you to
3047         use GCC, apparently.  Rroblem reported by Akim Demaille in:
3048         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
3049         The fix is to not trust __has_builtin when being compiled by
3050         recent-enough GCC.
3051         * lib/intprops.h (__has_builtin)
3052         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
3053         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
3054         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
3055         Remove.  All uses removed.
3056         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
3057         directly, if defined and if not newer GCC.
3058         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
3059         New macro, that use __has_builtin directly, if defined and if
3060         not newer GCC.
3061         (assume): Use them.
3063 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
3065         maintainer-makefile: update rule for argmatch.
3066         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
3068 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
3070         bitset: let freeing functions accept NULL.
3071         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
3072         given NULL.
3073         * lib/bitset.h: Document that.
3074         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
3076 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3078         inttypes: use more-robust test for int range
3079         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
3080         Problem reported by Dagobert Michelsen in:
3081         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
3082         * lib/inttypes.in.h: Rely only on limits.h when checking
3083         int range.
3085 2019-10-15  Bruno Haible  <bruno@clisp.org>
3087         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
3088         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
3089         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
3090         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
3091         term_ostream_set_hyperlink): New functions.
3092         (term_styled_ostream_get_hyperlink_ref,
3093         term_styled_ostream_get_hyperlink_id,
3094         term_styled_ostream_set_hyperlink): New function aliases.
3096 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3098         update-copyright: use en dashes in .texi ranges
3099         * build-aux/update-copyright: Match year ranges like "1998--2019",
3100         which are used in the Autoconf manual.  Also, update ranges in
3101         .tex, .texi, and .texinfo files to use en dashes instead of
3102         hyphens.
3104 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3106         * config/srclist.txt: Remove posix/regex_internal.c for now.
3108 2019-10-13  Bruno Haible  <bruno@clisp.org>
3110         git-version-gen: Allow 'snapshot' as .tarball-version contents.
3111         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
3112         contents to the empty string.
3114 2019-10-12  Bruno Haible  <bruno@clisp.org>
3116         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
3117         * tests/test-intprops.c (main): Disable two more tests when using
3118         HP-UX cc.
3120 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3122         Simplify and regularize regex use of ‘assert’
3123         Also, tell GCC about the asserts even when compiling without
3124         debugging, to give it further optimization opportunities.
3125         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
3126         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
3127         (parse_expression, parse_bracket_exp):
3128         * lib/regex_internal.c (build_wcs_buffer)
3129         (build_wcs_upper_buffer, re_string_reconstruct)
3130         (re_string_context_at):
3131         * lib/regexec.c (re_search_stub, re_copy_regs)
3132         (re_search_internal, prune_impossible_nodes, check_matching)
3133         (check_halt_state_context, set_regs, sift_states_backward)
3134         (build_sifted_states, transit_state_mb, transit_state_bkref)
3135         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
3136         (match_ctx_add_subtop):
3137         Use it instead of plain ‘assert’.
3139 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3141         regex: omit debug assignment when not debugging
3142         * lib/regexec.c (re_search_internal) [!DEBUG]:
3143         Remove unnecessary assignment.
3145         regex: tell compiler there’s at most 256 arcs out
3146         Partly this is to help the reader (and maybe help GCC);
3147         partly this is to pacify Coverity.
3148         * lib/regex_internal.h: Include verify.h.
3149         * lib/regexec.c (group_nodes_into_DFAstates):
3150         Tell the compiler that ndests cannot exceed SBC_MAX.
3151         * modules/regex (Depends-on): Add ‘verify’.
3153         regex: simplify by assuming C99
3154         * config/srclist.txt: Comment out regex_internal.h and regexec.c
3155         temporarily.
3156         * lib/regex_internal.h (lock_define, re_match_context_t):
3157         Simplify by assuming C99 macros and const.
3158         * lib/regexec.c (re_search_internal): Simplify by assuming C99
3159         initializers.  Remove unnecessary assignment, as mctx is now
3160         safely initialized earlier.
3162         regex: avoid copying of uninitialized storage
3163         * config/srclist.txt: Comment out regcomp.c temporarily.
3164         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
3165         Initialize even when not checking for lint, as the behavior is
3166         arguably undefined otherwise and Coverity warns about it.
3168 2019-10-06  Bruno Haible  <bruno@clisp.org>
3170         access tests: Fix test failure when run as root.
3171         * tests/test-access.c: Include root-uid.h.
3172         (geteuid): Define fallback.
3173         (main): Don't expect that writing to a read-only file would fail when
3174         running as root. Also, remove the created files at the end.
3175         * modules/access-tests (Depends-on): Add root-uid.
3176         (configure.ac): Test whether geteuid exists.
3178 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3180         users.txt: add GNU nano
3181         Nano has been making use of gnulib since March 2017, version 2.8.0.
3183 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3185         bootstrap: simplify debugging of wget failures
3186         Problem reported by Tim Rühsen in:
3187         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
3188         * build-aux/bootstrap (po_download_command_format):
3189         Invoke wget with -nv instead of -q, to make debugging easier.
3191 2019-09-29  Bruno Haible  <bruno@clisp.org>
3193         avltree-list: Fix compilation warning (introduced on 2014-09-16).
3194         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
3195         'const' attribute.
3197 2019-09-29  Bruno Haible  <bruno@clisp.org>
3199         fbufmode: Fix compilation error on glibc >= 2.28 systems.
3200         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
3202 2019-09-28  Bruno Haible  <bruno@clisp.org>
3204         Update comments that refer to POSIX.
3205         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
3206         sentence about trailing slashes.
3207         * lib/fflush.c: Clarify the reasoning.
3208         * tests/test-fflush2.c: Cite the relevant sentence.
3210 2019-09-28  Bruno Haible  <bruno@clisp.org>
3212         access: Document limitations on Windows.
3213         Suggested by Zaretskii <eliz@gnu.org>.
3214         * doc/posix-functions/access.texi: Mention two limitations on Windows.
3216 2019-09-28  Bruno Haible  <bruno@clisp.org>
3218         findprog-in: Fix comment.
3219         Reported by Eli Zaretskii <eliz@gnu.org>.
3220         * lib/findprog.h (find_in_given_path): Extend description of EACCES
3221         condition.
3222         * lib/stat.c (rpl_stat): Fix typo in comment.
3223         * lib/utime.c (_gl_utimens_windows): Likewise.
3225 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3227         Update URLs and associated text
3228         (Thanks to Bruno Haible for proofreading this patch.)
3229         Prefer https: to http: in URLs where either will do, for the usual
3230         security reasons.  I also updated broken and/or moved URLs
3231         discovered during the process. In a few places I had to resort to
3232         archive.org, since I didn't find the originals elsewhere.
3234 2019-09-15  Paul Smith  <psmith@gnu.org>
3235             Bruno Haible  <bruno@clisp.org>
3237         findprog-in: Set errno when the search fails.
3238         * lib/findprog-in.c: Include <errno.h>.
3239         (find_in_given_path): Set errno before returning NULL.
3240         * lib/findprog.h (find_in_given_path): Update comment accordingly.
3241         Define the term "slash".
3243 2019-09-15  Bruno Haible  <bruno@clisp.org>
3245         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
3246         * modules/findprog (Depends-on): Add access.
3247         * modules/findprog-lgpl (Depends-on): Likewise.
3248         * modules/findprog-in (Depends-on): Likewise.
3250 2019-09-15  Bruno Haible  <bruno@clisp.org>
3252         access: Add tests.
3253         * tests/test-access.c: New file.
3254         * modules/access-tests: New file.
3256         access: New module.
3257         * lib/unistd.in.h (access): New declaration.
3258         * lib/access.c: New file.
3259         * m4/access.m4: New file.
3260         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
3261         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
3262         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
3263         REPLACE_ACCESS.
3264         * modules/access: New file.
3265         * tests/test-unistd-c++.cc (access): Check signature.
3266         * doc/posix-functions/access.texi: Mention the new module.
3268 2019-09-15  Bruno Haible  <bruno@clisp.org>
3270         fcntl-h: Fix compilation error of creat.c on MSVC.
3271         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
3272         defined.
3274 2019-09-15  Bruno Haible  <bruno@clisp.org>
3276         creat: Add tests.
3277         * tests/test-creat.c: New file, based on tests/test-open.h.
3278         * modules/creat-tests: New file.
3280         creat: New module.
3281         * lib/fcntl.in.h (creat): New declaration.
3282         * lib/creat.c: New file, based on lib/open.c.
3283         * m4/creat.m4: New file.
3284         * m4/open-slash.m4: New file, extracted from m4/open.m4.
3285         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
3286         Invoke gl_OPEN_TRAILING_SLASH_BUG.
3287         * modules/open (Files): Add m4/open-slash.m4.
3288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
3289         REPLACE_CREAT.
3290         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
3291         * modules/creat: New file.
3292         * tests/test-fcntl-h-c++.cc (creat): Check signature.
3293         * doc/posix-functions/creat.texi: Mention the new module.
3295 2019-09-15  Bruno Haible  <bruno@clisp.org>
3297         open tests: Enhance test.
3298         * tests/test-open.h (test_open): Test the creation of an executable
3299         regular file. Also improve initial cleanup.
3301 2019-09-15  Bruno Haible  <bruno@clisp.org>
3303         intprops tests: Avoid build failure with HP-UX cc.
3304         * tests/test-intprops.c: Disable a check that makes HP cc choke with
3305         "error 4018: Macro param too large after substitution - use -H option.".
3307 2019-09-14  Bruno Haible  <bruno@clisp.org>
3309         Make autoconf tests work with -Werror=implicit-function-declaration.
3310         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
3311         towupper() declaration.
3312         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
3313         declaration.
3315 2019-09-14  Bruno Haible  <bruno@clisp.org>
3317         findprog-in: Better mimic the system on native Windows.
3318         Reported by Paul Smith <psmith@gnu.org>.
3319         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
3320         non-empty suffixes when the file name already contains a '.'.
3322 2019-09-10  Bruno Haible  <bruno@clisp.org>
3324         wctob: Fix autoconf test.
3325         Based on patch by Florian Weimer <fweimer@redhat.com>.
3326         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
3328 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
3330         xhash: provide hash_xinitialize.
3331         Suggested by Egor Pugin <egor.pugin@gmail.com>
3332         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
3333         * modules/xhash, lib/xhash.c: New.
3334         * lib/hash.h (hash_xinitialize): New.
3336 2019-09-09  Bruno Haible  <bruno@clisp.org>
3338         findprog-in: Make exec optimization optional.
3339         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
3340         (find_in_given_path): Add optimize_for_exec parameter.
3341         * lib/findprog-in.c (find_in_given_path): Likewise.
3343 2019-09-08  Bruno Haible  <bruno@clisp.org>
3345         Add option to assume the best, not the worst, when cross-compiling.
3346         Suggested by Jonas Termansen <sortie@maxsi.org>.
3347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
3348         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
3349         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
3350         lt_cv_sys_argz_works.
3351         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
3352         ac_cv_func_calloc_0_nonnull.
3353         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
3354         --enable-cross-guesses for gl_cv_func_realpath_works.
3355         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
3356         gl_cv_func_cbrtl_ieee.
3357         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
3358         gl_cv_func_ceil_ieee.
3359         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
3360         gl_cv_func_ceilf_ieee.
3361         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
3362         gl_cv_func_ceill_ieee.
3363         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
3364         ac_cv_func_chown_works.
3365         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
3366         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
3367         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
3368         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
3369         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
3370         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
3371         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
3372         gl_cv_func_expl_works.
3373         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
3374         gl_cv_func_expm1_ieee.
3375         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
3376         gl_cv_func_expm1l_works.
3377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
3378         gl_cv_func_open_directory_works.
3379         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
3380         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
3381         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
3382         gl_cv_func_fchownat_empty_filename_works.
3383         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
3384         gl_cv_func_fdopendir_works.
3385         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
3386         gl_cv_func_floor_ieee.
3387         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
3388         gl_cv_func_floorf_ieee.
3389         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
3390         gl_cv_func_fma_works.
3391         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
3392         gl_cv_func_fmaf_works.
3393         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
3394         gl_cv_func_fmal_works.
3395         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
3396         gl_cv_func_fmod_ieee.
3397         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
3398         gl_cv_func_fmodf_ieee.
3399         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
3400         gl_cv_func_fmodl_ieee.
3401         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
3402         gl_cv_func_fpurge_works.
3403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
3404         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
3405         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
3406         gl_cv_func_getcwd_null.
3407         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
3408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
3409         gl_cv_func_working_getdelim.
3410         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3411         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
3412         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
3413         gl_cv_func_getgroups_works.
3414         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
3415         am_cv_func_working_getline.
3416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
3417         for gl_cv_func_getopt_gnu.
3418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
3419         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
3420         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
3421         gl_cv_func_hypot_ieee.
3422         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
3423         gl_cv_func_hypotf_ieee.
3424         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
3425         gl_cv_func_hypotl_ieee.
3426         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
3427         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
3428         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
3429         gl_cv_func_link_works.
3430         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
3431         gl_cv_func_linkat_slash.
3432         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
3433         gl_cv_func_log_ieee.
3434         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
3435         gl_cv_func_logf_ieee.
3436         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
3437         gl_cv_func_logl_works.
3438         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
3439         gl_cv_func_log10_ieee.
3440         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
3441         gl_cv_func_log10f_ieee.
3442         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
3443         gl_cv_func_log10l_works.
3444         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
3445         gl_cv_func_log1p_ieee.
3446         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
3447         gl_cv_func_log1pf_ieee.
3448         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
3449         gl_cv_func_log1pl_ieee.
3450         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
3451         gl_cv_func_log2_ieee.
3452         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
3453         gl_cv_func_log2f_ieee.
3454         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
3455         --enable-cross-guesses for
3456         gl_cv_func_lstat_dereferences_slashed_symlink.
3457         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
3458         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
3459         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
3460         gl_cv_C_locale_sans_EILSEQ.
3461         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
3462         gl_cv_func_memchr_works.
3463         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
3464         gl_cv_func_memmem_works_always.
3465         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
3466         gl_cv_func_memmem_works_fast.
3467         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
3468         gl_cv_func_mkdir_trailing_slash_works,
3469         gl_cv_func_mkdir_trailing_dot_works.
3470         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
3471         gl_cv_func_mkfifo_works.
3472         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
3473         gl_cv_func_mknod_works.
3474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
3475         gl_cv_func_working_mkstemp.
3476         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
3477         gl_cv_func_working_mktime.
3478         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
3479         gl_cv_func_modf_ieee.
3480         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
3481         gl_cv_func_modff_ieee.
3482         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
3483         gl_cv_func_modfl_ieee.
3484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
3485         gl_cv_func_nanosleep.
3486         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
3487         gl_cv_func_perror_works.
3488         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
3489         gl_cv_func_printf_sizes_c99.
3490         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
3491         gl_cv_func_printf_infinite.
3492         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
3493         gl_cv_func_printf_infinite_long_double.
3494         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
3495         gl_cv_func_printf_directive_a.
3496         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
3497         gl_cv_func_printf_directive_f.
3498         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
3499         gl_cv_func_printf_flag_zero.
3500         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
3501         gl_cv_func_printf_enomem.
3502         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
3503         gl_cv_func_snprintf_truncation_c99.
3504         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
3505         gl_cv_func_snprintf_retval_c99.
3506         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
3507         gl_cv_func_snprintf_directive_n.
3508         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
3509         gl_cv_func_vsnprintf_zerosize_c99.
3510         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
3511         gl_cv_func_pselect_detects_ebadf.
3512         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
3513         Obey --enable-cross-guesses for
3514         gl_cv_pthread_rwlock_rdlock_prefer_writer.
3515         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
3516         gl_cv_func_ptsname_sets_errno.
3517         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
3518         gl_cv_func_svid_putenv.
3519         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
3520         gl_cv_func_readlink_works.
3521         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
3522         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
3523         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
3524         gl_cv_func_re_compile_pattern_working.
3525         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
3526         gl_cv_func_remainder_ieee.
3527         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
3528         gl_cv_func_remainderf_ieee.
3529         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
3530         gl_cv_func_remainderl_ieee.
3531         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
3532         gl_cv_func_rintl_works.
3533         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
3534         gl_cv_func_rmdir_works.
3535         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
3536         gl_cv_func_round_ieee.
3537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
3538         gl_cv_func_roundf_ieee.
3539         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
3540         gl_cv_func_roundl_ieee.
3541         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
3542         gl_cv_func_select_detects_ebadf.
3543         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
3544         gl_cv_func_setenv_works.
3545         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
3546         gl_cv_func_unsetenv_works.
3547         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
3548         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
3549         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
3550         gl_cv_func_sleep_works.
3551         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
3552         gl_cv_func_stat_file_slash.
3553         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
3554         gl_cv_func_stpncpy.
3555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
3556         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
3557         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
3558         gl_cv_func_strcasestr_linear.
3559         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
3560         gl_cv_func_working_strerror.
3561         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
3562         gl_cv_func_strerror_0_works.
3563         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
3564         --enable-cross-guesses for gl_cv_func_strerror_r_works.
3565         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
3566         gl_cv_func_strstr_works_always.
3567         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
3568         gl_cv_func_strstr_linear.
3569         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
3570         gl_cv_func_strtod_works.
3571         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
3572         gl_cv_func_strtold_works.
3573         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
3574         gl_cv_func_symlink_works.
3575         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
3576         gl_cv_func_symlinkat_works.
3577         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
3578         gl_cv_func_trunc_ieee.
3579         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
3580         gl_cv_func_truncf_ieee.
3581         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
3582         gl_cv_func_truncl_ieee.
3583         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
3584         gl_cv_func_tzset_clobber.
3585         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
3586         gl_cv_func_ungetc_works.
3587         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
3588         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
3589         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
3590         gl_cv_func_usleep_works.
3591         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
3592         gl_cv_func_futimesat_works.
3593         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
3594         gl_cv_func_working_utimes.
3595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
3596         gl_cv_func_wcwidth_works.
3597         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
3598         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
3599         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
3600         links for testing. Obey --enable-cross-guesses for
3601         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
3602         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
3604 2019-09-08  Bruno Haible  <bruno@clisp.org>
3606         Clarify that cross-compilation guesses are guesses.
3607         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
3608         cross-compiling.
3610 2019-09-08  Bruno Haible  <bruno@clisp.org>
3612         chown: Fix configure output (regression from 2019-03-23).
3613         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
3614         gl_cv_func_chown_follows_symlink variable.
3616 2019-09-08  Bruno Haible  <bruno@clisp.org>
3618         findprog-in: New module.
3619         Suggested by Paul Smith <psmith@gnu.org>.
3620         * lib/findprog.h (find_in_given_path): New declaration.
3621         * lib/findprog-in.c: New file, based on lib/findprog.c.
3622         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
3623         * modules/findprog-in: New file.
3625 2019-09-08  Bruno Haible  <bruno@clisp.org>
3627         findprog: Remove unused dependency.
3628         * modules/findprog (Depends-on): Remove strdup.
3630 2019-09-08  Bruno Haible  <bruno@clisp.org>
3632         findprog: Remove test that is obsolete since 2006-04-24.
3633         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
3635 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
3637         bitset: style changes
3638         * lib/bitset/vector.c (vbitset_resize): Factor computation.
3639         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
3640         xzalloc to xcalloc.
3641         Suggested by Paul Eggert.
3643 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
3645         bitset: check memory allocation
3646         Reported by 江 祖铭 (Zu-Ming Jiang).
3647         With help from Paul Eggert.
3648         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
3649         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
3650         instead of realloc.
3651         When shrinking, accept failures.
3652         * lib/bitset/vector.c (vbitset_resize): Likewise.
3654 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
3656         scratch_buffer: sync from glibc
3657         * config/srclist.txt: Add the scratch_buffer source
3658         code from glibc, since these should be in sync.
3659         Autoupdate.
3661 2019-09-07  Bruno Haible  <bruno@clisp.org>
3663         doc: Update for glibc 2.30.
3664         * doc/glibc-functions/gettid.texi: New file.
3665         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
3666         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
3667         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
3668         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
3669         * doc/glibc-functions/sem_clockwait.texi: New file.
3670         * doc/glibc-functions/tgkill.texi: New file.
3671         * doc/glibc-functions/twalk_r.texi: New file.
3672         * doc/gnulib.texi: Include them.
3673         (Glibc semaphore.h): New section.
3674         * doc/pastposix-functions/h_errno.texi: Update.
3675         * doc/posix-functions/*.texi: Likewise.
3677 2019-09-06  Bruno Haible  <bruno@clisp.org>
3679         symlink tests: Avoid test failure on Linux with Lustre file system.
3680         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
3681         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
3682         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
3684 2019-09-01  Bruno Haible  <bruno@clisp.org>
3686         gitsub.sh: Add support for shallow-cloning of subdirectories.
3687         * top/gitsub.sh (func_usage): Document allowed git options with
3688         'git pull'.
3689         (func_pull): Accept GIT_OPTIONS argument.
3690         (pull): Parse git options before complaining about too many arguments.
3691         Pass the git options to func_pull.
3693 2019-08-29  Bruno Haible  <bruno@clisp.org>
3695         lock: Fix cross-compilation guesses.
3696         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
3697         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
3698         platforms.
3700 2019-08-28  Bruno Haible  <bruno@clisp.org>
3702         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
3703         Reported by Martin Storsjö <martin@martin.st> in
3704         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
3705         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
3706         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
3707         files from GCC 6 or newer, use an override through '#define', because
3708         the inline definitions in the platform's <cmath> cannot be overridden
3709         in another way.
3711 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3713         Revert macOS INT_MULTIPLY_WRAPV patch
3714         Problem reported by Bruno Haible in:
3715         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
3716         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
3717         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
3718         Go back to working around the Clang bug on macOS.
3720 2019-08-27  Bruno Haible  <bruno@clisp.org>
3722         libtool-next-version: Fix error output.
3723         * build-aux/libtool-next-version (func_fatal_error): Fix the program
3724         name.
3726 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3728         Speed up INT_MULTIPLY_WRAPV on macOS
3729         Assume that __builtin_mul_overflow works OK with Clang on macOS.
3730         Mattias Engdegård says it’s safe to assume the relevant library
3731         is always available there.
3732         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
3733         New temporary internal macro.
3734         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
3735         No need to work around the Clang bug on macOS.
3737 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
3739         intprops.h, verify.h: port better to clang
3740         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
3741         with Clang.  Problem reported privately by Mattias Engdegård.
3742         Also, insulate intprops.h and verify.h better against each other’s
3743         definitions of __has_builtin on non-Clang hosts.
3744         * lib/intprops.h (__has_builtin): Define a temporary substitute
3745         if __has_builtin is not already defined.
3746         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
3747         New temporary internal macros.
3748         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
3749         Now two separate macros, replacing the old
3750         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
3751         __builtin_mul_overflow is like the rest.  All uses changed.
3752         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
3753         Adjust to above changes.
3754         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
3755         longer relevant.  All uses changed.
3756         * lib/verify.h (__has_builtin): Treat like intprops.h,
3757         so that the two .h files do not collide with each other.
3758         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
3759         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
3761 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3763         intprops: say why not Clang __builtin_add_overflow
3764         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
3765         Mention Clang in comment, responding to a query from
3766         Mattias Engdegård.
3768 2019-08-24  Bruno Haible  <bruno@clisp.org>
3770         doc: Document most of the files outside of modules.
3771         * doc/gnulib.texi (Build Infrastructure Files,
3772         Release Management Files): New chapters.
3774 2019-08-24  Bruno Haible  <bruno@clisp.org>
3776         bootstrap: Keep in sync with the 'gettext' module.
3777         Reported by Assaf Gordon in
3778         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
3779         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
3780         * build-aux/po/remove-potcdate.sin: Likewise.
3782 2019-08-24  Bruno Haible  <bruno@clisp.org>
3784         crypto/gc-sha512: Add tests.
3785         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
3786         * modules/crypto/gc-sha512-tests: New file.
3788         crypto/gc-sha256: Add tests.
3789         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
3790         * modules/crypto/gc-sha256-tests: New file.
3792         crypto/gc-sha256, crypto/gc-sha512: New modules.
3793         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
3794         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
3795         (MAX_DIGEST_SIZE): Set to 64.
3796         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
3797         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
3798         (gc_sha256, gc_sha512): New functions.
3799         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
3800         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
3801         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
3803 2019-08-24  Bruno Haible  <bruno@clisp.org>
3805         crypto/gc-sha1 tests: Improve output when the test fails.
3806         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
3807         output.
3809 2019-08-24  Bruno Haible  <bruno@clisp.org>
3811         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
3812         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
3813         LIBGCRYPT_HAS_MD_SM3.
3814         * lib/gc-libgcrypt.c: Include sm3.h.
3815         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
3816         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
3817         implementation if libgcrypt does not support SM3.
3819 2019-08-24  Bruno Haible  <bruno@clisp.org>
3821         crypto/gc-md2: Optimize and clarify code.
3822         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
3823         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
3824         is not needed.
3826 2019-08-24  Bruno Haible  <bruno@clisp.org>
3828         crypto/gc-md2: Add comment.
3829         * lib/gc-libgcrypt.c: Add comment.
3831 2019-08-24  Bruno Haible  <bruno@clisp.org>
3833         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
3834         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
3835         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
3836         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
3837         variable.
3839 2019-08-24  Bruno Haible  <bruno@clisp.org>
3841         crypto/gc: Fix link error with --with-libgcrypt.
3842         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
3843         AC_LIB_HAVE_LINKFLAGS invocation.
3845 2019-08-24  Bruno Haible  <bruno@clisp.org>
3847         crypto/gc: Access the module indicators correctly.
3848         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
3849         * lib/gc-libgcrypt.c: Likewise.
3851 2019-08-24  Bruno Haible  <bruno@clisp.org>
3853         crypto/gc: Fix configuration with --with-libgcrypt.
3854         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
3855         * modules/crypto/gc (Files): Add it.
3856         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
3858 2019-08-24  Bruno Haible  <bruno@clisp.org>
3860         Remove unused file.
3861         * m4/stat-macros.m4: Remove file.
3863 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3865         New strip-trailing-space option for srclist-update
3866         * config/srclist-update (fixfile): Support new option.
3867         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
3868         Use it.
3870 2019-08-20  Eric Blake  <eblake@redhat.com>
3872         accept4: Support SOCK_NONBLOCK, if defined
3873         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
3875         accept4: Fix compilation when native accept4() exists.
3876         Reported by Richard W.M. Jones <rjones@redhat.com> in
3877         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
3878         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
3880 2019-08-18  Bruno Haible  <bruno@clisp.org>
3882         Defeat -flto GCC optimization in math autoconf tests.
3883         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
3884         at <https://savannah.gnu.org/bugs/?56109>.
3885         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
3886         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
3887         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3888         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3889         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3890         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
3891         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3892         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
3893         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
3894         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3896         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3898 2019-08-17  Bruno Haible  <bruno@clisp.org>
3900         windows-spin: Implement declared functions.
3901         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3902         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
3903         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
3904         name.
3906 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3908         intprops: port to Oracle Developer Studio 12.6
3909         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
3910         typos that were in a section not compiled by GCC.
3912 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3914         intprops: support uchar, ushort _WRAPV dests
3915         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
3916         when __builtin_add_overflow etc. and _Generic are not used.
3917         (_GL_INT_OP_WRAPV): Use it to support destinations that
3918         are unsigned char or unsigned short, even in compilers
3919         that lack __typeof__ and are not C11-compatible.
3921         intprops: pacify picky GCC
3922         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
3923         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
3924         possibly-incorrect result.
3925         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
3926         about (A) used as a boolean, when A is an expression like 3 * 4.
3928         intprops: support unsigned *_WRAPV results
3929         Add support for unsigned, unsigned long, and unsigned long long
3930         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
3931         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
3932         bug with unsigned inputs reported by Eli Zaretskii in:
3933         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
3934         * config/srclist.txt: Break the glibc connection for intprops.h
3935         temporarily, while more testing is done in Gnulib-using apps.
3936         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
3937         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
3938         Support unsigned results no narrower than unsigned int.  Report
3939         overflow correctly if some arguments are unsigned.
3940         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
3941         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
3942         the right thing with narrow args.
3943         (_GL_INT_OP_CALC1): Remove.  All callers removed.
3944         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
3945         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
3946         * tests/test-intprops.c: Check for bugs and test new behavior.
3948 2019-08-14  Bruno Haible  <bruno@clisp.org>
3950         get_progname_of: New module.
3951         * lib/get_progname_of.h: New file.
3952         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
3953         * lib/getprogname.c (getprogname): Tweak coding style.
3954         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
3955         * modules/get_progname_of: New file.
3957 2019-08-14  Bruno Haible  <bruno@clisp.org>
3959         get_ppid_of: New module.
3960         * lib/get_ppid_of.h: New file.
3961         * lib/get_ppid_of.c: New file.
3962         * modules/get_ppid_of: New file.
3964 2019-08-13  Bruno Haible  <bruno@clisp.org>
3966         libtextstyle-optional tests: Support the NO_COLOR environment variable.
3967         * tests/test-libtextstyle.c (main): Do not emit styling when the
3968         environment variable NO_COLOR is set.
3970 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3972         verify: improve diagnostic quality in recent GCC
3973         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
3974         useful line number containing the top-level caller of the macro.
3975         So, bring back the older way of issuing a diagnostic containing
3976         the top-level call’s arg, so that it is easier to diagnose
3977         ‘verify’ failures with recent GCC.
3978         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
3979         Bring back DIAGNOSTIC arg.  All callers changed.
3980         (verify): Just use _GL_VERIFY.
3982 2019-08-11  Bruno Haible  <bruno@clisp.org>
3984         localcharset: Add more aliases for OS/2.
3985         Based on patch by KO Myung-Hun <komh78@gmail.com> in
3986         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
3987         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
3989 2019-08-10  Eric Blake  <eblake@redhat.com>
3991         configmake: Update advice on usage.
3992         * modules/configmake (Include): No longer necessary to include
3993         last, since configmake.h itself worries about collision avoidance.
3995 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
3997         parse-datetime: fix 'T' military timezone handling
3998         * lib/parse-datetime.y (zone):
3999         follow-up to the previous commit: the 'T' case is handled outside the
4000         conversion table (used as either military timezone UTC-7 or ISO8601
4001         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
4002         timezone letters.
4004 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4006         parse-datetime: fix military timezone letters
4007         Problem and trivial fix reported by Neil Hoggarth in:
4008         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
4009         * lib/parse-datetime.y (military_table):
4010         Do it the right way, not the RFC 822 way.
4012 2019-08-08  Eric Blake  <eblake@redhat.com>
4014         configmake: Avoid namespace pollution issue on mingw.
4015         * modules/configmake (Makefile.am): If the project uses
4016         <winsock2.h>, include that header before defining DATADIR.
4018 2019-07-28  Bruno Haible  <bruno@clisp.org>
4020         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
4021         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4023 2019-07-24  Bruno Haible  <bruno@clisp.org>
4025         pthread-h: Fix definitions of types and macros on mingw.
4026         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
4027         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
4028         not in use.
4029         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
4030         'pthread-once' is not in use.
4031         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
4032         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
4033         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
4034         in use.
4035         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
4036         Define also when module 'pthread-rwlock' is not in use.
4037         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
4038         also when module 'pthread-cond' is not in use.
4039         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
4040         'pthread-tss' is not in use.
4041         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
4042         use.
4044 2019-07-24  Simon Josefsson  <simon@josefsson.org>
4046         crypto/gc: Cope with libgcrypt without SM3.
4047         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
4049 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
4051         backupfile: fix resource leak on memory failure
4052         Problem found by Coverity (CID 1484214).
4053         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
4055 2019-07-22  Bruno Haible  <bruno@clisp.org>
4057         Avoid missing-declarations warning in various tests.
4058         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
4059         test6, test_optional, test7, test8, test9, test10, test11, test12,
4060         test13, test14, test15, test_fun): Declare static.
4061         * tests/test-cnd.c (test_cnd_wait): Likewise.
4062         * tests/test-cond.c (test_cond): Likewise.
4064 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4066         pthread tests: Avoid missing-declarations warning.
4067         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
4069 2019-07-19  Bruno Haible  <bruno@clisp.org>
4071         parse-datetime: Avoid warnings from bison versions >= 3.3.
4072         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
4073         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
4075 2019-07-19  Bruno Haible  <bruno@clisp.org>
4077         parse-datetime: Require Bison 2.4 or newer.
4078         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
4079         Code taken from gettext's intl.m4.
4080         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
4081         of YACC.
4083 2019-07-19  Bruno Haible  <bruno@clisp.org>
4085         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
4086         * lib/areadlink-with-size.c: Include <string.h>.
4087         * lib/areadlinkat-with-size.c: Likewise.
4088         * lib/xgethostname.c: Likewise.
4089         * lib/xgetdomainname.c: Likewise.
4091 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
4093         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
4094         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
4095         "%pure-parser".  The former is available since Bison 2.3b (2008),
4096         while the latter is marked as obsolete since version 3.4 (May 2019).
4098 2019-07-16  Bruno Haible  <bruno@clisp.org>
4100         update-copyright: Make it work again (regression from 2019-06-15).
4101         Reported by Brian C. Lane <bcl@redhat.com>.
4102         * build-aux/update-copyright: Add back the -0777, -p, -i options.
4104 2019-07-14  Bruno Haible  <bruno@clisp.org>
4106         doc: Update info about <pthread.h>.
4107         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
4108         of 'pthread'.
4110 2019-07-14  Bruno Haible  <bruno@clisp.org>
4112         pthread_sigmask tests: Use new multithread modules.
4113         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
4114         glthread/thread.h.
4115         (main_thread, killer_thread): Change type to pthread_t.
4116         (main): Update accordingly.
4117         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
4118         thread.
4120 2019-07-14  Bruno Haible  <bruno@clisp.org>
4122         pthread-tss: Add tests.
4123         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
4124         tests/test-tss.c.
4125         * modules/pthread-tss-tests: New file.
4127 2019-07-14  Bruno Haible  <bruno@clisp.org>
4129         pthread-cond: Add tests.
4130         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
4131         tests/test-cnd.c.
4132         * modules/pthread-cond-tests: New file.
4134 2019-07-14  Bruno Haible  <bruno@clisp.org>
4136         pthread-rwlock: Add tests.
4137         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
4138         * modules/pthread-rwlock-tests: New file.
4140 2019-07-14  Bruno Haible  <bruno@clisp.org>
4142         pthread-mutex: Add tests.
4143         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
4144         tests/test-mtx.c.
4145         * modules/pthread-mutex-tests: New file.
4147 2019-07-14  Bruno Haible  <bruno@clisp.org>
4149         pthread-once: Add tests.
4150         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
4151         tests/test-call_once.c.
4152         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
4153         tests/test-mtx.c.
4154         * modules/pthread-once-tests: New file.
4156 2019-07-14  Bruno Haible  <bruno@clisp.org>
4158         pthread-thread: Add tests.
4159         * tests/test-pthread-thread.c: New file, based on
4160         tests/test-thread_create.c and tests/test-thrd_create.c.
4161         * modules/pthread-thread-tests: New file.
4163 2019-07-14  Bruno Haible  <bruno@clisp.org>
4165         pthread: Turn into a convenience module.
4166         * lib/pthread.in.h: Remove declarations for extern inline functions.
4167         * lib/pthread.c: Remove file.
4168         * modules/pthread (Files): Remove it.
4169         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
4170         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
4171         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
4172         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
4173         GNULIB_PTHREAD.
4174         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
4176 2019-07-14  Bruno Haible  <bruno@clisp.org>
4178         pthread-spin: New module.
4179         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
4180         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
4181         inline definitions.
4182         * lib/pthread-spin.c: New file.
4183         * m4/pthread-spin.m4: New file.
4184         * modules/pthread-spin: New file.
4185         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
4186         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
4187         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
4188         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
4189         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
4191 2019-07-14  Bruno Haible  <bruno@clisp.org>
4193         pthread-tss: New module.
4194         * lib/pthread-tss.c: New file.
4195         * m4/pthread-tss.m4: New file.
4196         * modules/pthread-tss: New file.
4197         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
4198         * doc/posix-functions/pthread_setspecific.texi: Likewise.
4199         * doc/posix-functions/pthread_getspecific.texi: Likewise.
4200         * doc/posix-functions/pthread_key_delete.texi: Likewise.
4202 2019-07-14  Bruno Haible  <bruno@clisp.org>
4204         pthread-cond: New module.
4205         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
4206         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
4207         * lib/pthread-cond.c: New file.
4208         * m4/pthread-cond.m4: New file.
4209         * modules/pthread-cond: New file.
4210         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
4211         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
4212         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
4213         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
4214         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
4215         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
4216         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
4217         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
4219 2019-07-14  Bruno Haible  <bruno@clisp.org>
4221         pthread-rwlock: New module.
4222         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
4223         * m4/pthread-rwlock.m4: New file.
4224         * modules/pthread-rwlock: New file.
4225         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
4226         and the Android problem.
4227         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
4228         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
4229         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
4230         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
4231         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
4232         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
4233         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
4234         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
4235         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
4236         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
4238 2019-07-14  Bruno Haible  <bruno@clisp.org>
4240         pthread-mutex: New module.
4241         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
4242         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
4243         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
4244         pthread_mutex_unlock): Remove inline definitions.
4245         * lib/pthread-mutex.c: New file.
4246         * m4/pthread-mutex.m4: New file.
4247         * modules/pthread-mutex: New file.
4248         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
4249         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
4250         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
4251         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
4252         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4253         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4254         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
4255         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
4256         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
4257         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
4258         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
4259         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
4261 2019-07-14  Bruno Haible  <bruno@clisp.org>
4263         pthread-once: New module.
4264         * lib/pthread-once.c: New file.
4265         * m4/pthread-once.m4: New file.
4266         * modules/pthread-once: New file.
4267         * doc/posix-functions/pthread_once.texi: Mention the new module.
4269 2019-07-14  Bruno Haible  <bruno@clisp.org>
4271         pthread-thread: New module.
4272         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
4273         inline definitions.
4274         * lib/pthread-thread.c: New file.
4275         * m4/pthread-thread.m4: New file.
4276         * modules/pthread-thread: New file.
4277         * doc/posix-functions/pthread_create.texi: Mention the new module.
4278         * doc/posix-functions/pthread_attr_init.texi: Likewise.
4279         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
4280         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
4281         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
4282         * doc/posix-functions/pthread_self.texi: Likewise.
4283         * doc/posix-functions/pthread_equal.texi: Likewise.
4284         * doc/posix-functions/pthread_detach.texi: Likewise.
4285         * doc/posix-functions/pthread_join.texi: Likewise.
4286         * doc/posix-functions/pthread_exit.texi: Likewise.
4288 2019-07-14  Bruno Haible  <bruno@clisp.org>
4290         pthread-h: Prepare for adding new modules.
4291         * lib/pthread.in.h: Define the types and macros for each of the
4292         facilities separately.
4293         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
4294         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4295         HAVE_PTHREAD_PROCESS_SHARED.
4296         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
4297         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
4298         HAVE_PTHREAD_PROCESS_SHARED.
4299         * modules/pthread-h (Makefile.am): Substitute
4300         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
4301         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
4303 2019-07-14  Bruno Haible  <bruno@clisp.org>
4305         pthread-h: Add declarations of essential pthread functions.
4306         * lib/pthread.in.h: Include snippets.
4307         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
4308         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
4309         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
4310         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
4311         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
4312         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
4313         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
4314         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
4315         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
4316         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
4317         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
4318         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
4319         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
4320         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
4321         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
4322         pthread_key_create, pthread_setspecific, pthread_getspecific,
4323         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
4324         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
4325         declarations.
4326         (pthread_mutex_timedlock): Move declaration.
4327         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
4328         declared.
4329         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
4330         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
4331         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
4332         HAVE_* and REPLACE_* variables for the new functions.
4333         * modules/pthread-h (Depends-on): Add snippet/c++defs,
4334         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
4335         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
4336         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
4337         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
4338         variables for the new functions. Split the sed script, to avoid the
4339         limit of 99 commands of HP-UX sed.
4340         * tests/test-pthread-c++.cc: Check the signature of the new functions.
4342 2019-07-14  Bruno Haible  <bruno@clisp.org>
4344         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
4345         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
4346         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
4347         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
4348         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
4349         * modules/pthread-h (Depends-on): Add threadlib.
4350         (Link): Change to $(LIBTHREAD).
4351         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
4352         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
4354 2019-07-14  Bruno Haible  <bruno@clisp.org>
4356         pthread-h: Add C++ tests.
4357         * tests/test-pthread-c++.cc: New file.
4358         * modules/pthread-h-c++-tests: New file.
4360 2019-07-14  Bruno Haible  <bruno@clisp.org>
4362         pthread-h: Add tests.
4363         * tests/test-pthread.c: New file.
4364         * modules/pthread-h-tests: New file.
4366 2019-07-14  Bruno Haible  <bruno@clisp.org>
4368         pthread-h: New module.
4369         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
4370         is 1.
4371         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
4372         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
4373         <pthread.h> pollutes the namespace; instead, prepare for generating a
4374         pthread.h always. Substitute HAVE_PTHREAD_H here.
4375         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
4376         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
4377         * modules/pthread-h: New file, based on modules/pthread.
4378         * modules/pthread: Rely on 'pthread-h'.
4379         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
4380         Update.
4381         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
4382         pthread.
4384 2019-07-14  Bruno Haible  <bruno@clisp.org>
4386         sched_yield: New module.
4387         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
4388         (sched_yield): New declaration.
4389         * lib/sched_yield.c: New file.
4390         * m4/sched_yield.m4: New file.
4391         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
4392         provide a replacement sched.h always. Test whether sched_yield is
4393         declared.
4394         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
4395         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
4396         (Makefile.am): Provide a replacement sched.h always. Substitute
4397         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
4398         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
4399         * modules/sched_yield: New file.
4400         * doc/posix-functions/sched_yield.texi: Mention the new module.
4402 2019-07-14  Bruno Haible  <bruno@clisp.org>
4404         windows-spin: New module.
4405         * lib/windows-spin.h: New file.
4406         * lib/windows-spin.c: New file.
4407         * modules/windows-spin: New file.
4409 2019-07-14  Bruno Haible  <bruno@clisp.org>
4411         windows-timedrwlock: New module.
4412         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
4413         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
4414         windows-cond.c.
4415         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
4416         redefinition conflict with windows-timedrwlock.h.
4417         * modules/windows-timedrwlock: New file.
4419 2019-07-14  Bruno Haible  <bruno@clisp.org>
4421         windows-rwlock: New module.
4422         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
4423         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
4424         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
4425         windows-initguard.h.
4426         (gl_rwlock_t): Define using glwthread_rwlock_t.
4427         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
4428         (glthread_rwlock_init): Define using glwthread_rwlock_init.
4429         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
4430         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
4431         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
4432         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
4433         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
4434         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
4435         glthread_rwlock_destroy_func): Remove declarations.
4436         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
4437         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
4438         gl_waitqueue_notify_all, glthread_rwlock_init_func,
4439         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
4440         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
4441         functions.
4442         * modules/windows-rwlock: New file.
4443         * modules/lock (Depends-on): Add windows-rwlock.
4445 2019-07-14  Bruno Haible  <bruno@clisp.org>
4447         windows-thread: Add support for creating a thread in detached state.
4448         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
4449         (glwthread_thread_create): Add attr argument.
4450         * lib/windows-thread.c (glwthread_thread_create): Likewise.
4451         * lib/glthread/thread.h (glthread_create): Update.
4452         * lib/thrd.c (thrd_create): Update.
4454 2019-07-14  Bruno Haible  <bruno@clisp.org>
4456         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
4457         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
4458         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
4459         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
4460         * lib/windows-mutex.h: Update.
4461         * lib/windows-recmutex.h: Likewise.
4462         * lib/windows-timedmutex.h: Likewise.
4463         * lib/windows-timedrecmutex.h: Likewise.
4464         * lib/windows-cond.h: Likewise.
4465         * lib/glthread/lock.h: Likewise.
4466         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
4467         lib/windows-spinlock.h.
4468         * modules/windows-recmutex (Files): Likewise.
4469         * modules/windows-timedmutex (Files): Likewise.
4470         * modules/windows-timedrecmutex (Files): Likewise.
4471         * modules/windows-cond (Files): Likewise.
4472         * modules/threads-h (Files): Likewise.
4474 2019-07-14  Bruno Haible  <bruno@clisp.org>
4476         doc: Fix info about pthread API in HP-UX.
4477         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
4479 2019-07-14  Bruno Haible  <bruno@clisp.org>
4481         threads-h: Fix generation of threads.h.
4482         * modules/threads-h (Makefile.am): Insert the required header file
4483         snippets.
4485 2019-07-09  Bruno Haible  <bruno@clisp.org>
4487         striconveh test: Fix a compilation failure when iconv is not available.
4488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4489         * tests/test-striconveh.c (main): Move iconv_close invocations inside
4490         HAVE_ICONV.
4492 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
4494         argmatch: adjust columns for help2man.
4495         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
4496         requires column 20 or more, return 20.
4498 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4500         areadlink-with-size: avoid realloc when size==0
4501         * lib/areadlink-with-size.c (areadlink_with_size):
4502         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
4503         Reallocate at the end to the actual size, to avoid memory waste,
4504         as suggested by Bruno Haible.  But when the guessed size is zero -
4505         useful when the size is unknown - do the initial small readlink
4506         into the stack, to avoid that realloc in the usual case.
4508 2019-07-06  Pádraig Brady  <P@draigBrady.com>
4510         areadlink-with-size: guess a buffer size with 0 size
4511         The size is usually taken from st_size, which can be zero,
4512         resulting in inefficient operation.
4513         Instead let zero select an initial memory allocation
4514         of 128 bytes, which most symlinks fit within.
4515         * lib/areadlink-with-size.c (areadlink_with_size):
4516         Start with a 128 byte buffer, for SIZE == 0.
4517         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
4519 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
4521         Replace manually crafted hex regexes with [:xdigit:]
4522         * build-aux/gitlog-to-changelog (parse_amend_file)
4523         (git_dir_option):
4524         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
4525         This patch is backported from Emacs (Bug#36167).
4527 2019-07-06  Bruno Haible  <bruno@clisp.org>
4529         error: Fix documentation.
4530         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
4531         module provides.
4532         * doc/glibc-functions/error_message_count.texi: Likewise.
4533         * doc/glibc-functions/error_one_per_line.texi: Likewise.
4534         * doc/glibc-functions/error_print_progname.texi: Likewise.
4536 2019-07-06  Bruno Haible  <bruno@clisp.org>
4538         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
4539         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
4540         and older is unsupported.
4541         * doc/**/*.texi: Update.
4543 2019-07-06  Bruno Haible  <bruno@clisp.org>
4545         doc: Remove documentation of Linux libc5 as a supported platform.
4546         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
4547         to Linux libc5.
4548         * doc/posix-functions/iswalpha.texi: Likewise.
4549         * doc/posix-functions/iswblank.texi: Likewise.
4550         * doc/posix-functions/iswcntrl.texi: Likewise.
4551         * doc/posix-functions/iswdigit.texi: Likewise.
4552         * doc/posix-functions/iswgraph.texi: Likewise.
4553         * doc/posix-functions/iswlower.texi: Likewise.
4554         * doc/posix-functions/iswprint.texi: Likewise.
4555         * doc/posix-functions/iswpunct.texi: Likewise.
4556         * doc/posix-functions/iswspace.texi: Likewise.
4557         * doc/posix-functions/iswupper.texi: Likewise.
4558         * doc/posix-functions/iswxdigit.texi: Likewise.
4559         * doc/posix-functions/snprintf.texi: Likewise.
4560         * doc/posix-functions/vsnprintf.texi: Likewise.
4562 2019-07-06  Bruno Haible  <bruno@clisp.org>
4564         doc: Remove documentation of Tandem/NSK as a supported platform.
4565         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
4566         Tandem/NSK.
4567         * doc/**/*.texi: Update.
4569 2019-07-06  Bruno Haible  <bruno@clisp.org>
4571         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
4572         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
4573         and older is unsupported.
4574         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
4575         Mac OS X 10.4 and older.
4576         * doc/posix-functions/asinl.texi: Likewise.
4577         * doc/posix-functions/atanl.texi: Likewise.
4578         * doc/posix-functions/cosl.texi: Likewise.
4579         * doc/posix-functions/expl.texi: Likewise.
4580         * doc/posix-functions/frexpl.texi: Likewise.
4581         * doc/posix-functions/gettimeofday.texi: Likewise.
4582         * doc/posix-functions/logl.texi: Likewise.
4583         * doc/posix-functions/mkstemp.texi: Likewise.
4584         * doc/posix-functions/sinl.texi: Likewise.
4585         * doc/posix-functions/sqrtl.texi: Likewise.
4586         * doc/posix-functions/tanl.texi: Likewise.
4587         * doc/posix-functions/wcswidth.texi: Likewise.
4588         * doc/**/*.texi: Update.
4590 2019-07-06  Bruno Haible  <bruno@clisp.org>
4592         doc: Remove documentation of AIX 4 as a supported platform.
4593         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
4594         unsupported.
4595         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
4596         workarounds.
4597         * doc/posix-functions/strnlen.texi: Likewise.
4598         * doc/posix-headers/inttypes.texi: Likewise.
4599         * doc/**/*.texi: Update.
4601 2019-07-06  Bruno Haible  <bruno@clisp.org>
4603         doc: Remove documentation of HP-UX 10 as a supported platform.
4604         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
4605         unsupported.
4606         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
4607         workarounds.
4608         * doc/posix-functions/gmtime_r.texi: Likewise.
4609         * doc/posix-functions/localtime_r.texi: Likewise.
4610         * doc/posix-functions/mkstemp.texi: Likewise.
4611         * doc/**/*.texi: Update.
4613 2019-07-06  Bruno Haible  <bruno@clisp.org>
4615         doc: Remove documentation of Interix 3.5 as a supported platform.
4616         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
4617         unsupported.
4618         * doc/posix-functions/select.texi: Don't mention Interix specific
4619         workarounds.
4620         * doc/posix-headers/signal.texi: Likewise.
4621         * doc/**/*.texi: Update.
4623 2019-07-06  Bruno Haible  <bruno@clisp.org>
4625         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
4626         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
4627         unsupported.
4628         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
4629         workarounds.
4630         * doc/posix-functions/nl_langinfo.texi: Likewise.
4631         * doc/posix-functions/remainder.texi: Likewise.
4632         * doc/posix-functions/towlower.texi: Likewise.
4633         * doc/posix-functions/towupper.texi: Likewise.
4634         * doc/posix-functions/vsnprintf.texi: Likewise.
4635         * doc/posix-functions/wcscat.texi: Likewise.
4636         * doc/posix-functions/wcschr.texi: Likewise.
4637         * doc/posix-functions/wcscmp.texi: Likewise.
4638         * doc/posix-functions/wcscpy.texi: Likewise.
4639         * doc/posix-functions/wcscspn.texi: Likewise.
4640         * doc/posix-functions/wcslen.texi: Likewise.
4641         * doc/posix-functions/wcsncat.texi: Likewise.
4642         * doc/posix-functions/wcsncmp.texi: Likewise.
4643         * doc/posix-functions/wcsncpy.texi: Likewise.
4644         * doc/posix-functions/wcspbrk.texi: Likewise.
4645         * doc/posix-functions/wcsrchr.texi: Likewise.
4646         * doc/posix-functions/wcsspn.texi: Likewise.
4647         * doc/posix-headers/langinfo.texi: Likewise.
4648         * doc/posix-headers/signal.texi: Likewise.
4649         * doc/posix-headers/wchar.texi: Likewise.
4650         * doc/posix-headers/wctype.texi: Likewise.
4651         * doc/**/*.texi: Update.
4653 2019-07-05  Bruno Haible  <bruno@clisp.org>
4655         doc: Remove documentation of OSF/1 as supported platform.
4656         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
4657         unsupported.
4658         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
4659         workarounds.
4660         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
4661         * doc/glibc-functions/ptsname_r.texi: Likewise.
4662         * doc/posix-functions/ceil.texi: Likewise.
4663         * doc/posix-functions/ceilf.texi: Likewise.
4664         * doc/posix-functions/ceill.texi: Likewise.
4665         * doc/posix-functions/fchdir.texi: Likewise.
4666         * doc/posix-functions/floor.texi: Likewise.
4667         * doc/posix-functions/floorf.texi: Likewise.
4668         * doc/posix-functions/fmod.texi: Likewise.
4669         * doc/posix-functions/fmodf.texi: Likewise.
4670         * doc/posix-functions/fmodl.texi: Likewise.
4671         * doc/posix-functions/log.texi: Likewise.
4672         * doc/posix-functions/logf.texi: Likewise.
4673         * doc/posix-functions/logl.texi: Likewise.
4674         * doc/posix-functions/log10.texi: Likewise.
4675         * doc/posix-functions/log10f.texi: Likewise.
4676         * doc/posix-functions/log10l.texi: Likewise.
4677         * doc/posix-functions/log2.texi: Likewise.
4678         * doc/posix-functions/log2f.texi: Likewise.
4679         * doc/posix-functions/log2l.texi: Likewise.
4680         * doc/posix-functions/mbrtowc.texi: Likewise.
4681         * doc/posix-functions/recv.texi: Likewise.
4682         * doc/posix-functions/recvfrom.texi: Likewise.
4683         * doc/posix-functions/remainder.texi: Likewise.
4684         * doc/posix-functions/remainderf.texi: Likewise.
4685         * doc/posix-functions/remainderl.texi: Likewise.
4686         * doc/posix-functions/round.texi: Likewise.
4687         * doc/posix-functions/roundf.texi: Likewise.
4688         * doc/posix-functions/roundl.texi: Likewise.
4689         * doc/posix-functions/send.texi: Likewise.
4690         * doc/posix-functions/sendto.texi: Likewise.
4691         * doc/posix-functions/setenv.texi: Likewise.
4692         * doc/posix-functions/snprintf.texi: Likewise.
4693         * doc/posix-functions/tcgetsid.texi: Likewise.
4694         * doc/posix-functions/trunc.texi: Likewise.
4695         * doc/posix-functions/truncf.texi: Likewise.
4696         * doc/posix-functions/truncl.texi: Likewise.
4697         * doc/posix-functions/ttyname_r.texi: Likewise.
4698         * doc/posix-functions/unsetenv.texi: Likewise.
4699         * doc/posix-functions/wcsrtombs.texi: Likewise.
4700         * doc/posix-headers/sys_select.texi: Likewise.
4701         * doc/posix-headers/wchar.texi: Likewise.
4702         * doc/posix-headers/wctype.texi: Likewise.
4703         * doc/**/*.texi: Update.
4705 2019-07-05  Bruno Haible  <bruno@clisp.org>
4707         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
4708         * doc/**/*.texi: Update.
4710 2019-07-05  Bruno Haible  <bruno@clisp.org>
4712         doc: Remove documentation of Solaris 8 and older as supported platforms.
4713         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
4714         unsupported.
4715         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
4716         workarounds.
4717         * doc/posix-functions/memcmp.texi: Likewise.
4718         * doc/posix-functions/rename.texi: Likewise.
4719         * doc/posix-functions/tzset.texi: Likewise.
4720         * doc/posix-headers/wctype.texi: Likewise.
4721         * doc/**/*.texi: Update.
4723 2019-07-05  Bruno Haible  <bruno@clisp.org>
4725         doc: Remove documentation of Interix 3.5 as a supported platform.
4726         * doc/**/*.texi: Update.
4728 2019-07-05  Bruno Haible  <bruno@clisp.org>
4730         doc: Remove documentation of BeOS as a supported platform.
4731         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
4732         unsupported.
4733         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
4734         * doc/posix-functions/getdelim.texi: Likewise.
4735         * doc/**/*.texi: Update.
4737 2019-07-05  Bruno Haible  <bruno@clisp.org>
4739         thread, lock, cond, tls: Remove support for Pth threads.
4740         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
4741         --enable-threads=pth any more.
4742         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
4743         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
4744         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
4745         threads and ISO C11 threads.
4746         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
4747         * lib/glthread/lock.h: Likewise.
4748         * lib/glthread/lock.c: Likewise.
4749         * lib/glthread/cond.h: Likewise.
4750         * lib/glthread/cond.c: Likewise.
4751         * lib/glthread/tls.h: Likewise.
4752         * lib/glthread/tls.c: Likewise.
4753         * lib/glthread/yield.h: Likewise.
4754         * lib/regex_internal.h: Likewise.
4755         * tests/test-thread_create.c: Likewise.
4756         * tests/test-lock.c: Likewise.
4757         * tests/test-cond.c: Likewise.
4758         * tests/test-tls.c: Likewise.
4759         * tests/test-rwlock1.c: Don't include glthread/yield.h.
4760         (main): Sleep without calling gl_thread_yield.
4762 2019-07-05  Bruno Haible  <bruno@clisp.org>
4764         thread, lock, cond, tls: Remove support for old Solaris threads.
4765         Solaris >= 2.5.1 has POSIX threads.
4766         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
4767         --enable-threads=solaris any more.
4768         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
4769         * lib/glthread/thread.c: Update comment.
4770         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
4771         * lib/glthread/lock.h: Likewise.
4772         * lib/glthread/lock.c: Likewise.
4773         * lib/glthread/cond.h: Likewise.
4774         * lib/glthread/cond.c: Likewise.
4775         * lib/glthread/tls.h: Likewise.
4776         * lib/glthread/tls.c: Likewise.
4777         * lib/glthread/yield.h: Likewise.
4778         * lib/regex_internal.h: Likewise.
4779         * tests/test-thread_create.c: Likewise.
4780         * tests/test-lock.c: Likewise.
4781         * tests/test-cond.c: Likewise.
4782         * tests/test-tls.c: Likewise.
4784 2019-07-05  Bruno Haible  <bruno@clisp.org>
4786         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
4787         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
4788         needed size is equal to the allocated size.
4789         * lib/getcwd.c (__getcwd): Likewise.
4791 2019-07-05  Bruno Haible  <bruno@clisp.org>
4793         xgetdomainname: Don't return an excessive memory allocation.
4794         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
4795         before returning it.
4797 2019-07-05  Bruno Haible  <bruno@clisp.org>
4799         xgethostname: Don't return an excessive memory allocation.
4800         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
4801         returning it.
4803 2019-07-05  Bruno Haible  <bruno@clisp.org>
4805         areadlinkat-with-size: Don't return an excessive memory allocation.
4806         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
4807         before returning it.
4809 2019-07-05  Bruno Haible  <bruno@clisp.org>
4811         areadlink-with-size: Don't return an excessive memory allocation.
4812         Reported by Andreas Dilger <adilger@whamcloud.com>.
4813         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
4814         before returning it.
4816 2019-07-03  Bruno Haible  <bruno@clisp.org>
4818         renameatu: Fix test failure on MSVC.
4819         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
4820         empty string.
4822 2019-07-03  Bruno Haible  <bruno@clisp.org>
4824         mbrtowc: Fix invalid use of mbtowc() on MSVC.
4825         * lib/mbrtowc.c: Include glthread/lock.h.
4826         (mbtowc_lock): New variable.
4827         (mbrtowc): Treat UTF-8 encoding without locking. For the other
4828         encodings, explicitly reset the internal state of mbtowc, and protect
4829         this through a lock.
4830         * modules/mbrtowc (Depends-on): Add lock.
4832 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
4834         argmatch: don't define _ in the header.
4835         Reported by Jim Meyering.
4836         * lib/argmatch.h (N_, _): Don't define.
4837         Use gettext instead.
4838         * lib/argmatch.h (_): Define.
4839         * tests/test-argmatch.c (N_): Define.
4841 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4843         verify: document ‘assume’ better
4844         * lib/verify.h: Reword doc (Bug#36370).
4846 2019-07-02  Bruno Haible  <bruno@clisp.org>
4848         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
4849         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
4850         "CPutf8".
4851         * lib/nl_langinfo.c (ctype_codeset): Likewise.
4853 2019-07-02  Bruno Haible  <bruno@clisp.org>
4855         getcwd: Fix crash when invoked with size = 0 on MSVC.
4856         * lib/getcwd.c: Include msvc-inval.h.
4857         (getcwd_nothrow): New function/macro.
4858         (getcwd_system): New macro.
4859         (__getcwd): Use it instead of getcwd.
4860         * modules/getcwd (Depends-on): Add msvc-inval.
4861         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
4863 2019-07-02  Bruno Haible  <bruno@clisp.org>
4865         nonblocking-pipe tests: Fix test failure on MSVC.
4866         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
4867         native Windows.
4869 2019-07-02  Bruno Haible  <bruno@clisp.org>
4871         usleep: Implement with millisecond resolution on native Windows.
4872         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
4873         * doc/pastposix-functions/usleep.texi: Update accordingly.
4875 2019-07-02  Bruno Haible  <bruno@clisp.org>
4877         lstat tests: Fix test failure on MSVC.
4878         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
4879         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
4881 2019-07-02  Bruno Haible  <bruno@clisp.org>
4883         stat tests: Fix test failure on MSVC.
4884         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
4885         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
4887 2019-07-02  Bruno Haible  <bruno@clisp.org>
4889         getaddrinfo tests: Fix test failure on MSVC.
4890         * tests/test-getaddrinfo.c: Include sockets.h.
4891         (main): Invoke gl_sockets_startup.
4892         * modules/getaddrinfo-tests (Depends-on): Add sockets.
4894 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
4896         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
4897         * lib/poll.c: Call Windows native select() with Windows native timeval.
4899 2019-06-30  Bruno Haible  <bruno@clisp.org>
4901         argmatch: Fix compilation errors.
4902         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
4903         * tests/test-argmatch.c (main): Update after last-minute function names
4904         change.
4906 2019-06-30  Bruno Haible  <bruno@clisp.org>
4908         Include <stdlib.h> when needed.
4909         * lib/cnd.c: Include <stdlib.h>, needed for abort().
4910         * lib/fcntl.c: Likewise.
4911         * lib/mbscasestr.c: Likewise.
4912         * lib/mbssep.c: Likewise.
4913         * lib/mbsstr.c: Likewise.
4914         * lib/openat.c: Include <stdlib.h>, needed for free().
4915         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
4916         abort().
4918 2019-06-30  Bruno Haible  <bruno@clisp.org>
4920         Include <stdlib.h> when needed.
4921         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
4922         * lib/faccessat.c: Likewise.
4923         * lib/fchmodat.c: Likewise.
4924         * lib/fchownat.c: Likewise.
4925         * lib/fstatat.c: Likewise.
4926         * lib/mkfifoat.c: Likewise.
4927         * lib/mknodat.c: Likewise.
4928         * lib/readlinkat.c: Likewise.
4929         * lib/symlinkat.c: Likewise.
4930         * lib/utimensat.c: Likewise.
4931         * lib/mkdirat.c: Likewise. Include also the specification header.
4933 2019-06-30  Bruno Haible  <bruno@clisp.org>
4935         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
4936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
4937         from gl_PREREQ_SYS_H_SOCKET.
4938         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
4939         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
4940         gl_PREREQ_SYS_H_WS2TCPIP.
4941         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
4942         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
4943         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
4945 2019-06-30  Bruno Haible  <bruno@clisp.org>
4947         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
4948         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
4949         REPLACE_INET_NTOP to 1 always.
4950         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
4951         REPLACE_INET_PTON to 1 always.
4953 2019-06-30  Bruno Haible  <bruno@clisp.org>
4955         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
4956         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
4957         not REPLACE_INET_NTOP.
4959 2019-06-30  Bruno Haible  <bruno@clisp.org>
4961         poll: Add comment.
4962         * lib/poll.c: Add comment about WSAPoll.
4964 2019-06-30  Bruno Haible  <bruno@clisp.org>
4966         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
4967         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
4968         * lib/poll.in.h: Include <winsock2.h>.
4969         (POLL*, pollfd): Override on native Windows.
4970         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4971         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
4972         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4974 2019-06-28  Bruno Haible  <bruno@clisp.org>
4976         accept4: Fix compilation error on OpenIndiana.
4977         Reported by Michal Nowak <mnowak@startmail.com>
4978         via Mark H Weaver <mhw@netris.org>.
4979         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
4980         whether it exists as a function.
4982 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4984         strverscmp: sync from glibc
4985         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
4986         comments, include libc-config.h, define __strverscmp to be
4987         strverscmp, and don’t assume types line uint8_t and int8_t that
4988         that C99 doesn’t guarantee.
4989         [!_LIBC]: Include libc-config.h; define __strverscmp.
4990         Include stdint.h.
4991         (__strverscmp): Assume C99.  Use uint_least8_t
4992         and int_least8_t instead of unsigned char and signed char.
4993         * modules/strverscmp (Depends-on): Add libc-config, stdint.
4995 2019-06-25  Bruno Haible  <bruno@clisp.org>
4997         tss tests: Add tests for destructors and races.
4998         * tests/test-tss.c (worker_thread): Fix typo in debug message.
4999         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
5000         functions.
5001         (main): Invoke them.
5002         * modules/tls-tests (Depends-on): Add mtx.
5004 2019-06-25  Bruno Haible  <bruno@clisp.org>
5006         tls tests: Add tests for destructors and races.
5007         * tests/test-tls.c: Include glthread/lock.h.
5008         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
5009         functions.
5010         (main): Invoke them.
5011         * modules/tls-tests (Depends-on): Add lock.
5013 2019-06-25  Bruno Haible  <bruno@clisp.org>
5015         windows-tls: Implement TLS key destructors for native Windows.
5016         * lib/windows-tls.h (glwthread_tls_process_destructors): New
5017         declaration.
5018         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
5019         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
5020         (dtor_table_init_once, dtor_table_lock: New variables.
5021         (struct dtor): New type.
5022         (dtor_table, dtors_count, dtors_used, dtors_allocated,
5023         dtor_processing_threads): New variables.
5024         (dtor_table_initialize, dtor_table_ensure_initialized,
5025         dtor_table_shrink_used, glwthread_tls_process_destructors): New
5026         functions.
5027         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
5028         handle non-NULL destructors.
5029         * modules/windows-tls (Depends-on): Add windows-once.
5030         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
5031         Use the functions declared in windows-tls.h.
5032         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
5033         GLWTHREAD_DESTRUCTOR_ITERATIONS.
5034         * lib/windows-thread.c: Include windows-tls.h.
5035         (wrapper_func, glwthread_thread_exit): Invoke
5036         glwthread_tls_process_destructors.
5037         * modules/windows-thread (Depends-on): Add windows-tls.
5039 2019-06-25  Bruno Haible  <bruno@clisp.org>
5041         threadlib: Avoid autoconf warning "was expanded before it was required".
5042         * modules/threadlib (configure.ac): Require gl_THREADLIB.
5044 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
5046         argmatch: remove duplicate const qualifier
5047         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
5049 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
5051         unistd: stddef.h and sys/types.h namespace cleanup
5052         * lib/unistd.in.h [__GLIBC__]:
5053         Do not include stddef.h or sys/types.h.
5054         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
5055         supposed to declare off_t and ssize_t.  Problem found when looking
5056         at why @GNULIB_PWRITE@ was different from the newly-added
5057         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
5059 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5061         maintainer-makefile: restore portability to non-GNU awks
5062         Reported by Tim Rühsen.
5063         * top/maint.mk (AWK): New variable.  Use it.
5064         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
5066 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5068         Document setvbuf _IOLBF problem
5069         * doc/posix-functions/setvbuf.texi (setvbuf):
5070         Document MS-Windows portability problem with _IOLBF.
5072         Document lseek SEEK_DATA/SEEK_HOLE
5073         * doc/posix-functions/lseek.texi (lseek):
5074         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
5076 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
5078         argmatch: put all the docs member last.
5079         Reported by Bruno Haible.
5080         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
5081         member before the docs done.
5082         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
5084 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
5086         argmatch: add support to generate the usage message.
5087         * lib/argmatch.c: Move some #includes and gettext support to...
5088         * lib/argmatch.h: here.
5089         (ARGMATCH_DEFINE_GROUP): New macro.
5090         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
5091         (argmatch_backup_group): New.
5092         (CHECK): New.
5093         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
5094         argmatch_backup_argument and argmatch_backup_usage.
5095         * modules/argmatch: We depend on c99.
5096         * doc/argmatch.texi (Recognizing Option Arguments): New.
5097         * doc/gnulib.texi: Use it.
5099 2019-06-21  Bruno Haible  <bruno@clisp.org>
5101         thrd: Add comment.
5102         * lib/thrd.c (pthread_main_func): Add comment.
5104 2019-06-21  Bruno Haible  <bruno@clisp.org>
5106         threads-h: Define 'thread_local' if and only if it actually works.
5107         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
5108         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
5109         Oracle Solaris Studio C. Compile a simple program, to see whether
5110         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
5111         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
5112         * lib/threads.in.h (thread_local): Undefine if it does not work.
5113         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
5114         (Link): Mention LIBTHREADLOCAL.
5115         * tests/test-threads.c: Don't check that thread_local is defined.
5116         * tests/test-thread_local.c: New file.
5117         * modules/threads-h-tests (Files): Add it and macros.h.
5118         (Depends-on): Add thrd and stdint.
5119         (configure.ac): Test whether 'alarm' is declared.
5120         (Makefile.am): Arrange to build and link test-thread_local.
5121         * doc/posix-headers/threads.texi: Mention the platforms that don't
5122         support 'thread_local'.
5124 2019-06-20  Bruno Haible  <bruno@clisp.org>
5126         threads-h: Simplify link dependencies.
5127         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
5128         Don't set LTLIBSTDTHREAD.
5129         * modules/thrd (Link): Simplify accordingly.
5130         * modules/mtx (Link): Likewise.
5131         * modules/cnd (Link): Likewise.
5132         * modules/tss (Link): Likewise.
5133         * modules/threads (Link): Likewise.
5135 2019-06-20  Bruno Haible  <bruno@clisp.org>
5137         threads-h: Fix link error on FreeBSD 11.
5138         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
5139         also with -lpthread.
5141 2019-06-20  Bruno Haible  <bruno@clisp.org>
5143         threadlib: Fix typo (regression from today).
5144         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
5146 2019-06-20  Bruno Haible  <bruno@clisp.org>
5148         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
5149         * lib/windows-thread.c: Include <errno.h>.
5150         * lib/windows-tls.c: Likewise.
5152 2019-06-20  Bruno Haible  <bruno@clisp.org>
5154         tss tests: Small improvement.
5155         * tests/test-tss.c (test_tss): Pass a different id to each thread.
5157 2019-06-20  Bruno Haible  <bruno@clisp.org>
5159         threads: New module.
5160         * modules/threads: New file.
5162 2019-06-20  Bruno Haible  <bruno@clisp.org>
5164         tss: Add tests.
5165         * tests/test-tss.c: New file, based on tests/test-tls.c.
5166         * modules/tss-tests: New file.
5168 2019-06-20  Bruno Haible  <bruno@clisp.org>
5170         cnd: Add tests.
5171         * tests/test-cnd.c: New file, based on tests/test-cond.c.
5172         * modules/cnd-tests: New file.
5174 2019-06-20  Bruno Haible  <bruno@clisp.org>
5176         mtx: Add tests.
5177         * tests/test-mtx.c: New file, based on tests/test-lock.c.
5178         * tests/test-call_once.c: New file, based on tests/test-once.c.
5179         * modules/mtx-tests: New file.
5181 2019-06-20  Bruno Haible  <bruno@clisp.org>
5183         thrd: Add tests.
5184         * tests/test-thrd_create.c: New file, based on
5185         tests/test-thread_create.c.
5186         * tests/test-thrd_current.c: New file, based on
5187         tests/test-thread_self.c.
5188         * modules/thrd-tests: New file.
5190 2019-06-20  Bruno Haible  <bruno@clisp.org>
5192         tss: New module.
5193         * lib/tss.c: New file.
5194         * modules/tss: New file.
5195         * doc/posix-functions/tss_create.texi: Mention the new module.
5196         * doc/posix-functions/tss_set.texi: Likewise.
5197         * doc/posix-functions/tss_get.texi: Likewise.
5198         * doc/posix-functions/tss_delete.texi: Likewise.
5200 2019-06-20  Bruno Haible  <bruno@clisp.org>
5202         cnd: New module.
5203         * lib/cnd.c: New file.
5204         * modules/cnd: New file.
5205         * doc/posix-functions/cnd_init.texi: Mention the new module.
5206         * doc/posix-functions/cnd_wait.texi: Likewise.
5207         * doc/posix-functions/cnd_timedwait.texi: Likewise.
5208         * doc/posix-functions/cnd_signal.texi: Likewise.
5209         * doc/posix-functions/cnd_broadcast.texi: Likewise.
5210         * doc/posix-functions/cnd_destroy.texi: Likewise.
5212 2019-06-20  Bruno Haible  <bruno@clisp.org>
5214         mtx: New module.
5215         * lib/mtx.c: New file.
5216         * modules/mtx: New file.
5217         * doc/posix-functions/call_once.texi: Mention the new module.
5218         * doc/posix-functions/mtx_init.texi: Likewise.
5219         * doc/posix-functions/mtx_lock.texi: Likewise.
5220         * doc/posix-functions/mtx_trylock.texi: Likewise.
5221         * doc/posix-functions/mtx_timedlock.texi: Likewise.
5222         * doc/posix-functions/mtx_unlock.texi: Likewise.
5223         * doc/posix-functions/mtx_destroy.texi: Likewise.
5225 2019-06-20  Bruno Haible  <bruno@clisp.org>
5227         thrd: New module.
5228         * lib/thrd.c: New file.
5229         * m4/thrd.m4: New file.
5230         * modules/thrd: New file.
5231         * doc/posix-functions/thrd_current.texi: Mention the new module.
5232         * doc/posix-functions/thrd_detach.texi: Likewise.
5233         * doc/posix-functions/thrd_equal.texi: Likewise.
5234         * doc/posix-functions/thrd_exit.texi: Likewise.
5235         * doc/posix-functions/thrd_sleep.texi: Likewise.
5236         * doc/posix-functions/thrd_yield.texi: Likewise.
5237         * doc/posix-functions/thrd_create.texi: Mention the new module and the
5238         AIX bug.
5239         * doc/posix-functions/thrd_join.texi: Mention the new module and the
5240         AIX and Solaris bugs.
5242 2019-06-20  Bruno Haible  <bruno@clisp.org>
5244         threads-h: Add tests.
5245         * tests/test-threads.c: New file.
5246         * modules/threads-h-tests: New file.
5247         * tests/test-threads-c++.cc: New file.
5248         * modules/threads-h-c++-tests: New file.
5250 2019-06-20  Bruno Haible  <bruno@clisp.org>
5252         threads-h: New module.
5253         * lib/threads.in.h: New file.
5254         * m4/threads.m4: New file.
5255         * m4/yield.m4 (gl_YIELD): Update comment.
5256         * modules/threads-h: New file.
5257         * modules/yields (configure.ac): Use AC_REQUIRE.
5258         * doc/posix-headers/threads.texi: Mention the new module and the AIX
5259         bugs.
5261 2019-06-20  Bruno Haible  <bruno@clisp.org>
5263         windows-thread: New module.
5264         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
5265         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
5266         * lib/glthread/thread.h: Include windows-thread.h.
5267         (gl_thread_t): Define using glwthread_thread_t.
5268         (glthread_create): Define using glwthread_thread_create.
5269         (glthread_join): Define using glwthread_thread_join.
5270         (gl_thread_self): Define using glwthread_thread_self.
5271         (gl_thread_exit): Define using glwthread_thread_exit.
5272         (glthread_create_func, glthread_join_func, gl_thread_self_func,
5273         gl_thread_exit_func): Remove declarations.
5274         * lib/glthread/thread.c (self_key): Remove variable.
5275         (do_init_self_key, init_self_key): Remove functions.
5276         (struct gl_thread_struct): Remove type.
5277         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
5278         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
5279         functions.
5280         * modules/windows-thread: New file.
5281         * modules/thread (Depends-on): Add windows-thread.
5283 2019-06-20  Bruno Haible  <bruno@clisp.org>
5285         windows-tls: New module.
5286         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
5287         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
5288         * lib/glthread/tls.h: Include windows-tls.h.
5289         (gl_tls_key_t): Define using glwthread_tls_key_t.
5290         * modules/windows-tls: New file.
5291         * modules/tls (Depends-on): Add windows-tls.
5293 2019-06-20  Bruno Haible  <bruno@clisp.org>
5295         windows-cond: New module.
5296         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
5297         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
5298         * lib/glthread/cond.h: Include windows-cond.h.
5299         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
5300         (gl_cond_t): Define using glwthread_cond_t.
5301         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
5302         (glthread_cond_init): Define using glwthread_cond_init.
5303         (glthread_cond_wait): Define using glwthread_cond_wait.
5304         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
5305         (glthread_cond_signal): Define using glwthread_cond_signal.
5306         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
5307         (glthread_cond_destroy): Define using glwthread_cond_destroy.
5308         (glthread_cond_init_func, glthread_cond_wait_func,
5309         glthread_cond_timedwait_func, glthread_cond_signal_func,
5310         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5311         declarations.
5312         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
5313         types.
5314         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5315         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
5316         glthread_cond_init_func, glthread_cond_wait_func,
5317         glthread_cond_timedwait_func, glthread_cond_signal_func,
5318         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
5319         functions.
5320         * modules/windows-cond: New file.
5321         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
5323 2019-06-20  Bruno Haible  <bruno@clisp.org>
5325         windows-timedrecmutex: New module.
5326         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
5327         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
5328         * modules/windows-timedrecmutex: New file.
5330 2019-06-20  Bruno Haible  <bruno@clisp.org>
5332         windows-timedmutex: New module.
5333         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
5334         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
5335         * modules/windows-timedmutex: New file.
5337 2019-06-20  Bruno Haible  <bruno@clisp.org>
5339         windows-recmutex: New module.
5340         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
5341         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
5342         * lib/glthread/lock.h: Include windows-recmutex.h.
5343         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
5344         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
5345         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
5346         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
5347         (glthread_recursive_lock_unlock): Define using
5348         glwthread_recmutex_unlock.
5349         (glthread_recursive_lock_destroy): Define using
5350         glwthread_recmutex_destroy.
5351         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
5352         glthread_recursive_lock_unlock_func,
5353         glthread_recursive_lock_destroy_func): Remove declarations.
5354         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
5355         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
5356         glthread_recursive_lock_destroy_func): Remove functions.
5357         * modules/windows-recmutex: New file.
5358         * modules/lock (Depends-on): Add windows-recmutex.
5360 2019-06-20  Bruno Haible  <bruno@clisp.org>
5362         windows-mutex: New module.
5363         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
5364         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
5365         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
5366         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
5367         (gl_spinlock_t): Remove type.
5368         (gl_lock_t): Define using glwthread_mutex_t.
5369         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
5370         (glthread_lock_init): Define using glwthread_mutex_init.
5371         (glthread_lock_lock): Define using glwthread_mutex_lock.
5372         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
5373         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
5374         (glthread_lock_init_func, glthread_lock_lock_func,
5375         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5376         declarations.
5377         Use glwthread_spinlock_t instead of gl_spinlock_t.
5378         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
5379         GLWTHREAD_SPINLOCK_INIT.
5380         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
5381         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
5382         functions.
5383         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
5384         gl_spinlock_t.
5385         * modules/windows-mutex: New file.
5386         * modules/lock (Depends-on): Add windows-mutex.
5388 2019-06-20  Bruno Haible  <bruno@clisp.org>
5390         windows-once: New module.
5391         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
5392         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
5393         * lib/glthread/lock.h: Include windows-once.h.
5394         (gl_once_t): Define using glwthread_once_t.
5395         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
5396         (glthread_once): Define using glwthread_once.
5397         (glthread_once_func): Remove declaration.
5398         * lib/glthread/lock.c (glthread_once_func): Remove function.
5399         * modules/windows-once: New file.
5400         * modules/lock (Depends-on): Add windows-once.
5402 2019-06-20  Bruno Haible  <bruno@clisp.org>
5404         lock, cond: Avoid possible counter wraparound on Windows.
5405         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
5406         field of the guard unchanged if it was already positive.
5407         (glthread_rwlock_rdlock_func): Likewise.
5408         (glthread_rwlock_wrlock_func): Likewise.
5409         (glthread_recursive_lock_lock_func): Likewise.
5410         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
5411         (glthread_cond_timedwait_func): Likewise.
5413 2019-06-20  Bruno Haible  <bruno@clisp.org>
5415         cond: Make glthread_cond_timedwait more reliable on Windows.
5416         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
5417         condition variable before looking at the current time.
5419 2019-06-20  Bruno Haible  <bruno@clisp.org>
5421         pthread_mutex_timedlock: New module.
5422         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
5423         new declaration.
5424         * lib/pthread_mutex_timedlock.c: New file.
5425         * m4/pthread_mutex_timedlock.m4: New file.
5426         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
5427         whether pthread_mutex_timedlock is declared.
5428         (gl_PTHREAD_MODULE_INDICATOR): New macro.
5429         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5430         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5431         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
5432         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
5433         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
5434         * modules/pthread_mutex_timedlock: New file.
5435         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
5436         module.
5438 2019-06-20  Bruno Haible  <bruno@clisp.org>
5440         thread, lock, cond, tls: Recognize C11 multithreaded applications.
5441         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
5442         * lib/glthread/thread.h (c11_threads_in_use): New macro.
5443         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5444         * lib/glthread/lock.h (c11_threads_in_use): New macro.
5445         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5446         * lib/glthread/cond.h (c11_threads_in_use): New macro.
5447         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5448         * lib/glthread/tls.h (c11_threads_in_use): New macro.
5449         (pthread_in_use, pth_in_use, thread_in_use): Use it.
5451 2019-06-20  Bruno Haible  <bruno@clisp.org>
5453         tls tests: Small improvements.
5454         * tests/test-tls.c: Include <stdint.h>.
5455         (worker_thread): Avoid gcc warning on 64-bit mingw.
5456         (test_tls): Pass a different id to each thread.
5457         * modules/tls-tests (Depends-on): Add stdint.
5459 2019-06-20  Bruno Haible  <bruno@clisp.org>
5461         cond tests: Simplify.
5462         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
5464 2019-06-20  Bruno Haible  <bruno@clisp.org>
5466         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
5467         * tests/test-lock.c (test_once): Don't reference fire_signal if
5468         !ENABLE_LOCKING.
5470 2019-06-19  Bruno Haible  <bruno@clisp.org>
5472         nanosleep: Relicense under LGPLv2+.
5473         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
5474         * modules/nanosleep (License): Change to LGPLv2+.
5476 2019-06-19  Bruno Haible  <bruno@clisp.org>
5478         Reorder pieces of header in perl scripts.
5479         The desired order is
5480         - Prologue part 1 (2 lines with #!)
5481         - Program short description
5482         - Copyright and license notice
5483         - Written-by notice
5484         - Program short description (optional)
5485         - Program long description (optional)
5486         - Prologue part 2
5487         - Time stamp
5488         - Code
5489         Reported by Paul Eggert.
5490         * build-aux/announce-gen: Reorder header.
5491         * build-aux/gitlog-to-changelog: Likewise.
5492         * build-aux/useless-if-before-free: Likewise.
5493         * build-aux/prefix-gnulib-mk: Add copyright notice and short
5494         description.
5495         * build-aux/update-copyright: Likewise. Add short description. Bump
5496         time-stamp-line-limit to 200.
5498 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
5500         verify-tests: work around xlc bug
5501         Problem reported by Bruno Haible in:
5502         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
5503         * tests/test-verify.c (item): Move the arithmetic inside the
5504         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
5506 2019-06-16  Bruno Haible  <bruno@clisp.org>
5508         Restore Emacs time-stamp hook applicability.
5509         Reported by Darshit Shah <darnir@gnu.org>.
5510         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
5511         * build-aux/announce-gen: Likewise.
5512         * build-aux/gitlog-to-changelog: Likewise.
5513         * build-aux/prefix-gnulib-mk: Likewise.
5514         * build-aux/update-copyright: Likewise.
5516 2019-06-15  Bruno Haible  <bruno@clisp.org>
5518         Fix scripts to have valid executable format on Alpine Linux.
5519         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5520         Idea by Paul Eggert.
5521         * build-aux/useless-if-before-free: Use a prologue that starts with
5522         '#!/bin/sh'.
5523         * build-aux/announce-gen: Likewise.
5524         * build-aux/gitlog-to-changelog: Likewise.
5525         * build-aux/prefix-gnulib-mk: Likewise.
5526         * build-aux/update-copyright: Likewise.
5527         * tests/test-update-copyright.sh: Update test program accordingly.
5529 2019-06-10  Bruno Haible  <bruno@clisp.org>
5531         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
5532         Reported by Nikita Ermakov <arei@altlinux.org> in
5533         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
5534         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
5535         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
5537 2019-06-10  Bruno Haible  <bruno@clisp.org>
5539         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
5540         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
5541         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
5542         a copy of the path argument.
5543         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
5544         it.
5546 2019-06-10  Bruno Haible  <bruno@clisp.org>
5548         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
5549         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
5550         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
5551         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
5552         a copy of the path argument.
5553         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
5554         it.
5556 2019-06-10  Bruno Haible  <bruno@clisp.org>
5558         posix_spawn_file_actions_addfchdir: Add tests.
5559         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
5560         * tests/test-posix_spawn5.c: New file.
5561         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
5563 2019-06-10  Bruno Haible  <bruno@clisp.org>
5565         posix_spawn_file_actions_addfchdir: New module.
5566         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
5567         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
5568         union member 'fchdir_action'.
5569         * lib/spawn_faction_addfchdir.c: New file.
5570         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
5571         * m4/posix_spawn_faction_addfchdir.m4: New file.
5572         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
5573         'posix_spawn_file_actions_addfchdir' is present and whether
5574         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
5575         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
5576         posix_spawn_file_actions_addfchdir is declared.
5577         (gl_SPAWN_H_DEFAULTS): Initialize
5578         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
5579         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
5580         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
5581         * modules/spawn (Makefile.am): Substitute
5582         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
5583         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
5584         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
5585         * modules/posix_spawn_file_actions_addfchdir: New file.
5586         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
5587         signature.
5588         * doc/posix-functions/posix_spawn.texi: Mention the new module.
5589         * doc/posix-functions/posix_spawnp.texi: Likewise.
5590         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
5591         Likewise.
5593 2019-06-10  Bruno Haible  <bruno@clisp.org>
5595         doc: Document existence of posix_spawn_file_actions_addchdir module.
5596         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
5597         the posix_spawn_file_actions_addchdir module.
5599 2019-06-10  Bruno Haible  <bruno@clisp.org>
5601         posix_spawn-internal: Fix module description.
5602         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
5603         from here...
5604         * modules/posix_spawnp (configure.ac): ... and here...
5605         * modules/posix_spawn-internal (configure.ac): ... to here.
5607 2019-06-10  Bruno Haible  <bruno@clisp.org>
5609         doc: Update and improve documentation of glibc functions.
5610         This is a series of commits that
5611         - updates the documentation to the state of glibc 2.29,
5612         - adds references to Linux man pages and glibc documentation,
5613         - marks Linux specific functions as such.
5614         These are the commits:
5615         doc: Update after removal of crypt functions from glibc 2.28.
5616         doc: Remove mention of function vm86 (does not exist on x86_64).
5617         doc: Remove mention of functions that are gone from glibc.
5618         doc: Mention that glibc no longer provides h_errno.
5619         doc: Mention the availability of specific functions in glibc versions.
5620         doc: Mention eaccess.
5621         doc: Add references to Linux man pages.
5622         doc: Add references to glibc documentation.
5623         doc: Mention inotify_* functions.
5624         doc: Mention ppoll.
5625         doc: Mention sched_getcpu.
5626         doc: Mention sync_file_range.
5627         doc: Mention epoll_pwait.
5628         doc: Mention eventfd, eventfd_read, eventfd_write.
5629         doc: Mention signalfd.
5630         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
5631         doc: Mention epoll_create1.
5632         doc: Mention getauxval.
5633         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
5634         doc: Mention nextdown, nextup.
5635         doc: Mention more ISO TS 18661-1 <math.h> functions.
5636         doc: Mention ISO TS 18661-1 <fenv.h> functions.
5637         doc: Mention getrandom, getentropy.
5638         doc: Mention strfromf, strfromd, strfroml.
5639         doc: Mention preadv2, pwritev2.
5640         doc: Mention copy_file_range.
5641         doc: Mention memfd_create.
5642         doc: Mention mlock2.
5643         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
5644         doc: Mention more ISO TS 18661-1 <math.h> functions.
5645         doc: Mention renameat2.
5646         doc: Mention statx.
5647         doc: Mention the ISO C11 multithreading header and functions.
5648         doc: Mention getcpu.
5649         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
5650         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
5651         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
5652         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
5653         doc: Some glibc functions also exist on Solaris 11.
5654         doc: Some glibc functions also exist on Solaris 11.4.
5655         doc: Some glibc functions also exist on FreeBSD.
5656         doc: Some glibc functions also exist on BeOS.
5657         doc: Some glibc functions also exist on Haiku.
5658         doc: Mark functions which exist only on Linux.
5659         doc: Mark functions which exist only on Linux and illumos.
5661 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5663         copy-file: fix typo
5664         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
5666         copy-file-range: simplify into a stub
5667         Based on a comment by Florian Weimer in:
5668         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
5669         It turns out that Emacs (which will use this module) won’t need an
5670         emulation and I suspect other programs won’t either, because these
5671         programs will need to fall back on read+write anyway.  Perhaps I
5672         am wrong and other programs will be able to use an emulation; if
5673         so, this patch can be reverted.
5674         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
5675         Just call it copy_file_range.
5676         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
5677         Check via AC_LINK_IFELSE.
5678         * modules/copy-file-range (Depends-on): Remove modules no longer used.
5680 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
5682         copy-file: prefer copy_file_range
5683         * lib/copy-file.c: Do not include xalloc.h.
5684         (qcopy_file_preserving): Allocate a buffer only if
5685         copy_file_range does not suffice.  If the allocation fails
5686         don't give up; just use a small stack-based buffer.
5687         Prefer copy_file_range if it works.
5688         * modules/copy-file (Depends-on): Add copy-file-range.
5689         Remove xalloc.
5691         copy-file-range: new module
5692         * MODULES.html.sh: Add copy-file-range.
5693         * lib/copy-file-range.c, m4/copy-file-range.m4:
5694         * modules/copy-file-range: New files.
5695         * lib/unistd.in.h (copy_file_range): Declare.
5696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
5697         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
5698         * modules/unistd (unistd.h): Substitute them.
5700 2019-05-28  Bruno Haible  <bruno@clisp.org>
5702         binary-io: Attempted use of O_BINARY on consoles no longer fails.
5703         Reported by KO Myung-Hun <komh78@gmail.com> in
5704         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
5705         * lib/binary-io.h (__gl_setmode_check): Remove function.
5706         (set_binary_mode): Declare as notinline on DJGPP and EMX.
5707         * lib/binary-io.c (__gl_setmode_check): Remove function.
5708         (set_binary_mode): Define here on DJGPP and EMX. Inline
5709         __gl_setmode_check. In case of a tty, don't return an error code.
5711 2019-05-28  James Youngman  <jay@gnu.org>
5713         dirent-safer: Make opendir_safer usable from C++.
5714         * lib/dirent-safer.h: use extern "C".
5716 2019-05-28  James Youngman  <jay@gnu.org>
5718         canonicalize: Make canonicalize_filename_mode usable from C++.
5719         * lib/canonicalize.h: use extern "C".
5721 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
5723         prefix-gnulib-mk: Fix CPPFLAGS migration.
5724         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
5725         _a part of the library name.
5727 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5729         flexmember: update comments again
5730         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
5732         flexmember: update comment
5733         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
5735 2019-05-20  Bruno Haible  <bruno@clisp.org>
5737         setlocale: Improve fallback on macOS.
5738         * lib/setlocale.c (search): Optimize away a redundant strcmp()
5739         invocation.
5740         (locales_with_principal_territory): New array.
5741         (langcmp, get_main_locale_with_same_language): New functions.
5742         (locales_with_principal_language): New array.
5743         (terrcmp, get_main_locale_with_same_territory): New functions.
5744         (rpl_setlocale): When setlocale_single failed, try again with a locale
5745         that is more likely to exist. Don't warn if the environment variable
5746         SETLOCALE_VERBOSE is not set.
5748 2019-05-19  Bruno Haible  <bruno@clisp.org>
5750         localename: Fix default on macOS.
5751         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
5752         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
5753         (gl_locale_name_environ, gl_locale_name_default): Remove code for
5754         HAVE_CFLOCALECOPYCURRENT.
5755         * lib/localename.h (gl_locale_name_default): Update.
5757 2019-05-19  Karl Berry  <karl@freefriends.org>
5759         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
5760         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
5761         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
5763 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
5765         maintainer-makefile: catch uses of $< in non-implicit rules
5766         * top/maint.mk (sc_prohibit_magic_number_exit): New.
5768 2019-05-18  Bruno Haible  <bruno@clisp.org>
5770         threadlib: Provide an easy way to avoid mingw's winpthreads library.
5771         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
5772         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
5773         gl_use_threads accordingly.
5775 2019-05-18  Bruno Haible  <bruno@clisp.org>
5777         pthread_sigmask: Fix compilation error with --enable-threads=windows.
5778         Reported by Tim Rühsen in
5779         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
5780         and Michele Locati in
5781         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
5782         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
5783         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
5784         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
5785         in use and regardless which threads API is chosen.
5787 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5789         close-stream, closein, closeout: simplify
5790         I noticed this opportunity for simplification while drafting a
5791         new, related module that I haven’t had time to finish yet.
5792         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
5793         * modules/close-stream (Files): Remove m4/close-stream.m4.
5794         (configure.ac): Omit gl_CLOSE_STREAM.
5795         * modules/closein (Files): Remove m4/closein.m4
5796         (configure.ac): Omit gl_CLOSEIN.
5797         * modules/closeout (Files): Remove m4/closeout.m4.
5798         (configure.ac): Omit gl_CLOSEOUT.
5800 2019-05-12  Bruno Haible  <bruno@clisp.org>
5802         libtool-next-version: New program.
5803         * build-aux/libtool-next-version: New file.
5805 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
5806             Bruno Haible  <bruno@clisp.org>
5808         version-etc: Ease translation.
5809         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
5810         URLs and formatting newlines out of translatable string.
5812 2019-05-11  Bruno Haible  <bruno@clisp.org>
5814         gnupload: Explain how to create symlinks.
5815         * build-aux/gnupload (usage): Add an example that creates symlinks.
5817 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5819         fpucw: port to gcc -pedantic
5820         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
5821         Use __extension__ if using ({ ... }).
5823         crypto/af_alg: port to strict C compilers
5824         * lib/af_alg.c: Include af_alg.h regardless, so that the
5825         compilation unit is nonempty.
5827 2019-05-10  Bruno Haible  <bruno@clisp.org>
5829         base64: Avoid false positive warning from Coverity.
5830         Reported by Kamil Dudka <kdudka@redhat.com>.
5831         Idea by Paul Eggert.
5832         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
5833         '& 0x3f' to the array index expressions. This convinces Coverity that
5834         there is no out-of-bounds array reference, regardless of the input.
5836 2019-05-09  Bruno Haible  <bruno@clisp.org>
5838         gettext: Update to gettext 0.20.
5839         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
5840         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
5841         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
5842         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
5843         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
5844         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
5845         (configure.ac): Request infrastructure compatible with gettext 0.20.
5846         * m4/glibc2.m4: Remove file.
5847         * m4/intdiv0.m4: Remove file.
5848         * m4/intl.m4: Remove file.
5849         * m4/intldir.m4: Remove file.
5850         * m4/intmax.m4: Remove file.
5851         * m4/printf-posix.m4: Remove file.
5852         * m4/uintmax_t.m4: Remove file.
5853         * m4/gettext.m4: Update from gettext 0.20.
5854         * m4/po.m4: Likewise.
5856 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
5858         verify: remove verify_true
5859         * NEWS: Mention this.
5860         * lib/verify.h (verify_true): Remove.
5861         * tests/test-verify.c (item): Test verify_expr, not verify_true.
5863         Support C2X and C++17 static_assert
5864         C2X and C++17 finally added support for a simple, single-argument
5865         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
5866         doing back in 2005.  Implement static_assert on older platforms.
5867         The only remaining advantage of ‘verify’ is a shorter name.
5868         * doc/posix-headers/assert.texi (assert.h):
5869         * doc/verify.texi (Compile-time Assertions):
5870         Modernize for C2X and C++17.
5871         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
5872         New macros.
5873         (_GL_HAVE__STATIC_ASSERT): Remove.
5874         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
5875         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
5876         string.  All callers changed.
5877         (_GL_VERIFY): Require 3 or more args, of which only the first 2
5878         are used.  All callers changed.
5879         (_Static_assert): Allow either 1 or 2 args, and define if
5880         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
5881         !_GL_HAVE__STATIC_ASSERT.
5882         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
5883         of defining if !_GL_HAVE_STATIC_ASSERT.
5884         (verify_expr, verify): Don’t bother trying to copy the expression
5885         into the diagnostic, since 1-argument static_assert doesn’t.
5886         (verify): Prefer 1-argument _Static_assert if it works.
5887         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
5889 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5891         Fix _GL_HAVE__STATIC_ASSERT typo
5892         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
5893         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
5895 2019-05-05  Bruno Haible  <bruno@clisp.org>
5897         wcwidth: Ensure width 1, not 2, for ambiguous characters.
5898         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
5899         via Akim Demaille <akim.demaille@gmail.com>.
5900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
5901         en_US.UTF-8 locale, since that is more likely to be present than an
5902         fr_FR.UTF-8 locale.
5903         * tests/test-wcwidth.c (main): Check the width of U+2202.
5904         * doc/posix-functions/wcwidth.texi: Mention the issue.
5906 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
5908         Port manywarnings to GCC 9
5909         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
5910         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
5911         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
5912         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
5913         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
5914         --help=warnings output.
5915         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
5916         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
5917         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
5919 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
5921         Sync lib/mktime-internal.h from glibc
5922         * config/srclist.txt: Add entry for lib/mktime-internal.h.
5923         * lib/mktime-internal.h: Autoupdate.
5925 2019-04-28  Bruno Haible  <bruno@clisp.org>
5927         tls tests: Prevent that the test takes too long.
5928         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
5929         (main): Let the test fail if it takes more than 10 minutes.
5930         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
5932 2019-04-27  Bruno Haible  <bruno@clisp.org>
5934         lock tests: Prevent that the test takes too long.
5935         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
5936         (main): Let the test fail if it takes more than 10 minutes.
5937         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
5939 2019-04-27  Bruno Haible  <bruno@clisp.org>
5941         localename: Fix crash on mingw (regression from 2018-11-23).
5942         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
5943         locale name that is null.
5945 2019-04-27  Bruno Haible  <bruno@clisp.org>
5947         Fix gcc warnings on 64-bit mode mingw.
5948         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
5949         * lib/gl_array_list.c: Likewise.
5950         * lib/gl_array_map.c: Likewise.
5951         * lib/gl_array_set.c: Likewise.
5952         * lib/gl_carray_list.c: Likewise.
5953         * lib/gl_sublist.c: Likewise.
5954         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
5955         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
5956         * lib/gl_hash_map.c (uintptr_t): Likewise.
5957         * lib/gl_hash_set.c (uintptr_t): Likewise.
5958         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
5959         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
5960         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
5961         * lib/iconv.c (uintptr_t): Likewise.
5962         * lib/iconv_close.c (uintptr_t): Likewise.
5963         * tests/test-lock.c: Include <stdint.h>.
5964         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
5965         'long'.
5966         * modules/clean-temp (Depends-on): Add stdint.
5967         * modules/array-list (Depends-on): Likewise.
5968         * modules/array-map (Depends-on): Likewise.
5969         * modules/array-set (Depends-on): Likewise.
5970         * modules/carray-list (Depends-on): Likewise.
5971         * modules/sublist (Depends-on): Likewise.
5972         * modules/lock-tests (Depends-on): Likewise.
5974 2019-04-27  Bruno Haible  <bruno@clisp.org>
5976         error: Tweak indentation.
5977         * lib/error.c: Correct indentation.
5979 2019-04-27  Bruno Haible  <bruno@clisp.org>
5981         term-style-control: Fix gcc warning on mingw.
5982         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
5983         of i.
5985 2019-04-26  Bruno Haible  <bruno@clisp.org>
5987         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
5988         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
5990 2019-04-26  Bruno Haible  <bruno@clisp.org>
5992         relocatable-prog: Fix gcc warning on mingw.
5993         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
5994         on EMX.
5996 2019-04-02  Bruno Haible  <bruno@clisp.org>
5998         gitsub.sh: New file.
5999         * top/gitsub.sh: New file.
6001 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
6003         argmatch: use void* for raw memory pointers
6004         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
6005         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
6006         to "values", keep char* for strings.
6008 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
6010         prefix-gnulib-mk: fix the support for gnulib-po
6011         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
6012         Don't touch HAVE_* variables.
6013         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
6015 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
6017         di-set: allow free with 'ino_map' being NULL.
6018         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
6019         is NULL.  Bug introduced in commit 3703dbbe88dd.
6020         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
6021         as a test.
6023 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
6025         * lib/str-two-way.h: Fix comment typo.
6027 2019-04-13  Bruno Haible  <bruno@clisp.org>
6029         x-to-1: Restore ability to use original calling convention.
6030         * build-aux/x-to-1.in: Add comments. Accept the original form of
6031         HELP2MAN argument as well as the form expected since 2012-12-12.
6033 2019-04-13  Bruno Haible  <bruno@clisp.org>
6035         x-to-1: Avoid failure due to missing perl modules.
6036         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
6037         needs are installed.
6039 2019-04-13  Bruno Haible  <bruno@clisp.org>
6041         openmp-init: New module.
6042         * modules/openmp-init: New file.
6043         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
6044         the changes from 2019-04-09.
6046 2019-04-12  Bruno Haible  <bruno@clisp.org>
6048         signbit: Fix compilation error when gnulib's math.h exists twice.
6049         * lib/math.in.h (GNULIB_defined_signbit): New macro.
6051 2019-04-12  Bruno Haible  <bruno@clisp.org>
6053         openmp: Fix compilation error on platforms without OpenMP.
6054         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
6056 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
6058         mountlist: make parsing /proc/self/mountinfo more robust
6059         Cater for the following issues with mountinfo parsing (the first
6060         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
6061         in <https://bugs.gnu.org/35137>).
6062         1. The fields source, target, mntroot and fstype may contain characters
6063         like '\r'; sscanf(3) fails to read such values with the %s format
6064         specifier because it would stop at such characters.
6065         Example: "mount -t tmpfs tmpfs /foo^Mbar".
6066         The only true separator in that file is the ' ' character.
6067         2. The source field may be an empty string, which happens e.g. with
6068         "mount -t tmpfs '' /target".
6069         3. The fstype field may contain mangled characters as well which need
6070         unescaping.
6071         * lib/mountlist.c (terminate_at_blank): Add utility function.
6072         (read_file_system_list): In the block trying to read the mountinfo file,
6073         avoid using sscanf(3) with %s format; instead, parse the above fields
6074         separated by spaces one by one.
6075         This also handles the case when the source field is an empty string.
6076         Unescape the fstype field.
6078 2019-04-09  Bruno Haible  <bruno@clisp.org>
6080         openmp: Add workaround for 32-bit programs on AIX.
6081         * lib/omp.in.h: New file.
6082         * lib/omp-init.c: New file, based on lib/nproc.c.
6083         * m4/omp_h.m4: New file.
6084         * modules/openmp (Files): Add them.
6085         (Depends-on): Add include_next, c-ctype, setenv.
6086         (configure.ac): Invoke gl_OMP_H.
6087         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
6088         (Include): Mention <omp.h>.
6090 2019-04-09  Bruno Haible  <bruno@clisp.org>
6092         nproc: Fix return value for privileged processes.
6093         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
6094         getpid().
6096 2019-04-07  Bruno Haible  <bruno@clisp.org>
6098         Add copyright notices in several files.
6099         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
6100         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
6101         * lib/libunistring.valgrind: Likewise.
6102         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
6103         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
6104         * lib/memchr.valgrind: Likewise.
6105         * lib/memchr2.valgrind: Likewise.
6106         * lib/rawmemchr.valgrind: Likewise.
6107         * lib/relocatable.valgrind: Likewise.
6108         * lib/strchrnul.valgrind: Likewise.
6110 2019-03-25  Bruno Haible  <bruno@clisp.org>
6112         term-style-control tests: Fix link error.
6113         Reported by Tom G. Christensen in
6114         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
6115         * modules/term-style-control-tests (Makefile.am): Link
6116         test-term-style-control-hello and test-term-style-control-yes against
6117         LIBINTL.
6119 2019-03-24  Bruno Haible  <bruno@clisp.org>
6121         term-style-control: Add tests.
6122         * tests/test-term-style-control-hello.c: New file.
6123         * tests/test-term-style-control-yes.c: New file.
6124         * modules/term-style-control-tests: New file.
6126         term-style-control: New module.
6127         * lib/term-style-control.h: New file, based on libtextstyle's
6128         term-ostream.oo.h and term-ostream.oo.c.
6129         * lib/term-style-control.c: New file, based on libtextstyle's
6130         term-ostream.oo.c.
6131         * modules/term-style-control: New file.
6133 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6135         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
6136         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
6137         C++98 appears to be supported by Clang, but not by GCC nor ICC.
6139 2019-03-23  Bruno Haible  <bruno@clisp.org>
6141         Support cross-compilation to musl libc.
6142         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
6143         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
6144         musl libc.
6145         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6146         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6147         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6148         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6149         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6150         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
6151         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6152         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6153         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6154         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6155         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
6156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
6157         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6158         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6159         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6160         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6161         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6162         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6163         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6164         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6165         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6167         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
6168         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6170         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6171         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6172         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6173         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
6174         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
6175         * m4/log.m4 (gl_FUNC_LOG): Likewise.
6176         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6177         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6178         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
6179         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6180         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
6181         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6182         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
6183         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6184         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
6185         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
6186         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
6187         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6189         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6190         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6191         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6192         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6193         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
6194         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
6195         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
6196         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
6197         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6198         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6199         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6200         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
6201         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6202         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6203         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6204         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6205         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6207         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6208         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
6209         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6210         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6212         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
6213         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6214         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
6215         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6216         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6217         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6218         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6219         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6220         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6221         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6224 2019-03-23  Bruno Haible  <bruno@clisp.org>
6226         posix_spawn_file_actions_*: Document musl libc bugs.
6227         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6228         the bug.
6229         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
6230         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
6231         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
6232         cross-compiling to a musl system, guess no.
6233         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
6234         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6236 2019-03-23  Bruno Haible  <bruno@clisp.org>
6238         futimens: Document musl libc bug.
6239         * doc/posix-functions/futimens.texi: Mention the bug.
6240         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
6241         cross-compiling, guess no on glibc and musl systems.
6243 2019-03-23  Bruno Haible  <bruno@clisp.org>
6245         Clarify that cross-compilation guesses are guesses.
6246         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
6247         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
6248         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
6249         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
6250         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
6251         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
6252         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
6253         gl_cv_glob_lists_symlinks.
6254         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
6255         'guessing ' to ac_cv_func_malloc_0_nonnull.
6256         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
6257         'guessing ' to ac_cv_func_realloc_0_nonnull.
6258         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
6259         'guessing ' to gl_cv_func_poll.
6260         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
6261         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
6262         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
6264 2019-03-23  Bruno Haible  <bruno@clisp.org>
6266         strtold: Fix typo.
6267         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
6269 2019-03-23  Bruno Haible  <bruno@clisp.org>
6271         noreturn: In C++ mode with clang, use _Noreturn as fallback.
6272         Reported by Akim Demaille.
6273         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
6274         [[noreturn]] would not work, use _Noreturn instead.
6276 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
6278         libtextstyle-optional: Fix compiler warnings.
6279         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
6280         as unused.
6282 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6284         bitset: fix memory leaks
6285         Reported by Bruno Haible.
6286         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
6287         * lib/bitset/vector.c (vbitset_free): New.
6288         (vbitset_vtable): Use it.
6290 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6292         bitset: minor changes
6293         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
6294         * lib/bitset/table.c: Formatting changes.
6295         Remove useless braces.
6296         Prefer using else in cascades of if/else-if with returns.
6297         * lib/bitset/vector.c: Reduce scopes.
6299 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
6301         bitset: expose bitset_resize
6302         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
6303         * tests/test-bitset.c (check_attributes): Check bitset_resize.
6304         (main): Use a variable bitset as reference, since fixed does not support resize.
6306 2019-03-19  Bruno Haible  <bruno@clisp.org>
6308         doc: Document the 'stdnoreturn' and 'noreturn' modules.
6309         Reported by Akim Demaille.
6310         * doc/noreturn.texi: New file.
6311         * doc/gnulib.texi: Include it.
6313 2019-03-19  Bruno Haible  <bruno@clisp.org>
6315         doc: Document how to use 'static inline'.
6316         * doc/static-inline.texi: New file.
6317         * doc/gnulib.texi: Include it.
6319 2019-03-19  Bruno Haible  <bruno@clisp.org>
6321         libtextstyle-optional: Add tests.
6322         * tests/test-libtextstyle.c: New file, based on libtextstyle's
6323         adhoc-tests/hello.c.
6324         * tests/test-libtextstyle-default.css: New file, copied from
6325         libtextstyle's adhoc-tests/hello-default.css.
6326         * modules/libtextstyle-optional-tests: New file.
6328         libtextstyle-optional: New module.
6329         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
6330         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
6331         * modules/libtextstyle-optional: New file.
6333 2019-03-19  Bruno Haible  <bruno@clisp.org>
6335         c-stack: Make signal handlers more reliable.
6336         * lib/c-stack.c (progname): New variable.
6337         (die): Use it.
6338         (c_stack_action): Initialize it.
6339         (segv_handler): Save and restore errno.
6341 2019-03-19  Bruno Haible  <bruno@clisp.org>
6343         Help making signal handlers more reliable.
6344         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
6345         _GL_ASYNC_SAFE into config.h.
6346         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
6347         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
6348         argument.
6349         * lib/fatal-signal.c (action_t, uninstall_handlers,
6350         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
6351         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
6352         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
6353         _GL_ASYNC_SAFE.
6354         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
6355         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
6357 2019-03-18  Bruno Haible  <bruno@clisp.org>
6359         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
6360         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
6361         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
6363 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6365         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
6366         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
6367         GCC 4.8.
6369 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6371         fts: minor simplification
6372         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
6374 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
6376         bitset, timevar: Depend on c99.
6377         Reported by Bruno Haible.
6378         * modules/bitset, modules/timevar (Depends-on): Add c99.
6380 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6382         bitset: a bit (...) more tests
6383         * tests/test-bitset.c (check_attributes): Check zero and ones.
6385 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
6387         bitset: fix overflows.
6388         Reported by Bruno Haible.
6389         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
6390         * lib/bitset/table.c (tbitset_test): last_bit is the position of
6391         the bit in the array of bitset_word, so be sure to take its modulo
6392         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
6393         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
6395 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
6397         bitset: style changes.
6398         * lib/bitset/table.c: Use NULL, not 0, for pointers.
6399         Formatting changes.
6400         (tbitset_list): Reduce scopes.
6402 2019-03-16  Bruno Haible  <bruno@clisp.org>
6404         fatal-signal: Pass the signal number to the action.
6405         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
6406         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
6407         (fatal_signal_handler): Pass the signal number to the action.
6408         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
6409         signal number as parameter.
6410         (create_temp_dir): Update.
6411         * lib/wait-process.c (cleanup_slaves_action): New function.
6412         (register_slave_subprocess): Update at_fatal_signal invocation.
6413         * NEWS: Mention the change.
6415 2019-03-16  Bruno Haible  <bruno@clisp.org>
6417         fatal-signal: Add function that lists the fatal signals.
6418         * lib/fatal-signal.h (get_fatal_signals): New declaration.
6419         * lib/fatal-signal.c (get_fatal_signals): New function.
6421 2019-03-14  Bruno Haible  <bruno@clisp.org>
6423         isatty: Make it return true in Cygwin consoles on native Windows.
6424         * lib/isatty.c: Include <string.h>.
6425         (GetProcAddress): New macro.
6426         (GetNamedPipeClientProcessIdFuncType): New type.
6427         (GetNamedPipeClientProcessIdFunc): New variable.
6428         (QueryFullProcessImageNameFuncType): New type.
6429         (QueryFullProcessImageNameFunc): New variable.
6430         (initialized): New variable.
6431         (initialize): New function.
6432         (IsCygwinConsoleHandle): New function.
6433         (isatty): Invoke it.
6434         * doc/posix-functions/isatty.texi: Mention the issue.
6436 2019-03-14  Bruno Haible  <bruno@clisp.org>
6438         all: Update URLs to msdn.microsoft.com.
6439         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
6440         was moved to docs.microsoft.com.
6442 2019-03-13  Bruno Haible  <bruno@clisp.org>
6444         gnulib-tool: Clarify the coding style.
6445         Suggested by Pavel Raiskup <praiskup@redhat.com>.
6446         * gnulib-tool: Add comment about coding style.
6448 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
6450         strtod: fix clash with strtold
6451         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
6452         * lib/strtod.c (compute_minus_zero, minus_zero):
6453         Simplify by remving the macro / external variable,
6454         and having just a function.  User changed.  This avoids
6455         the need for an external variable that might clash.
6457 2019-03-10  Bruno Haible  <bruno@clisp.org>
6459         alloca-opt: Fix conflict mingw's new <alloca.h> file.
6460         Reported by Eli Zaretskii <eliz@gnu.org>.
6461         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
6462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
6463         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
6465 2019-03-10  Bruno Haible  <bruno@clisp.org>
6467         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
6468         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
6469         is in use.
6470         * tests/test-printf-posix2.c: Likewise.
6472 2019-03-10  Bruno Haible  <bruno@clisp.org>
6474         uninorm tests: Free allocated memory.
6475         * tests/uninorm/test-u32-normalize-big.h
6476         (struct normalization_test_file): Remove 'const' from allocated member.
6477         (free_normalization_test_file): New declaration.
6478         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
6479         memory.
6480         (free_normalization_test_file): New function.
6481         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
6482         'struct normalization_test_file' contents.
6483         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
6484         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
6485         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
6487 2019-03-10  Bruno Haible  <bruno@clisp.org>
6489         di-set: Fix memory leak.
6490         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
6491         not free().
6493 2019-03-10  Bruno Haible  <bruno@clisp.org>
6495         tests: Free allocated memory.
6496         Reported by <deltatau@protonmail.com> via Assaf Gordon.
6497         * tests/test-astrxfrm.c (main): Free allocated memory.
6498         * tests/test-bitset.c (compare, check_attributes): Free allocated
6499         bitsets.
6500         * tests/test-filenamecat.c (main): Free allocated memory.
6501         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
6502         * tests/test-freadptr.c (main): Likewise.
6503         * tests/test-freadptr2.c (main): Free allocated memory.
6504         * tests/test-freadseek.c (main): Likewise.
6505         * tests/test-gc-arcfour.c (main): Close allocated context.
6506         * tests/test-gc-arctwo.c (main): Likewise.
6507         * tests/test-gc-des.c (main): Close all allocated contexts.
6508         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
6509         * tests/test-pipe-filter-ii1.c (main): Likewise.
6510         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
6511         allocated file actions.
6512         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
6513         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
6514         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
6515         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
6516         * tests/test-strfmon_l.c (main): Free allocated locales.
6517         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
6518         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
6519         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
6520         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
6521         * tests/unistr/test-chr.h (main): Free input32.
6522         * tests/unistr/test-strchr.h (test_strchr): Likewise.
6524 2019-03-10  Bruno Haible  <bruno@clisp.org>
6526         tests: Prepare for using valgrind.
6527         * tests/*.sh: Invoke all test programs through ${CHECKER}.
6528         * tests/*/*.sh: Likewise.
6529         * tests/test-freadptr.c (main): Update accordingly.
6530         * tests/test-freadseek.c (main): Likewise.
6532 2019-03-09  Bruno Haible  <bruno@clisp.org>
6534         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
6535         * lib/get-rusage-as.c (get_rusage_as): When compiled by
6536         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
6537         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
6538         before exiting.
6540 2019-03-09  Jim Meyering  <meyering@fb.com>
6542         test-userspec.c: don't print NULL
6543         * tests/test-userspec.c (main): A test release of gcc,
6544         9.0.1 20190310, warned that this test would attempt to
6545         print a NULL pointer via a %s printf format.  Fix that
6546         and remove the unnecessary preceding "!diag" conjunct.
6547         Also add a comment.
6549 2019-03-03  Bruno Haible  <bruno@clisp.org>
6551         getloadavg: Write NULL for the null pointer.
6552         Reported by Michal Privoznik <mprivozn@redhat.com>.
6553         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
6555 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
6557         alloca, tsearch-tests: Write NULL for the null pointer.
6558         * lib/alloca.c (i00afunc): Write NULL instead of 0.
6559         * tests/test-tsearch.c (mangle_tree): Likewise.
6561 2019-03-09  Bruno Haible  <bruno@clisp.org>
6563         strfmon_l: Fix -fsanitize=address finding.
6564         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
6565         <string.h>.
6566         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
6567         (directive_t, directives_t): New types.
6568         (fmon_parse): New function.
6569         (rpl_strfmon_l): Don't call va_arg more often than needed for the
6570         format string. Consume 'long double' arguments in places where the
6571         format string indicates so.
6572         * modules/strfmon_l (Depends-on): Add 'stdbool'.
6574 2019-03-09  Bruno Haible  <bruno@clisp.org>
6576         crypto/des: Fix undefined behaviour.
6577         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
6578         shift operations on 'int'.
6580 2019-03-09  Bruno Haible  <bruno@clisp.org>
6582         Fix undefined behaviour.
6583         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
6584         'unsigned int', to avoid shift operations on 'int'.
6585         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
6586         * tests/test-count-leading-zeros.c (main): Use a random number that has
6587         as many bits as TYPE, not only 2*15 or 2*31 bits.
6588         * tests/test-count-trailing-zeros.c (main): Likewise.
6589         * tests/test-count-one-bits.c (main): Likewise.
6590         * tests/test-memmem.c: Don't include "null-ptr.h".
6591         (main): Use zerosize_ptr() instead of null_ptr().
6592         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
6594 2019-03-08  Bruno Haible  <bruno@clisp.org>
6596         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
6597         Reported by Jeffrey Walton <noloader@gmail.com>.
6598         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
6599         invoke memset with a zero size.
6600         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
6601         Likewise.
6602         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
6603         Adjust accordingly.
6605 2019-03-08  Bruno Haible  <bruno@clisp.org>
6607         unistr/*, uniconv/*: Fix undefined behaviour.
6608         Reported by Jeffrey Walton <noloader@gmail.com>.
6609         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
6610         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
6611         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
6612         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6614 2019-03-08  Bruno Haible  <bruno@clisp.org>
6616         unistr/u8-cmp: Fix undefined behaviour.
6617         Reported by Jeffrey Walton <noloader@gmail.com>.
6618         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
6620 2019-03-08  Bruno Haible  <bruno@clisp.org>
6622         unictype/numeric: Fix undefined behaviour.
6623         Reported by Jeffrey Walton <noloader@gmail.com>.
6624         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
6625         on shift overflow, caught by "gcc -fsanitize=undefined".
6626         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
6627         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
6628         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
6630 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
6632         git-version-gen: fix --version copyright year
6633         * build-aux/git-version-gen, build-aux/move-if-change (version):
6634         --version output copyright year is now taken from script year,
6635         so that it no longer needs to be updated by hand.
6637 2019-03-04  Bruno Haible  <bruno@clisp.org>
6639         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
6640         This approach supports relocatable installation of shared libraries
6641         which depend on other shared libraries from the same package.
6642         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
6643         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
6644         wrapper around the original LIBTOOL.
6645         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
6646         token '@loader_path' instead of '$ORIGIN'.
6647         * build-aux/libtool-reloc: New file.
6648         * modules/relocatable-prog (Files): Add it.
6649         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
6650         the recent changes. Document the need to set the *_LDFLAGS of libraries.
6651         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
6652         Makefile.am, not in configure.ac.
6654 2019-03-04  Bruno Haible  <bruno@clisp.org>
6656         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
6657         * build-aux/install-reloc: Revert change.
6658         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6660 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6662         nstrftime: support the ‘+’ flag
6663         * lib/nstrftime.c (add, __strftime_internal):
6664         Add support for the ‘+’ flag introduced in POSIX.1-2017.
6665         (__strftime_internal): New arg ‘width’.  All uses changed.
6666         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
6668 2019-02-24  Bruno Haible  <bruno@clisp.org>
6670         relocatable-prog: Improve verbose output.
6671         * build-aux/install-reloc (func_verbose): Escape characters that would
6672         be interpreted by the shell.
6674 2019-02-24  Bruno Haible  <bruno@clisp.org>
6676         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
6677         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
6678         "sys/stat.h".
6679         * lib/lstat.c: Likewise.
6680         * lib/fstat.c: Likewise.
6681         * lib/fstatat.c: Likewise.
6683 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
6685         long-options: add parse_gnu_standard_options_only
6686         Discussed in https://bugs.gnu.org/33468 .
6688         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
6689         (parse_gnu_standard_options_only): Add function to process
6690         the GNU default options --help and --version and fail for
6691         any other unknown long or short option. See
6692         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
6693         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
6694         * modules/long-options (depends-on): Add stdbool, exitfail.
6695         * top/maint.mk (sc_prohibit_long_options_without_use): Update
6696         syntax-check rule, add new function name.
6698 2019-02-23  Bruno Haible  <bruno@clisp.org>
6700         relocatable-prog: Update documentation.
6701         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
6702         the recent changes.
6704 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
6706         nstrftime: tweak arg order
6707         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
6708         All callers changed.  Suggested by TAMUKI Shoichi in:
6709         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
6711 2019-02-23  Bruno Haible  <bruno@clisp.org>
6713         relocatable-prog: Use wrapper-free installation also on Mac OS X.
6714         Reported by Paul Smith <psmith@gnu.org>.
6715         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
6716         (func_relativize): New function, from gnulib-tool.
6717         Handle mode 'macosx' through invocations of 'otool' and
6718         'install_name_tool'.
6719         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
6720         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
6721         'install-reloc' invocation with mode 'macosx'.
6723 2019-02-23  Bruno Haible  <bruno@clisp.org>
6725         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
6726         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
6727         Hurd with glibc >= 2.27.
6729 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6731         nstrftime: merge glibc strftime changes
6732         This incorporates:
6733         2019-02-11 Fix a few whitespace arrangement inconsistencies
6734         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
6735         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
6736         2019-01-11 strftime: use the "L_" macro with character literals
6737         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
6738         callers changed.  Default width of %Ey is now 2.  This is needed
6739         for proper handling of Japanese dates starting on 2019-05-01.
6741 2019-02-19  Bruno Haible  <bruno@clisp.org>
6743         relocatable-prog: Use $ORIGIN trick on more platforms.
6744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
6745         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
6746         Solaris >= 10, Haiku. But don't use it on Android.
6747         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
6748         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
6750 2019-02-19  Bruno Haible  <bruno@clisp.org>
6752         progreloc: Speed up executable lookup on various platforms.
6753         * lib/progreloc.c: Include <errno.h>.
6754         (safe_read, full_read): New functions.
6755         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
6756         prefer the information from the /proc file system to a PATH search.
6758 2019-02-19  Bruno Haible  <bruno@clisp.org>
6760         progreloc: Simplify code for Android.
6761         * lib/progreloc.c (executable_fd): Don't define on Android.
6762         (maybe_executable, find_executable): Don't use executable_fd on Android.
6764 2019-02-15  Bruno Haible  <bruno@clisp.org>
6766         gnulib-tool: Support --import with just a few tests, not --with-tests.
6767         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
6768         'inctests' when generating files; use 'inctests' only for computing the
6769         transitive closure.
6771 2019-02-14  Bruno Haible  <bruno@clisp.org>
6773         gnulib-tool: Improve handling of multiple --local-dir options.
6774         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
6775         options work.
6776         * gnulib-tool (func_path_prepend): Remove function.
6777         (func_path_foreach): Make IFS handling more robust.
6778         (local_gnulib_path): Collect --local-dir values using func_path_append,
6779         not func_path_prepend.
6780         (func_determine_path_separator): Make IFS handling more robust.
6781         (func_lookup_file_cb): New function.
6782         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
6783         func_lookup_local_file. Apply the patches in the reverse order of their
6784         origin in $local_gnulib_path.
6785         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
6786         * NEWS: Mention that the first --local-dir option is the one with
6787         highest priority.
6789 2019-02-10  Bruno Haible  <bruno@clisp.org>
6791         libtextstyle: New module.
6792         * m4/libtextstyle.m4: New file.
6793         * modules/libtextstyle: New file.
6795 2019-02-05  Bruno Haible  <bruno@clisp.org>
6797         declared.sh: Fix bug with variables of pointer type.
6798         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
6799         before the symbol to be omitted if the preceding character is a '*'.
6801 2019-02-04  Bruno Haible  <bruno@clisp.org>
6803         Add script for running tests under valgrind.
6804         * build-aux/run-test: New file, from GNU libunistring.
6805         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
6806         as well.
6808 2019-02-04  Bruno Haible  <bruno@clisp.org>
6810         declared.sh: Fix --version output.
6811         * build-aux/declared.sh (func_version): Update package name.
6813 2019-02-03  Bruno Haible  <bruno@clisp.org>
6815         Add script for determining the set of symbols to export from a library.
6816         * build-aux/declared.sh: New file, from GNU libunistring.
6817         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
6818         Mention it.
6820 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
6822         vla: add commentary about VLA_ELEMS
6823         * lib/vla.h (VLA_ELEMS): Add commentary,
6824         some inspired by Bruno Haible’s proposal in:
6825         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
6827         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
6828         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
6829         assume the C99 signatures for strtod and strtold.  Programs that
6830         require stricter adherence to C99 should also use the strtod and
6831         strtold modules as needed, and we no longer need the
6832         HAVE_C99_STRTOLD macro.
6833         * NEWS: Mention this.
6834         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
6835         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
6836         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
6837         (Files): Remove m4/c-strtod.m4.
6838         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
6839         exists.
6841 2019-02-02  Bruno Haible  <bruno@clisp.org>
6843         fma: Improve code style.
6844         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
6846 2019-02-02  Colin Watson  <cjwatson@debian.org>
6848         *-map tests: Fix compilation error.
6849         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
6850         * tests/test-hash_map.c: Likewise.
6851         * tests/test-linkedhash_map.c: Likewise.
6853 2019-01-31  Bruno Haible  <bruno@clisp.org>
6855         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
6856         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
6857         GNULIB_defined_strtold_function): New macros.
6858         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
6859         (STRTOD): Ignore HAVE_C99_STRTOLD.
6860         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
6861         deemed buggy. But do use it on platforms where uselocale exists and is
6862         usable.
6863         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
6864         deemed buggy. On platforms where uselocale exists and is usable, use
6865         uselocale and strtod/strtold.
6866         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
6867         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
6868         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
6869         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
6870         (Depends-on): Add strtod.
6871         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
6872         (Depends-on): Add strtold.
6874 2019-01-31  Bruno Haible  <bruno@clisp.org>
6876         strtod, strtold: Use the locale's decimal point.
6877         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
6878         (decimal_point_char): New function, copied from lib/vasnprintf.c.
6879         (parse_number): Add a radixchar argument. Use it instead of '.'.
6880         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
6881         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
6882         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
6883         * tests/test-strtod1.c: New file.
6884         * tests/test-strtod1.sh: New file.
6885         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
6886         locale-fr.m4 and its dependencies.
6887         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
6888         (Makefile.am): Arrange to compile test-strtod1.c and run
6889         test-strtod1.sh.
6890         * tests/test-strtold1.c: New file.
6891         * tests/test-strtold1.sh: New file.
6892         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
6893         locale-fr.m4 and its dependencies.
6894         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
6895         (Makefile.am): Arrange to compile test-strtold1.c and run
6896         test-strtold1.sh.
6898 2019-01-31  Bruno Haible  <bruno@clisp.org>
6900         strtod, strtold tests: Simplify tests.
6901         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
6902         * tests/test-strtold.c (main): Likewise.
6904 2019-01-31  Bruno Haible  <bruno@clisp.org>
6906         strtod, strtold: Avoid unnecessary rounding errors.
6907         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
6908         decimal to DOUBLE conversion.
6910 2019-01-31  Bruno Haible  <bruno@clisp.org>
6912         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
6913         * lib/strtod.c (STRTOD): When there is an extra character after the
6914         exponent marker 'p', reparse the number.
6915         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
6916         * doc/posix-functions/strtold.texi: Likewise.
6918 2019-01-29  Bruno Haible  <bruno@clisp.org>
6920         strtold: Add tests.
6921         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
6922         * modules/strtold-tests: New file.
6924 2019-01-29  Bruno Haible  <bruno@clisp.org>
6926         strtold: New module.
6927         * lib/stdlib.in.h (strtold): New declaration.
6928         * lib/strtold.c: New file.
6929         * lib/strtod.c: Consider USE_LONG_DOUBLE.
6930         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
6931         USE_LDEXP): New macros.
6932         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
6933         USE_LONG_DOUBLE.
6934         (underlying_strtod): Remove function. Replace with some macros.
6935         Re-add the code for a missing underlying function that was removed on
6936         2013-02-19.
6937         * m4/strtold.m4: New file.
6938         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
6939         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
6940         REPLACE_STRTOLD.
6941         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
6942         REPLACE_STRTOLD.
6943         * modules/strtold: New file.
6944         * doc/posix-functions/strtold.texi: Document the new module.
6946 2019-01-29  Bruno Haible  <bruno@clisp.org>
6948         strtod: Fix compilation error on IRIX 6.5.
6949         * modules/strtod (Depends-on): Add 'math'.
6951 2019-01-28  Bruno Haible  <bruno@clisp.org>
6953         Fix build error when building a shared libunistring on Android.
6954         * tests/uninorm/test-nfc.c (n): Don't define on Android.
6955         (main): Add 'volatile', to defeat a GCC optimization that would
6956         eliminate the reference.
6957         * tests/uninorm/test-nfd.c (n): Don't define on Android.
6958         (main): Add 'volatile', to defeat a GCC optimization that would
6959         eliminate the reference.
6960         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
6961         (main): Add 'volatile', to defeat a GCC optimization that would
6962         eliminate the reference.
6963         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
6964         (main): Add 'volatile', to defeat a GCC optimization that would
6965         eliminate the reference.
6967 2019-01-27  Bruno Haible  <bruno@clisp.org>
6969         Avoid build errors due to wrong references between modules.
6970         * lib/uninorm/canonical-decomposition.c: Include
6971         "uninorm/decomposition-table.h", not "decomposition-table.h".
6972         * lib/uninorm/decomposition.c: Likewise.
6973         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
6974         not "decompose-internal.h".
6975         * lib/uninorm/u16-normalize.c: Likewise.
6976         * lib/uninorm/u32-normalize.c: Likewise.
6977         * lib/uninorm/uninorm-filter.c: Likewise.
6978         * lib/uninorm/nfkc.c: Likewise.
6979         * lib/uninorm/nfkd.c: Likewise.
6980         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
6981         "caseprop.h".
6982         * lib/unicase/u8-ct-totitle.c: Likewise.
6983         * lib/unicase/u8-prefix-context.c: Likewise.
6984         * lib/unicase/u8-suffix-context.c: Likewise.
6985         * lib/unicase/u16-casemap.c: Likewise.
6986         * lib/unicase/u16-ct-totitle.c: Likewise.
6987         * lib/unicase/u16-prefix-context.c: Likewise.
6988         * lib/unicase/u16-suffix-context.c: Likewise.
6989         * lib/unicase/u32-casemap.c: Likewise.
6990         * lib/unicase/u32-ct-totitle.c: Likewise.
6991         * lib/unicase/u32-prefix-context.c: Likewise.
6992         * lib/unicase/u32-suffix-context.c: Likewise.
6993         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
6994         "unicasemap.h".
6995         * lib/unicase/u8-toupper.c: Likewise.
6996         * lib/unicase/u8-ct-tolower.c: Likewise.
6997         * lib/unicase/u8-ct-toupper.c: Likewise.
6998         * lib/unicase/u16-tolower.c: Likewise.
6999         * lib/unicase/u16-toupper.c: Likewise.
7000         * lib/unicase/u16-ct-tolower.c: Likewise.
7001         * lib/unicase/u16-ct-toupper.c: Likewise.
7002         * lib/unicase/u32-tolower.c: Likewise.
7003         * lib/unicase/u32-toupper.c: Likewise.
7004         * lib/unicase/u32-ct-tolower.c: Likewise.
7005         * lib/unicase/u32-ct-toupper.c: Likewise.
7006         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
7007         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
7008         * lib/unicase/u16-ct-casefold.c: Likewise.
7009         * lib/unicase/u32-ct-casefold.c: Likewise.
7011 2019-01-27  Bruno Haible  <bruno@clisp.org>
7013         gperf: Fix error when this module is required by some test module.
7014         * modules/gperf (Applicability): Set to 'all'.
7016 2019-01-27  Bruno Haible  <bruno@clisp.org>
7018         tmpfile: Add support for Android.
7019         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
7020         works.
7021         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
7022         Android.
7023         * modules/tmpfile (Depends-on): Add 'stdbool'.
7024         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
7025         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
7027 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
7029         bitsetv: allow free on NULL.
7030         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
7032 2019-01-27  Bruno Haible  <bruno@clisp.org>
7034         test-framework-sh: Improve maintainability.
7035         * tests/init.sh: Clarify what belongs together. Reorder definitions.
7037 2019-01-27  Bruno Haible  <bruno@clisp.org>
7039         tests: Don't assume that /tmp exists.
7040         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
7041         * tests/test-copy-acl-1.sh: Likewise.
7042         * tests/test-file-has-acl-1.sh: Likewise.
7043         * tests/test-copy-file-1.sh: Likewise.
7045 2019-01-27  Bruno Haible  <bruno@clisp.org>
7047         tests: Accommodate a shell that is not in /bin/sh.
7048         * tests/init.sh (setup_): Set srcdir and builddir.
7049         (BOURNE_SHELL): New variable.
7050         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
7051         * modules/file-has-acl-tests (Depends-on): Likewise.
7052         * modules/copy-file-tests (Depends-on): Likewise.
7053         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
7054         scripts through $BOURNE_SHELL.
7055         * tests/test-set-mode-acl-2.sh: Likewise.
7056         * tests/test-copy-acl-1.sh: Likewise.
7057         * tests/test-copy-acl-2.sh: Likewise.
7058         * tests/test-file-has-acl-1.sh: Likewise.
7059         * tests/test-file-has-acl-2.sh: Likewise.
7060         * tests/test-copy-file-1.sh: Likewise.
7061         * tests/test-copy-file-2.sh: Likewise.
7062         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
7063         invoker.
7064         * tests/test-copy-acl.sh (builddir): Likewise.
7065         * tests/test-file-has-acl.sh (builddir): Likewise.
7066         * tests/test-copy-file.sh (builddir): Likewise.
7067         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
7068         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
7069         * tests/test-vc-list-files-git.sh: Likewise.
7071 2019-01-27  Bruno Haible  <bruno@clisp.org>
7073         tests: Fix some "unused variable" warnings.
7074         * tests/test-fts.c (fts_dealloc): Remove unused variable.
7075         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
7076         * tests/test-striconveh.c (main): Move some variable into the
7077         '#if HAVE_ICONV'.
7078         * tests/test-striconveha.c (main): Likewise.
7079         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
7080         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7081         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7082         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
7083         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
7084         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
7085         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7086         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7087         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7088         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
7089         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
7090         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
7091         * tests/test-tsearch.c (main): Move some variable into the
7092         '#if HAVE_INITSTATE'.
7094 2019-01-27  Bruno Haible  <bruno@clisp.org>
7096         unigbrk/uc-grapheme-breaks: Fix build failure.
7097         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
7098         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
7100 2019-01-27  Bruno Haible  <bruno@clisp.org>
7102         mountlist: Merge two .m4 files.
7103         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
7104         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
7105         * m4/ls-mntd-fs.m4: Remove file.
7106         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
7108 2019-01-27  Bruno Haible  <bruno@clisp.org>
7110         tests: Enable Linux specific tests on Android.
7111         * tests/test-flock.c (main): Treat Android like Linux.
7112         * tests/test-openat-safer.c (main): Likewise.
7114 2019-01-27  Bruno Haible  <bruno@clisp.org>
7116         relocatable-prog: Use Linux code on Android.
7117         * lib/progreloc.c: Treat Android like Linux.
7119 2019-01-26  Bruno Haible  <bruno@clisp.org>
7121         getloadavg: Add support for Android.
7122         * lib/getloadavg.c: Treat Android like Linux.
7124 2019-01-26  Bruno Haible  <bruno@clisp.org>
7126         vma-iter: Add support for Android.
7127         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
7128         * lib/vma-iter.c: Treat Android like Linux.
7129         * lib/get-rusage-data.c (get_rusage_data): Likewise.
7131 2019-01-26  Bruno Haible  <bruno@clisp.org>
7133         fts: Optimize on Android.
7134         * lib/fts.c: Treat Android like Linux.
7136 2019-01-26  Bruno Haible  <bruno@clisp.org>
7138         fts: Add support for Android.
7139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
7140         defined by this module and the ones in libc.
7141         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
7143 2019-01-26  Bruno Haible  <bruno@clisp.org>
7145         mountlist: Use Linux code on Android.
7146         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
7147         (unescape_tab, read_file_system_list): Enable Linux code on Android
7148         as well.
7149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
7150         and endmntent.
7151         * modules/mountlist (Depends-on): Add 'getline'.
7153 2019-01-26  Bruno Haible  <bruno@clisp.org>
7155         localename tests: Fix test failure on Android.
7156         * modules/localename-tests (Depends-on): Add 'setlocale'.
7158 2019-01-26  Bruno Haible  <bruno@clisp.org>
7160         mountlist: Port better to Android.
7161         * lib/mountlist.c (MOUNTED): Redefine on Android.
7162         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
7163         Android.
7165 2019-01-26  Bruno Haible  <bruno@clisp.org>
7167         striconveh: Fix use of uninitialized iconv_t.
7168         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7169         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
7170         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
7172 2019-01-26  Bruno Haible  <bruno@clisp.org>
7174         nonblocking-socket-tests: Fix test failure on Android 4.3.
7175         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
7176         also on Android.
7178 2019-01-26  Bruno Haible  <bruno@clisp.org>
7180         sh-filename: Add support for Android 4.3.
7181         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
7183 2019-01-26  Bruno Haible  <bruno@clisp.org>
7185         ptsname_r: Work around bug on Android 4.3.
7186         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
7187         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
7188         correct.
7189         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
7190         is defined, just fix the return value.
7191         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
7192         The behaviour of musl libc is nothing to be "fixed", since it is
7193         compliant with the next POSIX standard.
7195 2019-01-26  Bruno Haible  <bruno@clisp.org>
7197         ttyname_r: Work around bug on Android 4.3.
7198         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
7199         * lib/ttyname_r.c (ttyname_r): Implement for Android.
7200         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
7201         * doc/posix-functions/ttyname.texi: Likewise.
7203 2019-01-25  Bruno Haible  <bruno@clisp.org>
7205         getprogname: Port to Android 4.3.
7206         * lib/getprogname.c (getprogname): On Android, take only the last
7207         component of __progname.
7209 2019-01-25  Bruno Haible  <bruno@clisp.org>
7211         wcrtomb: Work around bug on Android 4.3.
7212         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
7213         the C locale.
7214         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
7215         which does not have the 'wctomb' function.
7216         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
7217         * tests/test-wcrtomb.c (main): Accept argument '5'.
7218         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
7220 2019-01-25  Bruno Haible  <bruno@clisp.org>
7222         setlocale: Work around bug on Android 4.3.
7223         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
7224         the "C" locale.
7225         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
7226         * doc/posix-functions/setlocale.texi: Mention the Android bug.
7228 2019-01-24  Bruno Haible  <bruno@clisp.org>
7230         memchr: Work around bug on Android <= 5.0.
7231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
7232         * doc/posix-functions/memchr.texi: Mention the Android bug.
7234 2019-01-24  Bruno Haible  <bruno@clisp.org>
7236         random: Fix compilation error on Android 4.3.
7237         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
7238         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
7239         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
7240         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
7241         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
7243         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7244         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
7245         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
7246         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
7247         REPLACE_INITSTATE, REPLACE_SETSTATE.
7248         * doc/posix-functions/random.texi: Correct the description of the
7249         situation on Android.
7250         * doc/posix-functions/srandom.texi: Likewise.
7251         * doc/posix-functions/rand.texi: Likewise.
7252         * doc/posix-functions/srand.texi: Likewise.
7254 2019-01-24  Bruno Haible  <bruno@clisp.org>
7256         mbtowc: Fix compilation error on Android 4.3.
7257         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
7258         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
7259         HAVE_MBTOWC.
7260         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
7261         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
7262         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
7263         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
7264         * doc/posix-functions/mbtowc.texi: Mention the change.
7266 2019-01-24  Bruno Haible  <bruno@clisp.org>
7268         fdatasync: Fix compilation error on Android 4.3.
7269         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
7270         test whether fdatasync() exists.
7272 2019-01-24  Bruno Haible  <bruno@clisp.org>
7274         unlinkat: Fix compilation error on Android 4.3.
7275         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
7276         also on Android.
7277         * doc/posix-functions/unlinkat.texi: Mention the issue.
7279 2019-01-24  Bruno Haible  <bruno@clisp.org>
7281         renameat: Fix compilation error on Android 4.3.
7282         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
7283         * doc/posix-functions/renameat.texi: Mention the issue.
7285 2019-01-24  Bruno Haible  <bruno@clisp.org>
7287         fchownat: Fix compilation error on Android 4.3.
7288         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
7289         use.
7290         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7291         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
7292         * doc/posix-functions/fchownat.texi: Mention the issue.
7294 2019-01-23  Bruno Haible  <bruno@clisp.org>
7296         gnulib-tool: Support running testdirs on Android.
7297         * build-aux/test-driver.diff: New file.
7298         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
7299         build-aux/test-driver after running automake.
7301 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7303         relocatable-prog: avoid warnings from Automake
7304         * modules/relocatable-prog: Don't declare PHONY dependencies in
7305         Automake conditionals.
7307 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
7309         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
7310         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
7312 2019-01-23  Bruno Haible  <bruno@clisp.org>
7314         threadlib: Revert commit from 2018-06-25. We now have a better fix.
7315         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
7316         preceding -Wl,--as-needed option. Don't check whether the linker
7317         supports --as-needed/--no-as-needed and --push-state/--pop-state.
7319 2019-01-23  Bruno Haible  <bruno@clisp.org>
7321         thread: Force linking with -lpthread, even when --as-needed is in use.
7322         Reported by Richard W.M. Jones <rjones@redhat.com> in
7323         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
7324         * lib/glthread/thread.h (pthread_create): Don't declare weak.
7326 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
7327             Bruno Haible  <bruno@clisp.org>
7329         relocatable: avoid compiler warnings (-Wshadow)
7330         * lib/relocatable.c (compute_curr_prefix): Rename local variables
7331         to avoid name collisions with global variables.
7333 2019-01-22  Bruno Haible  <bruno@clisp.org>
7335         vasnprintf: Don't use %n on Android.
7336         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
7337         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
7338         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
7340 2019-01-22  Bruno Haible  <bruno@clisp.org>
7342         *printf: Support cross-compilation to Android.
7343         * m4/printf.m4: Add cross-compilation guesses for Android.
7345 2019-01-21  Bruno Haible  <bruno@clisp.org>
7347         diacrit: Mark deprecated.
7348         * modules/diacrit (Status, Notice): Mark as deprecated.
7349         * NEWS: Mention it.
7351 2019-01-20  Bruno Haible  <bruno@clisp.org>
7353         rintl: Override broken implementation on NetBSD.
7354         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
7355         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
7356         REPLACE_RINTL.
7357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
7358         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
7359         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
7360         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
7362 2019-01-20  Bruno Haible  <bruno@clisp.org>
7364         log10l: Work around inaccurate implementation on NetBSD.
7365         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
7366         * lib/log10l.c: Comment out too simplistic override.
7367         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
7369 2019-01-20  Bruno Haible  <bruno@clisp.org>
7371         logl: Work around inaccurate implementation on NetBSD.
7372         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
7373         * lib/logl.c: Comment out unused code.
7374         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
7376 2019-01-20  Bruno Haible  <bruno@clisp.org>
7378         expm1l: Work around inaccurate implementation on NetBSD.
7379         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
7380         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
7381         REPLACE_EXPM1L.
7382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
7383         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
7384         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
7385         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
7387 2019-01-20  Bruno Haible  <bruno@clisp.org>
7389         expl: Work around inaccurate implementation on NetBSD.
7390         * lib/math.in.h (expl): Test also REPLACE_EXPL.
7391         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
7392         REPLACE_EXPL.
7393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
7394         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
7395         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
7396         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
7398 2019-01-20  Bruno Haible  <bruno@clisp.org>
7400         exp2l: Work around inaccurate implementation on NetBSD.
7401         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
7402         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
7404 2019-01-20  Bruno Haible  <bruno@clisp.org>
7406         floor, floorl: Avoid autoconf warnings.
7407         * modules/floor (configure.ac): Use AC_REQUIRE.
7408         * modules/floorl (configure.ac): Likewise.
7410 2019-01-20  Bruno Haible  <bruno@clisp.org>
7412         Defeat current GCC optimizations in math autoconf tests.
7413         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
7414         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7415         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7416         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7417         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
7418         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
7419         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7420         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7421         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
7422         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7423         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7424         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7425         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7426         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7427         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
7428         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
7429         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
7430         * m4/log.m4 (gl_FUNC_LOG): Likewise.
7431         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7432         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
7433         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7434         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
7435         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
7436         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
7437         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
7438         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
7439         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
7440         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7441         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7442         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7443         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7444         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7445         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7446         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7447         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7448         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7452 2019-01-19  Pádraig Brady  <P@draigBrady.com>
7454         gettext: support disabling use of VLAs
7455         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
7457 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7459         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
7460         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
7462 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
7464         fcntl: Fix syntax error (regression from 2018-10-05).
7465         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
7467 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
7469         relocatable: improve documentation.
7470         * doc/relocatable-maint.texi (Supporting Relocation): For
7471         substitutions performed by config.status, we need more variables
7472         (for instance datarootdir defaults to '${prefix}/share' so we need
7473         prefix).
7475 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
7477         backup: update dependencies
7478         * modules/backup-rename (Depends-on): It now depends on opendirat
7479         instead of opendir.  It also uses stdint, and xalloc-oversized.
7480         But no longer dirfd.
7481         * modules/backupfile (Depends-on): Add xalloc-oversized.
7483 2019-01-13  Bruno Haible  <bruno@clisp.org>
7485         getcwd: Fix test failure when building on a Linux 9p file system.
7486         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
7487         EINVAL from mkdir like ENAMETOOLONG.
7488         * tests/test-getcwd.c (test_long_name): Likewise.
7490 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
7492         Fix typos found by codespell.
7493         * lib/*.[hc]: Fix typos in comments.
7494         * pygnulib/*.py: Fix typos in error messages and comments.
7496 2019-01-12  Bruno Haible  <bruno@clisp.org>
7498         doc: Fix documentation about container data types.
7499         Reported by Werner Lemberg <wl@gnu.org>.
7500         * doc/containers.texi (Container data types): Fix typo.
7502 2019-01-10  Bruno Haible  <bruno@clisp.org>
7504         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
7505         Reported by Reuben Thomas <rrt@sc3d.org>.
7506         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
7508 2019-01-06  Bruno Haible  <bruno@clisp.org>
7510         maintainer-makefile: Make the configure.ac section optional.
7511         * top/maint.mk (GREP, SED): Define if not defined.
7513 2019-01-06  Bruno Haible  <bruno@clisp.org>
7515         localename: Assume setlocale function.
7516         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
7517         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
7519 2019-01-06  Bruno Haible  <bruno@clisp.org>
7521         doc: Add documentation about container data types.
7522         * doc/containers.texi: New file.
7523         * doc/gnulib.texi (Particular Modules): Include it.
7525 2019-01-06  Bruno Haible  <bruno@clisp.org>
7527         doc: Update documentation about 'progname' module.
7528         * doc/progname.texi: Rename from doc/error.texi. Change node name and
7529         title. Rewrite.
7530         * doc/gnulib.texi (Particular Modules): Update.
7532 2019-01-06  Bruno Haible  <bruno@clisp.org>
7534         doc: Document the xstdopen and *-safer modules.
7535         * doc/xstdopen.texi: New file.
7536         * doc/gnulib.texi (Particular Modules): Include it.
7538 2019-01-06  Bruno Haible  <bruno@clisp.org>
7540         xstdopen: Add tests.
7541         * tests/test-xstdopen.c: New file.
7542         * tests/test-xstdopen.sh: New file.
7543         * modules/xstdopen-tests: New file.
7545         xstdopen: New module.
7546         * lib/xstdopen.h: New file.
7547         * lib/xstdopen.c: New file.
7548         * modules/xstdopen: New file.
7550 2019-01-06  Bruno Haible  <bruno@clisp.org>
7552         stdopen: Fix compilation error with IRIX cc.
7553         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
7555 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7557         xfreopen need not include stdio--.h
7558         * lib/xfreopen.c: Do not include stdio--.h.
7560         xfreopen need not depend on freopen-safer
7561         * modules/xfreopen (Depends-on):
7562         Depend on freopen, not freopen-safer.
7564         stdopen: modernize and simplify
7565         * lib/stdopen.c: Update copyright date
7566         Do not include sys/types.h; no longer needed these days.
7567         (stdopen): Use C99-style decl in loop.  Return int errno
7568         value, rather than just a bool.  Do not worry about fd mismatches,
7569         since the caller cares only if 0, 1, 2 are occupied.
7570         * lib/stdopen.h: No need to include <stdbool.h>.
7571         * m4/stdopen.m4: Remove.
7572         * modules/stdopen: New file.
7574         stdopen: copy from last use in coreutils
7575         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
7576         New files, taken from their last commit in coreutils
7577         2007-07-23T12:35:58Z!jim@meyering.net
7578         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
7580 2019-01-05  Bruno Haible  <bruno@clisp.org>
7582         argp: Don't pass an invalid argument to dgettext().
7583         Reported by He X <xw897002528@gmail.com>.
7584         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
7585         dgettext().
7587 2019-01-05  Bruno Haible  <bruno@clisp.org>
7589         argp: Don't pass an invalid argument to dgettext().
7590         Reported by He X <xw897002528@gmail.com>.
7591         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
7592         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
7593         dgettext().
7595 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7597         stdioext: port to newer 32-bit Android
7598         Problem reported by Tom Yan in:
7599         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
7600         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
7601         (fp_) [__ANDROID__]: Use it.
7603 2019-01-04  Bruno Haible  <bruno@clisp.org>
7605         lock: Fix link error with --enable-threads=pth.
7606         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
7607         Mark as weak.
7609 2019-01-04  Bruno Haible  <bruno@clisp.org>
7611         Fix link errors in unit tests.
7612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7613         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
7614         * modules/array-map-tests (Makefile.am): Link test-array_map against
7615         libintl.
7616         * modules/array-set-tests (Makefile.am): Link test-array_set against
7617         libintl.
7618         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
7619         libintl.
7620         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
7621         libintl.
7622         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
7623         against libintl.
7624         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
7625         against libintl.
7627 2019-01-04  Bruno Haible  <bruno@clisp.org>
7629         Fix incorrect 'Link' sections.
7630         * modules/regex (Link): Mention the link requirement of module 'lock'.
7631         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
7633 2019-01-04  Bruno Haible  <bruno@clisp.org>
7635         Fix some 'Link' sections.
7636         * modules/c-stack (Link): Add link directive from the 'gettext-h'
7637         dependency.
7638         * modules/getaddrinfo (Link): Likewise.
7640 2019-01-04  Bruno Haible  <bruno@clisp.org>
7642         Remove redundant 'Link' sections.
7643         * modules/canon-host (Link): Remove section.
7644         * modules/timevar (Link): Likewise.
7646 2019-01-04  Bruno Haible  <bruno@clisp.org>
7648         Remove incorrect 'Link' sections.
7649         * modules/acl (Link): Remove section. Use combined 'Link' sections from
7650         the dependencies instead.
7651         * modules/crypto/md5 (Link): Likewise.
7652         * modules/crypto/sha1 (Link): Likewise.
7653         * modules/crypto/sha256 (Link): Likewise.
7654         * modules/crypto/sha512 (Link): Likewise.
7655         * modules/faccessat (Link): Likewise.
7656         * modules/fdutimensat (Link): Likewise.
7657         * modules/iconv_open-utf (Link): Likewise.
7658         * modules/propername (Link): Likewise.
7659         * modules/qacl (Link): Likewise.
7660         * modules/unicodeio (Link): Likewise.
7661         * modules/utimecmp (Link): Likewise.
7662         * modules/utimensat (Link): Likewise.
7663         * modules/xstriconv (Link): Likewise.
7664         * modules/xstriconveh (Link): Likewise.
7666 2019-01-04  Bruno Haible  <bruno@clisp.org>
7668         gnulib-tool: New option --extract-recursive-link-directive.
7669         * gnulib-tool (func_usage): Document the new options
7670         --extract-recursive-dependencies, --extract-recursive-link-directive.
7671         (func_verify_module): Document output variables.
7672         (func_get_dependencies_recursively): New function.
7673         (func_get_link_directive_recursively): New function.
7674         Use them to implement the new options
7675         --extract-recursive-dependencies, --extract-recursive-link-directive.
7676         * doc/gnulib-tool.texi (Link-time requirements): New section.
7678 2019-01-04  Bruno Haible  <bruno@clisp.org>
7680         Clarify meaning of 'Link' section in module description.
7681         * doc/gnulib.texi (Module description): Clarify the meaning of the
7682         'Link' section versus the one of the dependencies.
7683         * NEWS: Mention the change.
7685 2019-01-04  Bruno Haible  <bruno@clisp.org>
7687         pselect: Fix module description.
7688         * modules/pselect (Link): Put one link option per line.
7690 2019-01-04  Bruno Haible  <bruno@clisp.org>
7692         cosl: Fix module description.
7693         * modules/cosl (Link): Fix typo.
7694         * modules/mathl (configure.ac): Likewise.
7696 2019-01-04  Bruno Haible  <bruno@clisp.org>
7698         c-xvasprintf: Fix module dependencies.
7699         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
7701 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
7703         bootstrap: die when some submodules are not initialized
7704         * build-aux/bootstrap: Make sure all submodules are initialized.
7706 2019-01-04  Bruno Haible  <bruno@clisp.org>
7708         bitsetv: Fix module dependencies.
7709         * lib/bitsetv.c: Include xalloc.h.
7710         * modules/bitsetv (Depends-on): Add 'xalloc'.
7712 2019-01-04  Bruno Haible  <bruno@clisp.org>
7714         xmemdup0: Remove redundant code.
7715         * lib/xmemdup0.h (xalloc_die): Remove declaration.
7717 2019-01-04  Bruno Haible  <bruno@clisp.org>
7719         backupfile: Fix module dependencies.
7720         * modules/backupfile (Depends-on): Add 'xalloc'.
7722 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
7724         bitset, crypto/gc: fix conflicts with Solaris 11
7725         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
7726         avoid clash with Solaris 11 <sys/bitset.h>.
7727         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
7728         with Solaris 11 <xorg/gc.h>.
7730 2019-01-04  Bruno Haible  <bruno@clisp.org>
7732         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
7733         Reported by Andy Fiddaman <andy@omniosce.org>.
7734         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
7736 2019-01-03  Eric Blake  <eblake@redhat.com>
7738         maintainer-makefile: fix typo in previous patch
7739         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
7740         of Roman's work.
7742 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
7744         maintainer-makefile: prefer $(GREP) over grep
7745         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
7746         defined.
7747         * top/maint.mk: Use it everywhere.
7749         maintainer-makefile: split long argument lines
7750         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
7751         it would be too long for exec limits on BSD.
7753 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7755         mkfifo: bring back HAVE_MKFIFO macro
7756         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
7757         Problem reported by Andrew Janke in:
7758         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
7760 2018-12-21  Bruno Haible  <bruno@clisp.org>
7762         Assume Autoconf >= 2.63.
7763         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
7764         versions < 2.60.
7766 2018-12-21  Bruno Haible  <bruno@clisp.org>
7768         memcmp: Mention the clang bug.
7769         * tests/test-memcmp.c: Add comment about a known test failure.
7770         * doc/posix-functions/memcmp.texi: Mention the clang bug.
7772 2018-12-20  Jim Meyering  <meyering@fb.com>
7774         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
7775         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
7776           echo '123-x'|LC_ALL=C grep -E '.\bx'
7777         The goal is to revert the first, but reverting it requires to restore
7778         the function deleted in the second. I ran this to restore the deleted
7779         function:
7780           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
7781             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
7782             | patch -R -p1
7783         * lib/dfa.c (charclass_context): Restore deleted function.
7784         Reverting the primary commit removes this change:
7785         dfa: Simplify a building state
7786         * lib/dfa.c (build_state): Simplify a building state.
7788 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7790         version-etc: allow zero authors
7791         * lib/version-etc.c (version_etc_arn): If no authors are given,
7792         omit authorship info instead of dumping core.
7794 2018-12-19  Bruno Haible  <bruno@clisp.org>
7796         lchown tests: Be more permissive regarding errno values.
7797         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
7798         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
7799         alternative to ENOSYS.
7800         * modules/lchown-tests (Depends-on): Add 'errno'.
7801         * modules/fchownat-tests (Depends-on): Likewise.
7803 2018-12-18  Bruno Haible  <bruno@clisp.org>
7805         duplocale: Avoid test failure on AIX 7.
7806         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
7807         (configure.ac): Invoke gt_FUNC_USELOCALE.
7808         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
7809         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
7810         works.
7812 2018-12-18  Bruno Haible  <bruno@clisp.org>
7814         localename: Fix test failure on AIX 7.
7815         Reported by Assaf Gordon in
7816         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
7817         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
7818         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
7819         instead of ac_cv_func_uselocale.
7820         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
7821         HAVE_USELOCALE.
7822         * lib/localename-table.h: Likewise.
7823         * lib/localename-table.c: Likewise.
7824         * tests/test-localename.c: Likewise.
7825         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
7827 2018-12-18  Bruno Haible  <bruno@clisp.org>
7829         localename: Update comments regarding Cygwin.
7830         * lib/localename.c: Update comment.
7831         * doc/posix-functions/uselocale.texi: Update platforms list.
7832         * doc/posix-functions/newlocale.texi: Likewise.
7833         * doc/posix-functions/duplocale.texi: Likewise.
7834         * doc/posix-functions/freelocale.texi: Likewise.
7836 2018-12-16  Bruno Haible  <bruno@clisp.org>
7838         c-stack: Fix for Linux/sparc.
7839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
7840         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
7842 2018-12-16  Bruno Haible  <bruno@clisp.org>
7844         localename: Avoid test failure on some glibc systems.
7845         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
7846         Unset environment variables that might disturb the first setlocale call,
7847         and verify that this setlocale call succeeds.
7849 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
7851         random: Fix build error on native Windows (regression from 2018-06-21).
7852         * lib/random.c (__srandom, __initstate, __setstate, __random,
7853         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
7854         to the symbols without '__' prefix.
7856 2018-12-16  Bruno Haible  <bruno@clisp.org>
7858         obstack, libc-config: Support HP-UX cc in C99 mode.
7859         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
7860         compiler, even when in C99 mode.
7861         * lib/cdefs.h (__flexarr): Likewise.
7862         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
7864 2018-12-16  Bruno Haible  <bruno@clisp.org>
7866         localename: Fix test failure on OpenBSD >= 6.2.
7867         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
7868         locale system. Define HAVE_FAKE_LOCALES in this case.
7869         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
7870         HAVE_USELOCALE.
7871         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
7872         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
7873         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
7874         platforms list.
7875         * doc/posix-functions/newlocale.texi: Likewise.
7876         * doc/posix-functions/duplocale.texi: Update platforms list.
7877         * doc/posix-functions/freelocale.texi: Likewise.
7879 2018-12-16  Bruno Haible  <bruno@clisp.org>
7881         duplocale tests: Re-enable the test on platforms without <monetary.h>.
7882         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
7883         of the test, on platforms without <monetary.h>.
7885 2018-12-16  Bruno Haible  <bruno@clisp.org>
7887         localename: Update comments.
7888         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
7890 2018-12-15  Jim Meyering  <meyering@fb.com>
7892         regex: fix indentation
7893         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
7895 2018-12-15  Bruno Haible  <bruno@clisp.org>
7897         openat-safer tests: Avoid test failure on NetBSD 8.
7898         * tests/test-openat-safer.c (main): Execute a Linux specific test only
7899         on Linux.
7901 2018-12-15  Jim Meyering  <meyering@fb.com>
7903         regex: work around a bug in glibc-2.27 and prior
7904         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
7905         assertion for /0|()0|\1|0/.
7906         * tests/test-regex.c (main): Add the same test here.
7908 2018-12-15  Bruno Haible  <bruno@clisp.org>
7910         localename: Fix use of uninitialized shell variable.
7911         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
7912         gt_cv_locale_solaris114 always before use. Remove assignment without
7913         effect.
7915 2018-12-15  Bruno Haible  <bruno@clisp.org>
7917         dfa tests: Avoid test failure on Alpine Linux.
7918         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
7919         command found on Alpine Linux.
7921 2018-12-15  Jim Meyering  <meyering@fb.com>
7923         dfa: avoid new warnings from gcc
7924         These would prevent building with -Werror and a Dec snapshot of gcc.
7925         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
7926         Rename each inner instance to "p".
7927         (charclass_context): Remove unused static function.
7929 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
7931         mkdir-p: improve diagnostic for FUSE mounts
7932         Problem reported by Niklas Hambüchen in:
7933         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
7934         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
7935         errno to mkdir errno if the stat errno is likely more interesting.
7937 2018-12-14  Bruno Haible  <bruno@clisp.org>
7939         hash-map: Add tests.
7940         * tests/test-hash_map.c: New file.
7941         * modules/hash-map-tests: New file.
7943         linkedhash-map: Add tests.
7944         * tests/test-linkedhash_map.c: New file.
7945         * modules/linkedhash-map-tests: New file.
7947         array-map: Add tests.
7948         * tests/test-array_map.c: New file.
7949         * modules/array-map-tests: New file.
7951         xmap: New module.
7952         * lib/gl_xmap.h: New file.
7953         * lib/gl_xmap.c: New file.
7954         * modules/xmap: New file.
7956         hash-map: New module.
7957         * lib/gl_hash_map.h: New file.
7958         * lib/gl_hash_map.c: New file.
7959         * modules/hash-map: New file.
7961         linkedhash-map: New module.
7962         * lib/gl_linkedhash_map.h: New file.
7963         * lib/gl_linkedhash_map.c: New file.
7964         * lib/gl_anyhash1.h: Update comments.
7965         * lib/gl_anyhash2.h: Likewise.
7966         * modules/linkedhash-map: New file.
7968         array-map: New module.
7969         * lib/gl_array_map.h: New file.
7970         * lib/gl_array_map.c: New file.
7971         * modules/array-map: New file.
7973         map: New module.
7974         * lib/gl_map.h: New file.
7975         * lib/gl_map.c: New file.
7976         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
7977         conflict with gl_map.h.
7978         * modules/map: New file.
7980 2018-12-13  Bruno Haible  <bruno@clisp.org>
7982         select tests: Avoid test failure on Cygwin.
7983         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
7985 2018-12-13  Bruno Haible  <bruno@clisp.org>
7987         localtime-buffer: Avoid endless recursion in localtime and gmtime.
7988         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
7990 2018-12-13  Bruno Haible  <bruno@clisp.org>
7992         localeconv tests: Avoid test failure on Cygwin.
7993         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
7994         'mon_grouping' tests.
7996 2018-12-11  Bruno Haible  <bruno@clisp.org>
7998         omap: Don't dispose the old value when the function returns it.
7999         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
8000         here.
8001         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8002         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
8003         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
8004         here.
8006         array-omap, avltree-omap, rbtree-omap: Tweak style.
8007         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
8008         false.
8009         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
8011         rbtree-omap: Add tests.
8012         * tests/test-rbtree_omap.c: New file.
8013         * modules/rbtree-omap-tests: New file.
8015         avltree-omap: Add tests.
8016         * tests/test-avltree_omap.c: New file.
8017         * modules/avltree-omap-tests: New file.
8019         array-omap: Add tests.
8020         * tests/test-array_omap.c: New file.
8021         * modules/array-omap-tests: New file.
8023         xomap: New module.
8024         * lib/gl_xomap.h: New file.
8025         * lib/gl_xomap.c: New file.
8026         * modules/xomap: New file.
8028         rbtree-omap: New module.
8029         * lib/gl_rbtree_omap.h: New file.
8030         * lib/gl_rbtree_omap.c: New file.
8031         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
8032         Parameterize.
8033         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
8034         * modules/rbtree-omap: New file.
8035         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
8036         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
8038         avltree-omap: New module.
8039         * lib/gl_avltree_omap.h: New file.
8040         * lib/gl_avltree_omap.c: New file.
8041         * lib/gl_avltree_ordered.h: Code moved to here from
8042         lib/gl_avltree_oset.c. Parameterize.
8043         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
8044         * lib/gl_anytree_omap.h: New file.
8045         * modules/avltree-omap: New file.
8046         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
8047         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
8049         array-omap: New module.
8050         * lib/gl_array_omap.h: New file.
8051         * lib/gl_array_omap.c: New file.
8052         * modules/array-omap: New file.
8054         omap: New module.
8055         * lib/gl_omap.h: New file.
8056         * lib/gl_omap.c: New file.
8057         * modules/omap: New file.
8059 2018-12-11  Bruno Haible  <bruno@clisp.org>
8061         hash-set, linkedhash-set: Reduce code duplication.
8062         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
8063         lib/gl_anyhash_set1.h.
8064         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
8065         lib/gl_anyhash_set2.h. Parameterize.
8066         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
8067         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
8068         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
8069         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
8070         * lib/gl_rbtreehash_list.c: Likewise.
8071         * lib/gl_linkedhash_list.c: Likewise.
8072         (hash_resize_after_add): Remove function.
8073         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
8074         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
8075         * gl_hash_set.c: Likewise.
8076         * modules/avltreehash-list (Files, Makefile.am): Update file list.
8077         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
8078         * modules/linkedhash-list (Files, Makefile.am): Likewise.
8079         * modules/linkedhash-set (Files, Makefile.am): Likewise.
8080         * modules/hash-set (Files, Makefile.am): Likewise.
8082 2018-12-11  Bruno Haible  <bruno@clisp.org>
8084         array-set: Optimize.
8085         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
8086         outside the loop, not inside the loop.
8088 2018-12-11  Bruno Haible  <bruno@clisp.org>
8090         times: Fix tests.
8091         * tests/test-times.c (doublecmp): Implement a total order.
8093 2018-12-11  Bruno Haible  <bruno@clisp.org>
8095         array-set, linkedhash-set, hash-set: Fix tests.
8096         * tests/test-array_set.c (cmp_objects_in_array): New function.
8097         (check_equals): Use it.
8098         * tests/test-hash_set.c: Likewise.
8099         * tests/test-linkedhash_set.c: Likewise.
8101 2018-12-08  Bruno Haible  <bruno@clisp.org>
8103         Fix comments.
8104         * lib/gl_list.h (gl_list_free): Clarify what it does.
8105         * lib/gl_oset.h (gl_oset_free): Likewise.
8106         * lib/gl_set.h (gl_set_free): Likewise.
8107         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
8108         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
8109         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
8110         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
8112 2018-12-03  Bruno Haible  <bruno@clisp.org>
8114         hash-set: Add tests.
8115         * tests/test-hash_set.c: New file.
8116         * modules/hash-set-tests: New file.
8118         linkedhash-set: Add tests.
8119         * tests/test-linkedhash_set.c: New file.
8120         * modules/linkedhash-set-tests: New file.
8122         array-set: Add tests.
8123         * tests/test-array_set.c: New file.
8124         * modules/array-set-tests: New file.
8126         xset: New module.
8127         * lib/gl_xset.h: New file.
8128         * lib/gl_xset.c: New file.
8129         * modules/xset: New file.
8131         hash-set: New module.
8132         * lib/gl_hash_set.h: New file.
8133         * lib/gl_hash_set.c: New file.
8134         * modules/hash-set: New file.
8136         linkedhash-set: New module.
8137         * lib/gl_linkedhash_set.h: New file.
8138         * lib/gl_linkedhash_set.c: New file.
8139         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
8140         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
8141         * lib/gl_anyhash_primes.h: New file, extracted from
8142         lib/gl_anyhash_list2.h.
8143         * lib/gl_anyhash_list2.h: Include it.
8144         (primes, next_prime): Remove definitions.
8145         * modules/linkedhash-set: New file.
8146         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
8147         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8148         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
8149         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8150         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
8151         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
8153         array-set: New module.
8154         * lib/gl_array_set.h: New file.
8155         * lib/gl_array_set.c: New file.
8156         * modules/array-set: New file.
8158         set: New module.
8159         * lib/gl_set.h: New file.
8160         * lib/gl_set.c: New file.
8161         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
8162         gl_set.h.
8163         * modules/set: New file.
8165 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
8167         bison: don't force the Yacc mode
8168         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
8169         errors when Bison features are used in the grammar file.  Some of
8170         these features (such as %expect) were flagged non-yacc recently.  Most
8171         of the time, -y is actually used to please Automake's ylwrap which
8172         expects the output to be y.tab.c.
8173         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
8175 2018-12-01  Bruno Haible  <bruno@clisp.org>
8177         gnupload: Document short options.
8178         * build-aux/gnupload (usage): Document the short options.
8180 2018-11-28  Ben Elliston  <bje@gnu.org>
8182         gnupload: Support option -h as alias of --help.
8183         * build-aux/gnupload: Support -h.
8185 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
8187         memrchr: port better to clang
8188         * lib/memrchr.c (__memrchr): Cast to void * instead of to
8189         longword *, to pacify clang -Wcast-align (Bug#33544).
8191 2018-11-29  Eric Blake  <eblake@redhat.com>
8193         docs: mention printf %m considerations
8194         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
8195         is not portable, and is easy enough to work around.
8196         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
8197         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
8198         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
8199         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8200         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8201         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8202         * doc/posix-functions/printf.texi (printf): Likewise.
8203         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
8204         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
8205         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
8206         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8207         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8208         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8210         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8211         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8212         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
8213         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8214         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8216 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
8218         bitset: rename ebitset/expandable.* as tbitset/table.*
8219         See
8220         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
8221         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
8222         * lib/bitset/table.h, lib/bitset/table.c: these.
8223         Rename all the ebitset* symbols as tbitset*.
8224         Adjust dependencies.
8226 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8228         bitset: check the operations
8229         * tests/test-bitset.c (bitset_random): New.
8230         Use it.
8231         * lib/bitset/expandable.c (ebitset_not): Fix typo.
8233 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8235         bitset: properly use false/true instead of 0/1 for Booleans
8236         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
8237         0/1, as Booleans.
8239 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
8241         bitset: rename BITSET_VARRAY as BITSET_VECTOR
8242         For consistency with the name of the file.
8243         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
8244         * lib/bitset/stats.c, lib/bitset/vector.c
8245         (BITSET_VARRAY): Rename as...
8246         (BITSET_VECTOR): this.
8248 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
8250         strerror_r-posix: memmove, not memcpy
8251         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
8252         since the source and destination might overlap in the call
8253         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
8254         Simplify.
8256 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8258         bitsetv: new module
8259         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
8261 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8263         bitset: add tests and doc
8264         First stabs at providing a documentation and test for the bitset
8265         module.
8266         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
8268 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
8270         bitset: new module
8271         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
8272         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
8273         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
8274         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
8275         * lib/bitset/vector.h, modules/bitset:
8276         New.
8278 2018-11-23  Bruno Haible  <bruno@clisp.org>
8280         localename: Fix gettext test failures on mingw.
8281         * lib/localename.c (gl_locale_name_posix): Convert the result of
8282         gl_locale_name_environ to XPG syntax.
8284 2018-11-23  Karl Berry  <karl@freefriends.org>
8286         * config/srclistvars.txt,
8287         * config/srclist.txt: remove all gettext references;
8288         the gettext maintainers will sync as needed.
8290 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
8292         mktime: add libc-config dependency
8293         I missed this when we synced from glibc.
8294         * modules/mktime (Depends-on): Add libc-config.
8296 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8298         longlong: fix comment typo
8299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
8301 2018-11-11  Bruno Haible  <bruno@clisp.org>
8303         havelib: Remove the need to include asm-underscore.m4.
8304         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
8305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
8306         gl_HOST_CPU_C_ABI.
8307         * modules/havelib (Files): Add host-cpu-c-abi.m4.
8308         (Depends-on): Remove host-cpu-c-abi.
8310 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8312         parse-datetime: simplify test for mktime failure
8313         * lib/parse-datetime.y (mktime_ok): Simplify.
8314         Remove args TZ and T; no longer needed.  Callers changed.
8316         posixtm: simplify test for mktime failure
8317         * lib/posixtm.c (posixtime): Simplify.
8319         nstrftime: simplify test for mktime failure
8320         * lib/nstrftime.c (__strftime_internal): Simplify.
8322 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8324         gnulib-common.m4: port _Noreturn to C++
8325         Problem reported by Akim Demaille in:
8326         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
8327         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
8328         Merge adjustments from _Noreturn.h and from glibc into the non-C++
8329         version.
8330         * lib/_Noreturn.h: Match gnulib-common.
8332 2018-10-30  Bruno Haible  <bruno@clisp.org>
8334         gnu-make: Fix for NetBSD 8 'make'.
8335         Reported by Reuben Thomas in
8336         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
8337         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
8338         output, ignoring exit codes.
8340 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
8342         maintainer-makefile: fix syntax-check rule for "same.h"
8343         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
8344         for 'same_nameat', too.
8346 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8348         havelib: fix nested ‘configure’ chatter
8349         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
8350         AC_CACHE_CHECK calls, which resulted in confusing output like
8351         “checking for the common suffixes of directories in the library
8352         search path... checking for 64-bit host... no lib,lib”.
8354         backupfile: tweak for better code
8355         * lib/backupfile.c: Sort include directives, and remove
8356         unnecessary <limits.h> include.
8357         (FALLTHROUGH): New macro, copied from other modules.
8358         (backupfile_internal): Use it to avoid code duplication.
8359         This lets GCC 8.2.1 generate better code by inlining the
8360         call to check_extension.
8362 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8364         backupfile: new dir_fd args
8365         New module opendirat with code taken from fts.
8366         Use this module to let backupfile use a directory file descriptor.
8367         * NEWS: Document the incompatible change.
8368         * lib/backup-find.c (find_backup_file_name):
8369         * lib/backup-rename.c (backup_file_rename):
8370         New arg DIR_FD.
8371         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
8372         (SIZE_MAX): Remove.
8373         Include opendirat.h rather than dirent--.h.
8374         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
8375         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
8376         (backupfile_internal): New arg DIR_FD.  All callers changed.
8377         * lib/fts.c: Include opendirat.h.
8378         (opendirat): Move to opendirat.c.
8379         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
8380         * modules/backupfile (Depends-on): Remove dirfd, opendir.
8381         Add opendirat.
8382         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
8383         Add opendirat.
8385 2018-10-23  Bruno Haible  <bruno@clisp.org>
8387         localename: Simplify support for per-thread locales on Solaris 11.4.
8388         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
8389         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
8390         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
8391         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
8392         specific code.
8393         * lib/localename-table.h: Update comments.
8394         * lib/localename-table.c: Update comments.
8395         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
8396         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
8397         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
8398         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
8399         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
8400         HAVE_NAMELESS_LOCALES here.
8401         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
8402         m4/intlsolaris.m4.
8403         * modules/gettext (Files): Likewise.
8405 2018-10-22  Bruno Haible  <bruno@clisp.org>
8407         std-gnu11: Support Autoconf versions < 2.64.
8408         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
8409         when _AC_DO_LIMIT does not exist.
8411 2018-10-22  Bruno Haible  <bruno@clisp.org>
8413         Assume Autoconf >= 2.63.
8414         * DEPENDENCIES: Mention the requirement.
8416         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
8417         (func_get_filelist): Don't list m4/onceonly.m4 any more.
8418         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8419         * m4/onceonly.m4: Remove file.
8421         * m4/openmp.m4: Remove file.
8422         * modules/openmp (Files): Remove m4/openmp.m4.
8424         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
8425         htmldir, dvidir, pdfdir, psdir, localedir.
8426         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
8428         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
8429         Autoconf < 2.60.
8430         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
8431         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
8433         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
8434         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
8435         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
8437         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
8438         exists.
8439         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
8441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
8442         Autoconf < 2.61.
8444         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
8445         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
8446         Autoconf >= 2.52.
8448         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
8449         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
8450         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
8452 2018-10-22  Bruno Haible  <bruno@clisp.org>
8454         Assume Automake >= 1.11.
8455         * m4/configmake.m4: Update comments.
8456         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
8457         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
8458         of 'eval'.
8459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
8460         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
8461         requires Automake >= 1.11.
8463 2018-10-22  Bruno Haible  <bruno@clisp.org>
8465         localename: Fix typo in comment.
8466         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
8468 2018-10-22  Bruno Haible  <bruno@clisp.org>
8470         Fix failure of 'gnulib-tool --create-testdir' with all modules.
8471         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
8473 2018-10-21  Bruno Haible  <bruno@clisp.org>
8475         locale: Ease integration with GNU libintl.
8476         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
8477         GNULIB_defined_freelocale): New macros.
8479 2018-10-21  Bruno Haible  <bruno@clisp.org>
8481         localename: Fine-tune support for per-thread locales on Solaris 11.4.
8482         * lib/localename-table.h: New file, extracted from lib/localename.c.
8483         * lib/localename-table.c: Likewise.
8484         * lib/localename.c: Include localename-table.h.
8485         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
8486         locale_hash_function instead of pointer_hash.
8487         * modules/localename (Files): Add lib/localename-table.h,
8488         lib/localename-table.c.
8489         (lib_SOURCES): Add localename-table.c.
8490         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
8491         for Solaris 11.4 locale system only on Solaris. Test for it
8492         independently whether getlocalename_l exists.
8493         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
8494         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
8495         HAVE_NAMELESS_LOCALES.
8496         * modules/gettext (Files): Add m4/intlsolaris.m4.
8498 2018-10-21  Bruno Haible  <bruno@clisp.org>
8500         Small update from gettext.
8501         * m4/intl.m4: Update from gettext:
8502         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
8503         mode on AIX.
8504         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
8505         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
8507 2018-10-16  Bruno Haible  <bruno@clisp.org>
8509         mountlist: Remove support for Cray with UNICOS 9.
8510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
8511         MOUNTED_LISTMNTENT.
8512         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
8514 2018-10-16  Bruno Haible  <bruno@clisp.org>
8516         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
8517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
8518         STAT_STATFS2_FS_DATA.
8519         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
8520         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
8521         MOUNTED_GETMNT.
8522         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
8523         * lib/getloadavg.c (decstation): Remove definition and case.
8524         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
8525         * lib/getgroups.c: Likewise.
8526         * doc/posix-functions/getgroups.texi: Likewise.
8527         * lib/time.in.h: Update comments.
8529 2018-10-16  Bruno Haible  <bruno@clisp.org>
8531         getloadavg: Remove support for ConvexOS.
8532         * lib/getloadavg.c: Remove convex case.
8534 2018-10-16  Bruno Haible  <bruno@clisp.org>
8536         getloadavg: Remove support for Sony NEWS.
8537         * lib/getloadavg.c: Remove sony_news case.
8539 2018-10-16  Bruno Haible  <bruno@clisp.org>
8541         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
8542         * lib/fsusage.c: Remove _SEQUENT_ case.
8543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
8544         * lib/mountlist.c: Don't test for MNTTABNAME.
8545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
8546         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
8547         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
8548         * lib/stat-size.h: Don't mention the Sequent bug.
8549         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
8551 2018-10-16  Bruno Haible  <bruno@clisp.org>
8553         fsusage: Remove support for AIX 3.
8554         * lib/fsusage.c: Remove code for AIX 3.
8555         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
8557 2018-10-16  Bruno Haible  <bruno@clisp.org>
8559         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
8560         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
8561         * lib/fsusage.c: Remove code for AIX PS/2.
8562         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
8563         * lib/getloadavg.c: Likewise.
8565 2018-10-16  Bruno Haible  <bruno@clisp.org>
8567         getloadavg: Remove support for HP-UX on m68k.
8568         * lib/getloadavg.c: Remove hp9000s300 case.
8570 2018-10-16  Bruno Haible  <bruno@clisp.org>
8572         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
8573         * lib/fsusage.c: Remove DOLPHIN case.
8574         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
8575         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
8577 2018-10-16  Bruno Haible  <bruno@clisp.org>
8579         getloadavg: Remove support for Alliant FX/2800.
8580         * lib/getloadavg.c: Remove alliant case.
8582 2018-10-16  Bruno Haible  <bruno@clisp.org>
8584         getloadavg: Remove support for tek4300.
8585         * lib/getloadavg.c: Remove tek4300 case.
8587 2018-10-16  Bruno Haible  <bruno@clisp.org>
8589         getloadavg: Remove support for Ardent.
8590         * lib/getloadavg.c: Remove ardent case.
8592 2018-10-16  Bruno Haible  <bruno@clisp.org>
8594         mountlist: Remove support for SVR2.
8595         Reported by Andrew Borodin <aborodin@vmail.ru> in
8596         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
8597         * lib/mountlist.c: Remove MOUNTED_FREAD case.
8598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
8599         MOUNTED_FREAD.
8601 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8603         libc-config: merge from glibc
8604         * lib/cdefs.h (__glibc_has_attribute): New macro.
8606         regex: depend on libc-config
8607         * modules/regex (Depends-on): Add libc-config.
8608         This is needed after the recent autoupdate from glibc.
8610 2018-10-14  Bruno Haible  <bruno@clisp.org>
8612         localename: Add support for per-thread locales on Solaris 11.4.
8613         * lib/locale.in.h (newlocale, freelocale): New declarations.
8614         (duplocale): Declare also when the 'localename' module requests it.
8615         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
8616         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
8617         (struniq): Update.
8618         (struct locale_categories_names, struct locale_hash_node): New types.
8619         (LOCALE_HASH_TABLE_SIZE): New constant.
8620         (locale_hash_table, locale_lock): New variables.
8621         (pointer_hash, get_locale_t_name): New functions.
8622         (newlocale, duplocale, freelocale): New overridden functions.
8623         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
8624         * m4/intlsolaris.m4: New file.
8625         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
8626         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
8627         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
8628         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
8629         declared.
8630         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
8631         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
8632         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
8633         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
8634         * modules/localename (Files): Add intlsolaris.m4.
8635         (Depends-on): Add 'locale'.
8636         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
8637         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
8638         the signatures.
8640 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
8642         timevar: use gethrxtime to get wall clock time
8643         clock_gettime is not portable.  gethrxtime takes the best available
8644         option to get the wall clock time, including clock_gettime (monotonic
8645         clock), and gettime (non monotonic).
8646         Also, using xtime_t instead of float preserves the precision.
8647         Suggested by Bruno Haible.
8648         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
8649         * modules/timevar (Depends-on): We need gethrxtime.
8650         We no longer use times().
8651         (Link): Update.
8652         * lib/timevar.h (timevar_time_def): Use xtime_t.
8653         * lib/timevar.c (set_to_current_time): Use gethrxtime.
8654         (timevar_print): Instead of checking whether the timings themselves
8655         are large enough for the timevar to be printed, check the percentages.
8657 2018-10-14  Bruno Haible  <bruno@clisp.org>
8659         wcsnrtombs: Work around Solaris 11.4 bug.
8660         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
8661         macro.
8662         (gl_FUNC_WCSNRTOMBS): Invoke it.
8663         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
8665 2018-10-14  Bruno Haible  <bruno@clisp.org>
8667         mbsnrtowcs: Work around Solaris 11.4 bug.
8668         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
8669         macro.
8670         (gl_FUNC_MBSNRTOWCS): Invoke it.
8671         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
8673 2018-10-14  Bruno Haible  <bruno@clisp.org>
8675         doc: Update for Solaris 11.4.
8676         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
8677         mention Solaris 11.4.
8678         * m4/printf.m4: Update comments about Solaris.
8679         * m4/log.m4: Likewise.
8680         * m4/log10.m4: Likewise.
8681         * m4/logb.m4: Likewise.
8682         * m4/logbf.m4: Likewise.
8683         * m4/logbl.m4: Likewise.
8684         * m4/rename.m4: Likewise.
8685         * m4/wcrtomb.m4: Likewise.
8686         * m4/hostent.m4: Likewise.
8687         * m4/servent.m4: Likewise.
8689 2018-10-14  Bruno Haible  <bruno@clisp.org>
8691         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
8692         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
8693         pointer.
8694         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
8695         pointer.
8696         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
8697         pointer.
8698         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
8699         pointer.
8700         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
8701         pointer.
8703 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
8705         bootstrap: fix wget command for po files.
8706         * build-aux/bootstrap (po_download_command_format): Fix comment,
8707         and adjust callers.
8709 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
8711         timevar: improve the output format
8712         Suggested by Bruno Haible.
8713         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
8714         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
8715         wall, since its resolution is much higher.
8717 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
8719         timevar: expect that getrusage is available.
8720         Don't keep both times and getrusage as backend: both are guaranteed by
8721         gnulib, a single one suffices.  Using getrusage is open to possibly
8722         tracking other types of resources in the future.
8723         * modules/timevar (Depends-on): Add getrusage.
8724         (configure.ac): Remove gl_TIMEVAR.
8725         (Files): Remove m4/timevar.m4.
8726         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
8727         * lib/timevar.h (timevar_enabled): Clarify documentation.
8728         * lib/timevar.c: Remove all the code about times.
8729         Remove all the CPP guards about getrusage: expect it to be present
8730         (courtesy of gnulib).
8732 2018-10-12  Bruno Haible  <bruno@clisp.org>
8734         mountlist: Improve support for Solaris in 64-bit mode.
8735         Reported by David Wood <David.Wood@deshaw.com> in
8736         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
8737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
8738         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
8739         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
8741 2018-10-12  Bruno Haible  <bruno@clisp.org>
8743         mountlist: Add support for Minix.
8744         Reported by Assaf Gordon in
8745         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
8746         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
8747         AC_CHECK_FUNCS to check for 'getmntinfo'.
8748         * lib/mountlist.c: Update comments.
8750 2018-10-12  Bruno Haible  <bruno@clisp.org>
8752         Make better use of Autoconf.
8753         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
8754         * m4/manywarnings.m4: Likewise.
8755         * m4/manywarnings-c++.m4: Likewise.
8756         * m4/socklen.m4: Likewise.
8757         * m4/sockpfaf.m4: Likewise.
8758         * m4/stdarg.m4: Likewise.
8759         * m4/visibility.m4: Likewise.
8760         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
8761         indentation.
8762         * m4/ls-mntd-fs.m4: Likewise.
8764 2018-10-11  Bruno Haible  <bruno@clisp.org>
8766         mountlist: Modernize platform lists.
8767         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
8768         platforms, deemphasizing the obsolete ones.
8769         * lib/mountlist.c: Likewise.
8771 2018-10-11  Bruno Haible  <bruno@clisp.org>
8773         getprogname: Add support for 32-bit programs on HP-UX.
8774         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
8775         try the similar functions 32-bit programs on 64-bit HP-UX.
8777 2018-10-11  Bruno Haible  <bruno@clisp.org>
8779         getprogname: Work around program name truncation when possible.
8780         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
8781         possibly use pst_cmd instead.
8783 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8785         fts: cleanup after FTS_NOATIME removal
8786         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
8787         (FTS_STOP): Shrink to minimal values.  We don’t need to
8788         worry about binary compatibility in Gnulib, and the old way
8789         of doing things had a hole in the user options that caused
8790         FTS_OPTIONMASK to not work as desired.
8792 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
8794         fts: remove FTS_NOATIME
8795         This reverts commit da4d6974013c822af1498941e32db774b2031765.
8796         We cannot guarantee that O_NOATIME works: e.g. openat fails
8797         with EPERM if the effective user ID of the caller does not match
8798         the owner of the file and the caller is not privileged.
8799         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
8800         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
8801         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
8802         (FTS_OPTIONMASK): Adjust.
8803         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
8804         (fd_ring_check): Likewise.
8806 2018-10-08  Bruno Haible  <bruno@clisp.org>
8808         csharpcomp*, csharpexec*: Remove support for pnet.
8809         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
8810         HAVE_CSCC.
8811         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
8812         Don't test HAVE_CSCC.
8813         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
8814         (compile_csharp_class): Don't invoke it.
8815         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
8816         HAVE_ILRUN.
8817         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
8818         Don't test HAVE_ILRUN.
8819         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
8820         (execute_csharp_program): Don't invoke it.
8821         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
8822         any more.
8824 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
8826         renameatu: prefer renameat2 to syscall
8827         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
8828         Use renameat2 instead of syscall (Bug#32796).
8829         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
8831 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
8833         bootstrap, gnulib-tool: use https instead of insecure rsync
8834         * build-aux/bootstrap (download_po_files, po_download_command_format):
8835         Don't try using rsync; always use wget over https to fetch PO files.
8836         * gnulib-tool (func_import): Likewise.
8837         * pygnulib/GLImport.py (GLImport.execute): Likewise.
8839 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
8841         bootstrap, gnulib-tool: correct the translations wget command
8842         * build-aux/bootstrap (po_download_command_format2): Restrict
8843         recursion to a single level.
8844         * gnulib-tool (func_import): Likewise.
8845         * pygnulib/GLImport.py (GLImport.execute): Likewise.
8847 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
8849         doc: the gnulib snapshots are not maintained
8850         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
8852 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
8854         timevar: add to lib_SOURCES
8855         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
8857 2018-10-07  Bruno Haible  <bruno@clisp.org>
8859         dirent: Update documentation.
8860         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
8862 2018-10-05  Bruno Haible  <bruno@clisp.org>
8864         strpbrk: Make it possible to namespace the defined symbol.
8865         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
8867 2018-10-05  Bruno Haible  <bruno@clisp.org>
8869         strcspn: Make it possible to namespace the defined symbol.
8870         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
8872 2018-10-05  Bruno Haible  <bruno@clisp.org>
8874         raise: Make it possible to namespace the defined symbol.
8875         * lib/raise.c (raise): Undefine only after the replacement function has
8876         been defined.
8877         (raise): Renamed from rpl_raise.
8878         (raise_nothrow): Move to the end of the compilation unit.
8880 2018-10-05  Bruno Haible  <bruno@clisp.org>
8882         memcmp: Make it possible to namespace the defined symbol.
8883         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
8885 2018-10-05  Bruno Haible  <bruno@clisp.org>
8887         explicit_bzero: Make it possible to namespace the defined symbol.
8888         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
8889         glibc.
8891 2018-10-05  Bruno Haible  <bruno@clisp.org>
8893         mkdir-p: Depend on 'mkdir'.
8894         * modules/mkdir-p (Depends-on): Add 'mkdir'.
8896 2018-10-05  Bruno Haible  <bruno@clisp.org>
8898         tempname: Depend on 'mkdir'.
8899         Reported by Maarten Bosmans <mkbosmans@gmail.com>
8900         at <https://savannah.gnu.org/bugs/?33379>.
8901         * modules/tempname (Depends-on): Add 'mkdir'.
8903 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
8905         timevar: rely on gnulib modules for time portability.
8906         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
8907         * m4/timevar.m4: Don't check for clock_t and struct tms,
8908         guaranteed by gnulib.
8909         * lib/timevar.h: Use extern "C" protection.
8910         Include <stdio.h> for FILE.
8911         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
8912         they are guaranteed by gnulib.
8913         Remove uses of clock as (now useless) fallback.
8915 2018-10-04  Bruno Haible  <bruno@clisp.org>
8917         sh-filename: New module.
8918         * m4/sh-filename.m4: New file.
8919         * modules/sh-filename: New file.
8920         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
8921         "/bin/sh".
8922         * tests/test-posix_spawn1.c (main): Likewise.
8923         * tests/test-posix_spawn2.c (main): Likewise.
8924         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
8925         is_envjavac_gcj43): Likewise.
8926         * lib/javaexec.c (execute_java_class): Likewise.
8927         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
8928         * modules/posix_spawnp-tests (Depends-on): Likewise.
8929         * modules/javacomp (Depends-on): Likewise.
8930         * modules/javaexec (Depends-on): Likewise.
8932 2018-10-04  Bruno Haible  <bruno@clisp.org>
8934         spawn-pipe tests: Avoid test failure on native Windows.
8935         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
8936         that fd 2 is closed.
8938 2018-10-04  Bruno Haible  <bruno@clisp.org>
8940         fcntl: Make it possible to namespace the defined symbol.
8941         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
8942         been defined.
8943         (fcntl): Renamed from rpl_fcntl.
8944         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
8945         from fcntl.
8946         (klibc_fcntl): Move to the end of the compilation unit.
8948 2018-10-02  Bruno Haible  <bruno@clisp.org>
8950         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
8951         * tests/test-vasnprintf.c (test_function): Change the test added on
8952         2018-09-23 to check only the 18 most significant digits.
8954         vasnprintf tests: Avoid test failure on Cygwin.
8955         * tests/test-vasnprintf.c (test_function): Change the test added on
8956         2018-09-23 to check only the 42 most significant digits.
8958 2018-10-01  Bruno Haible  <bruno@clisp.org>
8960         mkostemp, mkostemps: Update documentation.
8961         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
8962         * doc/glibc-functions/mkostemps.texi: Likewise.
8964 2018-10-01  Tom Tromey  <tom@tromey.com>
8966         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
8967         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
8968         on OS X.
8970 2018-09-30  Pádraig Brady  <P@draigBrady.com>
8972         hmac-*: refactor to remove repetitive code
8973         * lib/hmac.c: A new parameterized single implementation.
8974         * lib/hmac-md5.c: Define parameters and include implementation.
8975         * lib/hmac-sha1.c: Likewise.
8976         * lib/hmac-sha256.c: Likewise.
8977         * lib/hmac-sha512.c: Likewise.
8978         * modules/crypto/hmac-md5: Reference the new implementation file.
8979         * modules/crypto/hmac-sha1: Likewise.
8980         * modules/crypto/hmac-sha256: Likewise.
8981         * modules/crypto/hmac-sha512: Likewise.
8982         * tests/test-hmac-md5.c: Refactor common code to a single function.
8983         * tests/test-hmac-sha1.c: Likewise.
8984         * tests/test-hmac-sha256.c: Likewise.
8985         * tests/test-hmac-sha512.c: Likewise.
8987 2018-09-30  Zhang Qing  <zhangqingl@126.com>
8989         hmac-sha512: fix hash for keys > blocksize (128 bytes)
8990         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
8991         key length to that output by sha512, not the blocksize.
8992         Otherwise uninitialized data from the stack
8993         is used when computing the hash.
8994         * tests/test-hmac-sha512.c: Add a shortened key test case.
8995         Reported at https://github.com/coreutils/gnulib/pull/5
8997 2018-09-30  Bruno Haible  <bruno@clisp.org>
8999         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
9000         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
9001         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
9002         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
9003         'unsigned int' before comparison with an unsigned value.
9005 2018-09-30  Bruno Haible  <bruno@clisp.org>
9007         grantpt: Remove unnecessary dependency.
9008         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
9010 2018-09-30  Bruno Haible  <bruno@clisp.org>
9012         timevar: Small tweaks.
9013         * lib/timevar.h: Fix comments. Add parameter names to function
9014         declarations.
9015         * lib/timevar.c: Include timevar.h immediately after config.h.
9016         * lib/timevar.def: Fix comments.
9017         * modules/timevar (Maintainer): List Akim Demaille.
9019 2018-09-30  Bruno Haible  <bruno@clisp.org>
9021         timevar: Include documentation in gnulib manual.
9022         * doc/timevar.texi: Change node and section name to 'Profiling of
9023         program phases'.
9024         In the code snippets, tweak the #includes and use GNU coding style.
9025         * doc/gnulib.texi: Include timevar.texi.
9027 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
9029         timevar: import from Bison.
9030         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
9031         New files.
9032         * lib/timevar.def: New file.
9033         * doc/timevar.texi: New file.
9035 2018-09-26  Bruno Haible  <bruno@clisp.org>
9037         javacomp-script, javacomp: Add preliminary support for Java 12..17.
9038         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
9039         * lib/javacomp.c (default_target_version): Likewise.
9041 2018-09-26  Bruno Haible  <bruno@clisp.org>
9043         javacomp-script, javacomp: Add support for Java 11.
9044         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
9045         target-version 11.
9046         * lib/javaversion.h: Update comments.
9047         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
9048         source_version_index, get_goodcode_snippet, get_failcode_snippet,
9049         TARGET_VERSION_BOUND, target_version_index,
9050         corresponding_classfile_version): Accept source_version 11 and
9051         target_version 11.
9052         * lib/javacomp.h: Update comments accordingly.
9054 2018-09-23  Bruno Haible  <bruno@clisp.org>
9056         vasnprintf: Fix heap memory overrun bug.
9057         Reported by Ben Pfaff <blp@cs.stanford.edu> in
9058         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
9059         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
9060         memory.
9061         * tests/test-vasnprintf.c (test_function): Add another test.
9063 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9065         maint: mktime.c now shared with glibc
9066         * config/srclist.txt: intprops.h, timegm.c and mktime.c
9067         are now the same in Gnulib and glibc.
9069         mktime: fix _LIBC typo
9070         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
9072 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9074         dfa: optimization for state merge
9075         * lib/dfa.c (merge2): New function.
9076         (merge_nfa_state): Use it.
9078 2018-09-18  Jim Meyering  <meyering@fb.com>
9080         dfa: trivial comment fix: s/is/if/
9081         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
9083 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9085         dfa: use more-informative function name
9086         * lib/dfa.c (maybe_disable_superset_dfa):
9087         Rename from dfautf8noss.  Use change.
9089         dfa: tweak allocation performance
9090         * lib/dfa.c (merge_nfa_state, dfaoptimize):
9091         Prefer ptrdiff_t for indexes some more.
9092         Use char for flags, as it’s wide enough.
9093         Allocate queue and flags together, with one malloc call.
9094         No need to use xnmalloc since the multiplication and
9095         addition cannot overflow (it’s already been checked by
9096         earlier allocation).  Prefer memset to open-coding.
9098         dfa: prune states as we go
9099         * lib/dfa.c (prune): Remove.
9100         dfa: reorder enum for efficiency
9101         (merge_nfa_state): Prune as we go instead of at the end.
9102         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
9104         * lib/dfa.c (END): Now -1 again.  Reorder other elements
9105         of the enumeration to make it easier for GCC to generate
9106         efficient code by using fewer comparisons to check for
9107         ranges of values.
9108         (atom): Take advantage of the reordering.
9110 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9112         dfa: optimize alternation in NFA
9113         Even when similar states exist in alternation, the DFA treats them
9114         as separate items, which may complicate the transition in NFA and
9115         cause slowdown.  This change assembles the states into one.  For
9116         example, ab|ac is changed into a(b|c).  This change speeds-up
9117         matching for many branched patterns.  For example, grep speeds up
9118         more than 30× in:
9120           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
9121           time -p env LC_ALL=C grep -vf in in
9123         * lib/dfa.c (prune): New function.
9124         (merge_nfa_state): New function.  It merges similar NFA states.
9125         (dfaoptimize): New function.  It seeks merged and removed nodes.
9126         (dfaanalyze): Call new function.
9127         (dfautf8noss): Change name from dfaoptimize because of addition of new
9128         function.
9129         (dfacomp): Update caller.
9131         dfa: simplify initial state
9132         Simplifying the initial state enables easier optimization of the NFA.
9133         * lib/dfa.c (enum token): Add new element BEG.
9134         (prtok): Adjust due to adding element BEG.
9135         (dfaparse): Put BEG at a head of tokens.
9136         (state_index): Adjust due to adding element BEG.
9137         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
9138         build initial state.
9139         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
9141 2018-09-18  Bruno Haible  <bruno@clisp.org>
9143         file-has-acl: Fix test failure on Cygwin 2.9.
9144         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
9145         * lib/acl-internal.h: Likewise.
9146         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
9147         * lib/acl-internal.c: Update comments regarding Cygwin.
9148         * lib/acl_entries.c: Likewise.
9149         * lib/file-has-acl.c: Likewise.
9150         (file_has_acl): For Cygwin, use a different way to determine whether
9151         the "default" ACL of a directory is nontrivial.
9152         * lib/get-permissions.c: Update comments regarding Cygwin.
9153         * lib/set-permissions.c: Likewise.
9155 2018-09-18  Bruno Haible  <bruno@clisp.org>
9157         stat-time tests: Fix test failure on Cygwin.
9158         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
9160 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9162         doc: OS X 10.11 lacked ns time functions
9163         According to <https://github.com/zeromq/libzmq/issues/2175>,
9164         nanosecond-resolution timestamp functions were introduced
9165         in macOS 10.12, so document the last version (OS X 10.11)
9166         where they were absent.
9168         gettime: nanotime never existed
9169         Problem reported by Bruno Haible in:
9170         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
9171         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
9172         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
9174 2018-09-18  Bruno Haible  <bruno@clisp.org>
9176         doc: Update statement about target platforms.
9177         Reported by Simon Sobisch.
9178         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
9179         restrictions on MSVC versions.
9181 2018-09-18  Bruno Haible  <bruno@clisp.org>
9183         posix_spawn tests: Fix link error on 64-bit Cygwin.
9184         * tests/test-posix_spawn1.c (environ): Remove declaration.
9185         * tests/test-posix_spawn2.c (environ): Likewise.
9186         * tests/test-posix_spawn3.c (environ): Likewise.
9187         * tests/test-posix_spawn4.c (environ): Likewise.
9188         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
9189         * modules/posix_spawnp-tests (Depends-on): Likewise.
9191 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9193         timespec: new function current_timespec
9194         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
9195         and don’t worry about it failing on a CLOCK_REALTIME arg.
9196         POSIX requires it to succeed and I don’t know of any
9197         counterexamples where the fallbacks would work.
9198         (current_timespec): New function, taken from Emacs.  It is more
9199         convenient than gettime, and can help register allocation.
9200         * lib/timespec.h: Include arg-nonnull.h.
9201         (current_timespec): New declaration.
9202         (gettime, settime): Declare args to be nonnull.
9203         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
9205 2018-09-16  Bruno Haible  <bruno@clisp.org>
9207         setlocale: Improve locale handling on macOS 10.12 or newer.
9208         * lib/setlocale.c: Include header files for CoreFoundation. Declare
9209         gl_locale_name_canonicalize.
9210         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
9211         and LC_MESSAGES.
9212         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
9214 2018-09-16  Bruno Haible  <bruno@clisp.org>
9216         Update list of locale names with scripts on macOS.
9217         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
9218         match Mac OS X 10.13 and recent glibc.
9220 2018-09-16  Bruno Haible  <bruno@clisp.org>
9222         gettext: Use newer macOS APIs when possible.
9223         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
9224         CFLocaleCopyPreferredLanguages.
9226 2018-09-16  Bruno Haible  <bruno@clisp.org>
9228         localename: Revisit macOS specific code.
9229         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
9230         Fix comments about Mac OS X versions.
9232 2018-09-15  Bruno Haible  <bruno@clisp.org>
9234         setlocale: Improve support for locales not supported by libc.
9235         Reported by Dapeng Gao <peter@dpgao.cc> at
9236         <https://savannah.gnu.org/bugs/?54479>.
9237         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
9238         (libintl_setlocale): Use a more error-tolerant strategy when the locale
9239         to be set is not supported by libc: Emit warnings instead of failing.
9241 2018-09-15  Bruno Haible  <bruno@clisp.org>
9243         strstr, strcasestr: Add workaround against glibc-2.28 bug.
9244         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
9245         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
9246         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
9247         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
9248         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
9249         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
9250         * doc/glibc-functions/strcasestr.texi: Likewise.
9252 2018-09-14  Bruno Haible  <bruno@clisp.org>
9254         doc: Fix bottom of top-level page.
9255         Reported by Akim Demaille <akim.demaille@gmail.com> in
9256         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
9257         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
9258         mode.
9259         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
9260         accordingly.
9262 2018-09-12  Bruno Haible  <bruno@clisp.org>
9264         Add test case from a recent glibc bug.
9265         * tests/test-strstr.c (main): Add test of long needle.
9266         * tests/test-strcasestr.c (main): Likewise.
9267         * tests/test-c-strstr.c (main): Likewise.
9268         * tests/test-c-strcasestr.c (main): Likewise.
9269         * tests/test-memmem.c (main): Likewise.
9271 2018-09-12  Bruno Haible  <bruno@clisp.org>
9273         Apply Eric Blake's improvements from 2011-02-25 to more tests.
9274         * tests/test-c-strstr.c (main): Add the same tests here as well.
9276 2018-09-12  Bruno Haible  <bruno@clisp.org>
9278         Apply Jim Meyering's fix from 2015-01-11 to more tests.
9279         * tests/test-memmem.c (main): Free haystack.
9280         * tests/test-strcasestr.c (main): Likewise.
9281         * tests/test-c-strcasestr.c (main): Likewise.
9283 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9285         xstrtol: fix missing-TYPE_SIGNED typo
9286         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
9288 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9290         timespec: fix resolution confusion
9291         In normal usage, clock resolution is given in seconds, but the
9292         code was mistakenly using inverse seconds and calling it
9293         “resolution”.  Fix this, partly by renaming two identifiers.
9294         The old names will be kept for a bit, to ease transition.
9295         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
9296         New constants, replacing TIMESPEC_RESOLUTION and
9297         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
9298         All uses changed.
9300 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
9302         mktime: simplify in prep for glibc merge
9303         * lib/mktime.c, lib/timegm.c [_LIBC]:
9304         Include mktime-internal.h (a small file just for glibc)
9305         instead of using a typedef.
9307 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9309         intprops: minor clarification of code
9310         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
9311         Use _GL_INT_CONVERT rather than reinventing it.
9313 2018-09-07  Bruno Haible  <bruno@clisp.org>
9315         Fix a comment.
9316         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
9318 2018-09-07  Bruno Haible  <bruno@clisp.org>
9320         posix_spawn_file_actions_addchdir: Add tests.
9321         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
9322         * tests/test-posix_spawn4.c: New file.
9323         * modules/posix_spawn_file_actions_addchdir-tests: New file.
9325 2018-09-07  Bruno Haible  <bruno@clisp.org>
9327         posix_spawn_file_actions_addchdir: New module.
9328         Suggested by Eric Blake in
9329         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
9330         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
9331         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
9332         union member 'chdir_action'.
9333         * lib/spawn_faction_addchdir.c: New file.
9334         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
9335         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
9336         HAVE_WORKING_POSIX_SPAWN.
9337         * lib/spawn_faction_adddup2.c: Likewise.
9338         * lib/spawn_faction_addopen.c: Likewise.
9339         * m4/posix_spawn_faction_addchdir.m4: New file.
9340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9341         'posix_spawn_file_actions_addchdir' is present and whether
9342         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
9343         instead of HAVE_WORKING_POSIX_SPAWN.
9344         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9345         posix_spawn_file_actions_addchdir is declared.
9346         (gl_SPAWN_H_DEFAULTS): Initialize
9347         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9348         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9349         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9350         * modules/spawn (Makefile.am): Substitute
9351         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9352         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
9353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
9354         * modules/posix_spawn_file_actions_addchdir: New file.
9355         * modules/posix_spawn_file_actions_addclose (Depends-on,
9356         configure.ac): Test also REPLACE_POSIX_SPAWN.
9357         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
9358         configure.ac): Likewise.
9359         * modules/posix_spawn_file_actions_addopen (Depends-on,
9360         configure.ac): Likewise.
9361         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
9362         signature.
9363         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9364         * doc/posix-functions/posix_spawnp.texi: Likewise.
9366 2018-09-06  Bruno Haible  <bruno@clisp.org>
9368         stddef: Override max_align_t on NetBSD 8.0/x86.
9369         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
9370         the value of __alignof__ (max_align_t).
9371         * doc/posix-headers/stddef.texi: Mention the issue.
9373 2018-09-06  Bruno Haible  <bruno@clisp.org>
9375         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
9376         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
9377         system fcntl.
9378         * doc/posix-functions/fcntl.texi: Document the issue.
9380 2018-09-06  Bruno Haible  <bruno@clisp.org>
9382         count-trailing-zeros tests: Rely on limits-h module.
9383         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
9384         definition.
9385         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
9387 2018-09-06  Bruno Haible  <bruno@clisp.org>
9389         count-leading-zeros tests: Rely on limits-h module.
9390         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
9391         definition.
9392         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
9394 2018-09-06  Bruno Haible  <bruno@clisp.org>
9396         count-one-bits tests: Rely on limits-h module.
9397         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
9398         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
9400 2018-09-06  Bruno Haible  <bruno@clisp.org>
9402         xstrtoll: Rely on limits-h module.
9403         * lib/xstrtol.c: Don't include intprops.h.
9404         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9405         * modules/xstrtol (Depends-on): Remove 'intprops'.
9406         * modules/xstrtoll (Depends-on): Add 'limits-h'.
9408 2018-09-06  Bruno Haible  <bruno@clisp.org>
9410         strtoll, strtoull: Rely on limits-h module.
9411         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
9412         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
9413         * modules/strtoll (Depends-on): Add limits-h.
9414         * modules/strtoull (Depends-on): Likewise.
9416 2018-09-06  Bruno Haible  <bruno@clisp.org>
9418         intprops tests: Fix compilation error with pre-C99 compiler.
9419         * tests/test-intprops.c (verify_stmt): New macro.
9420         (VERIFY, main): Use it.
9422 2018-09-06  Bruno Haible  <bruno@clisp.org>
9424         limits-h: Provide numerical limits macros.
9425         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
9426         IRIX and for GCC.
9427         (WORD_BIT, LONG_BIT): Define.
9428         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
9429         <limits.h> does not define LLONG_MAX or WORD_BIT.
9430         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
9431         TYPE_MAXIMUM): New macros, from intprops.h.
9432         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
9433         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
9434         provides.
9436 2018-09-05  Bruno Haible  <bruno@clisp.org>
9438         fcntl: Don't access nonexistent optional argument.
9439         Reported by Frank Busse <f.busse@imperial.ac.uk> in
9440         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
9441         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
9442         don't consume an argument. For actions that take an 'int' argument,
9443         consume an 'int' argument.
9445 2018-09-05  Eric Blake  <eblake@redhat.com>
9447         doc: mention environ pitfall
9448         * doc/posix-functions/environ.texi (environ): Assigning NULL to
9449         environ is a glibc extension.
9451 2018-09-03  Bruno Haible  <bruno@clisp.org>
9453         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
9454         Reported by Antoine Luong <antoine.luong@c-s.fr> in
9455         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
9456         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
9457         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
9458         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
9460 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9462         mktime: fix unlikely race+overflow bug
9463         Problem reported by Alexandre Oliva in:
9464         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
9465         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
9466         to avoid an unlikely race if the compiler delays a load and
9467         if this cascades into a signed integer overflow.
9469 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9471         mktime, timegm: simplify glibc time64_t
9472         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
9473         Now long int, not time_t, since long int is the longstanding type
9474         for this in glibc and there is no need to change it even if time_t
9475         becomes 64 bits - even int would do, though this would be a change
9476         to the glibc generated code.  When this change is merged into
9477         glibc, it should simplify the time_t vs time64_t situation.
9479         mktime, timegm: simplify merge to glibc
9480         Move code around to make a merge to glibc easier to audit.
9481         This should not change behavior.
9482         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9483         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9484         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9485         simplify later conditionals; default the others to zero.  In uses
9486         of these conditionals, explicitly spell out how _LIBC affects
9487         things, so it’s easier to review from a glibc viewpoint.
9488         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9489         compartmentalize tzset issues.  Move system-dependent tzsettish
9490         code here from mktime.
9491         (mktime): Move tzsettish code to my_tzset, and move
9492         localtime_offset to within mktime so that it doesn’t
9493         need a separate ifdef.
9495 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9497         intprops: avoid evaluation of some expressions
9498         This makes EXPR_SIGNED (e) easier to use, as it no longer
9499         evaluates the expression E.  Formerly, E was required to be free
9500         of side effects.
9501         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
9502         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
9503         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
9505 2018-08-23  Bruno Haible  <bruno@clisp.org>
9507         getcwd: Add cross-compilation guesses.
9508         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
9509         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
9510         Based on a patch by Paul Eggert.
9511         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
9512         guesses for all GNU systems.
9514 2018-08-19  Bruno Haible  <bruno@clisp.org>
9516         glob-h: Formalize side effects from other modules.
9517         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
9518         * m4/glob.m4 (gl_GLOB): Invoke it.
9520         fnmatch-h: Formalize side effects from other modules.
9521         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
9522         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
9524         limits-h: Formalize side effects from other modules.
9525         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
9526         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
9528 2018-08-19  Bruno Haible  <bruno@clisp.org>
9530         getpass: Move declaration to <unistd.h>.
9531         * lib/unistd.in.h (getpass): New declaration.
9532         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
9533         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
9534         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
9535         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
9536         On glibc systems, don't set REPLACE_GETPASS to 1.
9537         * modules/getpass (Depends-on): Add 'unistd'.
9538         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
9539         (Include): Specify <unistd.h> instead of "getpass.h".
9540         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
9541         (configure.ac): Sync with the configure.ac section of modules/getpass.
9542         (Include): Specify <unistd.h> instead of "getpass.h".
9543         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
9544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
9545         REPLACE_GETPASS.
9546         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
9547         REPLACE_GETPASS.
9548         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
9549         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
9550         and musl.
9551         * NEWS: Mention the change.
9553 2018-08-19  Bruno Haible  <bruno@clisp.org>
9555         glob: Fix over-optimization due to attribute __nonnull__.
9556         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
9558 2018-08-19  Bruno Haible  <bruno@clisp.org>
9560         glob: Fix another compilation error when glob.h is not replaced.
9561         Reported by Reuben Thomas <rrt@sc3d.org> in
9562         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
9563         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
9564         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
9566 2018-08-18  Bruno Haible  <bruno@clisp.org>
9568         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
9569         Reported by Reuben Thomas <rrt@sc3d.org> in
9570         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
9571         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
9572         in config.h.
9574 2018-08-18  Bruno Haible  <bruno@clisp.org>
9576         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
9577         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
9578         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
9579         Solution proposed by Eli Zaretskii.
9580         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
9581         * lib/gettimeofday.c (GetProcAddress): Likewise.
9582         * lib/link.c (GetProcAddress): Likewise.
9583         * lib/physmem.c (GetProcAddress): Likewise.
9584         * lib/poll.c (GetProcAddress): Likewise.
9585         * lib/select.c (GetProcAddress): Likewise.
9586         * lib/stat-w32.c (GetProcAddress): Likewise.
9588 2018-08-18  Bruno Haible  <bruno@clisp.org>
9590         glob: Fix another compilation error when glob.h is not replaced.
9591         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
9592         * lib/globfree.c: Include <libc-config.h>.
9594 2018-08-18  Bruno Haible  <bruno@clisp.org>
9596         glob: Fix compilation error when glob.h is not replaced.
9597         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
9598         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
9599         * lib/glob_pattern_p.c: Include <libc-config.h>.
9600         * modules/glob (Depends-on): Add libc-config.
9602 2018-08-18  Bruno Haible  <bruno@clisp.org>
9604         scratch_buffer: Add tests.
9605         * tests/test-scratch-buffer.c: New file.
9606         * modules/scratch_buffer-tests: New file.
9608 2018-08-18  Bruno Haible  <bruno@clisp.org>
9610         scratch_buffer: Fix include file.
9611         Reported by Reuben Thomas <rrt@sc3d.org> in
9612         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
9613         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
9614         double-inclusion guard.
9616 2018-08-18  Bruno Haible  <bruno@clisp.org>
9618         glob-h: Revert Paul Eggert's revert.
9619         * m4/glob_h.m4: Revert to previous state.
9620         * modules/glob-h: Likewise.
9622 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9624         glob-h: always build glob.h
9625         This works around a problem reported by Reuben Thomas in:
9626         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
9627         This workaround always builds glob.h, even on platforms that
9628         do not need it; perhaps this could be improved someday.
9629         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
9630         is always created now.
9631         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
9633 2018-08-13  Bruno Haible  <bruno@clisp.org>
9635         monetary: Simplify m4 code.
9636         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
9637         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
9639 2018-08-13  Bruno Haible  <bruno@clisp.org>
9641         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
9642         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
9643         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
9644         and by Paul J. Lucas <paul@lucasmail.org> in
9645         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
9646         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
9648 2018-08-11  Bruno Haible  <bruno@clisp.org>
9650         setlocale: Trivial simplification.
9651         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
9653 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9655         verify: port 'assume' to traditional tools
9656         * lib/verify.h (assume): Port better to Oracle Studio 12.6
9657         and other tools that use /*NOTREACHED*/ comments.
9659 2018-08-10  Bruno Haible  <bruno@clisp.org>
9661         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
9662         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9663         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
9664         'fnmatch-gnu' is in use.
9666 2018-08-07  Bruno Haible  <bruno@clisp.org>
9668         glob-h: Add tests.
9669         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
9670         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
9671         tests/test-glob-h.c.
9672         * modules/glob-h-tests: New file.
9673         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
9674         conditions.
9675         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
9676         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
9678 2018-08-07  Bruno Haible  <bruno@clisp.org>
9680         glob-h: New module.
9681         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
9682         replacements.
9683         * lib/glob.c: Include <config.h>.
9684         * m4/glob_h.m4: New file.
9685         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
9686         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
9687         REPLACE_GLOB_PATTERN_P as appropriate.
9688         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
9689         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
9690         * modules/glob-h: New file.
9691         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
9692         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
9693         lstat, sys_stat. Change conditions.
9694         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
9695         REPLACE_GLOB_PATTERN_P. Set module indicator.
9696         (Makefile.am): Remove code that is moved to glob-h.
9697         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
9698         * modules/posixcheck (Depends-on): Add glob-h.
9700 2018-08-06  Bruno Haible  <bruno@clisp.org>
9702         Force generation of substitute .h file when C++ support is enabled.
9703         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
9704         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
9705         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
9706         FNMATCH_H to non-empty.
9707         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
9708         ICONV_H to non-empty.
9709         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
9710         MONETARY_H to non-empty.
9711         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
9712         non-empty.
9714 2018-08-06  Bruno Haible  <bruno@clisp.org>
9716         fnmatch-h: Fix test compilation error on mingw (regression from today).
9717         * lib/fnmatch.in.h: Fix conditions.
9719 2018-08-06  Bruno Haible  <bruno@clisp.org>
9721         sys_resource: Relicense under LGPLv2+.
9722         John Malmberg's approval is in
9723         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
9724         * modules/sys_resource (License): Change to LGPLv2+.
9726 2018-08-06  Bruno Haible  <bruno@clisp.org>
9728         fnmatch-h: Add tests.
9729         * tests/test-fnmatch-h.c: New file.
9730         * modules/fnmatch-h-tests: New file.
9731         * tests/test-fnmatch-h-c++.cc: New file.
9732         * modules/fnmatch-h-c++-tests: New file.
9734 2018-08-06  Bruno Haible  <bruno@clisp.org>
9736         fnmatch-h: New module.
9737         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
9738         replacements.
9739         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
9740         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
9741         'posixcheck' warning.
9742         * m4/fnmatch_h.m4: New file.
9743         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
9744         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
9745         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
9746         as appropriate.
9747         * modules/fnmatch-h: New file.
9748         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
9749         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
9750         conditions.
9751         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
9752         indicator.
9753         (Makefile.am): Remove code that is moved to fnmatch-h.
9754         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
9755         REPLACE_FNMATCH.
9756         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
9757         * modules/posixcheck (Depends-on): Add fnmatch-h.
9759 2018-08-06  Bruno Haible  <bruno@clisp.org>
9761         Enable more C++ tests.
9762         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
9763         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
9764         * modules/strings-tests (Depends-on): Add strings-c++-tests.
9765         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
9766         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
9768 2018-08-06  Bruno Haible  <bruno@clisp.org>
9770         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
9771         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
9772         getopt.h.
9773         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
9775 2018-08-05  Bruno Haible  <bruno@clisp.org>
9777         utime-h: Generate header file when module 'posixcheck' is in use.
9778         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
9779         UTIME_H to non-empty.
9781 2018-08-05  Bruno Haible  <bruno@clisp.org>
9783         monetary: Generate header file when module 'posixcheck' is in use.
9784         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
9785         use, set MONETARY_H to non-empty.
9787 2018-08-05  Bruno Haible  <bruno@clisp.org>
9789         iconv-h: Generate header file when module 'posixcheck' is in use.
9790         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
9791         set ICONV_H to non-empty.
9793 2018-08-05  Bruno Haible  <bruno@clisp.org>
9795         Optimize the "checking whether ... is declared without a macro" checks.
9796         Suggested by Paul Eggert in
9797         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
9798         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
9799         Gnulib module 'posixcheck' is not in use.
9801 2018-08-05  Bruno Haible  <bruno@clisp.org>
9803         iconv-h: Enable 'posixcheck' warnings.
9804         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
9805         iconv_open.
9806         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
9808 2018-08-05  Bruno Haible  <bruno@clisp.org>
9810         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
9811         * m4/extern-inline.m4: Add more comments.
9812         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
9813         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
9814         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
9816 2018-08-04  Bruno Haible  <bruno@clisp.org>
9818         New module 'posixcheck'.
9819         * modules/posixcheck: New file.
9820         * m4/posixcheck.m4: New file.
9821         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
9822         (Which modules?): Reference it.
9824 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
9826         dfa: fix memory leak
9827         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
9829 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
9831         ieee754-h: new module
9832         It looks like Emacs can use this for some NaN processing.
9833         Emacs uses it only on double NaNs so it should be safe.
9834         * MODULES.html.sh (func_all_modules): Add ieee754-h.
9835         * config/srclist.txt: Mention ieee754.h in a comment.
9836         * doc/glibc-headers/ieee754.texi (ieee754.h):
9837         Gnulib now has a substitute that should work
9838         except for long double and for non-IEEE platforms.
9839         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
9840         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
9842 2018-07-27  Bruno Haible  <bruno@clisp.org>
9844         iswcntrl: Mention minor problem on macOS.
9845         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
9847 2018-07-26  Colin Watson  <cjwatson@debian.org>
9849         bootstrap, gnulib-tool: fix translations rsync
9850         Previously, we created files such as $pobase/Makefile.in.in and then the
9851         subsequent rsync would immediately delete them.
9852         * build-aux/bootstrap (po_download_command_format): Avoid deleting
9853         non-.po files in target directory when rsyncing translations.
9854         * gnulib-tool (func_import): Likewise.
9855         * pygnulib/GLImport.py (GLImport.execute): Likewise.
9857 2018-07-25  Jim Meyering  <meyering@fb.com>
9859         bootstrap: reinstate definition fo gnulib_mk.
9860         That variable is used at least by cppi.
9861         * build-aux/bootstrap (gnulib_mk): Restore definition.
9862         This reverts the deletion from v0.1-1844-gc66dba9ba.
9864 2018-07-23  Bruno Haible  <bruno@clisp.org>
9866         doc: For module names, use texinfo markup @code{} or @samp{}.
9867         * doc/alloca.texi: Mark gnulib module names with @code.
9868         * doc/alloca-opt.texi: Likewise.
9869         * doc/quote.texi: Likewise.
9870         * doc/posix-functions/freopen.texi: Likewise.
9871         * doc/posix-functions/open.texi: Likewise.
9872         * doc/posix-functions/readlink.texi: Likewise.
9873         * doc/posix-functions/readlinkat.texi: Likewise.
9874         * doc/posix-functions/stdout.texi: Likewise.
9875         * doc/posix-functions/stderr.texi: Likewise.
9876         * doc/posix-functions/unlink.texi: Likewise.
9877         * doc/posix-functions/unlinkat.texi: Likewise.
9878         * doc/posix-functions/utime.texi: Likewise.
9879         * doc/posix-functions/utimensat.texi: Likewise.
9880         * doc/posix-functions/utimes.texi: Likewise.
9881         * doc/posix-headers/stdint.texi: Likewise.
9882         * doc/glibc-functions/futimesat.texi: Likewise.
9883         * doc/glibc-functions/lutimes.texi: Likewise.
9884         * doc/glibc-functions/memmem.texi: Likewise.
9886 2018-07-23  Werner LEMBERG  <wl@gnu.org>
9888         doc: Avoid some overfull lines in the TeX output.
9889         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
9890         @example.
9891         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
9892         newline before the long URL.
9893         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
9894         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
9895         Add line breaks in code snippets.
9897 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
9899         hard-locale: simplify by removing hard-locale.m4
9900         * m4/hard-locale.m4: Remove.
9901         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
9902         (configure.ac): Do not call gl_HARD_LOCALE.
9904         gnulib-tool: limit line length for git send-email
9905         * gnulib-tool (func_import): Break actioncmd log line
9906         into multiple lines.
9908 2018-07-16  Bruno Haible  <bruno@clisp.org>
9910         ffs: Ensure declaration on mingw.
9911         Reported by Daniel P. Berrangé <berrange@redhat.com>
9912         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
9913         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
9914         also declared.
9916 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9918         regex-tests: add dependency
9919         * modules/regex-tests (Depends-on): Add gettext-h.
9920         This is needed given the recent changes to regex,
9921         which no longer depends on gettext-h.
9923 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9925         regex: now in sync with glibc
9926         * config/srclist.txt: Gnulib and glibc regex code
9927         are synchronized again.
9929 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9931         renameatu: rename from renameat2
9932         It's looking like Glibc will add a renameat2 function
9933         that is incompatible with Gnulib renameat2; see:
9934         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
9935         To help avoid future confusion, rename renameat2 to something else.
9936         Use the name 'renameatu', as the Gnulib function is close to the
9937         Glibc function.  Perhaps someday there will also be a renameat2
9938         Gnulib module, which mimicks the future glibc renameat2, but that
9939         can wait as nobody seems to need such a module now.
9940         * NEWS: Mention this.
9941         * lib/renameatu.c: Rename from lib/renameat2.c.
9942         * lib/renameatu.h: Rename from lib/renameat2.h.
9943         * modules/renameatu: Rename from modules/renameat2.
9944         * modules/renameatu-tests: Rename from modules/renameat2-tests.
9945         All uses of "renameat2" in identifiers or file name
9946         changed to "renameatu", except for two instances in
9947         lib/renameatu.c that deal with the Linux kernel's
9948         renameat2 syscall.
9950 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
9952         gnulib-tool: minor tweaks for --gnu-make
9953         * gnulib-tool: Do not allow --gnu-make in test modes,
9954         since they all require automake.
9955         (func_emit_lib_Makefile_am): Don’t emit automake comment
9956         if --gnu-make.
9958         regex: work around conditional-dependencies glitch
9959         * modules/regex (Depends-on): Add langinfo.
9960         Without this change, I had problems building an experimental
9961         version of GNU Emacs.  The symptom of the bug was a message
9962         ‘./configure: line 12726: test: =: unary operator expected’.
9963         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
9964         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
9965         was unset.  Although gl_FUNC_NL_LANGINFO has
9966         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
9967         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
9968         --conditional-dependencies sometimes arranges for the
9969         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
9970         code.  Since the regex code includes <langinfo.h> it should be
9971         depending on the langinfo module anyway, and this happens to work
9972         around the bug, so install that as a workaround for now.  To
9973         reproduce the original problem, run the following shell script on
9974         the version of Gnulib just before this patch was installed.
9975                 rm -fr foo
9976                 mkdir foo
9977                 cat >foo/configure.ac <<'EOF'
9978                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
9979                 gl_EARLY
9980                 gl_INIT
9981                 AC_OUTPUT
9982                 EOF
9983                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
9984                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
9985                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
9986                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
9987                 cd foo
9988                 aclocal -I m4
9989                 autoconf
9990                 ./configure --with-included-regex
9992 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
9994         wchar: fix bug when checking for ‘inline’
9995         I discovered this when looking into using the regex module
9996         with Emacs.
9997         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
9998         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
9999         conftest1.c and conftest2.c but these files were not created.
10000         As far as I can see, this check never worked and nobody reported
10001         it until now, which is a bit worrisome.
10003 2018-06-30  Jim Meyering  <meyering@fb.com>
10005         bootstrap: s/--option val/--option=val/
10006         * build-aux/bootstrap (gnulib_tool_options): Change the
10007         spelling of "--option val" pairs to "--option=val", for
10008         aesthetics, and also so that this file no longer triggers
10009         a common help2man syntax-check warning when copied into
10010         projects like grep, gzip, etc.
10012 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
10014         manywarnings: omit -Wswitch-default
10015         This should make things more consistent, as we already ignore
10016         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
10017         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
10018         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
10019         Add -Wswitch-default.
10020         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
10021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10022         Remove -Wswitch-default.
10024         regex: revert most trimming
10025         Problems reported by Bruno Haible in:
10026         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
10027         * modules/regex (Depends-on): Add lock, memcmp, memmove,
10028         and wctype back in.  lock because regex users shouldn’t
10029         need to know that regex needs locking, and the rest because
10030         gnulib-tool should ordinarily ignore them anyway.
10032 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10034         regex: trim module dependencies
10035         * modules/regex (Depends-on): Remove gettext-h and lock,
10036         since the regex code should work OK without these modules,
10037         and Emacs uses it that way.  Also remove memcmp, memmove,
10038         and wctype, as these modules are obsolete and should not be
10039         needed any more.
10041 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
10043         regex: glibc does not use intprops.h
10044         Maybe we can talk glibc into using intprops.h someday, but
10045         now doesn’t seem to be a good time.
10046         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
10047         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
10048         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
10050 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
10052         regex: port to recently proposed glibc regex merge
10053         This patch is inspired by Adhemerval Zanella's recent proposal
10054         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
10055         to merge glibc and Gnulib regex.  It aims to simplify the merge on
10056         the glibc side, without keeping Gnulib portable.
10057         * lib/regex.h: Fix a problem with glibc installed-header checking,
10058         as follows:
10059         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
10060         (_Restrict_arr_): Prefer __restrict_arr if defined,
10061         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
10062         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
10063         (build_wcs_upper_buffer, build_upper_buffer)
10064         (re_string_translate_buffer, re_string_context_at):
10065         Move decls here from lib/regex_internal.h, for glibc internal tests.
10066         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
10067         glibc BZ #18496.
10068         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
10069         -Wunused-value.
10070         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
10071         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
10072         (bitset_mask): Now static inline, and without any __attribute__
10073         ((unused)) decoration, for glibc internal tests.
10075 2018-06-25  Bruno Haible  <bruno@clisp.org>
10077         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
10078         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
10079         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
10080         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
10081         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
10082         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
10083         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
10084         / -lthread / -lpth does not get optimized away by a preceding
10085         --as-needed option.
10087 2018-06-25  Bruno Haible  <bruno@clisp.org>
10089         Continue to use spaces for indentation, not tabs.
10090         * MODULES.html.sh: Untabify.
10091         * doc/regex.texi: Likewise.
10092         * lib/acl-internal.c: Likewise.
10093         * lib/dfa.c: Likewise.
10094         * lib/exclude.c: Likewise.
10095         * lib/exclude.h: Likewise.
10096         * lib/get-permissions.c: Likewise.
10097         * lib/gettimeofday.c: Likewise.
10098         * lib/parse-datetime.y: Likewise.
10099         * lib/pselect.c: Likewise.
10100         * lib/set-permissions.c: Likewise.
10101         * lib/time.in.h: Likewise.
10102         * m4/canonicalize.m4: Likewise.
10103         * m4/gc.m4: Likewise.
10104         * m4/gnulib-common.m4: Likewise.
10105         * m4/pthread_sigmask.m4: Likewise.
10106         * m4/vararrays.m4: Likewise.
10107         * tests/test-digest.h: Likewise.
10108         * tests/test-fcntl-h.c: Likewise.
10109         * tests/test-timespec.c: Likewise.
10110         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
10112 2018-06-25  Bruno Haible  <bruno@clisp.org>
10114         manywarnings: Don't enable -Wjump-misses-init warnings by default.
10115         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
10116         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
10117         -Wjump-misses-init.
10119 2018-06-25  Jim Meyering  <meyering@fb.com>
10121         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
10122         * lib/acl-internal.h (free_permission_context): Remove that
10123         attribute directive.  Otherwise, it would provoke this from GCC 9:
10124         lib/acl-internal.h:300:3: error: 'const' attribute on function \
10125           returning 'void' [-Werror=attributes]
10127 2018-06-24  Jim Meyering  <meyering@fb.com>
10129         parse-datetime: accommodate gcc-4.8.5
10130         Bruno Haible reported the build failure in
10131         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
10132         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
10133         on declaration of new local.
10135 2018-06-24  Bruno Haible  <bruno@clisp.org>
10137         af_alg: Fail in continuable manner on Linux/powerpc64le.
10138         Reported by Assaf Gordon <assafgordon@gmail.com>
10139         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
10140         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
10141         byte send() as the first round.
10143 2018-06-24  Bruno Haible  <bruno@clisp.org>
10145         af_alg: Fix state of stream after sendfile() succeeds.
10146         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
10147         the stream is correctly positioned afterwards.
10148         * modules/crypto/af_alg (Depends-on): Add fflush.
10149         * tests/test-digest.h (test_digest_on_files): Verify that after the
10150         operation the stream is positioned at end of file.
10152 2018-06-24  Jim Meyering  <meyering@fb.com>
10154         canon-host: take GCC9's advice rather than ignoring warning
10155         Pádraig Brady suggested not to ignore this GCC9 advice.
10156         * lib/canon-host.c: Undo preceding change.
10157         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
10159         parse-datetime.y: avoid spurious GCC 9 warning
10160         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
10161         a function local prior to the first "goto fail".  The prior use would
10162         evoke this:
10163         parse-datetime.y: In function 'parse_datetime2':
10164         parse-datetime.y:1791:19: error: jump skips variable initialization \
10165           [-Werror=jump-misses-init]
10166         parse-datetime.y:2385:2: note: label 'fail' defined here
10167         parse-datetime.y:188:43: note: '({anonymous})' declared here
10168         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
10170         canon-host.c: avoid spurious GCC 9 warning
10171         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
10173         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
10174         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
10175         * m4/manywarnings.m4: Remove them.
10176         Otherwise, building coreutils, I would see this:
10177         cc1: error: deprecated command line option '-Wchkp' [-Werror]
10178         cc1: error: -Wabi won't warn about anything [-Werror=abi]
10179         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
10180           which is also used by default
10181         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
10183 2018-06-24  Bruno Haible  <bruno@clisp.org>
10185         af_alg tests: Add another test.
10186         * tests/test-digest.h (test_digest_on_files): Also check a large file
10187         with a skipped header.
10188         * tests/test-md5.c: Include macros.h.
10189         * tests/test-sha1.c: Likewise.
10190         * tests/test-sha256.c: Likewise.
10191         * tests/test-sha512.c: Likewise.
10192         * modules/crypto/md5-tests (Files): Add tests/macros.h.
10193         * modules/crypto/sha1-tests (Files): Likewise.
10194         * modules/crypto/sha256-tests (Files): Likewise.
10195         * modules/crypto/sha512-tests (Files): Likewise.
10197 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10199         maint: clarify comments about sticky EOF
10200         * lib/af_alg.c: Be more direct that we can't
10201         assume stickiness of EOF for portability reasons.
10202         * lib/md5.c: Clarify that this isn't just a glibc issue.
10203         * lib/sha1.c: Likewise.
10204         * lib/sha256.c: Likewise.
10205         * lib/sha512.c: Likewise.
10207 2018-06-24  Bruno Haible  <bruno@clisp.org>
10209         af_alg: Comment and style improvements.
10210         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
10211         (afalg_buffer, afalg_stream): Improve comments.
10213 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10215         af_alg: disable kernel hash functions by default
10216         All the kernel routines were seen to be significantly slower
10217         with these relatively recent components on an i3-2310M system:
10218           kernel-4.10.6-200.fc25.x86_64
10219           openssl-1.0.2m-1.fc25.x86_64
10220         sha1 was nearly twice as slow in the kernel for example.
10221         Further considerations why this should not be the default, at:
10222         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
10224         * m4/af_alg.m4: Require --with-linux-crypto to enable.
10225         * m4/gl-openssl.m4: Tweak accordingly.
10227 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10229         af_alg: avoid hangs when reading from streams
10230         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
10231         and thus avoid doing a fread() when feof() is set.
10232         * lib/md5.c: Ensure feof() is called before fread().
10233         * lib/sha1.c: Likewise.
10234         * lib/sha256.c: Likewise.
10235         * lib/sha512.c: Likewise.
10237 2018-06-24  Pádraig Brady  <P@draigBrady.com>
10239         af_alg: fix error handling when hash not returned
10240         * lib/af_alg.c (afalg_stream): Handle the case where we've
10241         successfully written data to the kernel in the read/write loop,
10242         but the kernel doesn't respond with the hash.
10244 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10246         libc-config: merge from glibc
10247         * lib/cdefs.h (__inline, __restrict):
10248         Copy from current glibc.  This fixes glibc bug 17721,
10249         which Gnulib had already fixed in a different way.
10250         (__nonnull): Lessen the distance from glibc by using the
10251         glibc definition inside an ‘#ifndef __nonnull’.
10252         (__attribute_nonstring__): New macro, copied from
10253         current glibc.
10254         * lib/libc-config.h (__attribute_nonstring__): New undef.
10255         (__restrict): Remove; workaround no longer needed.
10256         Keep the __inline workaround, though, as it uses HAVE___INLINE to
10257         support more compilers than the glibc __inline can.
10259 2018-06-24  Bruno Haible  <bruno@clisp.org>
10261         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
10262         * lib/mbrtowc.c (enc_t): New enum type.
10263         (locale_enc, locale_enc_cached): New functions.
10264         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
10265         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
10266         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
10267         instead.
10268         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
10269         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
10270         * modules/wcwidth (configure.ac): Invoke it.
10272 2018-06-24  Bruno Haible  <bruno@clisp.org>
10274         wchar-single: Fix test failure in wcwidth tests.
10275         * tests/test-wcwidth.c (main): If the wchar-single module is present,
10276         skip the tests in the C locale.
10278 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10280         crypto: mention --without-linux-crypto in --with-openssl --help
10281         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
10282         routines take precedence in --with-openssl help output.
10284 2018-06-23  Pádraig Brady  <P@draigBrady.com>
10286         wchar-single: a new module to enable optimizations in wchar replacements
10287         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
10288         GNULIB_WCHAR_SINGLE is enabled.
10289         * lib/wcwidth.c (wcwidth): Likewise.
10291 2018-06-23  Bruno Haible  <bruno@clisp.org>
10293         libc-config: Fix conflict with FreeBSD include files.
10294         * lib/cdefs.h (__nonnull): Remove definition.
10295         * lib/libc-config.h (__nonnull): Remove undefinition.
10297 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10299         random_r: do not crash if state is unaligned
10300         Problem reported by Bruce Korb in:
10301         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
10302         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
10303         with 'cc -O2 -xmemalign=8s'.
10304         * lib/random_r.c: Include string.h, for memcpy.
10305         (get_int32, set_int32): New functions.
10306         (__srandom_r, __initstate_r, __setstate_r, __random_r):
10307         Use them to avoid assumption that state pointer is aligned.
10308         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
10309         * tests/test-random_r.c (test_failed): New function.
10310         (main): Use it, to test for alignment bugs.
10312         random_r: omit unnecessary include
10313         * lib/random_r.c: Do not include limits.h.
10315         random, random_r: merge from glibc
10316         * lib/random.c, lib/random_r.c:
10317         Include libc-config.h if !_LIBC, not config.h unilaterally.
10318         * lib/random.c:
10319         Do not include stdint.h or time.h; not needed.
10320         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
10321         (unsafe_state): Rename from generator.  All uses changed.
10322         Use C99-style initializers.
10323         (__random, __srandom, __initstate, __setstate): Rename from
10324         non-underscored version, but define it to non-underscored version
10325         on Gnulib.  Add a lock.
10326         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
10327         Likewise.
10328         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
10329         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
10330         (__srandom_r): Use int32_t instead of long int where int32_t will do.
10331         (__random_r): Use uint32 to fix glibc bug 17343.
10332         * modules/random, modules/random_r (Depends-on): Add libc-config.
10333         Depend on stdint only if $HAVE_RANDOM = 0.
10335 2018-06-19  Jim Meyering  <meyering@fb.com>
10337         README-release: also run any check-very-expensive tests
10338         * top/README-release: Adjust instructions so they run the
10339         check-very-expensive tests when there is such a target.
10341 2018-06-18  Bruno Haible  <bruno@clisp.org>
10343         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
10344         * m4/pthread_rwlock_rdlock.m4: Add comment.
10345         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
10346         are reader-preferring in glibc.
10347         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
10348         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
10350 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
10352         crypto: use byteswap
10353         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10354         * lib/sm3.c: Include <byteswap.h>.
10355         (SWAP): Use its macros rather than reinventing the wheel.
10356         * modules/crypto/md4, modules/crypto/md5-buffer:
10357         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
10358         * modules/crypto/sha512-buffer, modules/crypto/sm3:
10359         (Depends-on): Add byteswap.
10361 2018-06-17  Pádraig Brady  <P@draigBrady.com>
10363         gendocs.sh: fix support for legacy --texi2html
10364         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
10365         to the default makeinfo invocation.
10366         Reported by Bruce Korb
10368 2018-06-17  Bruno Haible  <bruno@clisp.org>
10370         gettext po infrastructure: Update from current gettext git.
10371         Reported by Akim Demaille <akim@lrde.epita.fr>.
10372         * build-aux/po/Makefile.in.in: Update from current gettext git.
10373         * build-aux/po/remove-potcdate.sin: Likewise.
10374         * config/srclist.txt: Temporarily disable sync for these files.
10376 2018-06-17  Bruno Haible  <bruno@clisp.org>
10378         getloadavg: Return 0 on Windows without Cygwin.
10379         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
10381 2018-06-17  Paul Smith  <psmith@gnu.org>
10383         getloadavg: Allow building on Windows without Cygwin
10384         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
10385         * m4/getloadavg.m4: Check for unistd.h.
10387 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
10389         Port crypto/af_alg to GCC 4.8.4
10390         Problem reported by Peter Simons in:
10391         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
10392         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
10394 2018-05-27  Colin Watson  <cjwatson@debian.org>
10396         bootstrap: document source fetching in --help
10397         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
10399 2018-04-09  Colin Watson  <cjwatson@debian.org>
10401         bootstrap: allow non-submodule control of gnulib
10402         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
10403         bootstrap.conf when fetching gnulib using "git clone" or via
10404         GNULIB_SRCDIR.
10406 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10408         crypto: omit stream ops Emacs doesn’t need
10409         * lib/md5.c (md5_stream):
10410         * lib/sha1.c (sha1_stream):
10411         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
10412         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
10413         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
10414         defined.  Emacs needs this, as it does not use the stream
10415         operations and doesn’t need all the af_alg stuff we’ve recently
10416         added.  Perhaps a similar change is needed to the other crypto
10417         modules, but this patch changes only those needed for Emacs.
10418         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
10419         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
10420         New modules, used by Emacs.
10421         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10422         * modules/crypto/sha512: Rewrite to depend on the new modules.
10424 2018-05-20  Pádraig Brady  <P@draigBrady.com>
10426         fts: avoid a memory leak edge case
10427         * lib/fts.c (fts_open): Set an appropriate fts_level
10428         so that an immediate fts_close() will free the allocation.
10429         * tests/test-fts.c (fts_dealloc): Add a test case which
10430         will trigger under valgrind or address sanitizer.
10431         Fixes https://bugs.gnu.org/31439
10433 2018-05-20  Bruno Haible  <bruno@clisp.org>
10435         wcwidth tests: Fix link error.
10436         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
10437         $(LIBUNISTRING).
10439 2018-05-20  Bruno Haible  <bruno@clisp.org>
10441         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
10442         * modules/regex (Files): Add m4/glibc21.m4.
10444 2018-05-20  Bruno Haible  <bruno@clisp.org>
10446         localcharset: Optimize.
10447         * lib/localcharset.c (alias_table): Comment out no-op mappings for
10448         platforms where these don't matter. This reduces the table size,
10449         which in turn reduces the lookup time.
10451 2018-05-19  Bruno Haible  <bruno@clisp.org>
10453         localcharset: Map the locale encodings found in newer OSes.
10454         * lib/localcharset.c (alias_table): Add mapping for locale encodings
10455         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
10456         IRIX 6.5, Minix 3.3.
10457         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
10459 2018-05-19  Bruno Haible  <bruno@clisp.org>
10461         localcharset: Move mapping tables into the code. Use a binary search.
10462         * lib/localcharset.h: Document the GNU canonical names for character
10463         encodings here.
10464         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
10465         relocatable.h, configmake.h.
10466         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
10467         macros.
10468         (charset_aliases): Remove variable.
10469         (get_charset_aliases): Remove function.
10470         (struct table_entry): New type.
10471         (alias_table, locale_table): New constants.
10472         (locale_charset): Use the alias_table or locale_table to get the
10473         canonicalized encoding name.
10474         * lib/config.charset: Remove file.
10475         * lib/ref-add.sin: Remove file.
10476         * lib/ref-del.sin: Remove file.
10477         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
10478         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
10479         * modules/localcharset (Notice): Remove.
10480         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
10481         glibc21.m4.
10482         (Depends-on): Remove configmake.
10483         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
10484         (Makefile.am): Simplify.
10485         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
10487 2018-05-19  Bruno Haible  <bruno@clisp.org>
10489         localcharset: Add a manual test.
10490         * tests/test-localcharset.c: New file.
10491         * modules/localcharset-tests: New file.
10493 2018-05-19  Bruno Haible  <bruno@clisp.org>
10495         localcharset: Remove support for obsolete platforms.
10496         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
10497         Mac OS X 10.2. Comment out dubious entry for Solaris.
10499 2018-05-19  Jim Meyering  <meyering@fb.com>
10501         gnupload: adjust comment
10502         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
10503         more likely we'll remove the just-added code in a year or two.
10505 2018-05-19  Bruno Haible  <bruno@clisp.org>
10507         gnupload: Fix "gpg-agent is not available in this session" error.
10508         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
10510 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10512         crypto/af_alg: fix --help
10513         * m4/af_alg.m4: Avoid spurious newline in --help output.
10515 2018-05-13  Bruno Haible  <bruno@clisp.org>
10517         nl_langinfo: Fix compilation error on Android.
10518         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
10519         INT_CURR_SYMBOL, etc. only if these items are defined.
10521 2018-05-13  Bruno Haible  <bruno@clisp.org>
10523         truncate: Fix compilation error on Android.
10524         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
10525         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
10526         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
10527         HAVE_TRUNCATE.
10528         * modules/truncate: Likewise.
10529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
10530         not HAVE_TRUNCATE.
10531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
10532         HAVE_TRUNCATE.
10533         * doc/posix-functions/truncate.texi: Mention the issue.
10535 2018-05-13  Bruno Haible  <bruno@clisp.org>
10537         pthread: Fix compilation error on Android.
10538         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
10539         recursive inclusion of this file.
10541 2018-05-13  Bruno Haible  <bruno@clisp.org>
10543         posix_spawn: Fix compilation error on Android.
10544         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
10545         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
10546         (posix_spawn_file_actions_t): Consider also the case
10547         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
10549 2018-05-13  Bruno Haible  <bruno@clisp.org>
10551         tsearch: Move from K&R C to ANSI C.
10552         * lib/tsearch.c (tfind): Convert definition to ANSI C.
10554 2018-05-13  Bruno Haible  <bruno@clisp.org>
10556         tsearch: Fix compilation error on Android.
10557         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
10558         is 0.
10559         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
10560         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
10561         GNULIB_defined_tsearch is true.
10562         (twalk): Define only if GNULIB_defined_twalk is true.
10563         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
10564         is 0.
10565         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
10566         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
10567         * modules/search (Makefile.am): Substitute HAVE_TWALK.
10569 2018-05-13  Bruno Haible  <bruno@clisp.org>
10571         imaxdiv: Fix compilation error on Android.
10572         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
10573         is not defined.
10574         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
10575         HAVE_DECL_IMAXDIV, is 0.
10576         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
10577         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
10579 2018-05-13  Bruno Haible  <bruno@clisp.org>
10581         Support selective inclusion mechanism of recent mingw.org header files.
10582         Reported by Eli Zaretskii <eliz@gnu.org>.
10583         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
10584         __need_ssize_t, or __need_time_t is defined, just include the system's
10585         <sys/types.h>.
10586         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
10587         include the system's <locale.h>.
10589 2018-05-13  Bruno Haible  <bruno@clisp.org>
10591         Avoid compilation error due to 'mmap' on Android.
10592         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
10593         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
10594         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
10595         Undefine on Android.
10597 2018-05-13  Bruno Haible  <bruno@clisp.org>
10599         Add cross-compilation guesses for Linux systems without glibc.
10600         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
10601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
10602         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10603         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10604         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
10605         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10606         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10607         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
10608         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
10609         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
10610         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10612         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10613         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10614         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10615         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10616         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10617         * m4/utimens.m4 (gl_UTIMENS): Likewise.
10619 2018-05-13  Bruno Haible  <bruno@clisp.org>
10621         getpagesize: Fix compilation error on Android.
10622         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
10623         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
10624         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
10625         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
10626         HAVE_GETPAGESIZE accordingly.
10627         * modules/getcwd (Files): Add m4/getpagesize.m4.
10629 2018-05-13  Bruno Haible  <bruno@clisp.org>
10631         tcgetsid: Fix compilation error on Android.
10632         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
10633         AC_CHECK_FUNC.
10635 2018-05-13  Bruno Haible  <bruno@clisp.org>
10637         getpass: Fix configure test for Android.
10638         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
10639         AC_CHECK_FUNC.
10641 2018-05-13  Bruno Haible  <bruno@clisp.org>
10643         ffs: Fix compilation error on Android.
10644         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
10646 2018-05-13  Bruno Haible  <bruno@clisp.org>
10648         mkfifo: Fix compilation error on Android.
10649         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
10650         AC_CHECK_FUNC.
10652 2018-05-13  Bruno Haible  <bruno@clisp.org>
10654         c-strtod: Fix configure test for Android.
10655         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
10656         AC_CHECK_FUNC.
10658 2018-05-13  Bruno Haible  <bruno@clisp.org>
10660         random: Fix compilation error on Android.
10661         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
10662         AC_CHECK_FUNC.
10664 2018-05-13  Bruno Haible  <bruno@clisp.org>
10666         grantpt: Fix compilation error on Android.
10667         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
10668         AC_CHECK_FUNC.
10670 2018-05-13  Bruno Haible  <bruno@clisp.org>
10672         stdioext: Fix compilation errors with newer Android headers.
10673         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
10674         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
10675         fallbacks for Android.
10676         * lib/fpending.c: Update comments.
10677         * lib/fpurge.c: Likewise.
10678         * lib/freadable.h: Likewise.
10679         * lib/freadable.c: Likewise.
10680         * lib/freadahead.c: Likewise.
10681         * lib/freading.h: Likewise.
10682         * lib/freadptr.c: Likewise.
10683         * lib/fseterr.c: Likewise.
10684         * lib/fwritable.h: Likewise.
10685         * lib/fwritable.c: Likewise.
10686         * lib/fwriting.h: Likewise.
10687         * lib/fwriting.c: Likewise.
10689 2018-05-13  Bruno Haible  <bruno@clisp.org>
10691         doc: Add info about Android versions 2.0 to 8.1.
10692         * doc/**/*.texi: Add info about functions in all released versions of
10693         Bionic.
10695 2018-05-12  Bruno Haible  <bruno@clisp.org>
10697         fseeko: On mingw, don't use the hidden function _fseeki64.
10698         Reported by Eli Zaretskii <eliz@gnu.org>.
10699         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
10700         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
10702 2018-05-12  Bruno Haible  <bruno@clisp.org>
10704         glob: Choose 'dirent_type' in a way that works better on mingw.
10705         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
10706         * lib/glob.c (dirent_type): Define as uint_fast32_t.
10708 2018-05-12  Bruno Haible  <bruno@clisp.org>
10710         execute, spawn-pipe: Avoid warning about redefining 'close'.
10711         Reported by Eli Zaretskii <eliz@gnu.org>.
10712         * lib/execute.c: Undefine 'close' before redefining it.
10713         * lib/spawn-pipe.c: Likewise.
10715 2018-05-12  Bruno Haible  <bruno@clisp.org>
10717         nanosleep: Avoid test failure on mingw when it has nanosleep.
10718         Reported by Eli Zaretskii <eliz@gnu.org>.
10719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
10720         If it does not exist, use a simpler test program that does not call
10721         alarm().
10723 2018-05-10  Bruno Haible  <bruno@clisp.org>
10725         lock, cond, thread, tls: Use a different symbol as libpthread witness.
10726         Reported by Devin Hussey <husseydevin@gmail.com>.
10727         Based on a patch by Paul Eggert.
10728         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
10729         as witness of libpthread.
10730         * lib/glthread/cond.h (pthread_in_use): Likewise.
10731         * lib/glthread/thread.h (pthread_in_use): Likewise.
10732         * lib/glthread/tls.h (pthread_in_use): Likewise.
10734 2018-05-10  Bruno Haible  <bruno@clisp.org>
10736         cond tests: Fix compilation error on Solaris.
10737         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
10738         macro.
10740 2018-05-10  Bruno Haible  <bruno@clisp.org>
10742         doc: Add partial info about Android 4.3.
10743         * doc/*-functions/*.texi: Add info about functions that were added
10744         to Bionic between Android 4.3 and Android 9.0.
10746 2018-05-10  Bruno Haible  <bruno@clisp.org>
10748         doc: Add info about Android 9.0.
10749         * doc/**/*.texi: Add info about functions and headers in Bionic from
10750         Android 9.0.
10752 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10754         af_alg: fix my typo in afalg_buffer
10755         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
10756         (afalg_stream): Simplify and avoid the need for a runtime test
10757         at the end.
10759         af_alg: recover better from crypto failures
10760         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
10761         input stream is seekable, by repositioning the stream back to
10762         where it was, possibly by just calling sendfile with an offset
10763         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
10764         cases, which lets our callers try again with user-mode code.
10765         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
10766         instead of on fflush and lseek.
10768         af_alg: distiguish I/O errors better
10769         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
10770         not -EIO, if it’s OK for the caller to try again with user-mode code.
10771         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
10772         some other error number) if fflush fails, as the caller should not
10773         try again that case.
10775         af_alg: avoid gotos
10776         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
10777         gotos, as they were a source of unreliability and made the code a
10778         bit harder to follow.
10780         af_alg: don’t leak file descriptors into children
10781         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
10782         This code should be compiled only on recent GNU/Linux platforms
10783         so we shouldn’t have to also depend on the accept4 module.
10785         af_alg: coalesce socket creation
10786         * lib/af_alg.c (alg_socket): New function.
10787         (afalg_buffer, afalg_stream): Use it.  This avoids some
10788         code duplication and gotos.
10790         af_alg: fix file descriptor leak
10791         * lib/af_alg.c (afalg_stream): Close leak.
10793         af_alg: Pacify --enable-gcc-warnings on GCC 8
10794         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
10795         and checking to pacify gcc -Wjump-misses-init on GCC 8.
10797 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10799         af_alg: Pacify --enable-gcc-warnings
10800         Problem reported by Assaf Gordon in:
10801         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
10802         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
10803         gcc -Wjump-misses-init.
10804         * lib/sha512.c (shaxxx_stream): Now static.
10806 2018-05-06  Bruno Haible  <bruno@clisp.org>
10808         af_alg: Add ability to use Linux kernel crypto API on data in memory.
10809         * lib/af_alg.h (afalg_buffer): New declaration.
10810         * lib/af_alg.c (afalg_buffer): New function.
10812 2018-05-06  Bruno Haible  <bruno@clisp.org>
10814         af_alg: Avoid warnings.
10815         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
10816         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
10818 2018-05-06  Bruno Haible  <bruno@clisp.org>
10820         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
10821         * tests/bench-digest.h: New file.
10822         * tests/bench-md5.c: New file.
10823         * tests/bench-sha1.c: New file.
10824         * tests/bench-sha224.c: New file.
10825         * tests/bench-sha256.c: New file.
10826         * tests/bench-sha384.c: New file.
10827         * tests/bench-sha512.c: New file.
10828         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
10829         tests/bench-digest.h.
10830         (Depends-on): Add getrusage, gettimeofday.
10831         (Makefile.am): Add variables to build bench-md5.
10832         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
10833         tests/bench-digest.h.
10834         (Depends-on): Add getrusage, gettimeofday.
10835         (Makefile.am): Add variables to build bench-sha1.
10836         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
10837         tests/bench-sha256.c, tests/bench-digest.h.
10838         (Depends-on): Add getrusage, gettimeofday.
10839         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
10840         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
10841         tests/bench-sha512.c, tests/bench-digest.h.
10842         (Depends-on): Add getrusage, gettimeofday.
10843         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
10845 2018-05-06  Bruno Haible  <bruno@clisp.org>
10847         af_alg: Fix a resource leak.
10848         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
10849         New local variable 'result'.
10851 2018-05-06  Bruno Haible  <bruno@clisp.org>
10853         af_alg: Fix bug with streams that are not at position 0.
10854         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
10855         assume that the stream is positioned at position 0.
10856         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
10857         of the stream.
10858         * lib/md5.h (md5_stream): Likewise.
10859         * lib/sha1.h (sha1_stream): Likewise.
10860         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
10861         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
10862         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
10864         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
10865         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
10866         stream that is not positioned at the beginning.
10868 2018-05-06  Bruno Haible  <bruno@clisp.org>
10870         af_alg: Add configure option to enable/disable use of Linux crypto API.
10871         Suggested by Assaf Gordon <assafgordon@gmail.com>.
10872         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
10873         USE_LINUX_CRYPTO_API.
10874         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
10875         * lib/af_alg.c: Likewise.
10877 2018-05-06  Bruno Haible  <bruno@clisp.org>
10879         Followup to 'af_alg: New module.'.
10880         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
10881         * modules/crypto/sha1 (Depends-on): Likewise.
10882         * modules/crypto/sha256 (Depends-on): Likewise.
10883         * modules/crypto/sha512 (Depends-on): Likewise.
10885 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10887         crypto/{md5,sha1,sha256,sha512}: simplify
10888         * lib/md5.c (md5_stream):
10889         * lib/sha1.c (sha1_stream):
10890         * lib/sha256.c (shaxxx_stream):
10891         Simplify, partly by assuming C99.
10892         * lib/sha256.c (shaxxx_stream):
10893         New function, which implements both sha256 and sha224.
10894         Simplify, partly by assuming C99.
10895         (sha256_stream, sha224_stream):
10896         Use it to avoid code duplication, removing a FIXME.
10897         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
10898         Likewise.
10900         af_alg: Improve comments.
10901         * lib/af_alg.h: Use imperatives and tighten up wording.
10903 2018-05-05  Bruno Haible  <bruno@clisp.org>
10905         af_alg: Improve comments.
10906         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
10908 2018-05-05  Bruno Haible  <bruno@clisp.org>
10910         af_alg: New module.
10911         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
10912         * lib/af_alg.c: Include "af_alg.h" before the other header files.
10913         * lib/md5.c: Include "af_alg.h" unconditionally.
10914         (md5_stream): Invoke afalg_stream unconditionally.
10915         * lib/sha1.c: Include "af_alg.h" unconditionally.
10916         (sha1_stream): Invoke afalg_stream unconditionally.
10917         * lib/sha256.c: Include "af_alg.h" unconditionally.
10918         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
10919         * lib/sha512.c: Include "af_alg.h" unconditionally.
10920         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
10921         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
10922         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
10923         * modules/crypto/af_alg: New file.
10924         * modules/crypto/md5 (Files): Remove files that are now in the
10925         'crypto/af_alg' module.
10926         (Depends-on): Add crypto/af_alg.
10927         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
10928         (Makefile.am): Don't mention af_alg.c here.
10929         * modules/crypto/sha1 (Files): Remove files that are now in the
10930         'crypto/af_alg' module.
10931         (Depends-on): Add crypto/af_alg.
10932         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
10933         (Makefile.am): Don't mention af_alg.c here.
10934         * modules/crypto/sha256 (Files): Remove files that are now in the
10935         'crypto/af_alg' module.
10936         (Depends-on): Add crypto/af_alg.
10937         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
10938         (Makefile.am): Don't mention af_alg.c here.
10939         * modules/crypto/sha512 (Files): Remove files that are now in the
10940         'crypto/af_alg' module.
10941         (Depends-on): Add crypto/af_alg.
10942         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
10943         (Makefile.am): Don't mention af_alg.c here.
10945 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10947         crypto tests: pacify GCC
10948         * tests/test-digest.h (test_digest_on_files):
10949         Don’t assume digest size fits in int (!).
10951         af_alg: minor style improvements
10952         * lib/af_alg.c (afalg_stream): Prefer C99 style
10953         decl-after-statement, since we’re already assuming C99.  Clarify
10954         by strengthening the bind test and omit unnecessary assignment.
10956 2018-05-05  Bruno Haible  <bruno@clisp.org>
10958         af_alg: Fix bug on empty files.
10959         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
10960         stream is empty.
10962 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10964         sys-limits.h: new file for crypto and safe I/O
10965         * lib/af_alg.c: Include sys-limits.h.
10966         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
10967         (afalg_stream): Also reject negative sizes for sendfile; they
10968         should not happen and the code is a bit cleaner and faster this way.
10969         * lib/safe-read.c: Include sys-limits.h.
10970         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
10971         * lib/sys-limits.h: New file, with values and commentary derived
10972         from the old safe-read.c and from GNU Emacs sysdep.c.
10973         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10974         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
10975         Add lib/sys-limits.h to Files section.
10977 2018-05-05  Bruno Haible  <bruno@clisp.org>
10979         af_alg: Improve function signature.
10980         * lib/af_alg.h (afalg_stream): Swap second and third argument.
10981         * lib/af_alg.c (afalg_stream): Likewise.
10982         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
10984 2018-05-05  Bruno Haible  <bruno@clisp.org>
10986         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
10987         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
10988         * modules/crypto/sha1 (Depends-on): Likewise.
10989         * modules/crypto/sha256 (Depends-on): Likewise.
10990         * modules/crypto/sha512 (Depends-on): Likewise.
10992 2018-05-05  Bruno Haible  <bruno@clisp.org>
10994         crypto/{md5,sha1,sha256,sha512}: Fix module description.
10995         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
10996         * modules/crypto/sha1 (Depends-on): Likewise.
10997         * modules/crypto/sha256 (Depends-on): Likewise.
10998         * modules/crypto/sha512 (Depends-on): Likewise.
11000 2018-05-05  Bruno Haible  <bruno@clisp.org>
11002         af_alg: Add documentation.
11003         * lib/af_alg.h: Add comments.
11005 2018-05-05  Bruno Haible  <bruno@clisp.org>
11007         sha512: Add tests.
11008         * tests/test-sha512.c: New file.
11009         * modules/crypto/sha512-tests: New file.
11011 2018-05-05  Bruno Haible  <bruno@clisp.org>
11013         sha256: Add tests.
11014         * tests/test-sha256.c: New file.
11015         * modules/crypto/sha256-tests: New file.
11017 2018-05-05  Bruno Haible  <bruno@clisp.org>
11019         sha1 tests: Add test for sha1_stream.
11020         * tests/test-sha1.c: Include test-digest.h.
11021         (main): Invoke test_digest_on_files on 'sha1_stream'.
11022         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
11024 2018-05-05  Bruno Haible  <bruno@clisp.org>
11026         md5 tests: Add test for md5_stream.
11027         * tests/test-digest.h: New file.
11028         * tests/test-md5.c: Include test-digest.h.
11029         (main): Invoke test_digest_on_files on 'md5_stream'.
11030         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
11032 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11034         md5sum: Use AF_ALG when available.
11035         * lib/md5.c: Include af_alg.h.
11036         (md5_stream): Use afalg_stream when available.
11037         * modules/crypto/md5 (Files): Add the af_alg files.
11038         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11039         (Makefile.am): Add af_alg.c.
11041 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11043         sha512sum: Use AF_ALG when available.
11044         * lib/sha512.c: Include af_alg.h.
11045         (sha512_stream, sha384_stream): Use afalg_stream when available.
11046         * modules/crypto/sha512 (Files): Add the af_alg files.
11047         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11048         (Makefile.am): Add af_alg.c.
11050 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11052         sha256sum: Use AF_ALG when available.
11053         * lib/sha256.c: Include af_alg.h.
11054         (sha256_stream, sha224_stream): Use afalg_stream when available.
11055         * modules/crypto/sha256 (Files): Add the af_alg files.
11056         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11057         (Makefile.am): Add af_alg.c.
11059 2018-04-28  Matteo Croce  <mcroce@redhat.com>
11061         sha1sum: Use AF_ALG when available.
11062         * lib/af_alg.h: New file.
11063         * lib/af_alg.c: New file.
11064         * lib/sha1.c: Include af_alg.h.
11065         (sha1_stream): Use afalg_stream when available.
11066         * m4/linux-if-alg.m4: New file.
11067         * modules/crypto/sha1 (Files): Add the new files.
11068         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
11069         (Makefile.am): Add af_alg.c.
11071 2018-05-05  Bruno Haible  <bruno@clisp.org>
11073         all: Replace more http URLs by https URLs.
11074         * lib/localename.c: Use https: URL.
11075         * lib/timespec.h: Likewise.
11077 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11079         maint: port more modules to GCC 8
11080         * lib/dirname.h (base_name):
11081         * lib/exclude.h (new_exclude):
11082         * lib/xstrndup.h (xstrndup):
11083         Add malloc attribute.
11084         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
11085         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
11086         This pacifies GCC 8.
11087         * m4/gnulib-common.m4 (gl_COMMON_BODY):
11088         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
11090 2018-05-03  Bruno Haible  <bruno@clisp.org>
11092         Simplify code. Drop support for Borland C++ on Windows.
11093         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
11094         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
11095         'defined _WIN32'.
11096         * lib/canonicalize-lgpl.c: Likewise.
11097         * lib/classpath.c: Likewise.
11098         * lib/clean-temp.c: Likewise.
11099         * lib/csharpexec.c: Likewise.
11100         * lib/ctime.c: Likewise.
11101         * lib/dosname.h: Likewise.
11102         * lib/dup2.c: Likewise.
11103         * lib/errno.in.h: Likewise.
11104         * lib/error.c: Likewise.
11105         * lib/euidaccess.c: Likewise.
11106         * lib/execute.c: Likewise.
11107         * lib/fcntl.in.h: Likewise.
11108         * lib/fcntl.c: Likewise.
11109         * lib/filename.h: Likewise.
11110         * lib/findprog.c: Likewise.
11111         * lib/flock.c: Likewise.
11112         * lib/fopen.c: Likewise.
11113         * lib/freopen.c: Likewise.
11114         * lib/fstat.c: Likewise.
11115         * lib/fsync.c: Likewise.
11116         * lib/gc-gnulib.c: Likewise.
11117         * lib/get-rusage-data.c: Likewise.
11118         * lib/getaddrinfo.c: Likewise.
11119         * lib/getdelim.c: Likewise.
11120         * lib/getdtablesize.c: Likewise.
11121         * lib/gethostname.c: Likewise.
11122         * lib/getlogin.c: Likewise.
11123         * lib/getlogin_r.c: Likewise.
11124         * lib/getopt.c: Likewise.
11125         * lib/getpagesize.c: Likewise.
11126         * lib/getpass.c: Likewise.
11127         * lib/getrusage.c: Likewise.
11128         * lib/gettimeofday.c: Likewise.
11129         * lib/glob.c: Likewise.
11130         * lib/inttypes.in.h: Likewise.
11131         * lib/isapipe.c: Likewise.
11132         * lib/javaexec.c: Likewise.
11133         * lib/link.c: Likewise.
11134         * lib/localcharset.c: Likewise.
11135         * lib/localename.h: Likewise.
11136         * lib/localename.c: Likewise.
11137         * lib/localtime.c: Likewise.
11138         * lib/lseek.c: Likewise.
11139         * lib/mbsinit.c: Likewise.
11140         * lib/mkdir.c: Likewise.
11141         * lib/msvc-nothrow.h: Likewise.
11142         * lib/nanosleep.c: Likewise.
11143         * lib/nl_langinfo.c: Likewise.
11144         * lib/nonblocking.c: Likewise.
11145         * lib/nproc.c: Likewise.
11146         * lib/open.c: Likewise.
11147         * lib/openpty.c: Likewise.
11148         * lib/pathmax.h: Likewise.
11149         * lib/pipe-filter-aux.c: Likewise.
11150         * lib/pipe-filter-gi.c: Likewise.
11151         * lib/pipe-filter-ii.c: Likewise.
11152         * lib/pipe.c: Likewise.
11153         * lib/pipe2.c: Likewise.
11154         * lib/poll.c: Likewise.
11155         * lib/popen.c: Likewise.
11156         * lib/posix_openpt.c: Likewise.
11157         * lib/printf-parse.c: Likewise.
11158         * lib/progreloc.c: Likewise.
11159         * lib/putenv.c: Likewise.
11160         * lib/read.c: Likewise.
11161         * lib/relocatable.c: Likewise.
11162         * lib/rename.c: Likewise.
11163         * lib/same-inode.h: Likewise.
11164         * lib/secure_getenv.c: Likewise.
11165         * lib/select.c: Likewise.
11166         * lib/sethostname.c: Likewise.
11167         * lib/setlocale.c: Likewise.
11168         * lib/sigaction.c: Likewise.
11169         * lib/sigprocmask.c: Likewise.
11170         * lib/sleep.c: Likewise.
11171         * lib/spawn-pipe.h: Likewise.
11172         * lib/spawn-pipe.c: Likewise.
11173         * lib/spawni.c: Likewise.
11174         * lib/stat-time.h: Likewise.
11175         * lib/stat-w32.c: Likewise.
11176         * lib/stat.c: Likewise.
11177         * lib/stdio.in.h: Likewise.
11178         * lib/stdio-impl.h: Likewise.
11179         * lib/stdio-read.c: Likewise.
11180         * lib/stdio-write.c: Likewise.
11181         * lib/stdlib.in.h: Likewise.
11182         * lib/strerror_r.c: Likewise.
11183         * lib/strftime-fixes.c: Likewise.
11184         * lib/sys_stat.in.h: Likewise.
11185         * lib/sys_types.in.h: Likewise.
11186         * lib/sys_wait.in.h : Likewise.
11187         * lib/system-quote.h: Likewise.
11188         * lib/system-quote.c: Likewise.
11189         * lib/tmpdir.c: Likewise.
11190         * lib/tzset.c: Likewise.
11191         * lib/uname.c: Likewise.
11192         * lib/unistd.in.h: Likewise.
11193         * lib/utime.in.h: Likewise.
11194         * lib/utime.c: Likewise.
11195         * lib/utimecmp.c: Likewise.
11196         * lib/utimens.c: Likewise.
11197         * lib/vasnprintf.c: Likewise.
11198         * lib/vma-iter.h: Likewise.
11199         * lib/vma-iter.c: Likewise.
11200         * lib/wait-process.c: Likewise.
11201         * lib/wcsftime.c: Likewise.
11202         * lib/wctype.in.h: Likewise.
11203         * lib/write.c: Likewise.
11204         * tests/nap.h: Likewise.
11205         * tests/test-cloexec.c: Likewise.
11206         * tests/test-dup-safer.c: Likewise.
11207         * tests/test-dup2.c: Likewise.
11208         * tests/test-dup3.c: Likewise.
11209         * tests/test-fcntl.c: Likewise.
11210         * tests/test-get-rusage-data.c: Likewise.
11211         * tests/test-getaddrinfo.c: Likewise.
11212         * tests/test-getlogin.h: Likewise.
11213         * tests/test-isatty.c: Likewise.
11214         * tests/test-localename.c: Likewise.
11215         * tests/test-mbrtowc-w32.c: Likewise.
11216         * tests/test-nonblocking.c: Likewise.
11217         * tests/test-nonblocking-pipe-main.c: Likewise.
11218         * tests/test-nonblocking-socket-main.c: Likewise.
11219         * tests/test-nonblocking-socket.h: Likewise.
11220         * tests/test-pipe.c: Likewise.
11221         * tests/test-pipe2.c: Likewise.
11222         * tests/test-poll.c: Likewise.
11223         * tests/test-pthread_sigmask1.c: Likewise.
11224         * tests/test-select.h: Likewise.
11225         * tests/test-sethostname2.c: Likewise.
11226         * tests/test-sigprocmask.c: Likewise.
11227         * tests/test-spawn-pipe-child.c: Likewise.
11228         * tests/test-stat-time.c: Likewise.
11229         * tests/test-system-quote-main.c: Likewise.
11230         * tests/test-utimens-common.h: Likewise.
11231         * tests/test-wcrtomb-w32.c: Likewise.
11232         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
11233         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11234         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
11235         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
11236         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
11237         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11238         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11239         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11241         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11242         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
11243         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
11244         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
11245         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11246         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
11247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11249 2018-05-02  Bruno Haible  <bruno@clisp.org>
11251         localename: Fix test failures on mingw.
11252         * lib/localename.c (gl_locale_name_thread): Remove code specific to
11253         native Windows.
11254         (gl_locale_name_posix): Move code specific to native Windows here.
11255         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
11256         Accept result without charset suffix, as it appears on mingw.
11258 2018-04-28  Paul Smith  <psmith@gnu.org>
11260         bootstrap: Avoid gnulib operations if not needed
11261         * build-aux/bootstrap: Remove unused variable gnulib_mk.
11262         Set $gnulib_extra_files early so it can be overridden in .conf.
11263         Remove redundant --import flag from $gnulib_tool_options.
11264         Set $use_gnulib to false if no gnulib modules or files are needed.
11265         If $use_gnulib is false, don't do anything related to gnulib.
11266         A lot of this is just whitespace (indentation) changes.
11268 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11270         manywarnings: port to GCC 8.0
11271         * build-aux/gcc-warning.spec: Add -Wcatch-value,
11272         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
11273         fact that the GCC help message now mentions operands for
11274         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
11275         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
11276         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
11277         and -Wunused-const-variable.
11278         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
11279         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
11280         -Wmissing-attributes, -Wmultistatement-macros,
11281         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
11282         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
11284 2018-04-24  Bruno Haible  <bruno@clisp.org>
11286         sys_socket: Make SO_REUSEPORT available across platforms.
11287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11288         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
11289         * doc/posix-headers/sys_socket.texi: Mention the issue.
11290         * tests/test-poll.c (SO_REUSEPORT): Remove.
11291         * tests/test-select.h: Include <sys/socket.h>.
11292         (SO_REUSEPORT): Remove.
11293         * modules/select-tests (Depends-on): Add 'sys_socket'.
11295 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11297         localcharset: short-circuit the search for an alias on a Mac
11298         * lib/localcharset.c (get_charset_aliases): Add a tautological
11299         UTF-8 entry to speed up the search for this case.
11300         Most machines default to a UTF-8 locale nowadays, so begin the
11301         list of aliases with a dummy UTF-8 entry so it will be found
11302         immediately and a time-consuming search through the rest of
11303         the list is avoided.
11305 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
11307         fts: add comment
11308         * lib/fts.c (fts_build): Explain why ==, not >.
11309         See remark by Bernhard Voelker in:
11310         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
11312         fts: fix bug in find across filesystems
11313         This fixes a bug I introduced last summer.
11314         Problem reported by Kamil Dudka in:
11315         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
11316         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
11317         (leaf_optimization):
11318         New arg for file descriptor.  All callers changed.
11319         (fts_build): Check for whether inodes should be sorted
11320         before closing the directory.
11322 2018-04-07  Bruno Haible  <bruno@clisp.org>
11324         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
11325         Reported by Genki Sky <sky@genki.is>.
11326         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
11327         version 0.9.10 or newer.
11328         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
11329         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
11330         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
11331         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
11332         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
11334 2018-04-07  Bruno Haible  <bruno@clisp.org>
11336         execute: Update comment.
11337         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
11339 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11341         fts: treat CIFS like NFS
11342         Problem reported by Kamil Dudka in:
11343         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
11344         * lib/fts.c (S_MAGIC_CIFS): New macro.
11345         (dirent_inode_sort_may_be_useful, leaf_optimization):
11346         Treat CIFS like NFS.
11348 2018-03-28  Bruno Haible  <bruno@clisp.org>
11350         c-stack: Fix possible build failure on some platforms.
11351         * lib/c-stack.c (die): Define whenever this function is referenced.
11353 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
11355         time_rz: fix workaround for Mac OS X 10.6 infloop
11356         Problems reported by Charles A. Roelli (Bug#27736#117).
11357         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
11358         Also, discard output, which clutters the 'configure' log.
11360 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11362         havelib: port to Solaris 10 /bin/sh
11363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
11364         instead of '! test EXPR'.
11366 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
11368         time_rz: work around Mac OS X 10.6 infloop
11369         * doc/posix-functions/localtime.texi:
11370         * doc/posix-functions/localtime_r.texi: Mention the bug.
11371         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
11372         better to fix localtime and localtime_r instead, but that would be
11373         more work and is not needed to fix the Emacs problem.
11374         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
11376 2018-03-24  Jim Meyering  <meyering@fb.com>
11378         test-version-etc.sh: don't use diff directly: use init.sh's compare
11379         We'd rather not sacrifice readable "diff -u" output even for
11380         "diff -c" output (not supported by busybox) or for even less
11381         readable ed-style "diff" output.  So use init.sh's compare function
11382         * tests/test-version-etc.sh: Source init.sh and add "." to path.
11383         Remove "./" from invocation of test-version-etc, so we use path.
11384         And s/diff/compare/.
11385         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
11386         to get init.sh.
11387         Prompted by Eric Blake's comments in
11388         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
11390 2018-03-24  Bruno Haible  <bruno@clisp.org>
11392         javacomp-script, javacomp: Add support for Java 10.
11393         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
11394         target-version 10.
11395         * lib/javaversion.h: Update comments.
11396         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11397         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11398         TARGET_VERSION_BOUND, target_version_index,
11399         corresponding_classfile_version): Accept source_version 10 and
11400         target_version 10.
11401         * lib/javacomp.h: Update comments accordingly.
11403 2018-03-24  Bruno Haible  <bruno@clisp.org>
11405         javacomp-script, javacomp: Update comments.
11406         * m4/javacomp.m4: Update comments regarding gcj.
11407         * lib/javacomp.h: Likewise.
11409 2018-03-24  Bruno Haible  <bruno@clisp.org>
11411         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
11412         * lib/javaversion.h: Update comments.
11413         * lib/javacomp.h: Likewise.
11414         * lib/javacomp.c (default_target_version, source_version_index,
11415         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
11416         "1.9".
11417         (TARGET_VERSION_BOUND): Bump to 9.
11418         (target_version_index, corresponding_classfile_version): Recognize "9"
11419         instead of "1.9".
11420         (get_source_version_for_javac): New function.
11421         (is_envjavac_nongcj_usable, is_javac_usable): Add
11422         source_version_for_javac argument.
11423         (compile_java_class): Determine and pass source_version_for_javac.
11424         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
11425         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
11426         appropriate.
11428 2018-03-23  Jim Meyering  <meyering@fb.com>
11430         test-version-etc.sh: port to diff without -c
11431         * tests/test-version-etc.sh: Don't use diff's -c option.
11432         This caused spurious test failure on Alpine Linux, which
11433         uses busybox's diff. Reported by Assaf Gordon in
11434         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
11436 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11438         c-stack: port to recent GCC build
11439         Problem reported by The Fireplace (Bug#30913).
11440         * lib/c-stack.c (die): Define only if used.
11442 2018-03-20  Bruno Haible  <bruno@clisp.org>
11444         euidaccess: Port to native Windows.
11445         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
11446         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
11448 2018-03-19  Bruno Haible  <bruno@clisp.org>
11450         javacomp: Add support for Java 7, 8, 9.
11451         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11452         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11453         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
11454         and target_version 1,7, 1.8, 1.9.
11455         * lib/javacomp.h: Update comments accordingly.
11457 2018-03-19  Bruno Haible  <bruno@clisp.org>
11459         javacomp-script: Add support for Java 9.
11460         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
11461         target-version 1.9.
11463 2018-03-16  Bruno Haible  <bruno@clisp.org>
11465         glob: Don't compile replacements on recent glibc systems.
11466         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
11467         REPLACE_GLOB is 0, include the system's <glob.h> and use
11468         _GL_CXXALIAS_SYS.
11469         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
11470         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
11471         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
11472         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
11473         Remove snippet/warn-on-use.
11474         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
11475         (Makefile.am): Create glob.h always. Update list of substitutions in
11476         glob.h. Don't depend on $(WARN_ON_USE_H).
11478 2018-03-16  Bruno Haible  <bruno@clisp.org>
11480         glob: Fix link error on native Windows.
11481         * modules/glob (Depends-on): Add 'lstat'.
11483 2018-03-15  Bruno Haible  <bruno@clisp.org>
11485         glob: Fix compilation error in C++ mode.
11486         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
11488 2018-03-15  Bruno Haible  <bruno@clisp.org>
11490         host-cpu-c-abi: Support for RISC-V CPU.
11491         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
11492         riscv32 and riscv64 ABIs.
11493         References:
11494         https://github.com/riscv/riscv-toolchain-conventions
11495         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
11496         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
11498 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
11500         fflush: be more paranoid about libio.h change
11501         Suggested by Eli Zaretskii in:
11502         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
11503         * lib/fbufmode.c (fbufmode):
11504         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11505         (disable_seek_optimization, rpl_fflush):
11506         * lib/fpending.c (__fpending):
11507         * lib/fpurge.c (fpurge):
11508         * lib/freadable.c (freadable):
11509         * lib/freadahead.c (freadahead):
11510         * lib/freading.c (freading):
11511         * lib/freadptr.c (freadptr):
11512         * lib/freadseek.c (freadptrinc):
11513         * lib/fseeko.c (fseeko):
11514         * lib/fseterr.c (fseterr):
11515         * lib/fwritable.c (fwritable):
11516         * lib/fwriting.c (fwriting):
11517         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
11519 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
11521         maint: write-file-hooks -> before-save-hook
11522         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
11523         it's time to use the recommended replacement.
11524         Problem reported by Glenn Morris in:
11525         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
11526         * build-aux/announce-gen, build-aux/bootstrap:
11527         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
11528         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
11529         * build-aux/gnu-web-doc-update, build-aux/gnupload:
11530         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
11531         * build-aux/update-copyright, build-aux/useless-if-before-free:
11532         * build-aux/vc-list-files:
11533         Update hook usage for files where Gnulib is the canonical source.
11535 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11537         binary-io: pacify gcc -Wunused-parameter
11538         Problem reported by Reuben Thomas in:
11539         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
11540         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
11541         Use _GL_UNUSED where appropriate.
11543         fflush: adjust to glibc 2.28 libio.h removal
11544         Problem reported by Daniel P. Berrangé in:
11545         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
11546         * lib/fbufmode.c (fbufmode):
11547         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11548         (disable_seek_optimization, rpl_fflush):
11549         * lib/fpending.c (__fpending):
11550         * lib/fpurge.c (fpurge):
11551         * lib/freadable.c (freadable):
11552         * lib/freadahead.c (freadahead):
11553         * lib/freading.c (freading):
11554         * lib/freadptr.c (freadptr):
11555         * lib/freadseek.c (freadptrinc):
11556         * lib/fseeko.c (fseeko):
11557         * lib/fseterr.c (fseterr):
11558         * lib/fwritable.c (fwritable):
11559         * lib/fwriting.c (fwriting):
11560         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
11561         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
11562         Define if not already defined.
11564 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
11566         environ: fix link error on 32-bit Cygwin
11567         Problem reported for GNU Emacs by Ken Brown in:
11568         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
11569         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
11571 2018-02-24  Bruno Haible  <bruno@clisp.org>
11573         mbrtowc tests: Fix regression on glibc.
11574         Reported by Bernhard Voelker.
11575         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11577 2018-02-24  Bruno Haible  <bruno@clisp.org>
11579         striconveha, uniconv/*: Avoid test failures on musl libc.
11580         * tests/iconvsupport.c: New file.
11581         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
11582         does not support the ISO-2022-JP-2 encoding.
11583         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11584         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11586         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11587         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11588         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11589         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
11590         (Makefile.am): Link test-striconveha with iconvsupport.o.
11591         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
11592         tests/iconvsupport.c.
11593         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
11594         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
11595         tests/iconvsupport.c.
11596         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
11597         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
11598         tests/iconvsupport.c.
11599         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
11600         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
11601         tests/iconvsupport.c.
11602         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
11603         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
11604         tests/iconvsupport.c.
11605         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
11606         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
11607         tests/iconvsupport.c.
11608         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
11610 2018-02-24  Bruno Haible  <bruno@clisp.org>
11612         localename: Add support for musl libc.
11613         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
11614         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
11615         on Linux platforms which define NL_LOCALE_NAME.
11617 2018-02-24  Bruno Haible  <bruno@clisp.org>
11619         mbrtowc tests: Don't make assumptions about the charset the C locale.
11620         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
11621         particular mapping in the C locale.
11623 2018-02-24  Bruno Haible  <bruno@clisp.org>
11625         ptsname_r: Don't expect that this function sets errno.
11626         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
11627         from ptsname_r().
11628         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
11630 2018-02-23  Bruno Haible  <bruno@clisp.org>
11632         xmalloca: pacify gcc -Wbad-function-cast
11633         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
11635 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11637         nl_langinfo: pacify gcc -Wunused-function
11638         * lib/nl_langinfo.c (ctype_codeset): Do not define if
11639         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
11640         this case.  Without this change, I got a diagnostic when building
11641         coreutils on Fedora 27 with gcc 7.3.1 20180130.
11643         same: pacify gcc -Wunused-variable
11644         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
11645         Omit unused variable.
11647         malloca: pacify gcc -Wbad-function-cast
11648         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
11649         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
11650         To pacify GCC, I had to cast alloca’s result to some type other
11651         than void * before casting that to uintptr_t.
11653 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11655         utimecmp: new function utimecmpat
11656         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
11657         Do not include utimens.h.
11658         (utimecmpat): New function, generalizing utimecmp.
11659         (utimecmp): Now a thin layer around utimecmpat.
11660         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
11661         utimensat instead of on lstat and utimens.
11663         same: new function same_nameat
11664         * lib/same.c: Include fcntl.h.
11665         * lib/same.c (same_nameat): New function, generalizing same_name.
11666         (same_name): Now a thin layer around same_nameat.
11667         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
11668         * modules/same (Depends-on): Depend on fstatat, openat.
11670 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
11672         warnings: Add support for Objective C.
11673         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
11674         macro.
11676 2018-02-17  Bruno Haible  <bruno@clisp.org>
11678         lock: Fix test-once1 crash on FreeBSD11.
11679         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
11680         'pthread_create', not 'pthread_cancel'.
11682 2018-02-17  Bruno Haible  <bruno@clisp.org>
11684         lock: Add test of gl_once.
11685         * tests/test-once.c: New file.
11686         * modules/lock-tests (Files): Add it.
11687         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
11689 2018-02-17  Bruno Haible  <bruno@clisp.org>
11691         thread: Fix compilation error on IRIX.
11692         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
11693         needed; include it outside the C++ extern "C" {} block.
11694         * doc/posix-headers/pthread.texi: Mention the problem with
11695         pthread_atfork on IRIX.
11697 2018-02-04  Bruno Haible  <bruno@clisp.org>
11699         nl_langinfo: Override the system's nl_langinfo() when needed.
11700         Reported by Jim Meyering.
11701         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
11702         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
11704 2018-02-04  Bruno Haible  <bruno@clisp.org>
11706         signal-h, monetary, strings: Fix build failure in some cases.
11707         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11708         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
11709         as delimiter in sed command, not '|'.
11710         * modules/monetary (Makefile.am): Likewise.
11711         * modules/strings (Makefile.am): Likewise.
11713 2018-02-03  Jim Meyering  <meyering@fb.com>
11715         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
11716         * top/maint.mk (sc_file_system): Don't complain about
11717         "/proc/filesystems".
11719 2018-02-03  Bruno Haible  <bruno@clisp.org>
11721         stdlib: Fix compilation error on OpenIndiana.
11722         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
11723         <sys/time.h>.
11724         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11725         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11727 2018-02-03  Bruno Haible  <bruno@clisp.org>
11729         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
11730         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
11731         and use $EGREP instead of 'grep -E'.
11732         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
11733         'grep -E'.
11735 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11737         malloca: Add a compile-time verification.
11738         * lib/malloca.c (small_t): Verify that it is wide enough.
11739         * modules/malloca (Depends-on): Add verify.
11741 2018-02-02  Bruno Haible  <bruno@clisp.org>
11743         malloca: Add an argument check.
11744         Suggested by Paul Eggert.
11745         * lib/malloca.c (freea): Check against an invalid argument.
11747 2018-02-02  Bruno Haible  <bruno@clisp.org>
11749         localename: Add support for OpenIndiana.
11750         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
11751         Solaris 11 variants with uselocale() but without getlocalename_l().
11753 2018-02-02  Bruno Haible  <bruno@clisp.org>
11755         malloca, xmalloca: Make multithread-safe.
11756         Reported by Florian Weimer <fweimer@redhat.com>.
11757         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
11758         * lib/malloca.h (malloca): In the stack allocation case, return a
11759         pointer that is a multiple of 2 * sa_alignment_max.
11760         (sa_increment): Remove enum item.
11761         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
11762         a pointer that is a multiple of 2 * sa_alignment_max.
11763         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
11764         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
11765         HASH_TABLE_SIZE, mmalloca_results): Remove.
11766         (small_t): New type.
11767         (mmalloca, free): Rewritten.
11768         * lib/malloca.valgrind: Remove file.
11769         * modules/malloca (Files): Remove it.
11770         (Depends-on): Remove verify.
11772 2018-01-31  Bruno Haible  <bruno@clisp.org>
11774         environ: Fix link error on 64-bit Cygwin.
11775         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
11776         __declspec(dllimport) attribute.
11777         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
11779 2018-01-30  Bruno Haible  <bruno@clisp.org>
11781         get-rusage-data: Add support for Minix 3.
11782         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
11784 2018-01-30  Bruno Haible  <bruno@clisp.org>
11786         vma-iter: Add support for Minix 3.
11787         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
11788         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
11790 2018-01-27  Bruno Haible  <bruno@clisp.org>
11792         Fix malfunction of socket functions on HP-UX in 64-bit mode.
11793         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
11794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
11795         _HPUX_ALT_XOPEN_SOCKET_API.
11796         * modules/accept (Depends-on): Add 'extensions'.
11797         * modules/getpeername (Depends-on): Likewise.
11798         * modules/getsockname (Depends-on): Likewise.
11799         * modules/getsockopt (Depends-on): Likewise.
11800         * modules/recvfrom (Depends-on): Likewise.
11801         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
11802         * doc/posix-functions/getpeername.texi: Likewise.
11803         * doc/posix-functions/getsockname.texi: Likewise.
11804         * doc/posix-functions/getsockopt.texi: Likewise.
11805         * doc/posix-functions/recvfrom.texi: Likewise.
11807 2018-01-27  Bruno Haible  <bruno@clisp.org>
11809         getsockname tests: More tests.
11810         * tests/test-getsockname.c (open_server_socket): New function, mostly
11811         copied from test-poll.c.
11812         (main): Check that getsockname fills in addr.
11813         * modules/getsockname-tests (Depends-on): Add the necessary
11814         dependencies.
11815         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
11817 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
11819         manywarnings: fix maintainer comment
11820         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
11821         it does not mistakenly think that ‘-1)’ is an option.
11823 2018-01-26  Bruno Haible  <bruno@clisp.org>
11825         langinfo: Fix last commit.
11826         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11827         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
11829 2018-01-24  Bruno Haible  <bruno@clisp.org>
11831         langinfo, nl_langinfo: Add support for alternative month names.
11832         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
11833         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
11834         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
11835         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
11836         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
11837         * doc/posix-functions/nl_langinfo.texi: Likewise.
11839 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11841         Merge strftime.c changes from glibc
11842         This incorporates:
11843         2017-11-14 [BZ #10871] Implement alternative month names
11844         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
11845         2017-06-20 Use locale_t, not __locale_t, throughout glibc
11846         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
11847         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
11848         Use locale_t, not __locale_t.
11849         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
11850         (__strftime_internal): Add support for alternate months.
11852 2018-01-23  Bruno Haible  <bruno@clisp.org>
11854         doc: Mention another prerequisite for using Gnulib.
11855         Reported at <https://stackoverflow.com/questions/48378214/>.
11856         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
11857         AC_CONFIG_HEADERS.
11859 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
11861         build: GuixSD doesn't have /bin/bash
11862         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
11864 2018-01-21  Bruno Haible  <bruno@clisp.org>
11866         Avoid test failures on Microsoft Windows Subsystem for Linux.
11867         * tests/test-fcntl.c (main): Allow a different errno.
11868         * tests/test-rename.h (test_rename): Likewise.
11869         * tests/test-renameat.c (main): Likewise.
11870         * tests/test-renameat2.c (main): Likewise.
11872 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
11874         filenamecat: make base a suffix of result
11875         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
11876         (mfile_name_concat): Always make BASE a suffix of the result, as
11877         cp expects this.  To implement this, separate with '.' instead of
11878         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
11879         * tests/test-filenamecat.c (main): Adjust tests to match
11880         current behavior.  Check that BASE_IN_RESULT points to
11881         a copy of BASE and is a suffix of the resultk, and that DIR
11882         is a prefix of the result that is no longer than the prefix
11883         indicated by BASE_IN_RESULT.
11885 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
11887         update-copyright: Handle use of ©
11888         * build-aux/update-copyright ($circle_c_re): Update regex to
11889         handle use of © in headers.
11891 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
11893         Fix -Wundef warning in user-included header lib/cdefs.h.
11894         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
11896 2018-01-04  Bruno Haible  <bruno@clisp.org>
11898         pthread_sigmask: Avoid compilation error on mingw.
11899         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11900         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
11901         macro.
11903 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11905         test-framework-sh: ‘ps -ef’, not ‘ps ef’
11906         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
11907         Suggested by Bob Proulx (Bug#29968).
11908         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
11910 2018-01-02  Eric Blake  <eblake@redhat.com>
11912         stat-time: silence -Wunused-parameter regression
11913         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
11914         Prefer attribute over cast-to-void.
11915         (stat_time_normalize): Mark st as potentially unused.
11917 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
11919         test-framework-sh: avoid netstat
11920         Problem reported by Kristýna Streitová (Bug#29947).
11921         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
11922         deprecated on SuSE and it's not that important anyway.
11924 2018-01-01  Jim Meyering  <meyering@fb.com>
11926         update-copyright: add code to handle more special cases
11927         After running "make update-copyright" this year, five files
11928         required additional manual changes.  Automate those adjustments
11929         for next year.
11930         * Makefile (_year_and_prev): Define.
11931         (update-copyright): Add perl commands to induce this year's post-
11932         update-copyright adjustments.
11934 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11936         version-etc: new year
11937         * build-aux/gendocs.sh (version):
11938         * doc/gendocs_template:
11939         * doc/gendocs_template_min:
11940         * doc/gnulib.texi:
11941         * lib/version-etc.c (COPYRIGHT_YEAR):
11942         Update copyright dates by hand in templates and the like.
11944         maint: fix 'make update-copyright'
11945         * Makefile (update-copyright): Adjust to 2016-11-23 change
11946         to config/srclist-update, which changed the format of srclist.txt.
11948 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
11950         chdir-safer: remove this module
11951         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
11952         * NEWS: Document removal.
11953         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
11954         * modules/chdir-safer: Remove these files.
11956 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
11958         Add cross-compilation results for GNU/Hurd.
11959         * m4/calloc.m4: Add GNU/Hurd guess.
11960         * m4/cbrtl.m4: Likewise.
11961         * m4/ceil.m4: Likewise.
11962         * m4/ceilf.m4: Likewise.
11963         * m4/ceill.m4: Likewise.
11964         * m4/chown.m4: Likewise.
11965         * m4/duplocale.m4: Likewise.
11966         * m4/exp2l.m4: Likewise.
11967         * m4/expm1.m4: Likewise.
11968         * m4/fchdir.m4: Likewise.
11969         * m4/floor.m4: Likewise.
11970         * m4/floorf.m4: Likewise.
11971         * m4/fmod.m4: Likewise.
11972         * m4/fmodf.m4: Likewise.
11973         * m4/fmodl.m4: Likewise.
11974         * m4/getcwd.m4: Likewise.
11975         * m4/getgroups.m4: Likewise.
11976         * m4/gettimeofday.m4: Likewise.
11977         * m4/hypot.m4: Likewise.
11978         * m4/hypotf.m4: Likewise.
11979         * m4/hypotl.m4: Likewise.
11980         * m4/link-follow.m4: Likewise.
11981         * m4/link.m4: Likewise.
11982         * m4/linkat.m4: Likewise.
11983         * m4/log.m4: Likewise.
11984         * m4/log10.m4: Likewise.
11985         * m4/log10f.m4: Likewise.
11986         * m4/log1p.m4: Likewise.
11987         * m4/log1pf.m4: Likewise.
11988         * m4/log1pl.m4: Likewise.
11989         * m4/log2.m4: Likewise.
11990         * m4/log2f.m4: Likewise.
11991         * m4/logf.m4: Likewise.
11992         * m4/lstat.m4: Likewise.
11993         * m4/malloc.m4: Likewise.
11994         * m4/mbrlen.m4: Likewise.
11995         * m4/mbrtowc.m4: Likewise.
11996         * m4/mkdir.m4: Likewise.
11997         * m4/mkfifo.m4: Likewise.
11998         * m4/mknod.m4: Likewise.
11999         * m4/mkstemp.m4: Likewise.
12000         * m4/modf.m4: Likewise.
12001         * m4/modff.m4: Likewise.
12002         * m4/modfl.m4: Likewise.
12003         * m4/printf.m4: Likewise.
12004         * m4/pselect.m4: Likewise.
12005         * m4/ptsname.m4: Likewise.
12006         * m4/putenv.m4: Likewise.
12007         * m4/readlink.m4: Likewise.
12008         * m4/realloc.m4: Likewise.
12009         * m4/remainder.m4: Likewise.
12010         * m4/remainderf.m4: Likewise.
12011         * m4/remainderl.m4: Likewise.
12012         * m4/rmdir.m4: Likewise.
12013         * m4/round.m4: Likewise.
12014         * m4/roundf.m4: Likewise.
12015         * m4/roundl.m4: Likewise.
12016         * m4/select.m4: Likewise.
12017         * m4/setenv.m4: Likewise.
12018         * m4/signbit.m4: Likewise.
12019         * m4/sleep.m4: Likewise.
12020         * m4/stat.m4: Likewise.
12021         * m4/strerror.m4: Likewise.
12022         * m4/strtok_r.m4: Likewise.
12023         * m4/symlink.m4: Likewise.
12024         * m4/symlinkat.m4: Likewise.
12025         * m4/trunc.m4: Likewise.
12026         * m4/truncf.m4: Likewise.
12027         * m4/truncl.m4: Likewise.
12028         * m4/tzset.m4: Likewise.
12029         * m4/ungetc.m4: Likewise.
12030         * m4/usleep.m4: Likewise.
12031         * m4/wcwidth.m4: Likewise.
12033 2017-12-28  Bruno Haible  <bruno@clisp.org>
12035         gnulib-tool: Make --conditional-dependencies work better.
12036         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
12037         * gnulib-tool (Options): Don't reject the combination of
12038         --conditional-dependencies with --with-tests.
12039         (func_emit_autoconf_snippets): Add argument referenceable_modules.
12040         Don't reference $modules.
12041         (func_import, func_create_testdir): Pass it.
12043 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
12045         regex: use re_malloc etc. consistently
12046         Problem and original patch reported by Arnold Robbins in:
12047         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
12048         * lib/regcomp.c (re_comp):
12049         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
12050         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
12052 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
12053             Paul Eggert  <eggert@cs.ucla.edu>
12055         glob: Silence warning about void pointer arithmetic.
12056         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
12057         arithmetic.
12059 2017-12-15  Bruno Haible  <bruno@clisp.org>
12061         spawn-pipe: Silence a clang warning.
12062         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
12063         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
12064         in this file.
12066 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
12068         explicit_bzero: port to macOS + Clang 9.0.0
12069         Problem reported by Marcus Johnson (Bug#29658).
12070         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
12071         Don’t use asm.
12073 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12075         doc: Improve explanation of supporting relocatable libraries.
12076         * doc/relocatable-maint.texi (Supporting Relocation): Explain
12077         properly how to build the relocatable module for
12078         libraries. (Method and example code from Bruno Haible.)
12080 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
12082         doc: Use better texinfo tags in a few cases.
12083         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
12084         instead of @samp in a few places.
12086 2017-12-11  Bruno Haible  <bruno@clisp.org>
12088         unistr/base: Update comment.
12089         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
12091 2017-12-10  Pádraig Brady  <P@draigBrady.com>
12093         test-faccessat.c: unlink temp file to avoid subsequent test failure
12094         * tests/test-faccessat.c: Remove the file to avoid failure
12095         to open the file on subsequent runs due to being created
12096         with no permissions.
12098 2017-12-10  Bruno Haible  <bruno@clisp.org>
12100         doc: New sect. "Modifying the build rules of a Gnulib import directory".
12101         * doc/gnulib-tool.texi (Modified build rules): New node.
12103 2017-12-10  Bruno Haible  <bruno@clisp.org>
12105         doc: Tweak wording.
12106         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
12107         "binaries".
12109 2017-12-05  Sam Steingold  <sds@gnu.org>
12110             Bruno Haible  <bruno@clisp.org>
12112         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
12113         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
12114         AC_EGREP_CPP pattern.
12116 2017-12-03  Bruno Haible  <bruno@clisp.org>
12118         all: Replace more http URLs by https URLs.
12119         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
12120         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
12121         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
12122         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
12124 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12126         Port better to CentOS 5
12127         Problems reported by Tom G. Christensen in:
12128         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
12129         * doc/glibc-functions/strverscmp.texi (strverscmp):
12130         Document strverscmp bug with glibc 2.9 and earlier.
12131         * doc/posix-functions/tzset.texi (tzset):
12132         Document that TZ with angle brackets is POSIX-2001 and later.
12133         * tests/test-nstrftime.c: Include unistd.h.
12134         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
12135         (TZ): Use it to skip tests with angle brackets in TZ,
12136         for older systems.
12138         stat: add missing module dependencies
12139         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
12140         Add stat-time.
12142 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
12144         stat: fix compilation failure on macOS Sierra
12145         Reported by Marius Schamschula <mschamschula@gmail.com> in:
12146         https://savannah.gnu.org/bugs/?52546
12147         * lib/stat.c: Add missing include of stat-time.h.
12149 2017-11-28  Jim Meyering  <meyering@fb.com>
12151         test-faccessat.c: correct BASE definition to avoid parallel test failure
12152         * tests/test-faccessat.c (BASE): Define using this file's name, not
12153         that of test-lstat.c.  Using the latter caused this test to fail
12154         sometimes when run concurrently with test-lstat.
12156 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12158         unicase: fix VPATH build
12159         * modules/unicase/special-casing (Makefile.am): Ensure that the
12160         base directory is created when generating
12161         unicase/special-casing.h.
12163 2017-11-27  Daiki Ueno  <ueno@gnu.org>
12165         libunistring: update to Unicode 9.0.0
12166         * lib/gen-uni-tables.c (fill_properties): Recognize
12167         Sentence_Terminal and Prepended_Concatenation_Mark.
12168         (is_property_default_ignorable_code_point): Exclude U+08E2.
12169         (fill_arabicshaping): Allow missing whitespace when parsing;
12170         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
12171         (output_blocks): Increase the element size of the level1 table to
12172         accommodate more blocks.
12173         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
12174         Update each class according to the standard.
12175         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
12176         E_Base_GAZ characters.
12177         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
12178         Glue_After_Zwj, and E_Base_GAZ characters.
12179         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
12180         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
12181         enum value.
12182         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
12183         value.
12184         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
12185         LBP_ZWJ, LBP_EB, and LBP_EM.
12186         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
12187         enum value.
12188         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
12189         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
12190         declaration.
12191         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
12192         (uniwbrk_table): Implement WB14.
12193         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
12194         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
12195         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
12196         uc-is-grapheme-break.
12197         * modules/unigbrk/uc-grapheme-breaks: New module.
12198         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
12199         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
12200         enum value.
12201         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
12202         * lib/unigbrk/u-grapheme-breaks.h: New file.
12203         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
12204         u-grapheme-breaks.h instead of uc_is_grapheme_break.
12205         * lib/unigbrk/uc-grapheme-breaks.c: New file.
12206         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
12207         29.
12208         * tests/unigbrk/test-uc-gbrk-prop.c
12209         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12210         GBP_GAZ, and GBP_EBG.
12211         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
12212         * tests/unigbrk/test-uc-is-grapheme-break.c
12213         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
12214         GBP_GAZ, and GBP_EBG.
12215         (main): Skip unsupported rules involving 3 or more characters,
12216         namely GB10, GB12, and GB13.
12217         * lib/uniwidth/width.c (nonspacing_table_data): Update.
12218         * all generated files under lib/uni* and tests/uni*: Regenerate.
12219         * all the affected modules: Bump version.
12221 2017-11-26  Bruno Haible  <bruno@clisp.org>
12223         strfmon_l: Fix compilation error with glibc 2.5.
12224         Reported by Tom G. Christensen <tgc@jupiterrise.com>
12225         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
12226         * lib/monetary.in.h: Include also <locale.h>.
12228 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12230         posixtm: remove PDS_LEADING_YEAR
12231         This changes the API slightly, in a hopefully-innocuous way.
12232         Without this change the code had undefined behavior when a
12233         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
12234         Problem reported by Pádraig Brady in:
12235         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
12236         * NEWS: Mention this.
12237         * lib/posixtm.c (posix_time_parse): Treat the absence of
12238         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
12239         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
12240         present, but define it as zero, for compatibility with existing
12241         source code).  All other PDS_* values moved up.
12242         * tests/test-posixtm.c (LY): New macro.
12243         (T): Use it.  Do not expect a particular numeric encoding
12244         for PDS_CENTURY etc.
12246 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
12248         stat: work around Solaris bug with tv_nsec < 0
12249         * doc/posix-functions/fstat.texi (fstat):
12250         * doc/posix-functions/fstatat.texi (fstatat):
12251         * doc/posix-functions/lstat.texi (lstat):
12252         * doc/posix-functions/stat.texi (stat):
12253         Mention Solaris 11 bug.
12254         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
12255         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
12256         * lib/lstat.c (rpl_lstat):
12257         * lib/stat.c (rpl_stat):
12258         Normalize resulting timestamps.
12259         * lib/fstatat.c (normal_fstatat): New function.
12260         (rpl_fstatat): Use it.
12261         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
12262         (stat_time_normalize): New function.
12263         * m4/fstat.m4 (gl_FUNC_FSTAT):
12264         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
12265         * m4/lstat.m4 (gl_FUNC_LSTAT):
12266         * m4/stat.m4 (gl_FUNC_STAT):
12267         Replace on Solaris.
12268         * modules/fstat (Depends-on):
12269         * modules/fstatat (Depends-on):
12270         Add stat-time.
12271         * modules/stat-time (Depends-on): Add errno, intprops.
12273 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12275         regex: merge from glibc
12276         * lib/regcomp.c (init_word_char): Add comments.
12278 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12280         regex: merge from glibc
12281         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
12282         * lib/regex_internal.h (internal_function): Remove.
12283         All uses removed.
12285 2017-11-20  Bruno Haible  <bruno@clisp.org>
12287         crypto/gc-sm3: Fix buffer overrun.
12288         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
12289         Reported by Coverity.
12291 2017-11-12  Jim Meyering  <meyering@fb.com>
12293         maint: shorten https://lists.gnu.org/archive/html/... links
12294         Each /archive/html/ part can be replace with /r/.
12295         Run this to induce the change:
12296         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
12297         * ChangeLog: Perform that substitution.
12298         * Makefile: Likewise.
12299         * STATUS-libposix: Likewise.
12300         * build-aux/bootstrap: Likewise.
12301         * doc/maintain.texi: Likewise.
12302         * gnulib-tool: Likewise.
12303         * lib/allocator.h: Likewise.
12304         * lib/argp-ba.c: Likewise.
12305         * lib/argp-pv.c: Likewise.
12306         * lib/canon-host.c: Likewise.
12307         * lib/canonicalize-lgpl.c: Likewise.
12308         * lib/float.in.h: Likewise.
12309         * lib/fstat.c: Likewise.
12310         * lib/getdelim.c: Likewise.
12311         * lib/getprogname.c: Likewise.
12312         * lib/glthread/thread.h: Likewise.
12313         * lib/intprops.h: Likewise.
12314         * lib/mbsrtowcs-state.c: Likewise.
12315         * lib/safe-read.c: Likewise.
12316         * lib/signal.in.h: Likewise.
12317         * lib/stat.c: Likewise.
12318         * lib/stdbool.in.h: Likewise.
12319         * lib/stdio-impl.h: Likewise.
12320         * lib/stdio.in.h: Likewise.
12321         * lib/sysexits.in.h: Likewise.
12322         * lib/timespec.h: Likewise.
12323         * lib/wcsrtombs-state.c: Likewise.
12324         * m4/alloca.m4: Likewise.
12325         * m4/extern-inline.m4: Likewise.
12326         * m4/fstatat.m4: Likewise.
12327         * m4/gnulib-common.m4: Likewise.
12328         * m4/lib-ignore.m4: Likewise.
12329         * m4/printf.m4: Likewise.
12330         * m4/regex.m4: Likewise.
12331         * m4/stat-size.m4: Likewise.
12332         * m4/std-gnu11.m4: Likewise.
12333         * m4/stdbool.m4: Likewise.
12334         * m4/sys_types_h.m4: Likewise.
12335         * m4/threadlib.m4: Likewise.
12336         * m4/vararrays.m4: Likewise.
12337         * pygnulib/GLImport.py: Likewise.
12338         * tests/test-exp.h: Likewise.
12339         * tests/test-exp2.h: Likewise.
12340         * tests/test-expm1.h: Likewise.
12341         * tests/test-fflush2.c: Likewise.
12342         * tests/test-getopt_long.h: Likewise.
12343         * tests/test-intprops.c: Likewise.
12344         * tests/test-log.h: Likewise.
12345         * tests/test-log10.h: Likewise.
12346         * tests/test-log1p.h: Likewise.
12347         * tests/test-log2.h: Likewise.
12348         * tests/test-printf-posix.h: Likewise.
12349         * tests/test-regex.c: Likewise.
12350         * tests/test-snprintf-posix.h: Likewise.
12351         * tests/test-sprintf-posix.h: Likewise.
12352         * tests/test-stdalign.c: Likewise.
12353         * tests/test-stdbool.c: Likewise.
12354         * tests/test-vasnprintf-posix.c: Likewise.
12355         * tests/test-vasprintf-posix.c: Likewise.
12356         * top/maint.mk: Likewise.
12358 2017-11-12  Bruno Haible  <bruno@clisp.org>
12360         faccessat: Make the last change more robust.
12361         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
12362         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
12364 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12366         faccessat: port to macOS (Bug#29231)
12367         macOS faccessat has the same bug that lstat does: if the file
12368         name ends in '/' it ignores the trailing slash.
12369         Problem reported for Emacs by Vincent Zhang.
12370         * doc/posix-functions/faccessat.texi (faccessat): Document this.
12371         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
12372         around the initial includes.  Include errno.h, string.h, sys/stat.h.
12373         (orig_faccessat) [HAVE_FACCESSAT]: New function.
12374         Include "unistd.h" after defining it.
12375         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
12376         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
12377         Handle in the usual way.
12378         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
12379         lstat dereferences symlinks, since faccessat is likely to
12380         have the same problem.
12381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
12382         * modules/faccessat (Depends-on): Add fstatat.
12383         Depend if REPLACE_FACCESSAT is 1, too.
12384         (configure.ac): Link if REPLACE_FACCESSAT is 1.
12385         * modules/faccessat-tests (Depends-on): Add symlink.
12386         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
12387         * tests/test-faccessat.c (main): Test for the bug.
12389 2017-11-11  Bruno Haible  <bruno@clisp.org>
12391         getprogname: Fix compilation error on IRIX.
12392         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
12393         'namesize'.
12395 2017-11-11  Bruno Haible  <bruno@clisp.org>
12397         year2038: Tweak last patch.
12398         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
12400 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12402         year2038: be more insistent about 64-bit time_t
12403         Applications requiring access to arbitrary files should not be
12404         built with 32-bit time_t on hosts that have 64-bit timestamps,
12405         as this can lead to real trouble at runtime.
12406         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
12407         Check on all systems, not just MinGW.  Use a heuristic involving
12408         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
12409         output a failure or just a warning, to make it more likely that
12410         builders will select 64-bit time_t.
12412 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12414         havelib: fix typo in previous change
12415         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
12417         Don’t use AC_EGREP_CPP if affected by CFLAGS
12418         * m4/float_h.m4 (gl_FLOAT_H):
12419         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
12420         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
12421         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
12422         * m4/year2038.m4 (gl_YEAR2038):
12423         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
12424         likely to be affected by the choice of CFLAGS, since CFLAGS are
12425         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
12426         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
12428         fstatat: pacify GCC on unusual platform
12429         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
12430         Omit, as it’s unused in this case.
12432 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
12434         timespec: prefer ‘assume’ to ‘assure’
12435         This avoids some runtime tests.  The rest of the module makes
12436         similar assumptions and there is little point to testing here.
12437         * lib/timespec.h: Include verify.h instead of assure.h.
12438         (timespec_cmp): Use ‘assume’, not ‘assure’.
12439         Also, remove an unnecessary cast to ‘int’, as lots of other
12440         code in this module now causes -Wconversion to complain, and
12441         this is a problem with -Wconversion not with the code.
12443         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
12445         Port recent gnulib-tool change to Dash
12446         * gnulib-tool (func_create_testdir): Don't assume that the shell
12447         retokenizes after expanding "$@" inside the call to
12448         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
12450 2017-10-27  Jim Meyering  <meyering@fb.com>
12452         timespec.h: use "assure" to avoid a spurious warning
12453         * lib/timespec.h: Include "assure.h" and use it to help
12454         gcc7's -Wstrict-overflow avoid a false positive warning
12455         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
12456         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
12457         * modules/timespec (Depends-on): Add assure.
12459 2017-10-29  Bruno Haible  <bruno@clisp.org>
12461         Avoid several test failures with traditional locales on Haiku.
12462         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
12463         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
12464         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
12465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
12466         LOCALE_ZH_CN=none.
12468 2017-10-29  Bruno Haible  <bruno@clisp.org>
12470         strerror_r-posix: Fix behaviour and test failure on Haiku.
12471         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
12472         are positive. Work around return value 0 instead of ERANGE on Haiku.
12473         For unknown error numbers, use a format string consistent with perror().
12474         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
12475         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
12476         are positive.
12478 2017-10-29  Bruno Haible  <bruno@clisp.org>
12480         get-rusage-data: Avoid crash on Haiku.
12481         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
12483 2017-10-29  Bruno Haible  <bruno@clisp.org>
12485         get-rusage-as: Avoid crash on Haiku.
12486         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
12488 2017-10-29  Bruno Haible  <bruno@clisp.org>
12490         ilogbl: Ensure replacement on Haiku.
12491         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
12492         REPLACE_ILOGBL if ilogbl does not work.
12493         (gl_FUNC_ILOGBL_WORKS): New macro.
12494         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
12495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
12496         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
12497         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
12498         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
12500 2017-10-29  Bruno Haible  <bruno@clisp.org>
12502         expl: Ensure replacement on Haiku.
12503         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
12504         zero.
12505         * doc/posix-functions/expl.texi: Mention the Haiku problem.
12507 2017-10-29  Bruno Haible  <bruno@clisp.org>
12509         math: Fix test failure on Haiku.
12510         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
12511         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
12512         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12513         * doc/posix-headers/math.texi: Mention the Haiku problem.
12515 2017-10-29  Bruno Haible  <bruno@clisp.org>
12517         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
12518         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
12519         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
12521 2017-10-29  Bruno Haible  <bruno@clisp.org>
12523         crypto/*: Verify that the header file is self-contained.
12524         * tests/test-gc-*.c: Include the module's header file immediately after
12525         <config.h>.
12526         * tests/test-hmac-*.c: Likewise.
12527         * tests/test-arcfour.c: Likewise.
12528         * tests/test-arctwo.c: Likewise.
12529         * tests/test-des.c: Likewise.
12530         * tests/test-md2.c: Likewise.
12531         * tests/test-md4.c: Likewise.
12532         * tests/test-md5.c: Likewise.
12533         * tests/test-rijndael.c: Likewise.
12534         * tests/test-sha1.c: Likewise.
12535         * tests/test-sm3.c: Likewise.
12537 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
12538             Bruno Haible  <bruno@clisp.org>
12540         crypto/gc: fix build failure with -Werror=suggest-attribute=const
12541         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
12543 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
12545         New module: crypto/gc-sm3
12546         * lib/gc.h: Declare SM3-related stuffs.
12547         * lib/gc-gnulib.c: Support sm3 in internal functions.
12548         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
12549         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
12550         * modules/crypto/gc-sm3: Define gc-sm3 module.
12551         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
12552         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
12553         * MODULES.html.sh: List gc-sm3 module.
12555 2017-10-29  Bruno Haible  <bruno@clisp.org>
12557         random, random_r: Mention different prototypes on Haiku.
12558         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
12559         * doc/glibc-functions/random_r.texi: Likewise.
12560         * doc/glibc-functions/initstate_r.texi: Likewise.
12561         * doc/glibc-functions/setstate_r.texi: Likewise.
12563 2017-10-28  Bruno Haible  <bruno@clisp.org>
12565         posix_spawn: Avoid spurious message in configure output.
12566         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
12567         'cmp' command.
12569 2017-10-28  Bruno Haible  <bruno@clisp.org>
12571         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
12572         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
12573         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12575 2017-10-28  Bruno Haible  <bruno@clisp.org>
12577         ioctl: Override non-POSIX declaration on Haiku.
12578         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
12579         * lib/sys_ioctl.in.h: Add comment about Haiku.
12580         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
12581         * doc/glibc-headers/sys_ioctl.texi: Likewise.
12583 2017-10-28  Bruno Haible  <bruno@clisp.org>
12585         crypto/sm3: Add overview documentation to the .h file.
12586         * lib/sm3.h: Add comments.
12588 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
12590         New module: crypto/sm3
12591         This new module can be used to compute SM3 message digest of files or
12592         memory blocks according to the specification GM/T 004-2012
12593         Cryptographic Hash Algorithm SM3, published by State Cryptography
12594         Administration, China.
12595         The official SM3 cryptographic hash algorithm specification is
12596         available at
12597         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
12598         * lib/sm3.h: Declare the APIs of sm3 module.
12599         * lib/sm3.c: Implement SM3 hash algorithm.
12600         * m4/sm3.m4: m4 file for sm3 module.
12601         * modules/crypto/sm3: Define sm3 module.
12602         * tests/test-sm3.c: Implement SM3 test case.
12603         * modules/crypto/sm3-tests: Define sm3 test module.
12604         * MODULES.html.sh: List sm3 module.
12606 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
12608         gc-libgcrypt: fix undefined enum type in switch statement
12609         Resolve the following build failure:
12610         lib/gc-libgcrypt.c: In function 'gc_hash_open':
12611         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
12612         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
12613              case 0:
12614              ^~~~
12615         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
12616         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
12618 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
12620         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
12621         Resolve the following build failure:
12622         lib/gc-libgcrypt.c: In function 'gc_hash_read':
12623         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
12624         in signedness [-Werror=pointer-sign]
12625             digest = gcry_md_read (ctx->gch, 0);
12626                    ^
12627         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
12629 2017-10-26  Bruno Haible  <bruno@clisp.org>
12631         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
12632         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
12633         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
12635 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
12637         glob: fix another heap buffer overflow
12638         Problem reported by Tim Rühsen in:
12639         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
12640         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
12642 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12644         quotearg: pacify compiler re unsigned
12645         * lib/quotearg.c (quotearg_n_options):
12646         Rewrite to avoid diagnostic from overly-picky compiler.
12647         Problem reported by Sami Kerola in:
12648         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
12650         glob: fix heap buffer overflow
12651         * lib/glob.c (glob): Fix off-by-one error introduced into
12652         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
12653         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
12654         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
12655         Fix suggested by Bruno Haible.
12657 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12659         glob: pacify fuzzer for mempcpy
12660         Problem reported by Tim Rühsen in:
12661         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
12662         * lib/glob.c (glob): Do not pass NULL to mempcpy.
12664 2017-10-12  Bruno Haible  <bruno@clisp.org>
12666         doc: Fix syntax error (regression from 2017-10-03).
12667         * doc/posix-functions/strncpy.texi: Fix syntax error.
12669 2017-10-12  Bruno Haible  <bruno@clisp.org>
12671         doc: Update for Solaris 11.3.
12672         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
12673         mention Solaris 11.3.
12674         * m4/log2.m4: Fix comments.
12675         * m4/log2f.m4: Likewise.
12676         * m4/printf.m4: Update comments.
12677         * m4/rename.m4: Likewise.
12678         * m4/strncat.m4: Likewise.
12680         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
12682 2017-10-10  Bruno Haible  <bruno@clisp.org>
12684         doc: Improve doc about ioctl.
12685         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
12686         prototype.
12688 2017-10-09  Bruno Haible  <bruno@clisp.org>
12690         wcwidth: Don't use obsolete syntax of 'test'.
12691         Reported by Eric Blake.
12692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
12693         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
12695 2017-10-09  Bruno Haible  <bruno@clisp.org>
12697         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
12698         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
12699         and Daniel P. Berrange <berrange@redhat.com>.
12700         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
12701         on glibc systems. The getopt-pfx-core.h file declares exactly what
12702         unistd.h needs, nothing more.
12704 2017-10-08  Bruno Haible  <bruno@clisp.org>
12706         vma-iter: Improve support for FreeBSD.
12707         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
12708         vma_iterate.
12709         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
12711 2017-10-08  Bruno Haible  <bruno@clisp.org>
12713         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
12714         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
12716 2017-10-07  KO Myung-Hun  <komh@chollian.net>
12718         test-framework-sh: Fix 'invalid path dir' error.
12719         On OS/2, a path separator is ';' not ':'. And ':' is used as a
12720         separator between a drive letter and directory parts.
12721         As a result, an absolute path such as x:/path/to/dir on OS/2 is
12722         treated as an invalid path dir.
12723         * tests/init.sh (PATH_SEPARATOR): Set at startup.
12724         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
12725         instead of hard coded ':'.
12727 2017-10-07  Bruno Haible  <bruno@clisp.org>
12729         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
12730         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
12731         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
12732         (rof_open): On Linux, do multiple read() calls and make sure
12733         MIN_LEFTOVER bytes are left when read() returns.
12735 2017-10-07  Bruno Haible  <bruno@clisp.org>
12737         vma-iter: Improve support for GNU/Hurd.
12738         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
12739         API, not the /proc file system.
12741 2017-10-07  Bruno Haible  <bruno@clisp.org>
12743         test-framework-sh: Don't require bash on Windows and OS/2.
12744         Reported by KO Myung-Hun.
12745         * tests/test-init.sh: Use 'shopt' only when running in bash.
12747 2017-10-06  KO Myung-Hun  <komh@chollian.net>
12749         wcwidth: check a macro version of wcwidth () as well
12750         * lib/wchar.in.h: Revert commit from 2016-01-14.
12751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
12753 2017-10-06  Bruno Haible  <bruno@clisp.org>
12755         getopt-posix: Clarify copyright header.
12756         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
12757         * lib/getopt-pfx-core.h: Likewise.
12758         * lib/getopt-pfx-ext.h: Likewise.
12759         * lib/getopt-cdefs.in.h: Likewise.
12761 2017-10-03  Bruno Haible  <bruno@clisp.org>
12763         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
12764         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
12765         gl_HOST_CPU_C_ABI.
12767 2017-10-03  Bruno Haible  <bruno@clisp.org>
12769         doc: warn about misuse of strncpy and wcsncpy.
12770         * doc/posix-functions/strcpy.texi: Describe requirements on prior
12771         memory allocation.
12772         * doc/posix-functions/wcscpy.texi: Likewise.
12773         * doc/posix-functions/strncpy.texi: Describe what this function is not
12774         useful for.
12775         * doc/posix-functions/wcsncpy.texi: Likewise.
12777 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12779         fsuage: fix typo in previous change
12780         * lib/fsusage.c: Remove stray include of full-read.h.
12781         Problem reported by Sam Steingold for macOS (Bug#28669).
12783 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
12785         fsusage: remove SVR2 support
12786         SVR2 was obsolete by 1986 and is no longer supported by anybody,
12787         and its code was getting in the way of use of this module by
12788         Emacs, which has its own ‘read’ function anyway.
12789         * lib/fsusage.c: Do not include sys/filsys.h.
12790         (get_fs_usage): Remove SVR2-specific code.
12791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
12792         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
12793         * modules/fsusage (Depends-on): Do not depend on full-read.
12795         Simplify autoupdate of licenses
12796         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
12797         place.
12799 2017-10-01  Bruno Haible  <bruno@clisp.org>
12801         vma-iter: Add support for GNU/Hurd.
12802         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
12803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
12805 2017-09-30  Bruno Haible  <bruno@clisp.org>
12807         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
12808         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
12809         fail when module 'largefile' is in use.
12810         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
12811         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
12812         Don't test HAVE_SYS_PROCFS_H.
12814 2017-09-30  Bruno Haible  <bruno@clisp.org>
12816         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
12817         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
12818         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
12819         * modules/havelib (Depends-on): Add host-cpu-c-abi.
12821 2017-09-30  Bruno Haible  <bruno@clisp.org>
12823         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
12824         * lib/uniname/uniname.c (unicode_name_character): Add braces around
12825         scope of local variables.
12827 2017-09-28  Bruno Haible  <bruno@clisp.org>
12829         string: code style
12830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
12831         substitutable variables.
12832         * modules/string (Makefile.am): Likewise.
12834 2017-09-26  Bruno Haible  <bruno@clisp.org>
12836         uniname/uniname-tests: Tighten code.
12837         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
12838         local variables into one.
12840 2017-09-26  Bruno Haible  <bruno@clisp.org>
12842         vma-iter: Improvements for Linux and BSD platforms.
12843         - Add support for DragonFly BSD.
12844         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
12845         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
12846         Read the entire file into memory in a single system call.
12847         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
12848         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
12850 2017-09-26  Bruno Haible  <bruno@clisp.org>
12852         vma-iter: Provide the protection flags on FreeBSD.
12853         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
12854         skip three fields between the addresses and the protection flags.
12856 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12858         glob: remove bogus extern decl
12859         * lib/glob.c (__glob_pattern_type): Remove now-spurious
12860         extern declaration.  Problem reported by Adhemerval Zanella in:
12861         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
12863 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
12865         uniname/uniname-tests: integer overflow fix
12866         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
12867         Check for integer overflow.
12869         duplocale-tests: fix unlikely crash
12870         * tests/test-duplocale.c (get_locale_dependent_values):
12871         Don’t crash with absurdly long month names.
12873         maint: fix overflow checking in nap.h
12874         * modules/chown-tests:
12875         * modules/fchownat-tests, modules/fdutimensat-tests:
12876         * modules/futimens-tests, modules/lchown-tests:
12877         * modules/stat-time-tests, modules/utime-tests:
12878         * modules/utimens-tests, modules/utimensat-tests:
12879         Depend on intprops.
12880         * tests/nap.h: Include intprops.h.
12881         (diff_timespec): Handle overflow properly.
12883         sys_types: update URL
12884         * m4/sys_types_h.m4: Use https: URL.
12886         parse-datetime: fix dependency
12887         * modules/parse-datetime (Depends-on): Depend
12888         on nstrftime, not strftime.
12890         parse-datetime, posixtm: avoid uninit access
12891         * lib/parse-datetime.y (parse_datetime2):
12892         * lib/posixtm.c (posixtime):
12893         Do not access uninitialized storage, even though the resulting
12894         value is never used.
12896 2017-09-25  Bruno Haible  <bruno@clisp.org>
12898         vma-iter: Improvements for BSD platforms.
12899         - Add support for GNU/kFreeBSD.
12900         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
12901         - Speed up on OpenBSD.
12902         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
12903         (vma_iterate_bsd): New function.
12904         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
12905         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
12906         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
12907         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
12909 2017-09-23  Bruno Haible  <bruno@clisp.org>
12911         strfmon_l: New module.
12912         * modules/strfmon_l: New file.
12913         * lib/strfmon_l.c: New file.
12914         * m4/strfmon_l.m4: New file.
12915         * doc/posix-functions/strfmon_l.texi: Mention the new module.
12916         * modules/strfmon_l-tests: New file.
12917         * tests/test-strfmon_l.c: New file.
12919         monetary: New module.
12920         * modules/monetary: New file.
12921         * lib/monetary.in.h: New file.
12922         * m4/monetary_h.m4: New file.
12923         * doc/posix-headers/monetary.texi: Mention the new module.
12924         * modules/monetary-tests: New file.
12925         * tests/test-monetary.c: New file.
12926         * modules/monetary-c++-tests: New file.
12927         * tests/test-monetary-c++.cc: New file.
12928         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
12930 2017-09-23  Bruno Haible  <bruno@clisp.org>
12932         duplocale tests: Fix test crash on Linux/x86.
12933         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
12934         locale from the current thread before freeing it.
12936 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
12938         mktime: port to OpenVMS
12939         Problem reported by John E. Malmberg in:
12940         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
12941         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
12943 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12945         manywarnings: port to GCC on 64-bit MS-Windows
12946         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
12947         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
12948         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
12950 2017-09-13  Bruno Haible  <bruno@clisp.org>
12952         all: Replace many more http URLs by https URLs. Update stale URLs.
12953         * users.txt: Remove mention of 'newts'.
12954         * lib/localename.c: Update comment about LANG_SOTHO.
12956 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12958         all: Replace many http URLs by https URLs.
12960 2017-09-12  Bruno Haible  <bruno@clisp.org>
12962         doc: Prefer https URLs where possible.
12963         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
12964         * doc/ld-output-def.texi: Remove unavailable URL.
12966 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12968         maintainer-makefile: FTP -> HTTPS
12969         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
12970         of FTP, which is planned to be decommissioned on 2017-11-01.
12972 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
12974         libc-config: Fix __GNUC_PREREQ macro.
12975         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
12976         __GNUC_MINOR.
12978 2017-09-09  Bruno Haible  <bruno@clisp.org>
12980         gnulib-tool: Simplify commit from 2015-08-20.
12981         * gnulib-tool (func_add_or_update): Remove local variable
12982         is_binary_file.
12984 2017-09-08  Bruno Haible  <bruno@clisp.org>
12986         stddef: Avoid conflict with system-defined max_align_t.
12987         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
12988         Reported by Werner Lemberg <wl@gnu.org> in
12989         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
12990         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
12991         (max_align_t): Define as a macro.
12992         (GNULIB_defined_max_align_t): New macro. Guards against multiple
12993         definitions of rpl_max_align_t in different copies of gnulib-generated
12994         <stddef.h>.
12996 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12998         libc-config: port to MSVC
12999         Problems reported by Gisle Vanem in:
13000         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
13001         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
13002         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
13003         * m4/__inline.m4: New file.
13004         * modules/libc-config (Files): Add it.
13005         (Depends-on): Use it.
13007         glob: Use enum for __glob_pattern_type result
13008         From a patch proposed by Adhemerval Zanella in:
13009         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
13010         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
13011         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
13012         * lib/glob_internal.h (__glob_pattern_type):
13013         * lib/glob.c (glob):
13014         * lib/glob_pattern_p.c (__glob_pattern_p):
13015         Use them.
13017         glob: fix for use in glibc
13018         Problem reported by Adhemerval Zanella in:
13019         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
13020         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
13021         Do not redefine if _LIBC.
13023 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13025         glob: fix bugs with long login names
13026         Problem reported by Adhemerval Zanella in:
13027         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
13028         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
13029         (glob): Use the same scratch buffer for both getlogin_r and
13030         getpwnam_r.  Don’t require preallocation of the login name.  This
13031         simplifies storage allocation, and corrects the handling of
13032         long login names.
13034 2017-09-02  Bruno Haible  <bruno@clisp.org>
13036         dirent: Update doc.
13037         * doc/posix-headers/dirent.texi: More concrete list of platforms.
13039 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13041         glob: fix getpwnam_r errno typo
13042         * lib/glob.c (glob): Fix longstanding misuse of errno after
13043         getpwnam_r, which returns an error number rather than setting
13044         errno.
13046         glob: fix typo in recent change
13047         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
13048         Fix recently-introduced typo.
13050 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13052         glob: don't save and restore errno unnecessarily
13053         * lib/glob.c (glob): Don't save and restore errno
13054         merely because we have getpwnam_r.
13056         glob: don't assume getpwnam_r
13057         * lib/glob.c (glob): Port recent patches to platforms
13058         lacking getpwnam_r.
13060         scratch_buffer: don’t use private glibc API
13061         Suggested by Florian Weimer in:
13062         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
13063         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
13064         * lib/scratch_buffer_grow.c: Rename to
13065         lib/malloc/scratch_buffer_grow.c.
13066         * lib/scratch_buffer_grow_preserve.c: Rename to
13067         lib/malloc/scratch_buffer_grow_preserve.c.
13068         * lib/scratch_buffer_set_array_size.c: Rename to
13069         lib/malloc/scratch_buffer_set_array_size.c.
13070         * lib/scratch_buffer.h: New file.
13071         * modules/scratch_buffer (Files, Makefile.am):
13072         Adjust to source-file renaming.
13074 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13076         glob: use scratch_buffer instead of extend_alloca
13077         Much of the lib/glob.c part of this patch comes from a glibc patch
13078         proposed by Adhemerval Zanella in:
13079         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
13080         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
13081         included via glob.h, does this for us now.
13082         (__set_errno): Remove, as libc-config does this for us now.
13083         Include <scratch_buffer.h>.
13084         (GETPW_R_SIZE_MAX): Remove.
13085         (glob): Use struct scratch_buffer instead of extend_alloca.
13086         * lib/glob.in.h: Include libc-config.h rather than
13087         including <sys/cdefs.h> conditionally.
13088         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
13089         (__glibc_unlikely, __restrict, weak_alias):
13090         Remove, as libc-config does this for us now.
13091         * m4/glob.m4 (gl_PREREQ_GLOB):
13092         Remove sys/cdefs.h tests; no longer needed.
13093         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
13094         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
13096         scratch_buffer: new module
13097         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
13098         * lib/scratch_buffer_grow_preserve.c:
13099         * lib/scratch_buffer_set_array_size.c:
13100         New files, copied from glibc with very minor changes that can be
13101         copied back.
13102         * modules/scratch_buffer: New file.
13104         libc-config: new module
13105         * MODULES.html.sh: Add libc-config.
13106         * lib/cdefs.h: New file, copied from the GNU C Library with very
13107         minor changes that can be copied back.
13108         * lib/libc-config.h, modules/libc-config: New files.
13110 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13112         glob: match dangling symlinks
13113         This fixes a bug I inadvertently introduced to Gnulib when I
13114         merged glibc glob back into gnulib on 2007-10-16.  This fix is
13115         inspired by a patch proposed for glibc by Adhemerval Zanella in:
13116         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
13117         * doc/posix-functions/glob.texi: Update list of affected platforms.
13118         * lib/glob.c (__lstat64): New macro.
13119         (is_dir): New function.
13120         (glob, glob_in_dir): Match symlinks even if they are dangling.
13121         (link_stat, link_exists_p): Remove.  All uses removed.
13122         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
13123         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
13124         * modules/glob-tests (Depends-on): Add symlink.
13125         * tests/test-glob.c: Include errno.h, unistd.h.
13126         (BASE): New macro.
13127         (main): Test dangling symlinks, if symlinks are supported.
13129         glob, backupfile: inode 0 is a valid inode number
13130         * doc/posix-functions/readdir.texi (readdir):
13131         * doc/posix-headers/dirent.texi (dirent.h):
13132         Document more readdir portability issues.
13133         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
13134         (numbered_backup): Don’t treat inode 0 any differently from
13135         other inode values.
13136         * lib/glob.c (struct readdir_result): Remove skip_entry member.
13137         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
13138         All uses removed.
13139         * modules/glob (Depends-on): Remove d-ino.
13141         glob: simplify symlink detection
13142         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
13143         uint8_t, as C99 does not require uint8_t.
13144         (struct readdir_result): Use it.  Do not define skip_entry unless
13145         it is needed; this saves a byte on platforms lacking d_ino.
13146         (readdir_result_type, readdir_result_skip_entry):
13147         New functions, replacing ...
13148         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
13149         ... these functions, which were removed.  This makes the callers
13150         easier to read.  All callers changed.
13151         (D_INO_TO_RESULT): Now empty if there is no d_ino.
13153 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13155         fts-tests: tag as a longrunning-test so not included by default
13156         * modules/fts-tests: This test takes about 20s on current systems,
13157         and uses about 285M of space on ext4.
13159 2017-08-30  Pádraig Brady  <P@draigBrady.com>
13161         renameat2: fix compilation on alpine linux
13162         * m4/renameat.m4: Check for <linux/fs.h> presence.
13163         * lib/renameat2.h: Only include <linux/fs.h> if present.
13164         Reported by Assaf Gordon on Alpine Linux.
13166 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13168         glob: try to port recent changes to MS-Windows
13169         Problem reported by Bruno Haible in:
13170         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
13171         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
13172         * lib/glob.in.h (__glob_pattern_p): ... to here.
13174 2017-08-24  Eric Blake  <eblake@redhat.com>
13176         warnings: fix compilation with old autoconf
13177         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
13178         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
13179         AC_DEFUN.
13180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
13181         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
13183 2017-08-24  Bruno Haible  <bruno@clisp.org>
13185         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
13186         * modules/glob (Depends-on): Add c99.
13188 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13190         glob: fix typo that broke platforms lacking d_ino
13191         This typo also hurt performance on GNU/Linux and similar hosts.
13192         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
13193         in previous change.
13195 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13197         glob: merge from glibc with Zanella glob changes
13198         Merge glob from glibc, with changes for glob proposed
13199         by Adhemerval Zanella in the thread starting here:
13200         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
13201         plus some fixes for this merge.
13202         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
13203         New files, ported from glibc.
13204         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
13205         with __restrict.
13206         (__size_t): Remove.  All uses replaced by size_t.
13207         (size_t): Define by defining __need_size_t and including <stddef.h>.
13208         This should work even in non-glibc platforms, where any name
13209         pollution is OK.
13210         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
13211         (struct stat64): Don’t worry about __GLOB_GNULIB.
13212         (glob, globfree, glob_pattern_p): Remove macros for
13213         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
13214         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
13215         but set errno.
13216         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
13217         removed since the glibc behavior works on null pointers.
13218         Do not include stdio.h; old SunOS is irrelevant now.
13219         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
13220         Include glob_internal.h.
13221         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
13222         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
13223         worked only coincidentally.
13224         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
13225         Remove macros; now done in glob.in.h.
13226         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
13227         (glob): Properly initialize glob structure with
13228         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
13229         Remove old code using SHELL since Bash no longer
13230         uses this.
13231         (glob, prefix_array): Separate MS code better.
13232         (glob, glob_in_dir): Use C99 decls before statements when glibc
13233         does.
13234         (glob_in_dir): Remove old Amiga and VMS code.
13235         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
13236         separate files.
13237         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
13238         (__glibc_unlikely):
13239         Move here from glob.c.
13240         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
13241         (weak_alias): New macro.
13242         (__size_t): Remove.  All uses replaced by size_t.
13243         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
13244         * modules/glob (Files): Add +lib/glob_internal.h,
13245         lib/glob_pattern_p.c, lib/globfree.c.
13246         (Depends-on): Remove snippet/arg-nonnull.
13248 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13250         glob: port to clang's Undefined Sanitizer
13251         Problem reported by Tim Rühsen in:
13252         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
13253         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
13254         (glob_in_dir): Do not rely on undefined behavior in accessing
13255         struct members beyond their bounds.  Use a flexible array member
13256         instead.
13258 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13260         vc-list-files: port to Solaris 10
13261         * build-aux/vc-list-files: Don't assume test -e works.
13263 2017-08-21  Karl Berry  <karl@freefriends.org>
13265         * doc/posix-functions/srandom.texi (srandom): typo }.
13267 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13269         git-version-gen: port to Solaris 10
13270         Problem reported by Dagobert Michelsen in:
13271         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
13272         * build-aux/git-version-gen (v_from_git):
13273         Use expr instead of shell substitution.
13275 2017-08-19  Bruno Haible  <bruno@clisp.org>
13277         host-cpu-c-abi: Improve detection of MIPS ABI.
13278         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
13279         _MIPS_SIM.
13281 2017-08-17  Bruno Haible  <bruno@clisp.org>
13283         hypot tests: Fix test failure on FreeBSD 11.0/x86.
13284         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
13286 2017-08-17  Bruno Haible  <bruno@clisp.org>
13288         float: Fix LDBL_MIN value on FreeBSD/x86.
13289         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
13291 2017-08-17  Bruno Haible  <bruno@clisp.org>
13293         random: Fix test compilation failure on Cygwin 1.5.25.
13294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
13295         HAVE_DECL_SETSTATE.
13296         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
13297         declared.
13298         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
13299         HAVE_DECL_SETSTATE.
13300         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
13301         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
13302         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
13303         * doc/posix-functions/random.texi: Likewise.
13304         * doc/posix-functions/setstate.texi: Likewise.
13305         * doc/posix-functions/srandom.texi: Likewise.
13307 2017-08-16  Bruno Haible  <bruno@clisp.org>
13309         stdnoreturn: Fix test compilation failure on Cygwin.
13310         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
13311         <stdnoreturn.h> replacement.
13312         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
13313         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
13315 2017-08-16  Bruno Haible  <bruno@clisp.org>
13317         thread: Fix conflict with pthread_sigmask module.
13318         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
13319         it's defined as a macro.
13320         * modules/thread (Depends-on): Add pthread_sigmask.
13322 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
13324         rename: port better to NetBSD
13325         * doc/posix-functions/rename.texi (rename): NetBSD 7
13326         does not have the link-count bug.
13327         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
13328         broken merely because rename ("a", "b") removes "a" when the two
13329         names are hard links to the same file.
13331 2017-08-16  Bruno Haible  <bruno@clisp.org>
13333         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
13334         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
13335         the target file names with '$(srcdir)/'.
13336         * modules/unicase/locale-language (Makefile.am): Likewise.
13337         * modules/unicase/special-casing (Makefile.am): Likewise.
13338         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
13339         * modules/unictype/category-byname (Makefile.am): Likewise.
13340         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13341         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13342         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13343         * modules/unictype/property-byname (Makefile.am): Likewise.
13344         * modules/unictype/scripts (Makefile.am): Likewise.
13345         * modules/uninorm/composition (Makefile.am): Likewise.
13347 2017-08-16  Bruno Haible  <bruno@clisp.org>
13349         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
13350         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
13351         value for OpenBSD.
13353 2017-08-16  Bruno Haible  <bruno@clisp.org>
13355         rename, renameat: Update doc regarding NetBSD.
13356         * doc/posix-functions/rename.texi: Clarify that when using
13357         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
13358         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
13359         version.
13361 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13363         renameat2: port better to macOS
13364         * lib/renameat2.c (renameat2): Use renameatx_np if available.
13366         futimens: don’t assume struct timespec layout
13367         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
13368         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
13369         * tests/test-fdutimensat.c (main):
13370         * tests/test-futimens.h (test_futimens):
13371         * tests/test-lutimens.h (test_lutimens):
13372         * tests/test-utimens.h (test_utimens):
13373         * tests/test-utimensat.c (main):
13374         Don’t assume that struct timespec is a two-member structure in
13375         tv_sec, tv_nsec order.  Although this is true on all platforms we
13376         know about, POSIX does not guarantee it.
13378         rename: document+test NetBSD rename
13379         Test failure reported by Bruno Haible in:
13380         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
13381         This is an area where NetBSD is better-behaved than POSIX,
13382         so allow the NetBSD behavior in tests.
13383         * doc/posix-functions/rename.texi:
13384         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
13385         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
13387 2017-08-15  Bruno Haible  <bruno@clisp.org>
13389         renameat: Ensure declaration in <stdio.h> on NetBSD.
13390         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
13391         * doc/posix-functions/renameat.texi: Mention this problem.
13393 2017-08-15  Bruno Haible  <bruno@clisp.org>
13395         duplocale: Work around NetBSD 7.0 bug.
13396         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
13397         * lib/duplocale.c: Add comment about NetBSD problem.
13398         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
13400 2017-08-15  Bruno Haible  <bruno@clisp.org>
13402         duplocale tests: Verify use with *_l functions.
13403         * modules/duplocale-tests (configure.ac): Test for uselocale and
13404         some *_l functions.
13405         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
13406         from main.
13407         (get_locale_dependent_values_from, test_with_locale_parameter): New
13408         functions.
13409         (main): Test both test_with_uselocale and test_with_locale_parameter.
13411 2017-08-15  Bruno Haible  <bruno@clisp.org>
13413         extensions: Enable NetBSD specific extensions.
13414         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
13416 2017-08-14  Bruno Haible  <bruno@clisp.org>
13418         open, openat: Update doc about O_CLOEXEC.
13419         * doc/posix-functions/open.texi: More concrete list of platforms.
13420         * doc/posix-functions/openat.texi: Likewise.
13422 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13424         open: support O_CLOEXEC
13425         * NEWS, doc/posix-functions/open.texi:
13426         * doc/posix-functions/openat.texi: Document this.
13427         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
13428         (GNULIB_defined_O_CLOEXEC): New symbol.
13429         * lib/open.c: Include cloexec.h.
13430         (open): Support O_CLOEXEC.
13431         * lib/openat.c: Include cloexec.h.
13432         (rpl_openat): Support O_CLOEXEC.
13433         * lib/popen-safer.c: Do not include cloexec.h.
13434         (open_noinherit): Remove.
13435         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
13436         * lib/save-cwd.c: Do not include cloexec.h.
13437         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
13438         * m4/open-cloexec.m4: New file.
13439         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
13440         Replace 'open' if O_CLOEXEC is not present.
13441         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
13442         Replace 'openat' if O_CLOEXEC is not present.
13443         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
13444         * modules/open (Files): Add m4/open-cloexec.m4.
13445         (Depends-on): Depend on cloexec if replacing 'open'.
13446         * modules/openat (Files): Add m4/open-cloexec.m4.
13447         (Depends-on): Depend on cloexec if replacing openat.
13448         * modules/popen-safer (Depends-on): Remove cloexec.
13449         * modules/save-cwd (Depends-on): Remove cloexec, and add
13450         fd-safer-flag and 'open'.
13452 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
13454         reallocarray: minor fixes
13455         * doc/glibc-functions/reallocarray.texi: Update version numbers.
13456         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
13457         * modules/reallocarray (License): Change from GPL to LGPL.
13458         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
13459         Indent properly and don't use tabs.
13461 2017-08-13  Darshit Shah  <darnir@gnu.org>
13463         reallocarray: New module
13464         reallocarray is a new function in glibc 2.26 to safely allocate an array
13465         of memory locations with integer overflow protection.
13466         * MODULES.html.sh: Add reallocarray.
13467         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
13468         * lib/reallocarray.c: New file to implement module reallocarray.
13469         * lib/stdlib.in.h: Add function declarations for reallocarray.
13470         * m4/reallocarray.m4: New file.
13471         * m4/stdlib_h.m4: Declare reallocarray.
13472         * modules/reallocarray: New file.
13473         * modules/reallocarray-test: New file.
13474         * modules/stdlib: Coerce stdlib.h to export reallocarray.
13475         * tests/test-reallocarray.c: New test.
13477 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13479         dirent-safer: fix cloexec race
13480         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
13481         (opendir_safer): Use F_DUPFD_CLOEXEC.
13482         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
13483         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
13484         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
13485         instead of dup_safer.
13487         fts: fix cloexec races
13488         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
13489         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
13490         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
13491         (fd_ring_check): Set cloexec flag on new file descriptors.
13492         (fts_build, fd_ring_check): While we’re at it, make sure the
13493         resulting file descriptor is not 0, 1, or 2, since that is easy.
13495 2017-08-11  Bruno Haible  <bruno@clisp.org>
13497         fts tests: Fix link error.
13498         Reported by Tom G. Christensen in
13499         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
13500         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
13502 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13504         fts: port recent changes to CentOS 6
13505         Problem reported by Tom G. Christensen in:
13506         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
13507         * lib/fts.c (fsword): New type.
13508         (struct dev_type, filesystem_type): Use it.
13509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
13510         Also, check for f_type only if fstatfs and sys/vfs.h work.
13512 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13514         tempname: do not depend on secure_getenv
13515         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
13516         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
13517         * modules/tempname (Depends-on): Remove secure_getenv.
13519 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
13521         extensions: add _OPENBSD_SOURCE
13522         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
13524 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
13525             Bruno Haible  <bruno@clisp.org>
13527         manywarnings: Add support for C++.
13528         * build-aux/g++-warning.spec: New file.
13529         * m4/manywarnings-c++.m4: New file.
13530         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
13531         redirects to manywarnings-c++.m4.
13532         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
13534 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13536         git-version-gen: another fix for tags with "-"
13537         * build-aux/git-version-gen: Improve fix for tags containing "-".
13538         Suggested by Markus Armbruster in:
13539         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
13541 2017-08-06  Bruno Haible  <bruno@clisp.org>
13543         warnings, manywarnings: Add support for multiple languages, not just C.
13544         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
13545         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
13546         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
13547         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
13548         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
13549         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
13550         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
13551         of the current language. If C++ is the current language, modify
13552         WARN_CXXFLAGS instead of WARN_CFLAGS.
13553         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
13554         gl_MANYWARN_ALL_GCC.
13555         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
13557 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
13559         git-version-gen: Fix for tags containing '-'
13561         Really old versions of git-describe (before v1.5.0, Feb 2007)
13562         don't have the number of commits in their long format output,
13563         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
13564         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
13565         recognizes both patterns, and normalizes the old format to the new one.
13567         Unfortunately, this normalization code gets confused when the tag
13568         contains '-'.  Reproducer:
13570             $ git-tag -m test v0.2-rc1
13571             $ build-aux/git-version-gen .tarball-version; echo
13572             build-aux/git-version-gen: WARNING: git rev-list failed
13573             UNKNOWN
13575         We take exact tag "v0.2-rc1" for the old format, extract the presumed
13576         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
13577         commits since tha tag.  Fails, because tag "v0.2" does not exist.
13579         * git-version-gen: We could perhaps drop support for versions from
13580         more than a decade ago.  But tightening the pattern match is easy
13581         enough, so do that.  Still breaks when you use version tags ending in
13582         something matching -g????, but you arguably get what you deserve then.
13584 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
13586         valgrind-tests: use ls, and cache
13587         * m4/valgrind-tests.m4: Test ls, not bash.
13588         Problem reported by Reuben Thomas.
13589         Also, cache the result so that it can be overridden.
13591 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
13593         manywarnings: port to 64-bit GCC builds of Emacs
13594         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
13595         object size rather than hardwiring 2147483647.  This is needed to
13596         build GNU Emacs, which has one conditional (and used
13597         only-in-theory) call to malloc with a literal greater than
13598         2147483647.
13600 2017-08-04  Bruno Haible  <bruno@clisp.org>
13602         Relax the license of some modules with no runtime code.
13603         * modules/std-gnu11 (License): Set to 'unlimited'.
13604         * modules/c99 (License): Likewise.
13605         Reported by Reuben Thomas <rrt@sc3d.org>.
13606         * modules/d-ino (License): Set to 'LGPL'.
13607         * modules/host-os (License): Likewise.
13608         * modules/longlong (License): Likewise.
13610 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13612         renameat2: port to RHEL 7 + NFS
13613         * lib/renameat2.c (renameat2) [SYS_renameat2]:
13614         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
13615         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
13617 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
13619         renameat2: port to non-renameat platforms
13620         Problem reported for MSVC-2015 by Gisle Vanem in:
13621         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
13622         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
13623         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
13625 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
13627         manywarnings: port to 32-bit GCC bug
13628         Problem reported by Pino Toscano in:
13629         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
13630         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
13631         not 2**63 - 1, to work around the following GCC bug:
13632         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
13634 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
13636         backupfile: new function to validate backup suffix
13637         * lib/backupfile.c (set_simple_backup_suffix): New function.
13638         (backupfile_internal): Use it.
13640         canonicalize: fix EOVERFLOW commentary
13641         Problem reported by Bruno Haible in:
13642         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
13643         * lib/canonicalize.c (canonicalize_filename_mode):
13644         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
13646         Don't interpret EOVERFLOW to mean nonexistence
13647         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
13648         may be EOVERFLOW; this is likely more useful than reporting the
13649         stat errno.
13650         * lib/glob.c (link_stat): Rename from link_exists2_p and
13651         return -1/0 instead of 0/1.  Caller changed.
13652         * lib/glob.c (link_exists_p):
13653         * lib/renameat2.c (rename_noreplace, renameat2):
13654         * lib/tempname.c (try_nocreate):
13655         If errno == EOVERFLOW then the directory entry exists, so do not
13656         act as if it does not exist.
13658         backup-rename: new module
13659         It is like backupfile, except it avoids some race conditions,
13660         and it does not output to stderr or exit.
13661         * MODULES.html.sh: Add backup-rename.
13662         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
13663         * modules/backup-rename: New files.
13664         * lib/backupfile.c: Turn this into an internals file, which
13665         contains code common to backupfile and backup_rename.  Include
13666         backupfile-internal.h instead of backupfile.h.  Do not include
13667         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
13668         renameat2.h and fcntl.h.
13669         (BACKUP_NOMEM): New constant.
13670         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
13671         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
13672         (backupfile_internal): Rename from find_backup_file_name.
13673         Support new arg RENAME.
13674         (backup_args, backup_types, get_version, xget_version):
13675         Move to lib/backup-find.c.
13676         * lib/backupfile.h (backup_file_rename): New decl.
13677         * modules/backupfile (Files): Add lib/backup-internal.h,
13678         lib/backup-find.c.
13679         (Depends-on): Add dirfd, fcntl, renameat2.
13680         (lib_SOURCES): Add backup-find.c.
13682         renameat2: port better to older Solaris
13683         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
13684         Add goto to use a label, to silence picky compilers.
13686         fts-tests: port to gcc -Wwrite-strings
13687         * tests/test-fts.c (base, base_d): New static vars.
13688         (argv, remove_tree, main): Use them.
13690 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
13692         relocatable-lib{,-lgpl}: improve documentation
13693         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
13694         Various other updates.
13696 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
13697             Bruno Haible  <bruno@clisp.org>
13699         relocatable-lib{,-lgpl}: add Valgrind suppressions
13700         * lib/relocatable.valgrind: New file.
13701         * modules/relocatable-lib (Files): Add relocatable.valgrind.
13702         * modules/relocatable-lib-lgpl: Likewise.
13704 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
13706         relocatable: Make the license on the sources the GPL.
13707         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
13708         LGPL, which was a special case so that the relocatable source files
13709         could be used without gnulib-tool, to GPL. They can still be used under
13710         the LGPL, using the --lgpl option to gnulib-tool.
13712 2017-07-30  Bruno Haible  <bruno@clisp.org>
13714         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
13715         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
13716         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
13717         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
13718         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
13720 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13722         faccessat: document AT_SYMLINK_NOFOLLOW issue
13723         * doc/posix-functions/faccessat.texi: Modernize platform list.
13724         Document AT_SYMLINK_NOFOLLOW limitation.
13726         renameat2: port to Solaris 10
13727         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
13728         with AT_SYMLINK_NOFOLLOW (which is not portable).
13729         (renameat): Undef before using, to avoid endless recursion when
13730         the replacement renameat calls renameat2 which calls the
13731         replacement renameat.
13732         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
13733         * modules/renameat2 (Depends-on): Remove faccessat.
13734         * modules/renameat-tests (test_renameat_LDADD):
13735         * modules/renameat2-tests (test_renameat2_LDADD):
13736         Remove $(LIB_EACCESS).
13738         renameat2: new module
13739         Although the Linux syscall renameat2 is not in glibc (yet?), it is
13740         useful to have access to its RENAME_NOREPLACE flag.
13741         * MODULES.html.sh (func_all_modules): Add renameat2.
13742         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
13743         * modules/renameat2-tests, tests/test-renameat2.c: New files.
13744         * lib/renameat.c (renameat): Move most of the implementation
13745         to renameat2, and just call renameat2.
13746         * modules/renameat (Files): Remove lib/at-func2.c.
13747         (Depends-on): Depend only on renameat2.
13748         (Include): Remove <fcntl.h>.
13749         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
13750         since renameat (via renameat2) might use faccessat.
13752 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
13754         vc-list-files: Adjust the script to support git worktrees
13755         * build-aux/vc-list-files: Require existence, not directory.
13757 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
13759         doc: bring MODULES.html.sh up to date
13760         Somehow a few months ago we stopped updating MODULES.html.sh.
13761         I don’t recall explicitly deciding this, so I updated it now.
13762         Alternatively I suppose we could remove it.
13763         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
13764         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
13765         truncate, utime, utime-h, windows-stat-inodes,
13766         windows-stat-override, windows-stat-timespec, year2038.  Sort.
13768 2017-07-26  Jim Meyering  <meyering@fb.com>
13770         fprintftime: fix build-break caused by recent renaming
13771         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
13772         "strftime.c".
13773         * modules/fprintftime: Depend directly on nstrftime.
13775 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
13777         regex: work with GCC7's -Werror=implicit-fallthrough=
13778         * lib/regex_internal.h (FALLTHROUGH): New macro.
13779         * lib/regcomp.c (peek_token_bracket, parse_expression):
13780         * lib/regexec.c (check_node_accept): Use it.
13782 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13784         fts: simplify fts_build
13785         * lib/fts.c (fts_build): Simplify, and be lazier about
13786         calling leaf_optimization.
13788         fts: three levels of leaf optimization
13789         * lib/fts.c (enum leaf_optimization): New type with three values.
13790         (S_MAGIC_AFS): New macro.  Sort them.
13791         (leaf_optimization): Rename from leaf_optimization_applies, and
13792         return enum leaf_optimization instead of bool.  All uses changed.
13793         Add cases for unknown type and for AFS.
13794         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
13796         fts: cache dirent_inode_sort_may_be_useful too
13797         * lib/fts.c (struct dev_type): New struct.
13798         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
13799         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
13800         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
13801         Now takes FTSENT const *, not int.  All uses changed.  Use
13802         filesystem_type to cache.
13803         (link_count_optimize_ok): Remove.  Caller changed to use
13804         leaf_optimization_applies, which now uses shared cache.
13806         fts: introduce MIN_DIR_NLINK
13807         * lib/fts.c (MIN_DIR_NLINK): New constant.
13808         Use it instead of 2, whenever we are talking about link counts.
13810         fts: nlink_t signedness fixups
13811         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
13812         so that root need not be a special case later.
13813         (fts_read): Remove now-redundant test for fts_level.
13814         Do not assume that nlink_t is signed.
13815         (fts_build): Remove useless decrement of nlinks.
13816         (fts_stat): Avoid unlikely signed integer overflow later, if
13817         nlink_t is signed.
13819         fts-tests: new module
13820         * modules/fts-tests, tests/test-fts.c: New files.
13822 2017-07-23  Bruno Haible  <bruno@clisp.org>
13824         Rename module 'strftime' to 'nstrftime'.
13825         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
13826         * lib/nstrftime.c: Renamed from lib/strftime.c.
13827         * modules/nstrftime: Renamed from modules/strftime.
13828         (Files, Makefile.am): Update.
13829         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
13830         Fix comment.
13831         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
13832         (Files, Makefile.am): Update.
13833         * modules/strftime: New file, an obsolete indirection.
13834         * doc/posix-functions/strftime.texi: Update reference.
13835         * config/srclist.txt: Update info.
13836         * NEWS: Mention the change.
13838 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
13840         malloca: Silence a warning from clang's memory sanitizer.
13841         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
13842         (freea): Use it.
13844 2017-07-18  Bruno Haible  <bruno@clisp.org>
13846         host-cpu-c-abi: Fix detection of MIPS ABI.
13847         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
13848         ABI, not the CPU instruction set.
13850 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13852         explicit_bzero: new module
13853         The explicit_bzero function has been added to glibc.
13854         This module is intended to supports its use in GNU programs.
13855         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
13856         * m4/explicit_bzero.m4, modules/explicit_bzero:
13857         New files.
13858         * doc/gnulib.texi (Glibc string.h): Link to new doc.
13859         * lib/string.in.h (explicit_bzero): Declare.
13860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
13861         * modules/string (string.h): Substitute its vars.
13863 2017-07-16  Bruno Haible  <bruno@clisp.org>
13865         threadlib: Support static linking.
13866         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
13867         set gl_cv_have_weak to 'no'.
13869 2017-07-16  Bruno Haible  <bruno@clisp.org>
13871         unicase/locale-language: Fix link dependencies.
13872         * modules/unicase/locale-language (Link): New section.
13873         * modules/unicase/locale-language-tests (Makefile.am): Link
13874         test-locale-language program with $(LIBTHREAD).
13876 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
13878         sys_socket: Add support for OpenVMS.
13879         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
13880         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
13882 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
13884         sys_resource: Add support for OpenVMS.
13885         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
13886         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
13888 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
13889             Bruno Haible  <bruno@clisp.org>
13891         math: Add support for OpenVMS.
13892         * lib/math.in.h [__VMS]: Include <fp.h>.
13893         * doc/posix-headers/math.texi: Mention OpenVMS issues.
13895 2017-07-15  Bruno Haible  <bruno@clisp.org>
13897         getdtablesize: Add minimal support for OpenVMS.
13898         Reported by John E. Malmberg <wb8tyw@qsl.net>.
13899         * modules/getdtablesize (Description): Fix.
13900         * lib/getdtablesize.c: Fix comment.
13901         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
13902         getdtablesize() function, even though the test fails.
13903         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
13904         limitation on OpenVMS.
13906 2017-07-13  Bruno Haible  <bruno@clisp.org>
13908         Revisit cross-compilation guesses.
13909         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
13911 2017-07-13  Bruno Haible  <bruno@clisp.org>
13913         Improve cross-compilation guesses for native Windows.
13914         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
13915         Windows.
13916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
13917         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
13918         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13919         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
13920         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
13921         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13922         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13923         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13925         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
13926         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13927         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
13928         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13929         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13930         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
13931         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13932         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
13933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13934         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13935         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
13936         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13937         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13938         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
13939         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
13940         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
13941         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13942         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13943         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13945         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
13946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13948         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13949         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
13950         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
13951         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
13952         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
13953         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13954         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13955         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13956         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13958         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
13959         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
13960         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13961         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
13962         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
13963         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
13964         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13965         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
13966         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13967         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
13968         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
13969         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
13970         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
13971         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
13972         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
13973         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
13974         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
13975         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13977         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
13978         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13979         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13980         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13982         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
13983         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13984         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
13985         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
13986         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13987         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
13988         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13989         * m4/regex.m4 (gl_REGEX): Likewise.
13990         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13991         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
13992         gl_FUNC_REMAINDERF_WORKS): Likewise.
13993         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
13994         gl_FUNC_REMAINDERL_WORKS): Likewise.
13995         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13996         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13998         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14001         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14002         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14003         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
14004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14005         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
14006         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
14007         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14008         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14009         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
14010         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14011         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14013         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14014         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14015         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14016         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14017         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14018         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14019         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14021         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14022         Likewise.
14023         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14024         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
14025         Windows. Enable also on Autoconf 2.70.
14026         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14027         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14028         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14029         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
14030         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14031         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
14032         for native Windows.
14033         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14034         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
14036 2017-07-13  Bruno Haible  <bruno@clisp.org>
14038         Improve cross-compilation guesses for native Windows.
14039         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
14040         Windows.
14041         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
14042         memchr.m4.
14043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14045 2017-07-13  Bruno Haible  <bruno@clisp.org>
14047         Improve cross-compilation guesses for native Windows.
14048         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
14049         native Windows.
14050         (gl_FUNC_FFLUSH): Update accordingly.
14051         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
14052         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14054 2017-07-11  Bruno Haible  <bruno@clisp.org>
14056         More systematic m4 quoting and indentation.
14057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
14058         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14059         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14060         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14061         * m4/host-os.m4 (gl_HOST_OS): Likewise.
14062         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
14063         gl_WINSIZE_IN_PTEM): Likewise.
14064         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
14065         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14066         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14067         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
14068         Correct indentation.
14069         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14071         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
14072         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14073         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14074         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14076 2017-07-10  Bruno Haible  <bruno@clisp.org>
14078         round, roundf: Avoid compiler warning in configure test.
14079         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
14080         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14082 2017-07-10  Bruno Haible  <bruno@clisp.org>
14084         getlogin tests: Avoid #ifdefs when sharing code between modules.
14085         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
14086         * modules/getlogin-tests (Files): Likewise. Remove
14087         tests/test-getlogin_r.c.
14088         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
14089         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
14090         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
14091         getlogin().
14093 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14095         getlogin: don’t assume one name per uid
14096         Problem reported by Wolfgang F. Muthmann (Bug#27640).
14097         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
14098         (ttyname): Remove test.
14099         * modules/getlogin_r-tests (ttyname): Remove test.
14100         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
14101         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
14102         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
14103         getlogin rather than getlogin_r.  This avoids code duplication.
14104         (main): Use isatty and fstat rather than ttyname and stat.
14105         Use getpwnam instead of getpwuid, to be portable to test platforms
14106         that have multiple login names for the same uid.
14108 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
14109             Bruno Haible  <bruno@clisp.org>
14111         glob: Fix more memory leaks.
14112         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
14113         returning.
14114         Reported by Tim Rühsen.
14116 2017-07-10  Bruno Haible  <bruno@clisp.org>
14118         Make sure $host and $host_os are defined when used.
14119         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
14120         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
14121         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
14122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14123         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14124         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14125         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14126         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
14127         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14128         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14129         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14130         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14131         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14132         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
14133         m4_ifdef block.
14135 2017-07-09  Bruno Haible  <bruno@clisp.org>
14137         *printf: Fix cross-compilation guess for Solaris.
14138         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
14139         2010-12-21.
14141 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14142             Bruno Haible  <bruno@clisp.org>
14144         vasnprintf: port to macOS 10.13
14145         Problem reported by comex in:
14146         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
14147         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
14149 2017-07-06  Bruno Haible  <bruno@clisp.org>
14151         imaxdiv tests: Fix logic.
14152         * tests/test-imaxdiv.c (main): Use == instead of =.
14153         Reported by Coverity.
14155 2017-07-06  Bruno Haible  <bruno@clisp.org>
14157         uninorm/filter: Fix use-after-free bug.
14158         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
14159         sortbuf == filter->sortbuf invariant.
14160         Reported by Coverity.
14162 2017-07-06  Bruno Haible  <bruno@clisp.org>
14164         glob: Fix more memory leaks.
14165         * lib/glob.c (glob): Free dirname before returning.
14166         Reported by Coverity and Tim Rühsen.
14168 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14170         parse-datetime: fix uninit var bug
14171         Reported by Bruno Haible in:
14172         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
14173         * lib/parse-datetime.y (parse_datetime2): Do not use
14174         uninitialized.
14176 2017-07-05  Bruno Haible  <bruno@clisp.org>
14178         doc: Update for MSVC 14.
14179         * doc/posix-headers/*.texi: Add info about MSVC 14.
14180         * doc/posix-functions/*.texi: Likewise.
14181         * doc/pastposix-functions/*.texi: Likewise.
14182         * doc/glibc-headers/*.texi: Likewise.
14183         * doc/glibc-functions/*.texi: Likewise.
14185 2017-07-05  Bruno Haible  <bruno@clisp.org>
14187         sched: Fix build failure on native Windows (regression from 2017-06-19).
14188         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
14190 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
14192         stdioext: Port to OpenVMS.
14193         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
14194         * lib/fpending.c (fpending): Remove non-working VMS specific code.
14195         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
14196         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
14197         * lib/fpurge.c (fpurge): Likewise.
14198         * lib/freadable.c (freadable): Likewise.
14199         * lib/freadahead.c (freadahead): Likewise.
14200         * lib/freading.c (freading): Likewise.
14201         * lib/freadptr.c (freadptr): Likewise.
14202         * lib/freadseek.c (freadseek): Likewise.
14203         * lib/fseeko.c (fseeko): Likewise.
14204         * lib/fseterr.c (fseterr): Likewise.
14205         * lib/fwritable.c (fwriteable): Likewise.
14206         * lib/fwriting.c (fwriting): Likewise.
14208 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
14210         glob: Declare variables at the very start of their scope.
14211         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
14212         its separate scope, so the functions will compile on Haiku.
14214 2017-07-01  Bruno Haible  <bruno@clisp.org>
14216         logbl: Work around a glibc bug on PowerPC64LE.
14217         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
14218         numbers.
14219         * doc/posix-functions/logbl.texi: Update.
14221 2017-06-29  Bruno Haible  <bruno@clisp.org>
14223         stat, fstat: Compile stat-w32.c only on platforms that need it.
14224         Suggested by Paul Eggert.
14225         * modules/stat (configure.ac): Request stat-w32.o only on native
14226         Windows.
14227         * modules/fstat (configure.ac): Likewise.
14229 2017-06-25  Bruno Haible  <bruno@clisp.org>
14231         stat: Improve last change.
14232         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
14234 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14236         stat: port to xlc 12.01
14237         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
14238         12.01 complains "Compilation unit is empty."
14240 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14242         xalloc-oversized: port to icc
14243         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
14244         __builtin_mul_overflow if ICC is defined, as this results in
14245         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
14246         20170213.
14248 2017-06-19  Bruno Haible  <bruno@clisp.org>
14250         classpath: Avoid including config.h twice, as it produces warnings.
14251         Reported by John E. Malmberg <wb8tyw@gmail.com>.
14252         * lib/classpath.h: Conditionalize the include of config.h.
14254 2017-06-19  Bruno Haible  <bruno@clisp.org>
14255             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
14257         sched: Fix compilation failure on OpenVMS.
14258         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
14259         test whether <pthread.h> exists and defines struct sched_param.
14260         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
14262 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14264         diffseq: port to GCC 7 with --enable-gcc-warnings
14265         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
14266         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
14267         not complain about big_snake being defined but not used.
14269 2017-06-15  Bruno Haible  <bruno@clisp.org>
14271         gettext-h: Update theoretical condition for use of variable size arrays.
14272         Reported by Paul Eggert.
14273         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
14274         to include the theoretical condition for availability of variable size
14275         arrays, if we could trust the value of __STDC_VERSION__.
14277 2017-06-12  Bruno Haible  <bruno@clisp.org>
14279         Relicense some modules under LGPLv2+.
14280         Daiki Ueno's approval is in
14281         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
14282         * modules/uniwidth/base (License): Change to LGPLv2+.
14283         * modules/uniwidth/width (License): Likewise.
14285 2017-06-11  Bruno Haible  <bruno@clisp.org>
14287         localename: Fix test failure on DragonFly BSD.
14288         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
14289         like FreeBSD.
14291 2017-06-11  Bruno Haible  <bruno@clisp.org>
14293         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
14294         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
14295         * lib/float.in.h: Likewise.
14296         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
14298 2017-06-11  Bruno Haible  <bruno@clisp.org>
14300         gnulib-tool: Clean up after autotools.
14301         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
14302         useless directory left over by the Autotools.
14304 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14306         getopt-posix: port to glibc 2.25.90
14307         Problem reported by Daniel P. Berrange in:
14308         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
14309         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
14310         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
14311         #undef if __GETOPT_PREFIX is defined.
14313 2017-06-11  Bruno Haible  <bruno@clisp.org>
14315         strtod-obsolete: Fix license.
14316         * modules/strtod-obsolete (License): Change to LGPL.
14318 2017-06-10  Jim Meyering  <meyering@fb.com>
14320         maint: update to work with GCC7's -Werror=implicit-fallthrough=
14321         * lib/savewd.c (FALLTHROUGH): Define.
14322         (savewd_save, savewd_restore): Use this, rather than a comment,
14323         whenever one switch case falls through into the next.
14325 2017-06-08  Bruno Haible  <bruno@clisp.org>
14327         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
14328         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
14329         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
14330         case.
14332 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
14334         doc: remove robots, add prereqs
14335         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
14336         builds.  Simon's robot site does not seem to be up, so remove
14337         mentions of it for now.
14339 2017-06-08  Bruno Haible  <bruno@clisp.org>
14341         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
14342         * gnulib-tool (func_symlink_target): New function, extracted from
14343         func_symlink.
14344         (func_symlink, func_symlink_if_changed): Use it.
14346 2017-06-08  Bruno Haible  <bruno@clisp.org>
14348         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
14349         * gnulib-tool (func_ln_s): Determine cp_src correctly.
14351 2017-06-07  Bruno Haible  <bruno@clisp.org>
14353         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
14354         Reported by John E. Malmberg <wb8tyw@gmail.com> in
14355         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
14356         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
14357         override, pass 2 arguments to getcwd, not 3.
14359 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14361         same-inode: port better to VMS 8.2 and later
14362         Problem reported by John E. Malmberg in:
14363         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
14364         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
14365         Use the usual POSIX definition.
14366         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
14368 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
14370         error: fix POSIX violation for va_end
14371         Problem reported by Bruno Haible in:
14372         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
14373         * lib/error.c (error_tail): Do not call va_end here.
14374         (error, error_at_line): Call it here instead.
14376 2017-05-28  Bruno Haible  <bruno@clisp.org>
14378         c-strtod: Make it usable in C++ mode.
14379         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
14381 2017-05-25  Jim Meyering  <meyering@fb.com>
14383         quotearg: fix compilation failure due to FALLTHROUGH misuse
14384         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
14385         macro back to /* fall through */ comment.  The macro can apply only
14386         to a following case statement.  Reported by Assaf Gordon.
14388 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
14390         intprops: port to recent icc
14391         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
14392         but does not support __builtin_add_overflow etc.
14393         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
14394         Define to 0.
14396 2017-05-23  Karl Berry  <karl@freefriends.org>
14398         * config/srclist.txt (iconv.m4): sync broken, comment out
14399         until (hopefully) the next gettext release.
14401 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
14403         Remove repeated words in comments.
14405 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14407         fallthrough: reinstate a FALLTHROUGH instance in quotearg
14408         quotearg.c: Reinstate this instance which is significant
14409         when the if branch is not taken.
14411 2017-05-21  Bruno Haible  <bruno@clisp.org>
14413         gnulib-tool: Add options to create hard links.
14414         * gnulib-tool (func_usage): Document options --hardlink,
14415         --local-hardlink, --more-hardlinks.
14416         (func_symlink): Renamed from func_ln.
14417         (func_symlink_if_changed): Renamed from func_ln_if_changed.
14418         (func_hardlink): New function.
14419         (copymode, lcopymode): New variables.
14420         (symbolic, lsymbolic): Remove variables.
14421         (Options): Implement options --hardlink, --local-hardlink,
14422         --more-hardlinks.
14423         (func_should_link): Renamed from func_should_symlink. Set copyaction.
14424         (func_add_file, func_update_file): Update invocation of
14425         func_should_link. Invoke func_hardlink when appropriate.
14426         (func_import): Update comments.
14427         (func_create_testdir): Update invocation of func_should_link. Invoke
14428         func_hardlink when appropriate.
14429         Finally, invoke 'git update-index --refresh' to mitigate the effects of
14430         the hard links on git.
14432 2017-05-20  Bruno Haible  <bruno@clisp.org>
14434         argp: Simplify bit manipulation.
14435         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
14436         on a signed integer type.
14438 2017-05-20  Bruno Haible  <bruno@clisp.org>
14440         Avoid wrong configure results with gcc -fsanitize=address.
14441         This completes the work done on 2016-02-06 on this topic.
14442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
14443         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14445         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14446         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
14447         returning.
14448         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
14449         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14450         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14451         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14452         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14453         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
14455         free allocated memory before returning.
14456         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14457         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
14458         objects before returning.
14459         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
14460         returning.
14462 2017-05-20  Bruno Haible  <bruno@clisp.org>
14464         gnulib-tool: Don't create hard links between gnulib and its testdirs.
14465         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
14467 2017-05-20  Bruno Haible  <bruno@clisp.org>
14469         argp, tsearch tests: Fix file list.
14470         * modules/argp-tests (Files): Add tests/macros.h.
14471         * modules/tsearch-tests (Files): Likewise.
14473 2017-05-20  Bruno Haible  <bruno@clisp.org>
14475         getopt-posix tests: Remove redundant include.
14476         * tests/test-getopt.h: Don't include "macros.h". It's already included
14477         by tests/test-getopt-main.h.
14479 2017-05-19  Jim Meyering  <meyering@fb.com>
14481         dfa: two small simplifications
14482         * lib/dfa.c (build_state): Avoid repeating longer expressions.
14484 2017-05-18  Jim Meyering  <meyering@fb.com>
14486         fallthrough: update for GCC 7/8
14487         * lib/quotearg.c (FALLTHROUGH): New macro.
14488         Use it whenever one switch case falls through into the next,
14489         replacing "/* Fall through */" comments.  This exposed one
14490         instance of an unwarranted "fall through" comment: unwarranted
14491         because it preceded a "goto" label not a case statement.
14492         * lib/freopen-safer.c (freopen_safer): Likewise.
14493         * lib/fts.c (leaf_optimization_applies): Likewise.
14494         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
14495         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
14496         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
14497         tests/macros.h for the definition.
14498         * tests/test-argp.c (group1_parser): Likewise.
14499         * tests/test-getopt.h (getopt_loop): Likewise.
14501 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14503         argp: fix shift bug
14504         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
14505         behavior on shift overflow, caught by gcc -fsanitize=undefined.
14507         argp: fix pointer-subtraction bug
14508         * lib/argp-help.c (hol_append): Don’t subtract pointers to
14509         different arrays, as this can run afoul of -fcheck-pointer-bounds.
14510         See the thread containing Bruno Haible’s report in:
14511         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
14513 2017-05-19  Bruno Haible  <bruno@clisp.org>
14515         printf-posix tests: Avoid test failure with "gcc --coverage".
14516         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14517         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
14518         than 5000000.
14519         * tests/test-fprintf-posix2.c (main): Likewise.
14521 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14523         closeout: don’t close stderr when sanitizing
14524         * NEWS: Document this.
14525         * lib/closeout.c (__has_feature): New macro, if not already defined.
14526         (SANITIZE_ADDRESS): New constant.
14527         (close_stdout): Don’t close stderr if sanitizing addresses.
14529 2017-05-19  Bruno Haible  <bruno@clisp.org>
14531         get-rusage-data tests: Avoid failure on Linux/glibc.
14532         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
14533         on glibc systems.
14535 2017-05-18  Bruno Haible  <bruno@clisp.org>
14537         localename: Include necessary header files on Cygwin.
14538         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
14539         where NL_LOCALE_NAME is defined.
14541 2017-05-18  Bruno Haible  <bruno@clisp.org>
14543         gettext: Update macros from gettext git.
14544         * m4/intldir.m4: Require Autoconf >= 2.60.
14545         * m4/progtest.m4: Fix typos in copyright notice.
14547 2017-05-18  Bruno Haible  <bruno@clisp.org>
14549         copy-file tests: Fix link error (regression from 2017-05-01).
14550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14551         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
14552         $(LIB_CLOCK_GETTIME).
14554 2017-05-18  Bruno Haible  <bruno@clisp.org>
14556         unicase/special-casing: Fix incompatibility with gperf-3.0.4
14557         (regression from 2017-02-13).
14558         * lib/unicase/special-casing.in.h: Renamed from
14559         lib/unicase/special-casing.h.
14560         * modules/unicase/special-casing (Files): Add
14561         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
14562         (Makefile.am): Add rule for generating unicase/special-casing.h.
14563         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
14564         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
14565         not "special-casing.h".
14566         * lib/unicase/u*.c: Likewise.
14568 2017-05-17  Bruno Haible  <bruno@clisp.org>
14570         README: Don't ask people to read a TeXinfo file.
14571         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14572         * README: Tell people how to read the HTML formatted manual.
14574 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
14576         parse-datetime: Fix memleak
14577         * lib/parse-datetime.y (parse_datetime2): Cleanup on
14578         localtime_rz() failure.
14580 2017-05-16  Bruno Haible  <bruno@clisp.org>
14582         javacomp: Fix handle leak.
14583         Found by Coverity.
14584         * lib/javacomp.c (get_classfile_version): Close fd before returning.
14586 2017-05-16  Bruno Haible  <bruno@clisp.org>
14588         relocate: Make it easier to reclaim allocated memory.
14589         * lib/relocatable.h (relocate2): New declaration/macro.
14590         * lib/relocatable.c (relocate2): New function.
14591         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
14592         relocate2 function.
14593         * lib/localcharset.c (relocate2): Define fallback.
14594         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
14595         allocated memory.
14596         * lib/javaversion.c (relocate2): Define fallback.
14597         (javaexec_version): Invoke relocate2 instead of relocate. Free the
14598         allocated memory.
14600 2017-05-16  Bruno Haible  <bruno@clisp.org>
14602         relocate: Simplify EMX specific code.
14603         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
14604         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
14606 2017-05-16  Bruno Haible  <bruno@clisp.org>
14608         sigpipe tests: Fix file list.
14609         * modules/sigpipe-tests (Files): Add tests/macros.h.
14611 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14613         manywarnings: update for GCC 7
14614         * build-aux/gcc-warning.spec:
14615         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14616         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
14617         requires a non-comment fallthrough attribute.  This is a bit
14618         cleaner than the comment versions.
14619         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
14620         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
14621         Use it whenever one switch case falls through into the next.
14622         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
14623         Use FALLTHROUGH macro.
14625 2017-05-15  Bruno Haible  <bruno@clisp.org>
14627         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
14628         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
14629         @ALLOCA@, not @LTALLOCA@.
14631 2017-05-15  Bruno Haible  <bruno@clisp.org>
14633         sys_select: Avoid "was expanded before it was required" warning.
14634         * modules/sys_select (configure.ac): Require, not invoke,
14635         gl_HEADER_SYS_SELECT.
14637 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14639         gnulib-tool: improve GNU Make debugging
14640         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
14641         Report autoconf diagnostics when it fails, in the output makefile.
14643 2017-05-14  Bruno Haible  <bruno@clisp.org>
14645         stat-time tests: Improve comment.
14646         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
14648 2017-05-14  Bruno Haible  <bruno@clisp.org>
14650         same-inode: Adapt for windows-stat-inodes.
14651         * lib/same-inode.h: Include <sys/types.h>.
14652         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
14653         * modules/same-inode (Depends-on): Add sys_types.
14655 2017-05-14  Bruno Haible  <bruno@clisp.org>
14657         windows-stat-inodes: New module.
14658         * m4/windows-stat-inodes.m4: New file.
14659         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
14660         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
14661         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
14662         (_GL_WINDOWS_STAT_INODES): New macro.
14663         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
14664         (GetFileInformationByHandleExFunc): New variable.
14665         (initialize): Initialize it.
14666         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
14667         st_ino appropriately.
14668         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
14669         a fallback, because it does not provide st_dev and st_ino values.
14670         * modules/fstat (Depends-on): Add 'verify'.
14671         * modules/windows-stat-inodes: New file.
14672         * doc/windows-stat-inodes.texi: New file.
14673         * doc/gnulib.texi: Include it.
14674         * doc/posix-headers/sys_stat.texi: Mention the new module.
14676 2017-05-14  Bruno Haible  <bruno@clisp.org>
14678         stat-time tests: Workaround for native Windows.
14679         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
14680         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
14681         New variables.
14682         (initialize_filenames): New function.
14683         (main): Invoke it.
14684         (cleanup, prepare_test): Update.
14686 2017-05-14  Bruno Haible  <bruno@clisp.org>
14688         stat-time: Adapt for windows-stat-timespec.
14689         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
14690         entire st_ctim field.
14692 2017-05-13  Jim Meyering  <meyering@fb.com>
14694         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
14695         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
14696         file that uses the assume macro, claiming that verify.h is unused.
14698 2017-05-13  Bruno Haible  <bruno@clisp.org>
14700         Use symbolic values for _WIN32_WINNT.
14701         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
14702         * lib/sethostname.c (_WIN32_WINNT): Likewise.
14704 2017-05-13  Bruno Haible  <bruno@clisp.org>
14706         year2038: New module.
14707         * m4/year2038.m4: New file.
14708         * modules/year2038: New file.
14709         * doc/year2038.texi: New file.
14710         * doc/gnulib.texi: Include it.
14712 2017-05-13  Bruno Haible  <bruno@clisp.org>
14714         largefile: Simplify.
14715         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
14716         of _GL_WINDOWS_64_BIT_ST_SIZE.
14718 2017-05-13  Bruno Haible  <bruno@clisp.org>
14720         largefile: Improve and document.
14721         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
14722         the mingw headers already define 'stat' appropriately.
14723         * modules/largefile (Description): Clarify.
14724         * doc/largefile.texi: New file.
14725         * doc/gnulib.texi: Include it.
14726         * doc/posix-headers/sys_types.texi: Update.
14728 2017-05-13  Bruno Haible  <bruno@clisp.org>
14730         truncate: New module.
14731         * lib/unistd.in.h (truncate): New declaration.
14732         * lib/truncate.c: New file.
14733         * m4/truncate.m4: New file.
14734         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
14735         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
14736         REPLACE_TRUNCATE.
14737         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
14738         HAVE_TRUNCATE, REPLACE_TRUNCATE.
14739         * modules/truncate: New file.
14740         * tests/test-unistd-c++.cc (truncate): Test signature.
14741         * doc/posix-functions/truncate.texi: Mention the new module.
14743         * tests/test-truncate.c: New file.
14744         * modules/truncate-tests: New file.
14746 2017-05-13  Bruno Haible  <bruno@clisp.org>
14748         windows-stat-timespec: New module.
14749         * modules/windows-stat-timespec: New file.
14750         * m4/windows-stat-timespec.m4: New file.
14751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
14752         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
14753         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
14754         fields st_atim, st_mtim, st_ctim.
14755         (st_atime, st_mtime, st_ctime): Define as macros.
14756         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
14757         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
14758         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
14759         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
14760         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
14761         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
14762         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
14763         FILETIME to 'struct timespec', not 'time_t'.
14764         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
14765         FILETIME to 'struct timespec', not 'time_t'.
14766         * lib/stat-time.h (STAT_TIMESPEC): Define also if
14767         _GL_WINDOWS_STAT_TIMESPEC.
14768         * doc/windows-stat-timespec.texi: New file.
14769         * doc/gnulib.texi: Include it.
14771 2017-05-13  Bruno Haible  <bruno@clisp.org>
14773         windows-stat-override: New module.
14774         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
14775         definition. Define GNULIB_defined_struct_stat.
14776         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
14777         link error if this symbol is used and the corresponding module is not
14778         in use.
14779         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
14780         GNULIB_OVERRIDES_STRUCT_STAT.
14781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14782         GNULIB_OVERRIDES_STRUCT_STAT.
14783         * modules/sys_stat (Makefile.am): Substitute
14784         GNULIB_OVERRIDES_STRUCT_STAT.
14785         * modules/windows-stat-override: New file.
14787 2017-05-13  Bruno Haible  <bruno@clisp.org>
14789         fstat: Fix module dependency conditions.
14790         * modules/fstat (Depends-on): Fix typo.
14792 2017-05-13  Bruno Haible  <bruno@clisp.org>
14794         stat, fstat: Complete removal of old native Windows code.
14795         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
14796         * lib/fstat.c: Likewise.
14797         * lib/stat-w32.c: Likewise.
14799 2017-05-13  Bruno Haible  <bruno@clisp.org>
14801         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
14802         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
14804 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14806         getopt-posix: port to mingw
14807         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
14808         Problem reported by Daniel P. Berrage in:
14809         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
14811 2017-05-11  Bruno Haible  <bruno@clisp.org>
14813         gettimeofday: Increase precision on mingw.
14814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
14815         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
14816         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
14817         GetSystemTimePreciseAsFileTime based implementation always.
14818         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
14819         mingw.
14821 2017-05-11  Bruno Haible  <bruno@clisp.org>
14823         poll: Fix confusion between SOCKETs and FDs on native Windows.
14824         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
14825         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
14827 2017-05-11  Bruno Haible  <bruno@clisp.org>
14829         doc: Clarify doc about socket functions on native Windows.
14830         This reworks doc that was added on 2008-09-29.
14831         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
14832         clearer wording.
14833         * doc/posix-functions/accept.texi: Use clearer wording.
14834         * doc/posix-functions/bind.texi: Likewise.
14835         * doc/posix-functions/connect.texi: Likewise.
14836         * doc/posix-functions/getpeername.texi: Likewise.
14837         * doc/posix-functions/getsockname.texi: Likewise.
14838         * doc/posix-functions/getsockopt.texi: Likewise.
14839         * doc/posix-functions/ioctl.texi: Likewise.
14840         * doc/posix-functions/listen.texi: Likewise.
14841         * doc/posix-functions/recv.texi: Likewise.
14842         * doc/posix-functions/recvfrom.texi: Likewise.
14843         * doc/posix-functions/send.texi: Likewise.
14844         * doc/posix-functions/sendto.texi: Likewise.
14845         * doc/posix-functions/setsockopt.texi: Likewise.
14846         * doc/posix-functions/shutdown.texi: Likewise.
14847         * doc/posix-functions/socket.texi: Likewise.
14849 2017-05-10  Bruno Haible  <bruno@clisp.org>
14851         poll: Fix link error on native Windows.
14852         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
14854 2017-05-10  Bruno Haible  <bruno@clisp.org>
14856         time: Fix missing initialization of HAVE_TIMEZONE_T.
14857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
14858         here...
14859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
14860         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
14861         gl_HEADER_SYS_TIME_H_DEFAULTS.
14862         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
14863         (configure.ac): Remove useless quoting.
14865 2017-05-10  Bruno Haible  <bruno@clisp.org>
14867         Implement a way to opt out from MSVC support, part 2.
14868         * modules/msvc-inval (Include): Document recommended idiom.
14869         * modules/msvc-nothrow (Include): Likewise.
14871         Implement a way to opt out from MSVC support.
14872         This is useful for Emacs.
14873         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
14874         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
14875         * lib/error.c: Likewise.
14876         * lib/fcntl.c: Likewise.
14877         * lib/flock.c: Likewise.
14878         * lib/fstat.c: Likewise.
14879         * lib/fsync.c: Likewise.
14880         * lib/ioctl.c: Likewise.
14881         * lib/isapipe.c: Likewise.
14882         * lib/lseek.c: Likewise.
14883         * lib/nonblocking.c: Likewise.
14884         * lib/poll.c: Likewise.
14885         * lib/select.c: Likewise.
14886         * lib/sockets.h: Likewise.
14887         * lib/sockets.c: Likewise.
14888         * lib/stdio-read.c: Likewise.
14889         * lib/stdio-write.c: Likewise.
14890         * lib/utimens.c: Likewise.
14891         * lib/w32sock.h: Likewise.
14892         * lib/w32spawn.h: Likewise.
14893         * tests/test-cloexec.c: Likewise.
14894         * tests/test-dup-safer.c: Likewise.
14895         * tests/test-dup2.c: Likewise.
14896         * tests/test-dup3.c: Likewise.
14897         * tests/test-fcntl.c: Likewise.
14898         * tests/test-pipe.c: Likewise.
14899         * tests/test-pipe2.c: Likewise.
14900         * lib/ftruncate.c: Likewise.
14901         (chsize_nothrow): Renamed from chsize.
14902         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
14903         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
14904         * lib/close.c: Likewise.
14905         * lib/dup.c: Likewise.
14906         * lib/fclose.c: Likewise.
14907         * lib/raise.c: Likewise.
14908         * tests/test-fgetc.c: Likewise.
14909         * tests/test-fputc.c: Likewise.
14910         * tests/test-fread.c: Likewise.
14911         * tests/test-fwrite.c: Likewise.
14912         * lib/getdtablesize.c: Likewise.
14913         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
14914         * lib/isatty.c: Don't include msvc-inval.h if
14915         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
14916         Include <io.h> as an alternative to msvc-nothrow.h.
14917         * lib/read.c: Likewise.
14918         * lib/write.c: Likewise.
14919         * lib/dup2.c: Likewise.
14920         (dup2_nothrow): New function.
14921         (ms_windows_dup2): Use it.
14922         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
14923         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
14924         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
14925         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
14926         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
14927         * m4/read.m4 (gl_FUNC_READ): Likewise.
14928         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
14929         * doc/windows-without-msvc.texi: New file.
14930         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
14931         section.
14933 2017-05-10  Bruno Haible  <bruno@clisp.org>
14935         wait-process: Adjust native Windows support.
14936         * lib/wait-process.c: Use the usual condition for recognizing a native
14937         Windows platform.
14939 2017-05-10  Bruno Haible  <bruno@clisp.org>
14941         doc: New chapter "Native Windows Support".
14942         * doc/gnulib.texi (Native Windows Support): New chapter.
14943         * doc/windows-libtool.texi: Small wording changes.
14944         * doc/windows-sockets.texi: Small wording and formatting changes.
14946 2017-05-10  Bruno Haible  <bruno@clisp.org>
14948         doc: Move section "Library version handling".
14949         * doc/gnulib.texi: Move section "Library version handling"
14950         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
14952 2017-05-10  Bruno Haible  <bruno@clisp.org>
14954         doc: Move section "Running self-tests under valgrind".
14955         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
14956         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
14958 2017-05-10  Bruno Haible  <bruno@clisp.org>
14960         doc: New chapter "Build Infrastructure Modules".
14961         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
14963 2017-05-10  Bruno Haible  <bruno@clisp.org>
14965         Prepare for reordering sections in the manual.
14966         * doc/gnulib.texi: Move several sections to separate files. Include
14967         these files.
14968         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
14969         * doc/obsolete.texi: Likewise.
14970         * doc/extra-tests.texi: Likewise.
14971         * doc/transversal.texi: Likewise.
14972         * doc/namespace.texi: Likewise.
14973         * doc/check-version.texi: Likewise.
14974         * doc/windows-sockets.texi: Likewise.
14975         * doc/windows-libtool.texi: Likewise.
14976         * doc/licenses-texi.texi: Likewise.
14977         * doc/build-automation.texi: Likewise.
14978         * doc/c-locale.texi: Likewise.
14980 2017-05-10  Bruno Haible  <bruno@clisp.org>
14982         Fix instructions how to update manual on www.gnu.org.
14983         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
14985 2017-05-09  Bruno Haible  <bruno@clisp.org>
14987         tzset: Expand comment about TZ problem on native Windows.
14988         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
14989         Paul Eggert.
14990         * lib/ctime.c (rpl_ctime): Likewise.
14991         * lib/localtime.c (rpl_localtime): Likewise.
14992         * lib/mktime.c (mktime): Likewise.
14993         * lib/strftime-fixes.c (rpl_strftime): Likewise.
14994         * lib/wcsftime.c (rpl_wcsftime): Likewise.
14996 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14998         intprops: don’t depend on ‘verify’
14999         Problem reported by Ævar Arnfjörð Bjarmason in:
15000         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
15001         * lib/intprops.h: Do not include verify.h, and move compile-time
15002         checks from here ...
15003         * tests/test-intprops.c (main): ... to here, if they’re not here
15004         already.  Check widths of other standard integer types.
15005         * modules/intprops (Depends-on): Remove ‘verify’.
15007 2017-05-07  Bruno Haible  <bruno@clisp.org>
15009         utimens: On native Windows, support 100ns resolution also if fd < 0.
15010         * lib/utime.in.h: Include <time.h>.
15011         (_gl_utimens_windows): New declaration.
15012         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
15013         (utime): Invoke it.
15014         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
15015         instead of utime.
15016         * modules/utime (Depends-on): Add 'time'.
15018 2017-05-07  Bruno Haible  <bruno@clisp.org>
15020         utimens: Improve error code on native Windows.
15021         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
15022         error code EACCES, not EINVAL.
15024 2017-05-07  Bruno Haible  <bruno@clisp.org>
15026         utime: Handle more Windows error codes.
15027         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
15028         Based on explanations by Billy O'Neal.
15030 2017-05-05  Bruno Haible  <bruno@clisp.org>
15032         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
15033         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
15034         union.
15035         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
15036         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
15037         value of cipher->IV.
15039 2017-05-05  Bruno Haible  <bruno@clisp.org>
15041         wctype-h-c++-tests: Update.
15042         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
15044 2017-05-05  Bruno Haible  <bruno@clisp.org>
15046         wchar-c++-tests: Update.
15047         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
15049 2017-05-05  Bruno Haible  <bruno@clisp.org>
15051         utime-h-c++-tests: New module.
15052         * tests/test-utime-h-c++.cc: New file.
15053         (utime): Declare, missing since 2017-04-30.
15054         * modules/utime-h-c++-tests: New file.
15056 2017-05-05  Bruno Haible  <bruno@clisp.org>
15058         unistd-c++-tests: Update.
15059         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
15060         (read): Declare, missing since 2011-04-15.
15061         (sethostname): Declare, missing since 2011-12-03.
15063 2017-05-05  Bruno Haible  <bruno@clisp.org>
15065         time-c++-tests: Update.
15066         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
15067         (localtime, gmtime): Declare, missing since 2017-04-30.
15068         (ctime): Declare, missing since 2017-04-30.
15069         (strftime): Declare, missing since 2017-04-30.
15070         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
15071         2015-07-24.
15073 2017-05-05  Bruno Haible  <bruno@clisp.org>
15075         sys_resource-c++-tests: New module.
15076         * tests/test-sys_resource-c++.cc: New file.
15077         (getrusage): Declare, missing since 2012-04-13.
15078         * modules/sys_resource-c++-tests: New file.
15080 2017-05-05  Bruno Haible  <bruno@clisp.org>
15082         strings-c++-tests: New module.
15083         * tests/test-strings-c++.cc: New file.
15084         (ffs): Declare, missing since 2011-07-12.
15085         * modules/strings-c++-tests: New file.
15087 2017-05-05  Bruno Haible  <bruno@clisp.org>
15089         string-c++-tests: Update.
15090         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
15091         (ffsll): Declare, missing since 2011-07-15.
15093 2017-05-05  Bruno Haible  <bruno@clisp.org>
15095         stdlib-c++-tests: Update.
15096         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
15097         2011-10-18.
15098         (ptsname_r): Declare, missing since 2011-11-07.
15099         (qsort_r): Declare, missing since 2014-08-29.
15100         (random, srandom, initstate, setstate): Declare, missing since
15101         2012-01-14.
15102         (secure_getenv): Declare, missing since 2013-02-05.
15104 2017-05-05  Bruno Haible  <bruno@clisp.org>
15106         stdio-c++-tests: Update.
15107         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
15109 2017-05-05  Bruno Haible  <bruno@clisp.org>
15111         signal-h-c++-tests: Update.
15112         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
15114 2017-05-05  Bruno Haible  <bruno@clisp.org>
15116         math-c++-tests: Update.
15117         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
15118         (fma): Declare, missing since 2011-10-17.
15119         (fmal): Declare, missing since 2011-10-17.
15121 2017-05-05  Bruno Haible  <bruno@clisp.org>
15123         locale-c++-tests: Update.
15124         * tests/test-locale-c++.cc (localeconv): Declare, missing since
15125         2012-03-25.
15127 2017-05-05  Bruno Haible  <bruno@clisp.org>
15129         inttypes-c++-tests: New module.
15130         * tests/test-inttypes-c++.cc: New file.
15131         (strtoimax): Declare, missing since 2012-01-05.
15132         (strtoumax): Declare, missing since 2012-01-05.
15133         * modules/inttypes-c++-tests: New file.
15135 2017-05-05  Bruno Haible  <bruno@clisp.org>
15137         dirent-c++-tests: Update.
15138         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
15139         (rewinddir): Declare, missing since 2011-09-13.
15140         (dirfd): Declare, missing since 2010-03-08.
15142 2017-05-04  Bruno Haible  <bruno@clisp.org>
15144         argp: Fix mistake in 2017-04-23 commit.
15145         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
15146         assume that strerror_r returns 'int', not 'char *'.
15148 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
15150         argp: Fix typo.
15151         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
15153 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15155         utimens: port to Emacs + MS-Windows
15156         Skip the new MS-Windows-specific code if Emacs.
15157         * lib/utimens.c [EMACS_CONFIGUATION]:
15158         Avoid new MS-Windows-specific code.
15159         (USE_SETFILETIME): New macro.
15160         (fdutimens): Use it.
15162 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
15164         tzset: update doc for TZ problems on MS-Windows
15165         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
15166         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
15167         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
15168         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
15169         * doc/posix-functions/wcsftime.texi:
15170         Mention some issues with TZ under MS-Windows.
15172 2017-05-01  Bruno Haible  <bruno@clisp.org>
15174         copy-file: Fix build error on mingw.
15175         * modules/copy-file (Depends-on): Add 'close'.
15177 2017-05-01  Bruno Haible  <bruno@clisp.org>
15179         tzset: Work around TZ problem on native Windows.
15180         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
15181         Windows, set REPLACE_TZSET to 1.
15182         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
15183         invoke '_tzset' instead of 'tzset'.
15184         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
15186         * modules/time_rz (Depends-on): Add tzset.
15187         * lib/time_rz.c (tzset): Remove fallback definition.
15188         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
15190 2017-05-01  Bruno Haible  <bruno@clisp.org>
15192         mktime: Fix dependencies.
15193         * modules/mktime (Depends-on): Add 'time'.
15195 2017-05-01  Bruno Haible  <bruno@clisp.org>
15197         New module 'localtime-buffer', split off from module 'gettimeofday'.
15198         * lib/localtime-buffer.h: New file.
15199         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
15200         * lib/time.in.h (tzset): New declaration.
15201         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
15202         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
15203         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
15204         moved to lib/localtime-buffer.c or lib/tzset.c.
15205         * m4/localtime-buffer.m4: New file.
15206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
15207         HAVE_TZSET, REPLACE_TZSET.
15208         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
15209         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
15210         gl_LOCALTIME_BUFFER_NEEDED.
15211         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
15212         since 2007-01-18.
15213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
15214         tzset.
15215         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
15216         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
15217         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
15218         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
15219         * modules/localtime-buffer: New file.
15220         * modules/time (Depends-on): Remove 'gettimeofday'.
15221         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
15222         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
15223         * modules/tzset (Description): Enable hyperlink to POSIX spec.
15224         (Files): Add lib/tzset.c.
15225         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
15226         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
15227         gl_TIME_MODULE_INDICATOR.
15228         * modules/gettimeofday (Depends-on): Add localtime-buffer.
15230 2017-05-01  Bruno Haible  <bruno@clisp.org>
15232         copy-file: Preserve sub-second time stamps.
15233         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
15234         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
15235         transport the time stamps from the original file to the destination
15236         file.
15237         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
15238         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
15239         utime-h.
15241 2017-05-01  Bruno Haible  <bruno@clisp.org>
15243         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
15244         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
15245         also on MSVC.
15246         Reported by Eli Zaretskii <eliz@gnu.org>.
15248 2017-05-01  Bruno Haible  <bruno@clisp.org>
15250         wchar: Fix compilation error with the original mingw.org mingw.
15251         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
15252         <stddef.h> instead.
15253         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
15254         gl_WCTYPE_H.
15255         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
15256         gl_TYPE_WINT_T_PREREQ instead.
15257         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
15258         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
15259         Reported by Eli Zaretskii <eliz@gnu.org>.
15261 2017-04-30  Bruno Haible  <bruno@clisp.org>
15263         utimecmp: Add support for native Windows.
15264         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
15266 2017-04-30  Bruno Haible  <bruno@clisp.org>
15268         utimens: Add support for native Windows.
15269         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
15270         (fdutimens): Provide a native Windows implementation, like utime.c with
15271         added tv_nsec support.
15272         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
15273         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
15275 2017-04-30  Bruno Haible  <bruno@clisp.org>
15277         wcsftime: New module.
15278         * lib/wchar.in.h (wcsftime): New declaration.
15279         * lib/wcsftime.c: New file.
15280         * m4/wcsftime.m4: New file.
15281         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
15282         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
15283         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
15285         HAVE_WCSFTIME, REPLACE_WCSFTIME.
15286         * modules/wcsftime: New file.
15287         * doc/posix-functions/wcsftime.texi: Mention the new module.
15289 2017-04-30  Bruno Haible  <bruno@clisp.org>
15291         strftime-fixes: New module.
15292         * lib/time.in.h (strftime): New declaration.
15293         * lib/strftime-fixes.c: New file.
15294         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
15295         (gl_FUNC_STRFTIME): Remove macro.
15296         * m4/strftime-fixes.m4: New file.
15297         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
15298         REPLACE_STRFTIME.
15299         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
15300         REPLACE_STRFTIME.
15301         * modules/strftime-fixes: New file.
15302         * doc/posix-functions/strftime.texi: Mention the new module.
15304 2017-04-30  Bruno Haible  <bruno@clisp.org>
15306         mktime: Work around TZ problem on native Windows.
15307         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
15308         from the native Windows workaround.
15309         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
15310         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
15311         'guessing no'.
15312         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
15313         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
15314         NEED_MKTIME_WINDOWS.
15315         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
15316         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
15317         NEED_MKTIME_INTERNAL.
15318         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
15319         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
15320         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
15321         not REPLACE_MKTIME.
15322         * doc/posix-functions/mktime.texi: Mention the native Windows
15323         workaround.
15325 2017-04-30  Bruno Haible  <bruno@clisp.org>
15327         localtime: New module.
15328         * lib/time.in.h (localtime): Declare also if requested by module
15329         'localtime'.
15330         * lib/localtime.c: New file.
15331         * m4/localtime.m4: New file.
15332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
15333         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
15334         * modules/localtime: New file.
15335         * doc/posix-functions/localtime.texi: Mention the new module.
15337 2017-04-30  Bruno Haible  <bruno@clisp.org>
15339         ctime: New module.
15340         * lib/time.in.h (ctime): New declaration.
15341         * lib/ctime.c: New file.
15342         * m4/ctime.m4: New file.
15343         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
15344         REPLACE_CTIME.
15345         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
15346         * modules/ctime: New file.
15347         * doc/posix-functions/ctime.texi: Mention the new module.
15349 2017-04-30  Bruno Haible  <bruno@clisp.org>
15351         gettimeofday: Provide higher resolution on native Windows.
15352         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
15353         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
15354         (initialize): Initialize it.
15355         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
15356         'struct timeval'. Don't use _ftime().
15357         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
15358         <sys/timeb.h> and _ftime.
15360 2017-04-30  Bruno Haible  <bruno@clisp.org>
15362         Document the problem with the Cygwin environment variable TZ.
15363         * doc/posix-functions/tzset.texi: Add note about TZ.
15364         * doc/posix-functions/ctime.texi: Likewise.
15365         * doc/posix-functions/localtime.texi: Likewise.
15366         * doc/posix-functions/mktime.texi: Likewise.
15367         * doc/posix-functions/strftime.texi: Likewise.
15368         * doc/posix-functions/wcsftime.texi: Likewise.
15369         * doc/pastposix-functions/ftime.texi: Likewise.
15371 2017-04-30  Bruno Haible  <bruno@clisp.org>
15373         utime-tests: New module.
15374         * tests/test-utime.c: New file, based on tests/test-utimens.h.
15375         * tests/test-utimens-common.h: Include <sys/stat.h>.
15376         * modules/utime-tests: New file.
15378 2017-04-29  Bruno Haible  <bruno@clisp.org>
15380         utime: New module.
15381         * lib/utime.in.h: Add comment for snippets.
15382         (utime): New declaration.
15383         * lib/utime.c: New file.
15384         * m4/utime.m4: New file.
15385         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
15386         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
15387         REPLACE_UTIME.
15388         * modules/utime-h (Depends-on): Add snippets.
15389         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
15390         Insert snippets.
15391         * modules/utime: New file.
15392         * doc/posix-functions/utime.texi: Mention the new module.
15394 2017-04-29  Bruno Haible  <bruno@clisp.org>
15396         utime-h: Modernize handling of 'struct utimbuf'.
15397         * lib/utime.in.h: Include next <utime.h> if it exists.
15398         (utimbuf): Define to _utimbuf on native Windows.
15399         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
15400         Set UTIME_H on native Windows.
15401         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
15402         * modules/utime-h (Depends-on): Add include_next.
15403         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
15404         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
15406         * lib/utimens.c (utimbuf): Remove fallback definition.
15407         * m4/utimens.m4 (gl_UTIMENS): Don't require
15408         gl_CHECK_TYPE_STRUCT_UTIMBUF.
15409         * m4/utimbuf.m4: Remove file.
15410         * modules/utimens (Files): Remove m4/utimbuf.m4.
15412 2017-04-29  Bruno Haible  <bruno@clisp.org>
15414         Make use of module 'utime-h'.
15415         * modules/copy-file (Depends-on): Add utime-h.
15416         * lib/copy-file.c: Assume that <utime.h> exists.
15417         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
15419         * modules/utimens (Depends-on): Add utime-h.
15420         * lib/utimens.c: Assume that <utime.h> exists.
15422 2017-04-29  Bruno Haible  <bruno@clisp.org>
15424         utime-h: New module.
15425         * m4/utime_h.m4: New file.
15426         * lib/utime.in.h: New file.
15427         * modules/utime-h: New file.
15428         * doc/posix-headers/utime.texi: Mention the new module.
15430         * tests/test-utime-h.c: New file.
15431         * modules/utime-h-tests: New file.
15433 2017-04-30  Bruno Haible  <bruno@clisp.org>
15435         Fix a few typos.
15436         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
15437         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
15438         * doc/posix-functions/fstat.texi: Fix a plural typo.
15439         * doc/posix-functions/stat.texi: Likewise.
15440         * m4/include_next.m4: Update comments.
15442 2017-04-29  Bruno Haible  <bruno@clisp.org>
15444         error: Fix mistake in 2017-04-23 commit.
15445         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
15446         assume that strerror_r returns 'int', not 'char *'.
15448 2017-04-29  Bruno Haible  <bruno@clisp.org>
15450         stat: Fix time_t values and other problems on native Windows platforms.
15451         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
15452         implementations of stat().
15453         * lib/stat.c: Include filename.h instead of dosname.h. Include
15454         malloca.h, stat-w32.h.
15455         (is_unc_root): New function.
15456         (rpl_stat): New implementation for native Windows. Remove
15457         REPLACE_FUNC_STAT_DIR code.
15458         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
15459         Don't define REPLACE_FUNC_STAT_DIR.
15460         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
15461         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
15462         (Depends-on): Remove dosname. Add filename, malloca.
15463         (configure.ac): Also compile lib/stat-w32.c.
15465 2017-04-29  Bruno Haible  <bruno@clisp.org>
15467         fstat: Fix time_t values on native Windows platforms.
15468         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
15469         * lib/stat-w32.h: New file.
15470         * lib/stat-w32.c: New file.
15471         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
15472         stat-w32.h instead.
15473         (fstat_nothrow): Remove function.
15474         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
15475         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
15476         always.
15477         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
15478         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
15479         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
15480         (configure.ac): Also compile lib/stat-w32.c.
15482 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15484         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
15485         Problem reported by Assaf Gordon and Gavin Smith in:
15486         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
15487         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
15488         #define this, too.
15490 2017-04-29  Bruno Haible  <bruno@clisp.org>
15492         strerror_r-posix: Fixes for MSVC 14.
15493         * lib/strerror_r.c: Include <stdarg.h>.
15494         (strerror_r): Provide error messages for errno values 100...140.
15495         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
15497 2017-04-28  Bruno Haible  <bruno@clisp.org>
15499         noreturn: New module.
15500         * lib/noreturn.h: New file.
15501         * modules/noreturn: New file.
15502         * tests/test-noreturn.c: New file.
15503         * modules/noreturn-tests: New file.
15504         * tests/test-noreturn-c++.cc: New file.
15505         * modules/noreturn-c++-tests: New file.
15507 2017-04-27  Bruno Haible  <bruno@clisp.org>
15509         wctype-h: Fix compilation error with the original mingw.org mingw.
15510         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
15511         HAVE_CRTDEFS_H.
15512         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
15513         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
15514         <stddef.h> instead.
15515         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
15517 2017-04-26  Pádraig Brady  <P@draigBrady.com>
15519         nap.h: Fix compilation on non windows platforms
15520         * tests/nap.h: Move misplaced endif.
15522 2017-04-26  Pádraig Brady  <P@draigBrady.com>
15523         and Paul Eggert  <eggert@cs.ucla.edu>
15525         time_rz: fix heap buffer overflow vulnerability
15526         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
15527         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
15528         whether there is enough buffer space available, thus avoiding
15529         the problematic promotion of signed to unsigned causing an invalid
15530         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
15531         the start of the buffer.
15532         * tests/test-parse-datetime.c (main): Add a test case written by
15533         Paul Eggert, which overwrites enough of the heap so that
15534         standard glibc will fail with "free(): invalid pointer"
15535         without the patch applied.
15537 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15539         xalloc: add missing integer overflow check
15540         * lib/xalloc.h (x2nrealloc): Also check for multiplication
15541         overflow when P is null.
15543 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15545         parse-datetime: make it standalone
15546         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
15547         (_GL_ATTRIBUTE_FORMAT): New macro.
15548         These are needed to get './gnulib-tool --test parse-datetime' to work.
15550 2017-04-23  Bruno Haible  <bruno@clisp.org>
15552         nap.h: Port to native Windows.
15553         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
15554         use nap_fd instead. On native Windows, close and reopen nap_fd.
15555         (nap_works): Don't compare the ctimes, because on native Windows, these
15556         are the creation times.
15557         (nap): Update.
15559 2017-04-23  Bruno Haible  <bruno@clisp.org>
15561         nap.h: Fix logic.
15562         * tests/nap.h (nap): Avoid signed integer overflow in loop.
15564 2017-04-23  Bruno Haible  <bruno@clisp.org>
15566         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
15567         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
15568         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
15569         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
15570         * lib/argp-help.c (__argp_failure): Likewise.
15572 2017-04-23  Bruno Haible  <bruno@clisp.org>
15574         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
15575         * m4/strerror_r.m4: Revert changes since 2016-10-16.
15576         * lib/strerror_r.c: Likewise.
15578 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
15580         Target a C99 subset, not a C89 subset
15581         For many years Gnulib has targeted C89 and has resisted using C99
15582         features, as some Gnulib-using programs still wanted to target
15583         C89.  As this no longer seems to be the case, relax the porting
15584         requirements to allow some C99 features.  This is merely a change
15585         to the documentation, to give other Gnulib developers a chance to
15586         weigh in on the topic.
15587         * doc/extern-inline.texi (extern inline):
15588         * doc/gnulib-readme.texi (Portability guidelines):
15589         * doc/gnulib-tool.texi (Initial import):
15590         * doc/gnulib.texi (Header files):
15591         Modernize to talk about C99 and C11 instead of C89 and C99.
15592         * doc/gnulib-readme.texi (Portability guidelines):
15593         Now a section, not merely a subsection, so that it
15594         can be split up.  Modernize a bit.
15595         (C language versions, C99 features assumed)
15596         (C99 features avoided):
15597         New sections.
15599 2017-04-23  Bruno Haible  <bruno@clisp.org>
15601         doc: New section "Modules that modify the way other modules work".
15602         * doc/gnulib.texi (Modules that modify the way other modules work): New
15603         section.
15605 2017-04-23  Bruno Haible  <bruno@clisp.org>
15607         stat-time: Update comments.
15608         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
15609         * tests/test-utimens-common.h: Add reference regarding st_ctime on
15610         Windows.
15612 2017-04-01  Bruno Haible  <bruno@clisp.org>
15614         glob: Fix more memory leaks.
15615         * lib/glob.c (glob): Free allocated memory before returning.
15616         Reported by Coverity via Tim Rühsen.
15618 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15620         poll: improve fast check for out-of-range NFD
15621         * lib/poll.c: Do not include intprops.h.
15622         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
15623         * modules/poll (Depends-on): Remove intprops.
15625         ftoastr: cite a newer paper
15626         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
15627         instead of Loitsch 2010.
15629 2017-04-22  Bruno Haible  <bruno@clisp.org>
15631         poll: Enable argument check also in the Windows implementation.
15632         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
15633         Reported by Paul Eggert.
15635 2017-04-22  Bruno Haible  <bruno@clisp.org>
15637         getlogin_r: Work around bug in Mac OS X 10.12.
15638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
15639         bug.
15640         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
15641         given size minus 1, call getlogin_r a second time, on a larger buffer.
15642         * modules/getlogin_r (Depends-on): Add malloca.
15643         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
15645 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15647         parse-datetime: fix %z and prefer signed int
15648         %z problem reported by Pádraig Brady in:
15649         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
15650         While fixing it, I decided to prefer signed ints to size_t, as
15651         they are less error-prone (e.g., ubsan catches overflow).
15652         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
15653         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
15654         counts, since signed integers make for better debugging.
15655         (date): Don’t assume %z works in printf formats.
15656         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
15657         sizes of buffers known to be small, e.g., because we’re using snprintf.
15658         (parse_datetime2): Simplify call to debug_mktime_not_ok.
15660 2017-04-22  Bruno Haible  <bruno@clisp.org>
15662         *printf: Work around rounding bug on Mac OS X.
15663         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
15664         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
15665         Mac OS X and FreeBSD.
15666         * doc/glibc-functions/*printf.texi: Likewise.
15668 2017-04-22  Bruno Haible  <bruno@clisp.org>
15670         vasnprintf tests: Avoid warnings.
15671         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
15672         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
15673         test.
15675 2017-04-22  Bruno Haible  <bruno@clisp.org>
15677         sys_file tests: Avoid warning.
15678         * tests/test-sys_file.c (main): Add a default clause to the switch
15679         statement.
15681 2017-04-22  Bruno Haible  <bruno@clisp.org>
15683         sethostname: Update doc.
15684         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
15685         Mac OS X.
15687 2017-04-22  Bruno Haible  <bruno@clisp.org>
15689         quotearg tests: Avoid warnings.
15690         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
15691         false.
15693 2017-04-22  Bruno Haible  <bruno@clisp.org>
15695         poll: Enable argument check.
15696         * lib/poll.c: Include intprops.h.
15697         (poll): Check value of nfd correctly.
15698         * modules/poll (Depends-on): Add intprops.
15700 2017-04-22  Bruno Haible  <bruno@clisp.org>
15702         get-rusage-data: Avoid warnings on Mac OS X.
15703         * lib/get-rusage-data.c: On Mac OS X, don't define
15704         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
15705         (get_rusage_data) [Mac OS X]: Just return 0.
15707 2017-04-22  Bruno Haible  <bruno@clisp.org>
15709         xbinary-io: Fix build error.
15710         * modules/xbinary-io (Depends-on): Add gettext-h.
15711         * lib/xbinary-io.c: Include gettext.h and define _().
15712         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
15713         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
15715 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15717         parse-datetime: overflow and debug cleanups
15718         This long patch was triggered by this bug report from Ruediger Meier:
15719         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
15720         I fixed the bug he noted, then found some others nearby, and then
15721         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
15722         up some of the code to follow GNU standards while I was at it.
15723         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
15724         use c_isdigit.
15725         (EPOCH_YEAR): Remove; unused.
15726         (TM_YEAR_BASE): Now an enum rather than a macro.
15727         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
15728         time zone offset, since timezones now are in terms of seconds and
15729         not minutes.
15730         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
15731         appropriate.  Verify that intmax_t is wide enough.
15732         (time_overflow, time_zone_str): New functions, used to deal
15733         more reliably with overflow.
15734         (dbg_printf): Add printf attribute, to help catch integer width errors.
15735         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
15736         (%union, to_hour, yylex, parse_datetime2):
15737         Use intmax_t instead of long int and/or long_time_t.
15738         All uses changed.
15739         (DBGBUFSIZE): Move earlier.
15740         (relative_time, set_hhmmss, parser_control):
15741         Just use int for nanoseconds and for time zones; that’s wide enough.
15742         (parser_control): Use bool for members like year_seen that can
15743         be booleans instead of counters.  All uses changed.
15744         Remove debug_default_input_timezone; no longer needed.
15745         All uses removed.
15746         (apply_relative_time): Return a bool overflow flag.
15747         All uses changed to check for overflow.
15748         (apply_relative_time, zone, date, relunit, relunit_snumber)
15749         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
15750         Check for integer overflow portably.
15751         (str_days): Use just int for N, as it’s wide enough.
15752         Prefer 2D char arrays to arrays of char * when it looks like
15753         2D is a win on typical platforms.
15754         Prefer snprintf to strncpy/strncat, for simplicity;
15755         all buffers are smaller than INT_MAX so this is safe.
15756         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
15757         (debug_print_current_time): Don’t assume tv_nsec is of type long,
15758         as this is not true on x32.  Output "." before any nanoseconds.
15759         (debug_print_current_time, parse_datetime2):
15760         Output local zones using a more-consistent format.
15761         (debug_print_current_time, date, parse_datetime2):
15762         (main) [TEST]:
15763         Don’t assume time_t is the same width as long.
15764         (print_rel_part): New function, replacing ...
15765         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
15766         (debug_print_relative_time): Use bool for boolean.
15767         (local_zone): dsts_seen now counts only tDST instances.
15768         (date): Fix printf of size_t to use %z.  Do not assume numeric
15769         tokens have negative values merely because the context suggests
15770         a syntax with "-" separating tokens.
15771         (time_zone_hhmm): Return bool success indicator, which checks for
15772         overflow.  Store result into PC->time_zone instead.  All callers
15773         changed.
15774         (tm_year_str): New function.  Return a bool success indicator and
15775         store the result into a buffer.  All callers changed.  Output the
15776         numerically correct string even if adding 1900 to the year would
15777         overflow.
15778         (to_tm_year): New function, replacing the old to_year.  All
15779         callers changed.
15780         (tm_diff): Sync with glibc.
15781         (lookup_word): Use to_uchar instead of doing it by hand.
15782         (TZBUFSIZE): Now local to the only function that needs it.
15783         (debug_strfdatetime): Simplify now that time zones are int seconds.
15784         (debug_strfdate): Work even if tm_year + 1900 would overflow.
15785         (get_effective_timezone): Remove.  All uses removed.
15786         (parse_datetime2): Use fprintf in pieces instead of snprintfing
15787         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
15788         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
15789         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
15790         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
15791         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
15792         * modules/parse-datetime (Depends-on): Add inttypes.
15794 2017-04-21  Bruno Haible  <bruno@clisp.org>
15796         gettext-h: Avoid -Wundef warning.
15797         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
15798         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15799         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
15801 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
15803         error: Avoid "function declaration isn't a prototype" warning.
15804         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
15806 2017-04-21  Bruno Haible  <bruno@clisp.org>
15808         vasnprintf: Fix for MSVC 14.
15809         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
15810         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
15811         of !HAVE_SNPRINTF_RETVAL_C99.
15813 2017-04-21  Bruno Haible  <bruno@clisp.org>
15815         mbrtowc tests: Fix test failures on MSVC 14.
15816         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
15817         behaviour for invalid input.
15819 2017-04-21  Bruno Haible  <bruno@clisp.org>
15821         mbsinit: Fix for MSVC 14.
15822         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
15823         implementation that is in sync with mbrtowc.c. On other platforms, use
15824         an adequate ad-hoc implementation.
15826 2017-04-21  Bruno Haible  <bruno@clisp.org>
15828         Fix test-mbrtowc5.sh failure on native Windows.
15829         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
15830         "C".
15832 2017-04-21  Bruno Haible  <bruno@clisp.org>
15834         Avoid accidental use of native Windows APIs on Cygwin.
15835         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
15836         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
15837         * lib/localename.c (WINDOWS_NATIVE): Likewise.
15839 2017-04-20  Bruno Haible  <bruno@clisp.org>
15841         Remove red warnings from the generated MODULES.html.
15842         * modules/fcntl (Description): Disambiguate function references.
15843         * modules/getcwd-lgpl (Description): Likewise.
15844         * modules/hostent (Description): Likewise.
15845         * modules/servent (Description): Likewise.
15846         * modules/tempname (Description): Likewise.
15848 2017-04-20  Bruno Haible  <bruno@clisp.org>
15850         verify tests: Fix spurious failure with parallel make.
15851         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
15852         EXTRA_PROGRAMS.
15853         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
15854         * tests/test-verify-try.c: New file.
15855         * modules/verify-tests (Files): Add it.
15856         (EXTRA_PROGRAMS): Add test-verify-try.
15857         (MOSTLYCLEANFILES): Update accordingly.
15858         Reported by Adam James Stewart <ajstewart@anl.gov>.
15860 2017-04-18  Bruno Haible  <bruno@clisp.org>
15862         vma-iter: Fix compilation error on Solaris 7.
15863         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
15864         like on IRIX, OSF/1.
15865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15867 2017-04-18  Bruno Haible  <bruno@clisp.org>
15869         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
15870         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
15871         included.
15872         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
15873         <sys/procfs.h>.
15874         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
15875         <sys/procfs.h> cannot be included.
15876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15878 2017-04-18  Bruno Haible  <bruno@clisp.org>
15880         getopt-gnu: Add comments.
15881         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
15882         * modules/getopt-gnu (configure.ac): Likewise.
15884 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
15886         regex: port better to Solaris 10
15887         Solaris 10 <locale.h> includes <libintl.h>, which #defines
15888         gettext, and this causes a double #define.
15889         Problem reported by Gavin Smith in:
15890         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
15891         * lib/regex_internal.h (gettext): #undef before #defining.
15893 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
15895         intprops: improve comments
15896         * lib/intprops.h: Improve and shorten commentary.
15897         For the record, if we ever run into a pedantic compiler that
15898         behaves differently from GCC when converting an out-of-range value
15899         to a signed integer, we can work around the problem with something
15900         like the following code, where UCT is the signed counterpart of T
15901         (UCT is sometimes narrower than UT) and all callers are changed
15902         accordingly:
15903         #if __SUNPRO_C <= 0x5120
15904         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
15905            ((t) ((ut) (a) op (ut) (b)))
15906         #else
15907         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
15908            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
15909             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
15910                + TYPE_MINIMUM (t)) \
15911             : (t) (uct) ((ut) (a) op (ut) (b)))
15912         #endif
15914 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
15916         intprops: try to avoid tickling similar bugs
15917         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
15918         needs to be the same width as T; it can be wider.
15919         Change callers so that UT is at least as wide as unsigned int,
15920         as I suspect that this is less likely to run into compiler bugs.
15922         intprops: port to Oracle Studio 12.3 x86
15923         Problem reported by Gavin Smith in:
15924         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
15925         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
15926         Convert unsigned to signed via the usual rather than the standard way,
15927         to avoid a compiler bug in Oracle Studio 12.3 x86.
15929 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15931         getopt: prefer - to _ in new file names
15932         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
15933         * lib/getopt-core.h: Rename from lib/getopt_core.h.
15934         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
15935         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
15936         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
15937         All uses changed.
15939         getopt: port recent getopt changes to macOS
15940         Problem reported by Harald Maier (Bug#26398).
15941         The macOS C compiler uses __nonnull for its own purposes and that
15942         clashes with glibc's __nonnull.
15943         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
15944         * lib/getopt_cdefs.in.h (__nonnull): Remove.
15945         * lib/getopt_core.h (getopt):
15946         * lib/getopt_ext.h (getopt_long, getopt_long_only):
15947         Use _GL_ARG_NONNULL, not __nonnull.
15948         * lib/unistd.in.h: Move snippet hooks to before where the getopt
15949         .h files are included, so that _GL_ARG_NONNULL is defined in time.
15950         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
15951         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
15953 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15955         getopt-gnu: omit some duplicate code
15956         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
15957         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
15958         gnulib-tool already does this.
15959         * modules/getopt-gnu (configure.ac): Omit code duplicated from
15960         getopt-posix, which we depend on.
15962         getopt-posix: use angle-bracket include
15963         * lib/getopt1.c: Include <config.h>, not "config.h".
15965 2017-04-06  Zack Weinberg  <zackw@panix.com>
15967         getopt: annotate files with relationship to glibc
15969         As the final act in this patchset, adjust the message at the top of
15970         each file to indicate which files are synced with glibc.  (This has
15971         already been done for most of the headers.)
15973         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
15974         Mention in top-of-file boilerplate that these files are shared
15975         between glibc and gnulib.
15978         getopt: split up getopt.in.h and eliminate __need_getopt
15980         Over in glibc, all of the __need macros are being phased out in favor
15981         of small headers that declare only the necessary components, as this
15982         is much simpler and less prone to bugs.  As getopt is shared with
15983         glibc, gnulib needs to do the same for __need_getopt.
15985         __need_getopt is misnamed; what it really means is "we want only the
15986         getopt features specified in POSIX, not the GNU extensions".  glibc
15987         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
15988         these files can be shared verbatim with gnulib.  The portability
15989         wrapper, on the other hand, they have renounced altogether; glibc's
15990         getopt.h will no longer be shared with gnulib at all.  In exchange,
15991         certain glibc-specific quirks (having to do with __posix_getopt) no
15992         longer need appear in gnulib's headers at all.
15994         This patch merges getopt_core.h and getopt_ext.h from glibc, and
15995         splits up the current gnulib-side portability wrapper into three
15996         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
15997         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
15998         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
15999         unistd.in.h just use them.  All new files are clearly marked with
16000         whether they are shared with glibc.
16002         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
16003         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
16004         with glibc, and ...
16005         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
16006         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
16007         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
16008         instead of defining __need_getopt and including the full getopt.h.
16010         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
16011         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
16012         * modules/getopt-posix (Files): Add new headers and sort list.
16013         (Depends-on): No longer need snippet/arg-nonnull.
16014         (Makefile.am): Generate getopt_cdefs.h.
16017         getopt: better handling of ambiguous options
16019         glibc's getopt uses alloca to construct a linked list of possibilities
16020         for an "ambiguous" long option.  In gnulib, malloc should be used
16021         instead.  Providing for both cases complicates things a fair bit.
16023         This patch rewrites ambiguous-option handling to use a boolean vector
16024         instead of a linked list.  There is then only one allocation that
16025         might need freeing; in glibc it can honor __libc_use_alloca as usual,
16026         and in gnulib we define __libc_use_alloca to always be false, so we
16027         don't need ifdefs in the middle of the function.  This should also be
16028         slightly more efficient in the normal case of long options being fully
16029         spelled out -- I think most people aren't even aware they _can_
16030         sometimes abbreviate long options.
16032         One interesting consequence is that the list of possibilities is now
16033         printed in exactly the order they appear in the list of long options,
16034         instead of the first possibility being shuffled to the end.
16036         (The patch looks bigger than it really is because there's a fair bit
16037         of reindentation and code rearrangement.)
16039         * lib/getopt.c: When used standalone, define __libc_use_alloca
16040         as always false and alloca to abort if called.
16041         (process_long_option): Rewrite handling of ambiguous long options
16042         to use a single boolean vector, not a linked list; use
16043         __libc_use_alloca to decide whether to allocate this using alloca.
16046         getopt: refactor long-option handling
16048         There were two copies of the bulk of the code to handle long options.
16049         Now there is only one.
16051         This change temporarily removes the logic to avoid using alloca when
16052         standalone; the next patch in the series will restore it.
16054         * lib/getopt.c (process_long_option): New function split out
16055         from _getopt_internal_r.
16056         (_getopt_internal_r): Replace both copies of the long-option
16057         processing code with calls to process_long_option.
16060         getopt: tidy up _getopt_initialize a bit
16062         _getopt_data.__posixly_correct is completely redundant to
16063         _getopt_data.__ordering, and some work that logically belongs in
16064         _getopt_initialize was being done by _getopt_internal_r, making the
16065         code harder to understand.
16067         As a side effect, getenv will no longer be called if the first
16068         character of the options string is '+' or '-', which is probably a
16069         Good Thing.  (Perhaps we should have a flag character that
16070         specifically asks for the permutation behavior?)
16072         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
16073         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
16074         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
16077         getopt: merge from glibc: repetition reduction
16079         The definitions of the entry point functions 'getopt' and
16080         '__posix_getopt' can be made substantially less repetitive with a
16081         helper macro.
16083         While I was merging the const-correctness changes from gnulib into
16084         glibc I noticed there are still some unnecessary casts in
16085         _getopt_internal_r.
16087         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
16088         a macro.  Consistently cast 'argv' to 'char **' when calling
16089         _getopt_internal.
16090         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
16093         getopt: clean up error reporting
16095         getopt can print a whole bunch of error messages, and when used
16096         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
16097         cancellation point and getopt isn't, and also applying fprintf to a
16098         stream in wide-character mode is not allowed.  So every single error
16099         reporting case has an #ifdef _LIBC block in which it calls internal
16100         libc functions instead.  The counterpart patch series in glibc makes
16101         it possible to simplify all of that down to a set of #defines at the
16102         top of the file; core code is written as if it is safe to just call
16103         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
16104         call any *other* stdio functions.)
16106         * lib/getopt.c: When _LIBC is defined, define fprintf to
16107         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
16108         to _IO_funlockfile.  When neither _LIBC nor
16109         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
16110         funlockfile as no-ops.
16111         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
16112         standalone error-printing code can now be used for libc as well.
16113         Add an flockfile/funlockfile pair around one case where the error
16114         message is printed in several chunks.  Don't use fputc.
16117         getopt: fix fencepost error in ambiguous-W-option handling
16119         getopt_long contains an undocumented (AFAICT) feature in which, if you
16120         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
16121         treated as equivalent to '--foo'.  This is implemented with a partial
16122         second copy of the code for handling long options, and that code
16123         increments optind one too many times when recovering from an ambiguous
16124         abbreviated option, which can cause the main loop to walk past the end
16125         of argv and crash.
16127         I discovered this while writing a test case that tries to exercise all
16128         of getopt's error reporting paths; I wouldn't be surprised to learn
16129         that this feature is never used by real applications.
16131         * lib/getopt.c (_getopt_internal_r): Don't increment
16132         d->optind a second time when reporting ambiguous -W options.
16135         getopt: clean up getopt.c and getopt1.c file headers
16137         In getopt.c, there is no need to include wchar.h at all, and it is
16138         safe nowadays to assume that stdlib.h does declare getenv (several
16139         other gnulib modules make this assumption).
16141         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
16142         by using "" inclusions consistently, and there is no actual need to
16143         include stdlib.h (except in the #ifdef TEST block, where it should be
16144         unconditional), nor to provide a backup definition of NULL at all.
16146         * lib/getopt1.c: Simplify #ifdeffage at top of file.
16147         Move inclusion of stdlib.h to #ifdef TEST block and make
16148         unconditional.  Do not define NULL.
16149         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
16150         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
16151         * modules/getopt-gnu, modules/getopt-posix: Don't call
16152         gl_PREREQ_GETENV.
16155         getopt: harmonize comments with glibc
16157         The comments explaining how the behavior of 'getopt' varies depending
16158         on whether it's the standalone version and whether there are special
16159         characters at the beginning of the options string were inconsistent
16160         between gnulib and glibc, and also out of sync with the code.
16162         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
16165         getopt: remove USE_NONOPTION_FLAGS
16167         getopt includes code to parse an environment variable named
16168         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
16169         in decimal); but all of it has been #ifdefed out since 2001, with no
16170         official way to turn it back on.
16172         According to commentary in glibc's config.h.in, bash version 2.0
16173         set this environment variable to indicate argv elements that were
16174         the result of glob expansion and therefore should not be treated
16175         as options, but the feature was "disabled later" because "it
16176         caused problems".  According to bash's CHANGES file, "later" was
16177         release 2.01; it gives no more detail about what the problems
16178         were.
16180         Version 2.0 of bash was released on the last day of 1996, and version
16181         2.01 in June of 1997.  Twenty years later, I think it is safe to
16182         assume that this environment variable isn't coming back.
16184         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
16185         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
16186         __libc_argc and __libc_argv externs, which were only used by
16187         #ifdef USE_NONOPTION_FLAGS blocks.
16190         getopt: tabify, in preparation for merge with glibc
16192         glibc sticks to the GNU default of indenting with a mix of
16193         8-column tabs and spaces; make the gnulib copy match.
16195         getopt.h is not included because it is *not* going to be merged in its
16196         present form.
16198         * getopt.c, getopt1.c, getopt_int.h: Tabify.
16200 2017-04-02  Bruno Haible  <bruno@clisp.org>
16202         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
16203         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
16204         like it was done in modules/relocatable-lib on 2011-05-21 and in
16205         modules/relocatable-prog on 2011-08-15.
16206         Reported by Reuben Thomas <rrt@sc3d.org>.
16208 2017-03-31  Bruno Haible  <bruno@clisp.org>
16210         glob: Fix invalid free() call.
16211         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
16212         static storage to home_dir.
16213         Reported by Coverity via Tim Rühsen.
16215 2017-03-31  Bruno Haible  <bruno@clisp.org>
16217         glob: Fix memory leaks.
16218         * lib/glob.c (glob): Free allocated memory before returning.
16219         Reported by Coverity via Tim Rühsen.
16221 2017-03-31  Bruno Haible  <bruno@clisp.org>
16223         md5, sha1, sha256, sha512: Add comments regarding correctness.
16224         * lib/md5.h (buflen): Add comments regarding range.
16225         * lib/sha1.h (buflen): Likewise.
16226         * lib/sha256.h (buflen): Likewise.
16227         * lib/sha512.h (buflen): Likewise.
16228         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
16229         * lib/sha1.c (sha1_process_bytes): Likewise.
16230         * lib/sha256.c (sha256_process_bytes): Likewise.
16231         * lib/sha512.c (sha512_process_bytes): Likewise.
16232         Reported by Coverity via Tim Rühsen.
16234 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
16236         getopt: merge from glibc
16237         This does not change anything substantial; it merely simplifies
16238         hypothetical merges back to glibc.
16239         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
16240         Change copyright notice to match what is in glibc.
16241         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
16242         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
16243         __open_memstream rather than open_memstream and __glibc_likely
16244         instead of __builtin_expect.
16245         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
16247 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
16249         dfa: make [0-9] faster in non-C locales
16250         Problem reported by John P. Linderman (Bug#26193).
16251         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
16252         If both ends of the range are ASCII digits, do not worry about
16253         multi-character collating sequences and the like.  Be consistent
16254         about using isalpha as a precondition for setbit_case_fold_c.
16256 2017-03-19  Bruno Haible  <bruno@clisp.org>
16258         lock: Fix compilation error with HP-UX IA64 cc.
16259         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
16260         weak on non-glibc platforms.
16262 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16264         stdalign: tweak version# and test for HP-UX IA64
16265         Problems reported by Bruno Haible in:
16266         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
16267         * lib/stdalign.in.h (_Alignas):
16268         * m4/stdalign.m4 (gl_STDALIGN_H):
16269         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
16270         used octal (as that is how they document it), but it is decimal in
16271         practice now and the ancient implementations no longer matter.
16272         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
16274 2017-03-19  Bruno Haible  <bruno@clisp.org>
16276         vma-iter: Add support for Solaris.
16277         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
16278         approach.
16279         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
16280         * lib/get-rusage-as.c: Update comment about Solaris.
16281         * lib/get-rusage-data.c: Likewise.
16283 2017-03-19  Bruno Haible  <bruno@clisp.org>
16285         vma-iter: Prefer HP-UX specific API on HP-UX.
16286         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
16287         * lib/vma-iter.h: Update.
16288         Just in case HP-UX ever implements mquery().
16290 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
16292         stdalign: restore previous behavior for HP-UX IA64
16293         See Bruno Haible's email in:
16294         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16295         which cites p 150 of a manual saying that 'aligned' works on Itanium.
16296         * lib/stdalign.in.h (_Alignas):
16297         Assume the '061200' applies to Itanium, not to PA-RISC.
16298         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
16300 2017-03-17  Bruno Haible  <bruno@clisp.org>
16302         stat-time, timespec: Support use of the header files in C++ mode.
16303         * lib/stat-time.h: Add "C" linkage declaration.
16304         * lib/timespec.h: Likewise.
16306 2017-03-17  Bruno Haible  <bruno@clisp.org>
16308         stdalign: Make it work with HP-UX cc.
16309         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
16310         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
16311         for HP-UX cc.
16313 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
16315         flexmember: try to detect HP-UX 11.31 cc bug
16316         Problem reported by Bruno Haible in:
16317         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
16318         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16319         Attempt to detect bug in HP-UX 11.31 cc.
16321 2017-03-16  Bruno Haible  <bruno@clisp.org>
16323         stdint: Fix test compilation failure with HP-UX 11 cc.
16324         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
16325         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
16326         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
16327         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
16329 2017-03-14  Bruno Haible  <bruno@clisp.org>
16331         gnulib-tool: Don't produce a tests directory with only snippet .h files.
16332         * gnulib-tool (func_modules_transitive_closure_separately): If
16333         testsrelated_modules ends up with no "real" modules, aside from
16334         modules with applicability 'all', set it to empty.
16336 2017-03-14  Bruno Haible  <bruno@clisp.org>
16338         vma-iter: Add support for HP-UX.
16339         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
16340         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
16341         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
16342         * lib/get-rusage-as.c: Update comment about HP-UX.
16343         * lib/get-rusage-data.c: Likewise.
16344         (get_rusage_data): Use get_rusage_data_via_setrlimit.
16346 2017-03-14  Bruno Haible  <bruno@clisp.org>
16348         limits-h: Make it work with HP-UX cc.
16349         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
16350         defined.
16352 2017-03-14  Bruno Haible  <bruno@clisp.org>
16354         Fix test failures on DragonFlyBSD.
16355         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
16356         * tests/test-select.h (test_bad_fd): Likewise.
16357         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
16359 2017-03-14  Bruno Haible  <bruno@clisp.org>
16361         freadahead: Silence warning on DragonFlyBSD.
16362         * lib/freadahead.c (__sreadahead): Declare ourselves.
16364 2017-03-14  Bruno Haible  <bruno@clisp.org>
16366         vma-iter: Add comment about AIX.
16367         * lib/vma-iter.c: Add comment about why this module is not implemented
16368         on AIX.
16370 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16372         snippets: move unadjusted snippet sources to lib
16373         Problem reported by Michal Privoznik in:
16374         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
16375         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
16376         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
16377         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
16378         * lib/unused-parameter.h: Rename from
16379         build-aux/snippet/unused-parameter.h.
16380         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
16381         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
16382         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
16383         * modules/snippet/c++defs (Files:, CXXDEFS_H):
16384         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
16385         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
16386         Adjust to file renamings.
16388 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
16390         gnulib-tool: don't automatically distribute files from top/
16391         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
16392         not distribute top/README-release by default, don't distribute files
16393         from top/ unconditionally.
16394         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
16395         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
16397 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
16399         gnulib-tool: fix typo in comment output
16400         * gnulib-tool (func_import): Fix typo with previous change.
16402         snippets: work around GNU Make 3.82 VPATH
16403         When using 'gnulib-tool --gnu-make' on Emacs, and building
16404         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
16405         an out-of-source (VPATH) build failed because the sans-copyright
16406         snippet file was not built before the file that used it.
16407         Presumably this is some sort of VPATH thing.  Work around the
16408         problem by using the original snippet, i.e., don’t bother to
16409         remove its copyright notice.
16410         * modules/snippet/_Noreturn, modules/snippet/link-warning:
16411         Don’t assume Automake in comments.  Omit long-incorrect comment.
16412         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
16413         (MOSTLYCLEANFILES):
16414         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
16415         (MOSTLYCLEANFILES):
16416         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
16417         (MOSTLYCLEANFILES):
16418         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
16419         (MOSTLYCLEANFILES):
16420         Remove.
16421         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
16422         * modules/snippet/c++defs (CXXDEFS_H):
16423         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
16424         * modules/snippet/warn-on-use (WARN_ON_USE_H):
16425         Don’t bother to remove the copyright notice; just use the
16426         original snippet as-is.
16428 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
16430         gnulib-tool: minor --gnu-make fixups
16431         * gnulib-tool (func_emit_lib_Makefile_am):
16432         Remove useless code that was a blind alley during implementation.
16433         Problem reported by Thien-Thi Nguyen in:
16434         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
16435         (func_import): Note the "--gnu-make" option in the output comment.
16437 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
16439         gnulib-tool: new option --gnu-make
16440         This is for applications like GNU Emacs that use GNU Make
16441         features instead of Automake.
16442         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
16443         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
16444         Do not assume Automake.
16445         * gnulib-tool (func_determine_path_separator)
16446         (func_modules_transitive_closure, func_update_file)
16447         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
16448         (func_import): Add support for --gnu-make.
16450 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16452         gnulib-common.m4: avoid aclocal.m4 bloat
16453         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
16454         Hide AM_PROG_AR from aclocal, so that aclocal does not
16455         install irrelevant macro definitions into aclocal.m4.
16457 2017-03-10  Bruno Haible  <bruno@clisp.org>
16459         vma-iter: Let callers know about error.
16460         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
16461         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
16463 2017-03-05  Bruno Haible  <bruno@clisp.org>
16465         Fix value of LD for 64-bit compilers on AIX.
16466         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
16467         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
16469 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
16471         dtotimespec: simplify
16472         * lib/dtotimespec.c (dtotimespec): Simplify.
16474 2017-03-04  Bruno Haible  <bruno@clisp.org>
16476         test-calloc-gnu: Reenable test also for GCC 7.
16477         * tests/test-calloc-gnu.c (eight): New function.
16478         (main): Don't skip test; use eight() instead.
16480 2017-03-04  Jim Meyering  <meyering@fb.com>
16482         test-calloc-gnu: port to GCC7
16483         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
16484         that attempts to calloc more than SIZE_MAX bytes, because GCC7
16485         and newer would detect that at compilation time.
16487 2017-03-04  Bruno Haible  <bruno@clisp.org>
16489         tests: Avoid compiler warning about uses of null_ptr.
16490         * tests/null-ptr.h: New file.
16491         * tests/test-canonicalize.c: Include null-ptr.h.
16492         (null_ptr): Remove function.
16493         * tests/test-canonicalize-lgpl.c: Likewise.
16494         * tests/test-memmem.c: Likewise.
16495         * tests/test-ptsname_r.c: Likewise.
16496         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
16497         * modules/canonicalize-lgpl-tests: Likewise.
16498         * modules/memmem-tests: Likewise.
16499         * modules/ptsname_r-tests: Likewise.
16500         Reported by Jim Meyering.
16502 2017-03-03  Bruno Haible  <bruno@clisp.org>
16504         doc: Mention Mac OS X deficiencies regarding semaphores.
16505         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
16506         * doc/posix-functions/sem_destroy.texi: Likewise.
16507         * doc/posix-functions/sem_getvalue.texi: Likewise.
16509 2017-03-03  Bruno Haible  <bruno@clisp.org>
16511         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
16512         Reported by Assaf Gordon <assafgordon@gmail.com> via
16513         Pádraig Brady <P@draigBrady.com>.
16514         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
16515         semaphores.
16516         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
16517         (atomic_int_semaphore): New macro.
16519 2017-02-28  Bruno Haible  <bruno@clisp.org>
16521         perror tests: Tweak for z/OS.
16522         Reported by Daniel Richard G. <skunk@iskunk.org>.
16523         * tests/test-perror.sh: Don't fail z/OS style perror output.
16525 2017-02-26  Bruno Haible  <bruno@clisp.org>
16527         nproc: Refactor large function.
16528         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
16529         from num_processors.
16530         (num_processors): In this function, only deal with OMP.
16532 2017-02-26  Pádraig Brady  <P@draigBrady.com>
16534         nproc: adjust handling of OpenMP environment variables
16535         to match the return value from omp_get_num_threads(), i.e.:
16536          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
16537          - Treat 0 as an invalid value and ignore
16538         Also remove the call to omp_get_num_threads() because
16539         it's ineffective without the omp pragmas in place.
16540         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
16541         so that it can be ignored.
16542         (num_processors): Honor OMP_THREAD_LIMIT even without
16543         OMP_NUM_THREADS being set.  Also fix a typo in the environment
16544         variable being checked, from the previous recent commit.
16546 2017-02-26  Pádraig Brady  <P@draigBrady.com>
16548         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
16549         * lib/nproc.c (parse_omp_threads): A new function refactored
16550         from num_processors() to support parsing both of the
16551         above environment variables.
16552         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
16553         to accurately reflect the current OpenMP nesting level.
16554         Also support the OMP_THREAD_LIMIT environment variable
16555         to limit the max value determined from OMP_NUM_THREADS.
16556         * modules/nproc: Depend on minmax header.
16557         Suggested by Oliver Heimlich.
16559 2017-02-25  Bruno Haible  <bruno@clisp.org>
16561         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
16562         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
16564 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16566         ftoastr: port to -Wdouble-promotion
16567         Work around -Wdouble-promotion false alarm in recent GCCs.
16568         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
16569         (ftoastr_snprintf, FTOASTR): Use it.
16571 2017-02-21  Bruno Haible  <bruno@clisp.org>
16573         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
16574         Reported by Rene Saavedra <rennes@openmailbox.org> in
16575         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
16576         * lib/glthread/lock.h: On glibc systems without
16577         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
16578         implementation of rwlocks.
16579         * lib/glthread/lock.c: Likewise.
16581 2017-02-20  Bruno Haible  <bruno@clisp.org>
16583         lock tests: Fix build failure on z/OS.
16584         Reported by Daniel Richard G. <skunk@iskunk.org>.
16585         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
16586         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
16587         exist.
16589 2017-02-19  Bruno Haible  <bruno@clisp.org>
16591         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
16592         This helps when CC=clang.
16593         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
16594         of /usr/bin/gcc.
16596         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
16597         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
16599 2017-02-19  Bruno Haible  <bruno@clisp.org>
16601         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
16602         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
16603         --with-tests --single-configure is specified.
16605 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
16607         users.txt: Update links, use HTTPS where possible
16608         * users.txt: Updated to HTTPS where possible,
16609         fixed some links to new locations.
16611 2017-02-16  Bruno Haible  <bruno@clisp.org>
16613         xbinary-io: Fix inlining.
16614         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
16616 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16618         xbinary-io: rename from xsetmode
16619         This patch is taken from suggestions by Bruno Haible in:
16620         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
16621         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
16622         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
16623         not ENOTTY, when it is an inappropriate device.
16624         * lib/binary-io.h (SET_BINARY): Resurrect.
16625         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
16626         (xset_binary_mode_error): Rename from xsetmode_error.
16627         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
16628         (xset_binary_mode): Rename from xsetmode.
16629         All uses changed.
16630         * modules/xbinary-io: Rename from modules/xsetmode.
16631         Update file names.
16632         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
16633         * NEWS: Update to match revised behavior.
16635 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16637         tests: Adjust to recent SET_BINARY change
16638         * tests/test-binary-io.c (main):
16639         * tests/test-binary-io.sh: Remove test for SET_BINARY.
16640         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
16641         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
16642         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
16644         xsetmode: new module
16645         This is to fix a problem noted by Eric Blake.
16646         Code was using xfreopen to change files to binary mode, but this
16647         fails for stdout when in append mode.  Such code should use
16648         xsetmode instead.
16649         * NEWS: Document incompatible changes to binary-io module.
16650         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
16651         New function.
16652         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
16653         (set_binary_mode): New function, which also checks for tty.
16654         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
16656 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16658         headers: fix begin-end typos
16659         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
16660         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
16662         selinux-h: port to PGI 16.10
16663         * lib/se-selinux.in.h: Don't assume that include_next skips over
16664         duplicate -I DIR options.
16666         argp: port to PGI 16.10
16667         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
16669 2017-02-13  Darshit Shah  <darnir@gnu.org>
16671         unicase: Update function protoype to match definition.
16672         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
16673         uses 'size_t' as the datatype for the 'len' parameter in the functions
16674         it generates. Update the prototype specified here to match the newly
16675         generated function.
16677 2017-02-12  Bruno Haible  <bruno@clisp.org>
16679         times test: Avoid gcc warnings on Linux/x32.
16680         * tests/test-times.c (main): Really cast printf arguments from clock_t
16681         to 'long int'.
16683 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16685         glob: port better to emscripten
16686         Problem reported by Bruno Haible in:
16687         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
16688         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
16690 2017-02-11  Bruno Haible  <bruno@clisp.org>
16692         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
16693         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
16694         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
16695         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
16696         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
16697         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
16698         Distinguish hppa64 from hppa.
16700 2017-02-10  Bruno Haible  <bruno@clisp.org>
16702         search: Don't assume that tsearch() exists if 'VISIT' is defined.
16703         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
16704         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
16705         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
16707 2017-02-09  Bruno Haible  <bruno@clisp.org>
16709         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
16710         * doc/gnulib.texi (Libtool and Windows): Recommend
16711         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
16712         Reported by Reuben Thomas <rrt@sc3d.org>.
16714 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16716         stddef-tests: port to SIZE_MAX <= INT_MAX
16717         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
16718         Do not assume that INT_MAX < SIZE_MAX.
16720 2017-02-01  Bruno Haible  <bruno@clisp.org>
16722         lock tests: Fix link error.
16723         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
16724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16726 2017-01-31  Bruno Haible  <bruno@clisp.org>
16728         lock: Fix link error (regression from 2017-01-05).
16729         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
16730         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
16731         pthread_rwlockattr_destroy weak.
16732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16734 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16736         Port to PGI 16.10 x86-64
16737         This patch fixes one real bug in gl_anylinked_list2.h, along with
16738         some minor glitches that are not bugs.  It does not silence PGI’s
16739         thousands of bogus warnings when compiling test-intprops.c.
16740         Fortunately, the warnings do not cause a failure.
16741         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
16742         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
16743         My goodness, PGI goes back a long ways - this predates C89!
16744         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
16745         For example, ASYNCSAFE (const void *) should expand to
16746         ‘const void *volatile’, not to ‘volatile const void *’.
16747         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
16748         * lib/verify.h (verify) [!__GNUC__]:
16749         Use shorter albeit meaningless string to bypass silly compiler limits.
16750         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
16751         * tests/nan.h (NaNf, NaNd, NaNl):
16752         Use static functions to avoid misguided compiler diagnostics.
16753         Is there some reason we don’t use static functions on all platforms?
16755 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16757         parse-datetime: handle timezones reentrantly
16758         This API change was prompted by a report by Pádraig Brady in:
16759         https://bug.debian.org/851934#10
16760         To help fix the bug, make parse_datetime2 more reentrant.
16761         * NEWS: Document this incompatible change.
16762         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
16763         Add two arguments, the timezone and the timezone name.
16764         All callers changed.  If TZ="..." is specified, use it for
16765         calculating defaults.
16766         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
16767         this code should be usable in a library.
16768         (mktime_ok, get_effective_timezone):
16769         Accept timezone arg too.  All callers changed.
16770         (get_tz): Remove.
16771         (get_effective_timezone): Check for failures.
16773 2017-01-20  Eric Blake  <eblake@redhat.com>
16775         localename: port to cygwin 2.6
16776         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
16777         Cygwin.
16778         * modules/localename (Depends-on): Add extensions, since
16779         NL_LOCALE_NAME() is not visible without it.
16781 2017-01-17  Pádraig Brady  <P@draigBrady.com>
16783         parse-datetime: fix dependence on AC_PROG_SED
16784         * modules/parse-datetime: Use `sed` directly like all other modules.
16785         Reported by J William Piggott
16787 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16789         intprops: update doc URLs
16790         * doc/intprops.texi (Integer Range Overflow): Update URLs.
16792 2017-01-16  Bruno Haible  <bruno@clisp.org>
16794         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
16795         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
16796         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
16797         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
16798         distinguish s390 and s390x.
16799         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
16800         * NEWS: Mention the change regarding 'armel'.
16802 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16804         localeinfo: case_folded_counterparts and WEOF
16805         * NEWS: Document this.
16806         * lib/localeinfo.c (case_folded_counterparts):
16807         First arg is now wint_t, not wchar_t.  This generalizes the
16808         function to also work on WEOF, where it returns 0.
16810         dfa: port to gcc -fsanitize=undefined
16811         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
16812         as this runs afoul of gcc -fsanitize=undefined.
16814 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16816         strftime: %z is -00 if unknown
16817         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
16818         the caller's responsibility to set 'negative_number'.  All uses changed.
16819         (__strftime_internal): Put '-' before a zero UTC offset if the time
16820         zone abbreviation starts with "-", which is the recently-introduced
16821         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
16822         * tests/test-strftime.c: Test for this.
16824 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16826         dfa: port to older GCC
16827         Problem reported by Assaf Gordon in:
16828         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
16829         * modules/c99: New module.  This merely attempts to use the latest
16830         C version, which should be enough to solve this particular problem.
16831         The idea is to document which Gnulib modules assume C99 or later.
16832         * modules/dfa (Depends-on): Add it.
16834 2017-01-10  Bruno Haible  <bruno@clisp.org>
16836         Update DEPENDENCIES.
16837         * DEPENDENCIES: List only https URLs. Update recommended version for
16838         autoconf, automake, gperf.
16840 2017-01-10  Jim Meyering  <meyering@fb.com>
16842         maint.mk: enforce spelling of "timestamp" (i.e., no space)
16843         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
16844         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
16846 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16848         dfa: minor simplification with emptyset
16849         * lib/dfa.c (build_state): Simplify by using emptyset.
16851 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16853         dfa: shrink constraints from 4 bits to 3
16854         * lib/dfa.c (newline_constraint, letter_constraint)
16855         (other_constraint, prev_newline_dependent)
16856         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
16857         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
16858         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
16859         Constraints need only 3 bits, not 4.  Using smaller integers
16860         shrinks the code a bit and makes grep a tad faster on x86-64.
16862         dfa: omit unnecessary ptrdiff_t check
16863         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
16864         overflow, since xnmalloc does that now.
16866         dfa: omit unnecessary allocation
16867         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
16868         an all-zero follow set works just fine.
16870         dfa: omit unused local
16871         * lib/dfa.c (build_state): Fix up recent change.
16873         maint: remove stray .texi files
16874         Although these were superseded by other files like
16875         doc/posix-functions/ctime.texi, the old files were not removed.
16876         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
16878 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16880         getprogname: fix port to IRIX
16881         * lib/getprogname.c (getprogname) [__sgi]:
16882         Don't dump core if malloc returns NULL.
16884         dfa: fix reallocation bug when matching newlines
16885         Problem reported for sed by S. Gilles (Bug#25390).
16886         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
16887         (dfastate): Reallocate before moving any newline transition ...
16888         (build_state): ... instead of reallocating here, where it is too late.
16890 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
16892         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
16893         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
16895 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
16897         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
16898         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
16900 2017-01-07  Bruno Haible  <bruno@clisp.org>
16902         stdioext: Port to Minix 3.2 and newer.
16903         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
16904         * lib/fseeko.c (fseeko): Likewise.
16905         Reported by Nelson Beebe via Paul Eggert.
16907 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
16909         getprogname: port to IRIX
16910         * lib/getprogname.c (getprogname): Port to IRIX.
16911         Based on an idea by Bastien Roucariès at:
16912         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
16913         via code from Bruno Haible at:
16914         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
16916         localename-tests: port to NetBSD 7
16917         Problem reported by Nelson H. F. Beebe.
16918         * tests/test-localename.c:
16919         Test newlocale and uselocale only if both exist.
16921         glob, intprops, xalloc: work around Clang bug
16922         Work around LLVM bug 16404, which is still not fixed.
16923         https://llvm.org/bugs/show_bug.cgi?id=16404
16924         Problem reported by Nelson H. F. Beebe.
16925         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
16926         Remove.
16927         * lib/glob.c (size_add_wrapv):
16928         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
16929         * lib/xalloc-oversized.h (xalloc_oversized):
16930         Do not use overflow builtins if Clang.
16932         dfa: fix 'return' typo
16933         Problem reported by Nelson H. F. Beebe.
16934         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
16936 2017-01-05  Pádraig Brady  <P@draigBrady.com>
16938         parse-datetime: fix generated paths for coverage files
16939         * modules/parse-datetime: Adjust the paths for parse-datetime.y
16940         within parse-datetime.c, so that gcc generates appropriate .gcno
16941         files, allowing lcov to proceed without error.  Previously it
16942         would error trying to find "lib/lib/parse-datetime.y".
16944 2017-01-05  Pádraig Brady  <P@draigBrady.com>
16946         maint.mk: support parallel execution of coverage
16947         * top/maint.mk (coverage): Run dependencies serially,
16948         thus supporting parallel processing of each one,
16949         particularly build-coverage, which builds and runs tests.
16951 2017-01-05  Bruno Haible  <bruno@clisp.org>
16953         lock tests: Prefer semaphore over mutex.
16954         * tests/test-lock.c (USE_SEMAPHORE): New constant.
16955         (struct atomic_int, init_atomic_int, get_atomic_int_value,
16956         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
16957         Suggested by Torvald Riegel <triegel@redhat.com>.
16959 2017-01-05  Bruno Haible  <bruno@clisp.org>
16961         lock: Provide guarantee to avoid writer starvation for rwlocks.
16962         The rationale is: 1) Read-preferring read-write locks are prone to
16963         writer starvation if the number of reader threads multiplied by the
16964         percentage of time they have the lock held is too high. 2) Write-
16965         preferring read-write locks are the only reliable way to avoid this.
16966         3) There have been reports of 'test-lock' hanging on glibc systems
16967         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
16968         and glibc indeed implements read-preferring rwlocks by default, see
16969         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
16970         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
16971         * m4/pthread_rwlock_rdlock.m4: New file.
16972         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
16973         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
16974         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
16975         of rwlock initialization on glibc systems without
16976         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
16977         of rwlocks altogether on non-glibc systems without
16978         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
16979         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
16980         * lib/glthread/lock.c [USE_POSIX_THREADS]
16981         (glthread_rwlock_init_for_glibc): New function.
16982         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
16983         comment.
16984         [USE_PTH_THREADS]: New implementation of rwlocks.
16985         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
16986         readers.
16987         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
16988         (Depends-on): Add 'extensions'.
16989         * tests/test-rwlock1.c: New file.
16990         * lock-tests (Files): Add it.
16991         (Depends-on): Add usleep.
16992         (Makefile.am): Add test-rwlock1 to the tests.
16994 2017-01-05  Bruno Haible  <bruno@clisp.org>
16996         thread: Fix pth port.
16997         * lib/glthread/thread.h (pth_init): Declare weak.
16998         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
16999         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
17000         function.
17002 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
17004         parse-datetime: fix debug message on lone year number
17005         Input dates such as
17006           date -d "Apr 11 22:59:00 2011"
17007         are parsed as date (Apr 11, with default year 2016), then time, then a
17008         number (2011). Based on the combination of previously seen tokens,
17009         'digits_to_date_time' determines 2011 to be a year value.
17010         This fixes the debug messages to correctly show the updated year.
17011         Before:
17012             $ date --debug -d 'Apr 11 22:59:00 2011'
17013             date: parsed date part: (Y-M-D) 2016-04-11
17014             date: parsed time part: 22:59:00
17015             date: parsed number part: today/this/now
17016         After:
17017             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
17018             date: parsed date part: (Y-M-D) 2016-04-11
17019             date: parsed time part: 22:59:00
17020             date: parsed number part: year: 2011
17021         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
17022         'debug_year_seen' member fields.
17023         (digits_to_date_time): Update 'year_seen' as needed.
17024         (debug_print_current_time): Inform about year updates.
17025         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
17027         parse-datetime: fix local timezone debug messages
17028         "Local timezones" are strings that affect only DST relative to the
17029         default timezone. The debug messages in parse-datetime.y printed
17030         wrong information when encountering local timezones.
17031         Examples:
17032         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
17033              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
17034              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
17035         When the default timezone relates to the zone strings, EET/EEST are
17036         parsed as local timezones (tLOCAL_ZONE), and only change the DST
17037         value (0/1, respectively):
17038              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
17039              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
17040         * lib/parse-datetime.y (debug_print_current_time): If local timezone
17041         was seen, inform about DST change, don't print actual timezone.
17042         (debug_strfdatetime): If local timezone was seen, use default timezone
17043         (and adjust as needed) instead of using incorrect timezone.
17044         (parse_datetime2): Use correct time-zone source string, and adjust
17045         default timezone as needed.
17047         parse-datetime: add debug warning about DST changes
17048         Incorrect date arithmetic due to daylight saving time (DST) are a
17049         common (false) bug report in coreutils.
17050         Detect two such cases and print a warning:
17051         1. year/month/day adjustments (performed on 'struct tm'),
17052            where 'mktime' returns a different isdst value.
17053         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
17054            where the result of 'localtime(3)' on the value will return a
17055            different isdst value.
17056         Note: DST changes could be harmless or unnoticeable.
17057         Examples (with 'TZ=America/New_York'):
17058         Unnoticeable: result is 2016-Dec-14
17059            $ date -d '2016-06-15 EDT + 6 months' +%b
17060            Dec
17061         Unnoticeable: result is 2016-Dec-15 11:00:00
17062            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
17063            2016-12-15
17064         This is unexpected:
17065            $ date -d '2016-06-01 EDT + 6 months' +%F
17066            2016-11-30
17067         The new debug warnings will show:
17068            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
17069            ...
17070            date: warning: daylight saving time changed after date adjustment
17071            ...
17072         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
17073         print an appropriate warning message.
17075         parse-datetime: add debug warning about date arithmetic
17076         Date arithmetic are done directly on the fields of 'struct tm',
17077         which can result in invalid dates. Normalization with 'mktime(3)'
17078         will then produce a different date - which might cause unexpected
17079         results.
17080         Examples:
17081           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
17082           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
17083         Note that date normalization is not inherently wrong and not rejected,
17084         as it has legitimate uses:
17085           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
17086         If the user asked to adjust months but 'mday' changed,
17087         or user asked to adjust years but 'month' changed - warn about it.
17088             $ ./src/date --debug -d '2016-10-31 - 1 month'
17089             ...
17090             date: warning: when adding relative months/years, \
17091                            it is recommended to specify the 15th of the month
17092             ...
17093             date: warning: month/year adjustment resulted in shifted dates:
17094             date:      adjusted Y M D: 2016 09 31
17095             date:    normalized Y M D: 2010 10 01
17096             ...
17097         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
17098         a warning message. Improve recommendation of when to use 15 of the
17099         month or noon for date arithmetic.
17101         parse-datetime: fix debug message of relative part after timezone
17102         Relative part (e.g '+8 days') after a timezone string was not
17103         reported (was only reported after a timezone number). Due to the
17104         parser's structure, timezone strings with numbers were handled
17105         separately.
17106         before:
17107              # Timezone number + relative part: OK
17108              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
17109              ...
17110              date: parsed relative part: -8 day(s)
17111              # Timezone string + relative part: missing
17112              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
17113              [ missing message ]
17114         After: messages are printed in both cases.
17115         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
17117         parse-datetime: fix incorrect debug message on lone number
17118         A lone number is an absolute value, not a relative time part.
17119         before:
17120            $ date --debug -d '20130101'
17121            date: parsed number part: today/this/now
17122         After:
17123            $ ./src/date --debug -d '20130101'
17124            date: parsed number part: (Y-M-D) 2013-01-01
17125         * lib/parse-datetime.y ('item'/'number' tokens): Call
17126         'debug_print_current_time' instead of 'debug_print_relative_time'.
17128 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17130         doc: modernize for C11 etc.
17131         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
17132         for C11, MinGW, etc.  This responds to Paul Smith's question in:
17133         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
17135         dfa: prefer functions to FETCH_WC macro
17136         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
17137         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
17138         wint_t result into DFA->lex.wctok instead of to a separate arg.
17139         All callers changed.  Move more local decls closer to where
17140         they're used.
17142         dfa: narrow more local var scopes
17143         * lib/dfa.c: Move more local decls to be more local.
17145         dfa: remove duplicate assignment
17146         Problem reported by Bruno Haible in:
17147         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
17148         * lib/dfa.c (parse_bracket_exp): Simplify.
17150 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17152         dfa: simplify constraint-dependency checking
17153         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
17154         (prev_other_constraint): Remove.
17155         (prev_newline_dependent, prev_letter_dependent):
17156         Simplify, to avoid an unnecessary bitwise AND operation.
17158         dfa: prefer functions and constants to macros
17159         * lib/dfa.c: Prefer constants to macros where either will do.
17160         (streq, isasciidigit, newline_constraint)
17161         (letter_constraint, other_constraint, succeeds_in_context)
17162         (prev_newline_constraint, prev_letter_constraint)
17163         (prev_other_constraint, prev_newline_dependent)
17164         (prev_letter_dependent, accepting, accepts_in_context):
17165         Now static functions instead of function-like macros.
17166         Use lower-case names accordingly.  All uses changed.
17168         dfa: narrow more local var scopes
17169         * lib/dfa.c: Move some more local decls down to nearer where
17170         they're needed.
17172 2016-12-31  Jim Meyering  <meyering@fb.com>
17174         dfa: narrow the scope of many local variables
17175         * lib/dfa.c: Now that we are no longer constrained to c89, move
17176         declarations of many variables (often indices) "down" into the
17177         scope(s) where used or to the point of definition.  This is a
17178         no-semantic-change diff.
17180 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17182         version-etc: new year
17183         * build-aux/gendocs.sh (version):
17184         * doc/gendocs_template:
17185         * doc/gendocs_template_min:
17186         * doc/gnulib.texi:
17187         * lib/version-etc.c (COPYRIGHT_YEAR):
17188         Update copyright dates by hand in templates and the like.
17189         * all files: Run 'make update-copyright'.
17191 2016-12-31  Eric Blake  <eblake@redhat.com>
17193         do-release-commit-and-tag: avoid shell syntax error
17194         * build-aux/do-release-commit-and-tag (curr_br): $branch can
17195         contain spaces when rebasing.
17197         maint.mk: hoist gnulib_dir definition earlier
17198         * top/maint.mk (gnulib_dir): Move near top of file.
17200 2016-12-31  Jim Meyering  <meyering@fb.com>
17202         maint.mk: do not always evaluate intprops-related shell
17203         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
17204         using gnulib_dir undefined (gnulib_dir is defined later in the
17205         file, which will be fixed separately), and besides, there is no
17206         need to incur the cost of this shell invocation for every single
17207         use of this .mk file.  Reported by Eric Blake in
17208         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
17210 2016-12-30  Jim Meyering  <meyering@fb.com>
17212         maint.mk: improve sc_prohibit_intprops_without_use
17213         * top/maint.mk (_intprops_names): Don't hard-code the list of
17214         symbol names.  Instead, derive it on the fly.
17216 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17218         dfa: shorten sbit, success
17219         * lib/dfa.c (struct regex_syntax.sbit):
17220         (struct dfa.success): Use char, not int, for array elements, since
17221         they are all in the range 0..7.
17223         dfa: simplify multibyte_prop etc.
17224         This follows up on a change made when dfa.c was in grep, namely grep
17225         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
17226         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
17227         That earlier simplification allows for some more simplification
17228         and trimming down here.
17229         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
17230         (struct lexer_state): New mamber brack.
17231         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
17232         since they must be in the range 0..3 now.
17233         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
17234         the brack member now supersedes them.
17235         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
17236         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
17237         (dfaparse): Remove unnecessary initializations of already-0 storage.
17238         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
17239         (dfassbuild): No need to clear sup->mbcsets.
17241         dfa: minor performance tweak
17242         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
17244         dfa: wrap charclass inside a struct
17245         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
17246         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
17247         about 5% faster, where list.txt is generated by 'aspell dump
17248         master | head -n 100000 >list.txt'.  See Bug#22239.
17249         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
17250         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
17251         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
17252         Adjust to this, e.g., by using charclass * rather than charclass.
17253         All callers changed as needed.
17254         (copyset): Remove.  All uses changed to simple assignment.
17255         (parse_bracket_exp): Use zeroset instead of memset.
17257 2016-12-30  Jim Meyering  <meyering@fb.com>
17259         maint.mk: update list of intprops.h symbol names
17260         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
17261         This avoids a false failure of the sc_prohibit_intprops_without_use
17262         rule in grep.
17264 2016-12-29  Eric Blake  <eblake@redhat.com>
17266         getopt: fix parallel test failure
17267         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
17268         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
17269         * tests/test-getopt-main.h (main): Use different file names
17270         in case test-getopt-gnu and test-getopt-posix run in parallel.
17272 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17274         xalloc: x2nrealloc check for ptrdiff_t overflow
17275         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
17276         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
17278 2016-12-24  Bruno Haible  <bruno@clisp.org>
17280         lock test: Fix performance problem on multi-core machines.
17281         * tests/test-lock.c (USE_VOLATILE): New macro.
17282         (struct atomic_int): New type.
17283         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
17284         functions.
17285         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
17286         as 'struct atomic_int'.
17287         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
17288         reclock_checker_thread, test_recursive_lock): Use the new functions.
17289         Reported by Eric Blake in
17290         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
17291         and by Pádraig Brady in
17292         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
17294 2016-12-19  Bruno Haible  <bruno@clisp.org>
17296         vma-iter: Fix endless loop on 64-bit Windows.
17297         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
17298         'unsigned long'.
17300 2016-12-19  Bruno Haible  <bruno@clisp.org>
17302         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
17303         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
17304         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
17305         Invoke gt_TYPE_WINT_T instead.
17306         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
17307         * modules/stdint (Files): Add m4/wint_t.m4.
17308         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
17309         * modules/wctype-h (Makefile.am): Likewise.
17310         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
17311         not only on MSVC.
17312         * lib/wctype.in.h (wint_t): Likewise.
17314 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17316         getopt-posix-tests: fix Makefile typo
17317         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
17318         Fix typo: the last ‘_’ was missing in the name.
17319         I suspect that the typo explains this build failure:
17320         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
17321         although I can’t reproduce the problem on Solaris 10 sparc.
17323 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17325         dfa: improve worst-case 'replace' performance
17326         See my note in Bug#22357#71.
17327         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
17328         (merge_constrained): New function, which is like
17329         the old 'merge' function, except with a new argument C2.
17330         Simplify the body by avoiding the need for different sections
17331         of code depending on whether one input is exhausted.
17332         (merge): Use the new function.
17333         (delete): Return the constraint of the deleted position,
17334         not the entire position.  Caller changed.
17335         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
17337 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17339         dfa: performance improvement for removal of epsilon closure
17340         See Bug#22357#32.
17341         * lib/dfa.c (delete): Use binary search to find deleted index.
17342         (replace): New function.  It replaces a position with the followed set.
17343         (epsclosure): Replace it with a new algorithm.  Update caller.
17345 2016-12-18  Bruno Haible  <bruno@clisp.org>
17347         Split tests for getopt-posix and getopt-gnu.
17348         * tests/test-getopt-posix.c: New file.
17349         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
17350         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
17351         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
17352         GNULIB_TEST_GETOPT_GNU.
17353         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
17354         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
17355         (Makefile.am): Test test-getopt-posix instead of test-getopt.
17356         * modules/getopt-gnu-tests: New file.
17357         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
17359 2016-12-18  Bruno Haible  <bruno@clisp.org>
17361         posix-modules: Add options for specific platforms.
17362         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
17363         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
17364         Invoke func_tmpdir. Filter out the excludes.
17366 2016-12-18  Bruno Haible  <bruno@clisp.org>
17368         getopt: Fix link error for users of getopt() in <unistd.h>.
17369         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
17370         __need_getopt is defined. Undefine all macros before defining them.
17371         * modules/getopt (Include): Clarify that including <unistd.h> is also
17372         OK.
17373         * tests/test-getopt.c: Add comment.
17375 2016-12-17  Bruno Haible  <bruno@clisp.org>
17377         getaddrinfo tests: Avoid compilation error on MSVC.
17378         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
17379         getaddrinfo on native Windows.
17381 2016-12-17  Bruno Haible  <bruno@clisp.org>
17383         getlogin, getlogin_r: Fix link errors on MSVC.
17384         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
17385         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
17386         (Link): New section.
17387         * modules/getlogin_r (Files): Add m4/getlogin.m4.
17388         (configure.ac): Require gl_LIB_GETLOGIN.
17389         (Link): New section.
17390         * NEWS: Mention the new link requirements.
17391         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
17392         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
17394 2016-12-17  Bruno Haible  <bruno@clisp.org>
17396         Un-deprecate the 'progname' module.
17397         * NEWS: Describe the appropriate use-cases of 'progname' versus
17398         'getprogname'. Based on discussion summary at
17399         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
17401 2016-12-17  Bruno Haible  <bruno@clisp.org>
17403         Reorganize NEWS a bit.
17404         * NEWS: Move some not so important changes away from section
17405         "Important Notes".
17407 2016-12-17  Bruno Haible  <bruno@clisp.org>
17409         tanhf: Avoid redefinition error on MSVC.
17410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
17411         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
17412         may be defined as an inline function.
17413         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
17414         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
17416 2016-12-17  Bruno Haible  <bruno@clisp.org>
17418         tanf: Avoid redefinition error on MSVC.
17419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
17420         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
17421         may be defined as an inline function.
17422         * modules/math (Makefile.am): Substitute REPLACE_TANF.
17423         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
17425 2016-12-17  Bruno Haible  <bruno@clisp.org>
17427         sqrtf: Avoid redefinition error on MSVC.
17428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
17429         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
17430         may be defined as an inline function.
17431         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
17432         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
17434 2016-12-17  Bruno Haible  <bruno@clisp.org>
17436         sinhf: Avoid redefinition error on MSVC.
17437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
17438         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
17439         may be defined as an inline function.
17440         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
17441         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
17443 2016-12-17  Bruno Haible  <bruno@clisp.org>
17445         sinf: Avoid redefinition error on MSVC.
17446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
17447         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
17448         may be defined as an inline function.
17449         * modules/math (Makefile.am): Substitute REPLACE_SINF.
17450         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
17452 2016-12-17  Bruno Haible  <bruno@clisp.org>
17454         logf: Avoid redefinition error on MSVC.
17455         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
17456         may be defined as an inline function.
17458 2016-12-17  Bruno Haible  <bruno@clisp.org>
17460         log10l: Avoid redefinition error on MSVC.
17461         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
17462         may be defined as an inline function.
17464 2016-12-17  Bruno Haible  <bruno@clisp.org>
17466         log10f: Avoid redefinition error on MSVC.
17467         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
17468         may be defined as an inline function.
17470 2016-12-17  Bruno Haible  <bruno@clisp.org>
17472         hypotl: Avoid redefinition error on MSVC.
17473         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
17474         may be defined as an inline function.
17476 2016-12-17  Bruno Haible  <bruno@clisp.org>
17478         hypotf: Avoid redefinition error on MSVC.
17479         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
17480         may be defined as an inline function.
17482 2016-12-17  Bruno Haible  <bruno@clisp.org>
17484         fmodl: Avoid redefinition error on MSVC.
17485         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
17486         may be defined as an inline function.
17488 2016-12-17  Bruno Haible  <bruno@clisp.org>
17490         fmodf: Avoid redefinition error on MSVC.
17491         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
17492         may be defined as an inline function.
17494 2016-12-17  Bruno Haible  <bruno@clisp.org>
17496         expf: Avoid redefinition error on MSVC.
17497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
17498         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
17499         may be defined as an inline function.
17500         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
17501         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
17503 2016-12-17  Bruno Haible  <bruno@clisp.org>
17505         coshf: Avoid redefinition error on MSVC.
17506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
17507         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
17508         may be defined as an inline function.
17509         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
17510         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
17512 2016-12-17  Bruno Haible  <bruno@clisp.org>
17514         cosf: Avoid redefinition error on MSVC.
17515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
17516         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
17517         may be defined as an inline function.
17518         * modules/math (Makefile.am): Substitute REPLACE_COSF.
17519         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
17521 2016-12-17  Bruno Haible  <bruno@clisp.org>
17523         atan2f: Avoid redefinition error on MSVC.
17524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
17525         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
17526         may be defined as an inline function.
17527         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
17528         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
17530 2016-12-17  Bruno Haible  <bruno@clisp.org>
17532         atanf: Avoid redefinition error on MSVC.
17533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
17534         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
17535         may be defined as an inline function.
17536         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
17537         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
17539 2016-12-17  Bruno Haible  <bruno@clisp.org>
17541         asinf: Avoid redefinition error on MSVC.
17542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
17543         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
17544         may be defined as an inline function.
17545         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
17546         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
17548 2016-12-17  Bruno Haible  <bruno@clisp.org>
17550         acosf: Avoid redefinition error on MSVC.
17551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
17552         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
17553         may be defined as an inline function.
17554         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
17555         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
17557 2016-12-17  Bruno Haible  <bruno@clisp.org>
17559         Avoid redefinition errors on MSVC.
17560         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
17561         the function may be defined as an inline function.
17562         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
17563         the function may be defined as an inline function.
17565 2016-12-17  Bruno Haible  <bruno@clisp.org>
17567         Avoid redefinition errors on MSVC.
17568         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
17569         * lib/unistd.in.h: Include <stdio.h> when necessary.
17571 2016-12-17  Bruno Haible  <bruno@clisp.org>
17573         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
17574         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
17575         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
17576         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
17577         WINT_MAX.
17579 2016-12-17  Bruno Haible  <bruno@clisp.org>
17581         Avoid autoconf warning.
17582         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
17583         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
17585 2016-12-17  Bruno Haible  <bruno@clisp.org>
17587         fpending: Revert workaround against Emacs bug.
17588         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
17589         The Emacs bug is fixed by Eli Zaretskii in
17590         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
17592 2016-12-17  Bruno Haible  <bruno@clisp.org>
17594         getlogin_r tests: Port to mingw.
17595         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
17596         regression introduced on 2014-05-19.
17598 2016-12-17  Bruno Haible  <bruno@clisp.org>
17600         getlogin: Port to newer mingw.
17601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
17602         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
17603         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
17604         HAVE_GETLOGIN.
17605         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
17606         HAVE_GETLOGIN.
17607         * doc/posix-functions/getlogin.texi: Mention the issue.
17608         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
17609         regression introduced on 2014-05-14.
17611 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
17613         builtin-expect: improve port to IBM XL C
17614         Problem reported for z/OS by Daniel Richard G. in:
17615         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
17616         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
17617         Test for <builtins.h> directly.
17619         builtin-expect: port to IBM XL C
17620         Problem reported for z/OS by Daniel Richard G. in:
17621         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
17622         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
17623         Also allow __builtin_expect defined via a standard include file.
17625         regex: fix dependency
17626         Problem reported by Bruno Haible in:
17627         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
17628         * modules/regex: Depend on builtin-expect.
17630         builtin-expect: new module
17631         Fix fnmatch to use it.
17632         Problem reported for z/OS by Daniel Richard G.
17633         * lib/fnmatch.c (__builtin_expect):
17634         * lib/glob.c (__builtin_expect):
17635         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
17636         * lib/memmem.c (__builtin_expect) [!_LIBC]:
17637         * lib/scandir.c (__builtin_expect):
17638         * lib/strstr.c (__builtin_expect) [!_LIBC]:
17639         Remove macro; config.h now does this.
17640         * lib/gl_anytreehash_list1.h (add_to_bucket):
17641         * lib/regex_internal.h (BE):
17642         Assume __builtin_expect.
17643         * m4/builtin-expect.m4, modules/builtin-expect: New files.
17644         * modules/avltreehash-list, modules/fnmatch, modules/glob:
17645         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
17646         * modules/scandir, modules/strstr-simple:
17647         Depend on builtin-expect.
17649 2016-12-15  Bruno Haible  <bruno@clisp.org>
17651         init.sh: Add possibility to not delete temporary files.
17652         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
17653         to yes, don't erase the temporary directory.
17655 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
17657         regex: fix integer-overflow bug in never-used code
17658         Problem reported by Clément Pit–Claudel in:
17659         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
17660         * lib/regex_internal.h: Include intprops.h.
17661         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
17662         behavior on integer overflow.
17663         * modules/regex (Depends-on): Add intprops.
17665         fpending: fix port to MinGW on Emacs
17666         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
17667         Problem reported by Eli Zaretskii in:
17668         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
17669         Is Plan 9 still a valid porting target, anyway?
17671 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
17673         safe-alloc: use xalloc-oversized
17674         * lib/safe-alloc.c: Include xalloc-oversized.h.
17675         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
17676         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
17678         xalloc: do not exceed PTRDIFF_MAX
17679         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
17680         xalloc_oversized check, since objects larger than PTRDIFF_MAX
17681         bytes have pointer-subtraction problems.
17683         malloca: do not exceed PTRDIFF_MAX
17684         * lib/malloca.h: Include xalloc-oversized.
17685         (nmalloca): Use xalloc_oversized instead of rolling our own.
17686         * modules/malloca (Depends-on):
17687         * modules/relocatable-prog-wrapper (Depends-on):
17688         Add xalloc-oversized.
17690         quotearg: pacify GCC better
17691         * modules/quotearg (Depends-on): Add minmax, stdint.
17692         * lib/quotearg.c: Include minmax.h, stdint.h.
17693         (nslots): Now int, as there seems little point to going to extra
17694         work merely to support the INT_MAX slot, which nobody ever uses.
17695         (quotearg_n_options): Redo size-overflow checks to pacify GCC
17696         and to catch (mostly-theoretical) ptrdiff_t problems too.
17697         This can be done via one comparison.
17699 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17701         xalloc-oversized: check for PTRDIFF_MAX too
17702         This avoids undefined behavior when subtracting pointers to
17703         objects containing more than PTRDIFF_MAX bytes.
17704         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
17705         Also return 1 if the result would exceed PTRDIFF_MAX>
17706         * modules/xalloc-oversized (Depends-on):
17707         Add stdint.
17709         dfa: fix glitches in previous commit
17710         Sorry, I don't know how I managed to commit the wrong version.
17711         * lib/dfa.c (MIN): Move up.
17712         (xpalloc): Now static.
17714         dfa: fix some unlikely integer overflows
17715         I found these while reviewing the recent Coverity-related fix.
17716         This patch changes part of dfa.c to prefer ptrdiff_t instead of
17717         size_t for object counts.  Using ptrdiff_t is the style typically
17718         used in Emacs; although it wastes a sign bit as sizes can never be
17719         negative, it makes -fsanitize=undefined more likely to catch
17720         integer overflows in index calculation, and nowadays the upside is
17721         typically more important than the downside.  Although perhaps the
17722         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
17723         of dfa.c already does, since it uses state_num which is signed),
17724         that is a bigger change and is not needed to fix the bugs I found.
17725         * lib/dfa.c: Include stdint.h and intprops.h.
17726         (TOKEN_MAX): New macro.
17727         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
17728         (charclass_index, parse_bracket_exp, addtok, insert, merge)
17729         (realloc_trans_if_necessary, free_mbdata):
17730         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
17731         This is safe because xpalloc checks that the sizes do not exceed
17732         either SIZE_MAX or PTRDIFF_MAX.
17733         (xpalloc): New function, mostly taken from Emacs.
17734         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
17735         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
17736         (charclass_index): Check for integer overflow in computing
17737         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
17738         added to it later.
17739         (alloc_position_set): Check for integer overflow.  On typical
17740         platforms this check has zero overhead, since the constant
17741         expression is false.
17742         (realloc_trans_if_necessary):
17743         Remove assertion, which I hope Coverity no longer needs.
17745         * modules/dfa (Depends-on): Add intprops, stdint.
17747 2016-12-12  Jim Meyering  <meyering@fb.com>
17749         dfa: add an assertion to avoid coverity false positive
17750         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
17751         warned that "newalloc1 - 2" could overflow.
17753 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
17755         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
17756         * dfa.h (DFA_CASE_FOLD): Remove.
17757         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
17759 2016-12-13  John W. Eaton  <gnu@jweaton.org>
17761         link: fix test to declare use of rename()
17762         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
17763         -Werror=implicit-function-declaration
17765 2016-12-12  Bruno Haible  <bruno@clisp.org>
17767         fpending: Port to native Windows with MSVC.
17768         * lib/fpending.c: Include stdio-impl.h.
17769         (__fpending): Include all known implementations. Err out if it's not
17770         ported.
17771         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
17772         * modules/fpending (Files): Add lib/stdio-impl.h.
17773         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
17775 2016-12-12  Bruno Haible  <bruno@clisp.org>
17777         stdioext: Port to native Windows with MSVC.
17778         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
17779         (struct _gl_real_FILE): New type.
17780         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
17781         Windows.
17782         * lib/fbufmode.c (fbufmode): Add code for native Windows.
17783         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
17784         other SystemV derived implementations.
17785         * lib/fpurge.c (fpurge): Likewise.
17786         * lib/freadable.c (freadable): Likewise.
17787         * lib/freadahead.c (freadahead): Likewise.
17788         * lib/freading.c (freading): Likewise.
17789         * lib/freadptr.c (freadptr): Likewise.
17790         * lib/freadseek.c (freadptrinc): Likewise.
17791         * lib/fseeko.c (fseeko): Likewise.
17792         * lib/fseterr.c (fseterr): Likewise.
17793         * lib/fwritable.c (fwritable): Likewise.
17794         * lib/fwriting.c (fwriting): Likewise.
17795         Reported by Gisle Vanem <gvanem@yahoo.no>.
17797 2016-12-11  Jim Meyering  <meyering@fb.com>
17799         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
17800         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
17801         to work with most shells, but not with the one provided by many
17802         Solaris 10 systems, so running configure with such a /bin/sh evokes
17803         e.g., "./configure: syntax error at line 33602: `(' unexpected".
17804         Reported by Assaf Gordon in
17805         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
17807 2016-12-10  Bruno Haible  <bruno@clisp.org>
17809         threadlib: Optimize out runtime test on Solaris >= 10.
17810         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
17811         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
17812         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
17814 2016-12-10  Bruno Haible  <bruno@clisp.org>
17816         stdint: Update doc about Solaris 9.
17817         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
17819 2016-12-09  Bruno Haible  <bruno@clisp.org>
17821         c-ctype tests: Fix link error on Solaris 9.
17822         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
17823         Reported at <https://savannah.gnu.org/bugs/?46827>.
17825 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
17827         dfa: fix performance bug that recomputes trans
17828         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
17829         25 on-demand changes.  The bug caused build_state to reset all
17830         d->trans elements to -2 even when d->trans was already non-null.
17831         Use C99 style decls after statements in this function.
17833         same-inode: port to MinGW
17834         Here st_ino is always 0, so change the definition of SAME_INODE so
17835         that 1 means the two files are the same, 0 with st_ino != 0 means
17836         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
17837         reported by Bruno Haible (Bug#25146).
17838         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
17839         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
17841 2016-12-04  Bruno Haible  <bruno@clisp.org>
17843         javacomp-script: Support Java 7 and 8.
17844         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
17845         target-version 1.7, 1.8.
17847 2016-12-02  Daiki Ueno  <ueno@gnu.org>
17849         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
17850         GPLv2" rewriting.
17852 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
17854         * gnulib-tool (func_import): Adhere to the license guideline when
17855         rewriting the license text to "LGPLv3+ or GPLv2":
17856         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
17858 2016-12-02  Bruno Haible  <bruno@clisp.org>
17860         localcharset: Avoid theoretical buffer overrun.
17861         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
17862         return value from setlocale if it would lead to a buffer overrun.
17864 2016-12-01  Bruno Haible  <bruno@clisp.org>
17866         Relicense some modules under LGPLv2+.
17867         Kevin Cernekee's approval is in
17868         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
17869         * modules/fseterr (License): Change to LGPLv2+.
17870         * modules/mbchar (License): Likewise.
17871         * modules/mbiter (License): Likewise.
17872         * modules/mbsnlen (License): Likewise.
17873         * modules/wcwidth (License): Likewise.
17875 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
17877         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
17878         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
17879         OS/2 kLIBC.
17881 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
17883         alphasort, scandir: Port to OS/2 kLIBC
17884         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
17885         declaration.
17886         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
17888 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
17890         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
17891         * lib/relocatable.c (relocate): Do not touch pathname if it is started
17892         with '/@unixroot'.
17894 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
17896         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
17897         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
17898         OS/2 kLIBC unless TCPV40HDRS is defined.
17900 2016-11-29  Jim Meyering  <meyering@fb.com>
17902         dfa: avoid new infinite loop
17903         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
17904         * lib/dfa.c (dfastate): When constructing a new state table, we could
17905         initially declare that we had found a match, and later find that
17906         constraints eliminate that possibility, yet continue to use the
17907         now stale "matched" indicator.  That would lead to an infinite loop.
17908         The solution is to update "matched" when necessary.
17909         Introduced by commit v0.1-983-g403adf1.
17911 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17913         dfa: avoid match middle in multibyte character
17914         * lib/dfa.c (transit_state): If fails in matching single byte characters
17915         on a state including period expression in non-UTF8 multibyte locales,
17916         skip trailing bytes.
17917         (dfa_supported): Revert previous change.
17919 2016-11-27  Jim Meyering  <meyering@fb.com>
17921         dfa: avoid false match in non-UTF8 multibyte locales
17922         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
17923         as "not supported" so that callers will resort to using regex-based
17924         matcher.  This will surely hurt performance, but correctness trumps
17925         performance here, and the affected locales are less and less relevant,
17926         these days.  See grep's bug report https://bugs.gnu.org/24975.
17928 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
17930         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
17931         * lib/ptsname_r.c: Include the appropriate headers.
17932         [__sun]: Delete sys/sysmacros.h include.
17933         [_AIX || __osf__]: Likewise.
17934         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
17936 2016-11-27  Pádraig Brady  <P@draigBrady.com>
17938         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
17939         * lib/md4.c (md4_process_bytes): The existing define is made internal
17940         in recent versions of glibc, so also use this new public define.
17941         * lib/md5.c (md5_process_bytes): Likewise.
17942         * lib/sha1.c (sha1_process_bytes): Likewise.
17943         * lib/sha256.c (sha256_process_bytes): Likewise.
17944         * lib/sha512.c (sha512_process_bytes): Likewise.
17946 2016-11-27  Pádraig Brady  <P@draigBrady.com>
17948         maint: use a more standard return from mbrtowc test
17949         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
17950         from the test program as this often indicates an
17951         unhandled case in the test program.
17952         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
17953         (gl_MBRTOWC_SANITYCHECK): Likewise.
17954         (gl_MBRTOWC_NULL_ARG2): Likewise.
17955         (gl_MBRTOWC_NUL_RETVAL): Likewise.
17957 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
17959         freopen: work around glibc bug with closed fd
17960         Work around glibc bug#15589, where freopen mishandles the case
17961         where stdin etc. are already closed.
17962         * doc/posix-functions/freopen.texi (freopen): Document the bug.
17963         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
17964         instead of __need_FILE, as the latter does not work with glibc.
17965         Include <fcntl.h>, for open flags.
17966         (rpl_freopen): Work around glibc bug.
17967         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
17968         * modules/freopen (Depends-on): Add fcntl-h.
17969         * tests/test-freopen.c (main): Test for bug.
17971 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17973         fnmatch: fix typo introduced on 2016-08-17
17974         This fixes the port to non-GCC compilers that lack __builtin_expect.
17975         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
17977         dfa: simplify with new function fillset
17978         * lib/dfa.c (fillset): New function.
17979         Use it for clarity when applicable.
17981         dfa: fix glitches with on-demand states
17982         Also, adjust commentary to better match new code.
17983         Some of these glitches predate the recent change.
17984         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
17985         only non-initial states.
17986         (dfastate): Rename locals to better match new roles.
17987         Move them into nested scopes if this is easy.
17988         Omit unnecessary calls to zeroset.
17989         Simplify test for whether to throw in the positions of state 0.
17990         Omit C99-ism (decl after statement) since Gawk still wants C89.
17991         (build_state): Omit unnecessary test and assignment.
17992         Fix some confusion that counted transition tables inaccurately
17993         and could cause a memory leak.
17994         (dfaexec_main): Redo to make it clearer to the compiler that
17995         -1 and -2 are the only negative state numbers here.
17997 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17999         dfa: addition of new state on demand
18000         * src/dfa.c (dfastate): Add argument UC, the current input character.
18001         Fill only a group including the character in transition table.
18002         (realloc_trans_if_necessary): Add the dummy state which means that a
18003         transition table is assigned but the next state is not assigned.
18004         (build_state): Return the next state.  All callers updated.
18005         (transit_state_singlebyte): If we get the dummy state,
18006         fill the transition table.
18007         (dfaexec_main): Handle the dummy state.
18008         (free_mbdata, dfafree): Consider the dummy state.
18010 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18012         srclist: sync with released gettext
18013         * config/srclist.txt: Set "release" option to the files under
18014         $GETTEXT.
18016 2016-11-24  Daiki Ueno  <ueno@gnu.org>
18018         srclist: add "release" option
18019         * config/srclist.txt: Change the format so that the first column
18020         of each line points to the top-level directory of the source
18021         archive.
18022         * config/srclist-update: Accept "release" option that checks files
18023         from the most recently tagged revision in the source archive.
18025 2016-11-21  Bruno Haible  <bruno@clisp.org>
18027         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
18028         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18029         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
18030         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
18031         Inline and remove member function 'rpl ()' of the wrapper struct.
18033 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18035         dfa: fix logic typo
18036         Problem reported by Stephane Chazelas (Bug#24973).
18037         * lib/dfa.c (using_simple_locale): Fix typo that caused some
18038         non-simple locales like fr_FR to be treated as simple.
18040 2016-11-20  Jim Meyering  <meyering@fb.com>
18042         fix test driver leaks: exclude, malloc, realloc
18043         * tests/test-exclude.c (main): Fix trivial leak.
18044         * tests/test-malloc-gnu.c (main): Likewise.
18045         * tests/test-realloc-gnu.c (main): Likewise.
18046         With these changes, grep's tests are now leak free.
18047         I.e., running them with ASAN elicits no failure:
18048           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
18049             AM_LDFLAGS='-fsanitize=address -static-libasan' check
18051 2016-11-11  Bruno Haible  <bruno@clisp.org>
18053         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
18054         * modules/libunistring: (License): Change from LGPL to
18055         "LGPLv3+ or GPLv2".
18056         * modules/libunistring-optional: Likewise.
18057         * modules/unicase/*: Likewise.
18058         * modules/uniconv/*: Likewise.
18059         * modules/unictype/*: Likewise.
18060         * modules/unigbrk/*: Likewise.
18061         * modules/unilbrk/*: Likewise.
18062         * modules/uniname/*: Likewise.
18063         * modules/uninorm/*: Likewise.
18064         * modules/unistdio/*: Likewise.
18065         * modules/unistr/*: Likewise.
18066         * modules/uniwbrk/*: Likewise.
18067         * modules/uniwidth/*: Likewise.
18069 2016-11-12  Bruno Haible  <bruno@clisp.org>
18071         Relicense some modules under LGPLv2+.
18072         Paul Eggert's approval is in
18073         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
18074         Eric Blake's approval is in
18075         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
18076         Ludovic Courtès's approval is in
18077         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
18078         * modules/isnand-nolibm (License): Change to LGPLv2+.
18079         * modules/isnanf-nolibm (License): Likewise.
18080         * modules/isnanl-nolibm (License): Likewise.
18082 2016-11-19  Bruno Haible  <bruno@clisp.org>
18084         Relicense some modules under LGPLv2+.
18085         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
18086         modules/vasnprintf.
18087         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
18088         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
18089         All other significant changes to the files in lib/ of these modules
18090         are from me.
18091         * modules/memcmp2 (License): Change to LGPLv2+.
18092         * modules/amemxfrm (License): Likewise.
18093         * modules/fpieee (License): Likewise.
18094         * modules/fpucw (License): Likewise.
18095         * modules/frexp-nolibm (License): Likewise.
18096         * modules/frexpl-nolibm (License): Likewise.
18097         * modules/printf-frexp (License): Likewise.
18098         * modules/printf-frexpl (License): Likewise.
18099         * modules/printf-safe (License): Likewise.
18100         * modules/signbit (License): Likewise.
18102 2016-11-17  Bruno Haible  <bruno@clisp.org>
18104         Enable Unicode decoder safety unconditionally.
18105         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
18106         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
18107         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18108         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18109         * lib/unistr/u8-prev.c (u8_prev): Likewise.
18110         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
18111         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
18112         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
18113         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
18114         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
18115         * lib/unistr/u16-prev.c (u16_prev): Likewise.
18116         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
18117         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
18118         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
18119         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
18120         * lib/unistr/u32-prev.c (u32_prev): Likewise.
18121         * lib/unistr/u32-next.c (u32_next): Likewise.
18122         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
18123         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
18124         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
18125         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
18126         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
18127         CONFIG_UNICODE_SAFETY tests unconditionally.
18128         * tests/unistr/test-u32-mblen.c (main): Likewise.
18129         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
18130         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
18131         * tests/unistr/test-u32-next.c (main): Likewise.
18132         * tests/unistr/test-u32-strmblen.c (main): Likewise.
18133         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
18134         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
18135         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
18136         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
18137         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18138         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
18139         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
18140         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18141         * lib/unistr/u16-check.c (u16_check): Update comment.
18142         * NEWS: Mention the changes that callers should be aware of.
18144 2016-11-19  Bruno Haible  <bruno@clisp.org>
18146         relocatable-prog-wrapper: Fix breakage on Cygwin.
18147         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
18148         (Depends-on): Remove intprops.
18149         * lib/relocwrapper.c: Update dependency tree.
18150         (strerror): Undefine.
18151         * build-aux/install-reloc (func_create_wrapper): Do not compile
18152         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
18154 2016-11-19  Bruno Haible  <bruno@clisp.org>
18156         strerror: Make it compile in C++ mode.
18157         * lib/strerror.c (strerror): Ignore the return value of memcpy().
18159 2016-11-15  Pedro Alves  <palves@redhat.com>
18161         sys_time: add gnulib::timeval for C++
18162         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
18163         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
18164         timeval macro.
18166 2016-11-14  Pedro Alves  <palves@redhat.com>
18168         snippet/c++defs: fix real-floating arg functions in C++ mode
18169         Also, define isfinite, isinf, isnan, signbit in the gnulib
18170         namespace instead of in the global namespace.
18171         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
18172         (_GL_END_NAMESPACE): New.
18173         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
18174         (isfinite, isinf, isnan, signbit) [__cplusplus &&
18175         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
18176         instead of in the global namespace.
18177         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
18178         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
18179         of in the global namespace.
18181 2016-11-13  Jim Meyering  <meyering@fb.com>
18183         strftime: don't use __THROW
18184         Each use of __THROW would provoke this from gcc-7-to-be:
18186           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
18187             on unit local functions [-Wattributes]
18188           static int iso_week_days (int, int) __THROW;
18189           ^~~~~~
18190         * lib/strftime.c (__THROW): Don't define.
18191         Remove each use of __THROW.
18192         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
18193         (tm_diff, iso_week_days, __strftime_internal): Likewise.
18195 2016-11-14  Paul Eggert  <eggert@union>
18197         obstack: port to gcc -fcheck-pointer-bounds
18198         Problem found by 'make check' failure on bleeding-edge coreutils
18199         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
18200         6.2.0-5ubuntu12), configured via "./configure
18201         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
18202         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
18203         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
18204         New macro, copied from fts_.h.
18205         (struct _obstack_chunk.contents): Use it.
18207 2016-11-14  Eric Blake  <eblake@redhat.com>
18209         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
18210         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
18211         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
18213 2016-11-14  Pádraig Brady  <P@draigBrady.com>
18215         strptime: fix compile error in recent change
18216         * lib/strptime.c (__strptime_internal): Fix ported code.
18218 2016-11-11  Bruno Haible  <bruno@clisp.org>
18220         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
18221         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
18222         (func_import): Extend determination of license_incompatibilities.
18223         (func_create_testdir): Extend table of license compatibility. Handle
18224         also the licenses GPLv3+, GPL, LGPLv3+.
18226 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
18228         strftime: tune %q
18229         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
18231         Merge strftime.c changes from glibc
18232         This incorporates:
18233         2007-10-16 [BZ #5184] Add tzset_called argument
18234         2008-06-13 [BZ #6612] pass reference to tzset_called around
18235         2009-10-30 Implement Burmese language locale for Myanmar
18236         2010-01-09 Add support for XPG7 testing
18237         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
18238         2015-10-20 Convert miscellaneous function definitions to prototype style
18239         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
18240         it anyway and this lessens the difference between gnulib and glibc.
18241         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
18242         (__THROW): Define if standard headers do not.
18243         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
18244         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
18245         Declare with __THROW.
18246         (__strftime_internal): Rename from strftime_case_. Add arg for
18247         whether tzset is called.  All uses changed.  Call tzset at most
18248         once.  Allow %OC, for Burmese.
18249         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
18250         Don't assume values are in range.
18252 2016-11-12  Eric Blake  <eblake@redhat.com>
18254         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
18255         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
18256         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
18257         different value.
18259 2006-11-12  Pedro Alves  <palves@redhat.com>
18261         Fix gnulib C++ namespace support and std::frexp
18262         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
18263         _GL_CXXALIASWARN.
18265 2006-11-12  Pedro Alves  <palves@redhat.com>
18267         GNULIB_NAMESPACE::func need not pull in rpl_func
18268         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
18269         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
18270         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
18271         struct instead of a function pointer.
18273 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
18275         manywarnings: fix -Wno-missing-field-initializers detection
18276         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
18277         to be independent of -Wunused-variable.  I.E. ensure the latter
18278         warning doesn't occur so that detection of the former is accurate.
18280 2016-11-05  Pádraig Brady  <pbrady@fb.com>
18282         strftime,strptime: support %q to represent the quarter
18283         * lib/strftime.c (strftime_case_): Add %q case.
18284         * lib/strptime.c (__strptime_internal): Likewise.
18285         * tests/test-strftime.c (quarter_test): A new test case.
18287 2016-11-03  Eric Blake  <eblake@redhat.com>
18289         bootstrap: Fix get_version() for AIX 5.3
18290         * build-aux/bootstrap (get_version): Factor out sed script, since
18291         indented comments choke AIX 5.3 sed.
18292         Reported-by: Michael Felt <aixtools@gmail.com>
18294 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18296         intprops: port to older XL C
18297         Problem reported by Alexander Samoilov in:
18298         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
18299         http://savannah.nongnu.org/bugs/?49448
18300         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
18301         Define to 1 only for XL C 12.1 or later, since this bug
18302         occurs in XL C for AIX 6.0 but not in 12.1.
18304 2016-11-02  Pádraig Brady  <P@draigBrady.com>
18306         backupfile: initialize default suffix within the implementation
18307         * lib/backupfile.c (find_backup_file_name): Initialize the
18308         global variable here, to simplify usage, and to only call
18309         getenv() when needed.
18311 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18313         futimens: remove FIXME for old Linux kernels
18314         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
18315         this in 2012" FIXME, like that for utimensat.
18317         utimensat: remove FIXME for old Linux kernels
18318         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
18319         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
18320         this in 2012" FIXME, by assuming the file system bug is absent
18321         unless demonstrated to be present.  We no longer need to worry
18322         about Linux kernel 2.6.32 when building with newer kernels.
18324 2016-10-16  Bruno Haible  <bruno@clisp.org>
18326         qsort_r: Fix macrology for platforms that lack the function.
18327         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
18328         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
18329         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
18330         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
18331         not exist.
18332         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
18333         the function exists.
18334         * modules/qsort_r: Add comments.
18336 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18338         sys_types: fix Texinfo typos
18339         * doc/glibc-functions/gnu_dev_major.texi:
18340         * doc/glibc-functions/gnu_dev_makedev.texi:
18341         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
18343 2016-10-26  John David Anglin  <dave.anglin@bell.net>
18345         getprogname: port to HP-UX
18346         See Bug#24805.
18347         * lib/getprogname.c (getprogname) [__hpux]: Port.
18348         * tests/test-getprogname.c (STREQ) [__hpux]:
18349         Special-case for HP-UX limitations on program name length.
18351 2016-10-20  Bruno Haible  <bruno@clisp.org>
18353         Update doc about target platforms.
18354         * doc/gnulib-intro.texi (Target Platforms): Update list.
18356 2016-10-15  Bruno Haible  <bruno@clisp.org>
18358         opendir, readdir, closedir: Relicense under LGPLv2+.
18359         * modules/opendir (License): Change to LGPLv2+.
18360         * modules/readdir (License): Likewise.
18361         * modules/closedir (License): Likewise.
18363 2016-10-16  Bruno Haible  <bruno@clisp.org>
18365         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
18366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
18367         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
18368         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
18369         HAVE_DECL_STRERROR_R.
18371 2016-10-16  Bruno Haible  <bruno@clisp.org>
18373         Make the 'argp' module work without the 'error' module.
18374         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
18376 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
18378         diffseq: restore TOO_EXPENSIVE heuristic
18379         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
18380         (Bug#24715).  The simplest solution is to restore the
18381         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
18382         using a higher threshold to avoid Bug#16848 on smaller files.
18383         * lib/diffseq.h (struct context): Restore member too_expensive.
18384         (struct partition): Restore members lo_minimal, hi_minimal.
18385         (diag, compareseq): Restore arg find_minimal.  All uses changed.
18386         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
18387         1993 to make 'diff' run faster (but not as well) on large inputs,
18388         but use a threshold of 4096 instead of the old 256.
18389         * lib/fstrcmp.c (strcmp_bounded):
18390         * lib/git-merge-changelog.c (compute_differences):
18391         Adjust to diffseq.h changes.
18393 2016-10-22  Bruno Haible  <bruno@clisp.org>
18395         iconv: Avoid compilation error when bootstrapping GNU libiconv.
18396         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
18397         declaration yet, define ICONV_CONST to empty.
18399 2016-10-15  Bruno Haible  <bruno@clisp.org>
18401         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
18402         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
18403         module.
18405 2016-10-16  Bruno Haible  <bruno@clisp.org>
18407         system-quote tests: Avoid compiler warning on AIX.
18408         * tests/test-system-quote-child.c (fopen): Redefine like the system's
18409         <stdio.h> does.
18411 2016-10-16  Bruno Haible  <bruno@clisp.org>
18413         Fix some "gcc -Wall" warnings.
18414         * tests/test-ffsl.c (main): Use variable x, not i.
18415         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
18416         freopen.
18417         * tests/test-sethostname1.c (main): Explicitly ignore the return value
18418         of sethostname.
18420 2016-10-16  Bruno Haible  <bruno@clisp.org>
18422         gnulib-tool: Make --create-testdir on all modules work again.
18423         * gnulib-tool (func_create_testdir): Don't include the
18424         non-recursive-gnulib-prefix-hack module.
18426 2016-10-21  Daiki Ueno  <ueno@gnu.org>
18428         libunistring: change the maintainer to 'all'
18429         * modules/gen-uni-tables, modules/libunistring:
18430         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
18431         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
18432         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
18433         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
18434         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
18435         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
18436         * modules/uniwidth/*: Change the maintainer to 'all'.
18438 2016-10-16  Bruno Haible  <bruno@clisp.org>
18440         Simplify "configure: checking ..." messages.
18441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
18442         AC_MSG_NOTICE.
18443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18445 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
18447         quotearg-tests: pacify gcc -Wall
18448         Problem reported by Bruno Haible in:
18449         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
18450         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
18451         * tests/test-quotearg.h: ... from here.
18453 2016-10-20  Pádraig Brady  <P@draigBrady.com>
18455         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
18456         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
18457         Needed on Centos <= 4.
18459 2016-10-20  Jim Meyering  <meyering@fb.com>
18461         printf.m4: fix a bug in detecting printf %j support
18462         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
18463         uintmax_t is defined in neither stdint.h nor inttypes.h.
18464         Before, this macro might have mistakenly set
18465         gl_cv_func_printf_sizes_c99=yes on such a system.
18466         Spotted by Zev Weiss.
18468 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18470         sched: substitute HAVE_SYS_CDEFS_H too
18471         Problem reported by Tom G. Christensen in:
18472         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
18473         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
18474         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
18476 2016-10-19  Pádraig Brady  <P@draigBrady.com>
18478         quotearg: never write beyond the returned length
18479         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
18480         scan of the string when we initially encounter a single quote when
18481         shell quoting, so that if we then switch to a more concise quoting method
18482         we will not have written beyond that returned length.
18483         This is significant for sh-quote, which has separate routines
18484         to determine the length and do the actual quoting.
18485         * tests/test-quotearg.h: Reinstate the buffer bounds checking
18486         now that we never write more than the returned length.
18488 2016-10-18  Bruno Haible  <bruno@clisp.org>
18490         getprogname tests: Avoid failure in packages that use libtool.
18491         * tests/test-getprogname.c (main): Strip "lt-" prefix.
18492         Based on a patch by Jim Meyering.
18494 2016-10-16  Bruno Haible  <bruno@clisp.org>
18496         getprogname: Fix test failure on Cygwin. Comments.
18497         * lib/getprogname.h: Add comments.
18498         * lib/getprogname.c: Add comments. Fix #elif indentation.
18499         * tests/test-getprogname.c (main): On Cygwin, expect a result without
18500         ".exe" suffix.
18502 2016-10-16  Bruno Haible  <bruno@clisp.org>
18504         Make sure the libunistring detection rejects older versions with a
18505         known bug.
18506         * modules/unistr/u8-strtok (configure.ac): Bump required version.
18507         * modules/unistr/u16-strtok (configure.ac): Likewise.
18508         * modules/unistr/u32-strtok (configure.ac): Likewise.
18510 2016-10-18  Bruno Haible  <bruno@clisp.org>
18512         sh-quote, system-quote: revert regression of unit test.
18513         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
18514         * tests/test-system-quote-main.c (check_one): Likewise.
18516 2016-10-16  Pádraig Brady  <P@draigBrady.com>
18518         quotearg: fix stale tests
18519         * tests/test-quotearg.c [locale_results]: Add the missing str7
18520         entries to the expected results.
18521         * tests/test-system-quote-main.c (check_one): Don't enforce that we
18522         don't write beyond the returned length, since that's no longer the
18523         case if we switch to a more concise quoting style.
18524         * tests/test-sh-quote.c (check_one): Likewise.
18525         (main): Adjust for the new more concise quoting style.
18526         Reported by Bruno Haible.
18528 2016-10-16  Jim Meyering  <meyering@fb.com>
18530         non-recursive-gnulib-prefix-hack: fix inconsequential typo
18531         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
18532         to "$1".  This macro is always invoked with $1 == lib.
18533         Spotted by Bruno Haible
18535 2016-10-16  Bruno Haible  <bruno@clisp.org>
18537         Fix a test crash.
18538         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
18539         fails.
18541 2016-10-16  Pádraig Brady  <P@draigBrady.com>
18543         test-limits-h: suppress -Woverlength-strings
18544         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
18546 2016-10-15  Bruno Haible  <bruno@clisp.org>
18548         gettime, timespec, utimens: Relicense under LGPL.
18549         * modules/gettime (License): Change to LGPL.
18550         * modules/timespec (License): Likewise.
18551         * modules/utimens (License): Likewise.
18553 2016-10-14  Bruno Haible  <bruno@clisp.org>
18554             Pádraig Brady  <P@draigBrady.com>
18556         canonicalize-lgpl: Support the case path_max > INT_MAX.
18557         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
18558         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
18560 2016-10-13  Jim Meyering  <meyering@fb.com>
18562         getprogname: IBM z/OS: avoid NULL-dereference
18563         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
18564         upon strdup failure.
18566 2016-10-12  Jim Meyering  <meyering@fb.com>
18568         test-stdint: use _GL_VERIFY rather than "verify" for some tests
18569         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
18570         and an abbreviated diagnostic rather than verify with the full one,
18571         because the full-length strings would evoke warnings from gcc with
18572         -Woverlength-strings.
18574 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18576         stdint: port SIZE_MAX to glibc s390
18577         Problem reported by Eric Blake in:
18578         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
18579         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
18580         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
18581         correct type, if possible.
18583 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
18585         getprogname: port to IBM z/OS
18586         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
18588 2016-10-11  Jim Meyering  <meyering@fb.com>
18590         maint: remove stray space after "." in AC_DEFINE comment.
18591         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
18592         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18594 2016-10-05  Jim Meyering  <meyering@fb.com>
18596         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
18597         * lib/long-options.c (parse_long_options): Add a break statement
18598         to avoid this new warning/failure:
18599         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
18600           --create-testdir --dir=/t/x --with-tests --test long-options
18601         ../../gllib/long-options.c: In function 'parse_long_options':
18602         ../../gllib/long-options.c:66:12: error: this statement may \
18603           fall through [-Werror=implicit-fallthrough]
18604                    (*usage_func) (EXIT_SUCCESS);
18605                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
18607 2016-10-05  Jim Meyering  <meyering@fb.com>
18609         utimecmp: avoid new GCC 7 warning from -Wbool-operation
18610         Testing this module would fail when using GCC 7 like this:
18611         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
18612           --dir=/tmp/x --with-tests --test utimecmp
18613         ../../gllib/utimecmp.c: In function ‘utimecmp’:
18614         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
18615           [-Werror=bool-operation]
18616                          time_t s = src_s & ~ (res == 2 * BILLION);
18617                                             ^
18618         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
18619           [-Werror=bool-operation]
18620                src_s &= ~ (res == 2 * BILLION);
18621                         ^
18622         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
18623         Instead, make it explicit that we intend to apply it to 0 or 1.
18625 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18627         dfa: save memory for states
18628         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
18629         states if dfa has a lot of caches.
18631 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
18633         wchar, wctype-h: fix for MinGW 3.22.2
18634         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
18635         special invocation, to fix issues with MinGW 3.22.2 wchar.h
18636         when included from <string.h>.
18637         * lib/wctype.in.h [__MINGW32__]: Add special invocation
18638         convention for MinGW 3.22.2, to solve issues with their
18639         wctype.h when included from <ctype.h>.
18641 2016-10-05  Jim Meyering  <meyering@fb.com>
18643         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
18644         * lib/long-options.c (parse_long_options): Add a break statement
18645         to avoid this new warning/failure:
18646         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
18647           --create-testdir --dir=/t/x --with-tests --test long-options
18648         ../../gllib/long-options.c: In function ‘parse_long_options’:
18649         ../../gllib/long-options.c:66:12: error: this statement may \
18650           fall through [-Werror=implicit-fallthrough]
18651                    (*usage_func) (EXIT_SUCCESS);
18652                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
18654         utimecmp: avoid new GCC 7 warning from -Wbool-operation
18655         Testing this module would fail when using GCC 7 like this:
18656         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
18657           --dir=/tmp/x --with-tests --test utimecmp
18658         ../../gllib/utimecmp.c: In function ‘utimecmp’:
18659         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
18660           [-Werror=bool-operation]
18661                          time_t s = src_s & ~ (res == 2 * BILLION);
18662                                             ^
18663         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
18664           [-Werror=bool-operation]
18665                src_s &= ~ (res == 2 * BILLION);
18666                         ^
18667         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
18668         Instead, make it explicit that we intend to apply it to 0 or 1.
18670 2016-10-03  Pádraig Brady  <P@draigBrady.com>
18672         quotearg: minimize shell quoting using double quotes
18673         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
18674         quote in encountered then use double quotes (c style quoting)
18675         when possible, as it simplifies the quoting.
18676         * tests/test-quotearg-simple.c: Add test cases.
18677         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
18678         for the fact we now may write beyond the returned length.
18680 2016-10-02  Jim Meyering  <meyering@fb.com>
18682         vasnprintf.c: avoid spurious warning from GCC 7
18683         The presence of cpp directives renders this "FALLTHROUGH" comment
18684         ineffective, so does not suppress the -Wimplicit-fallthrough warning
18685         from GCC 7 built from git on 2016-10-02.
18686         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
18687         directives, so that it takes effect once again.  This is clearly
18688         not a proper change, and I will revert it once this bug is fixed:
18689         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
18691 2016-10-01  Jim Meyering  <meyering@fb.com>
18693         getprogname: correct the test for a __progname variable
18694         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
18695         and AC_LINK_IFELSE to check for a global __progname.  If found,
18696         define HAVE_VAR___PROGNAME.
18697         * lib/getprogname.c (getprogname): Reflect the new name of the
18698         feature- checked preprocessor symbol:
18699         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
18701 2016-09-28  Jim Meyering  <meyering@fb.com>
18703         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
18704         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
18705         fall-through case with a /* fallthrough */ comment.
18707         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
18708         * lib/dfa.c (dfassbuild): Mark the end of this case with a
18709         /* fallthrough */ comment.
18711         getprogname: avoid __progname vs program_invocation_short_name pitfall
18712         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
18713         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
18714         not with Fedora 24's glibc-2.23.1-10.
18715         * lib/getprogname.c (__progname): Move this declaration down...
18716         (getprogname): ... into the #elif block where used, and make it
18717         explicitly "extern".
18719         getprogname: port to OpenBSD 5.1
18720         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
18721         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
18722         * modules/getprogname (configure.ac): Move most of this code...
18723         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
18724         increment serial number, and add a test for __progname.
18725         https://bugs.gnu.org/24562
18726         Reported by Nelson H. F. Beebe.
18728 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18730         sched: port to GCC 6.2.1 on macOS Sierra
18731         Problem reported by Denis Davydov in:
18732         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
18733         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
18734         Include <sys/cdefs.h> before <sched.h>.
18735         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
18736         so that we needn’t worry about the sched.h include bug here.
18737         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
18738         and include it before <sched.h> if it exists, when
18739         checking for <sched.h>.
18741         tests/init.sh: port Alpine fix to AIX 7.1
18742         * tests/init.sh (compare_): When attempting to use diff -U3,
18743         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
18744         diff -u not outputting a space after leading '+', as the users
18745         of 'compare' should not be that picky about its output format.
18746         In the AIX 7.1 case, return with diff exit status (or with 2 if
18747         trouble), instead of some random nonzero exit status.
18748         * tests/test-init.sh (test_compare): Remove space after leading
18749         '+', so that AIX 7.1 'diff' passes the test.
18751 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18753         nl_langinfo: pacify GCC
18754         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
18755         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
18757         stdint: also set GL_GENERATE_LIMITS_H
18758         Problem reported by Jim Meyering in:
18759         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
18760         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
18762         limits-h, stdint: Don't assume extensions, fix typo
18763         * m4/limits-h.m4 (gl_LIMITS_H):
18764         * m4/stdint.m4 (gl_STDINT_H):
18765         Don't assume AC_USE_SYSTEM_EXTENSIONS.
18766         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
18767         reported by Jim Meyering in:
18768         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
18770 2016-09-21  Jim Meyering  <meyering@fb.com>
18772         getprogname: port to AIX
18773         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
18774         and strdup to obtain a short program name string.  Using code from
18775         Bruno Haible and an idea from Bastien ROUCARIÈS, in
18776         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
18777         Assaf Gordon reported that this new file would fail to compile on
18778         AIX-7.1 32bit.
18780 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18782         extensions: fix typo in comment
18783         * m4/extensions.m4: Sync from Autoconf master.
18785         stdint: support new _WIDTH macros
18786         * doc/posix-headers/stdint.texi: Document this.
18787         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
18788         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
18789         support for INTMAX_WIDTH, etc. as well as for support for just C99.
18790         * modules/stdint (Depends-on): Add limits-h.
18791         (Makefile.am): Substitute HAVE_C99_STDINT_H.
18792         * modules/stdint-tests (Depends-on): Add extensions, so that
18793         INTMAX_MAX etc. are defined.
18794         * tests/test-stdint.c: Verify the new macros.
18796         limits-h: new module
18797         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
18798         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
18799         * doc/posix-headers/limits.texi: Document new module.
18800         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
18801         * modules/limit-h-tests, tests/test-limits-h.c: New files.
18803         stdio: don't redefine __USE_MINGW_ANSI_STDIO
18804         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
18805         if it is already defined.  Apparently GNU Emacs relies on this.  See:
18806         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
18808 2016-09-15  Eric Blake  <eblake@redhat.com>
18810         sys_types: avoid glibc 2.25 warnings about major()
18811         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
18812         older autoconf.
18813         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
18814         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
18815         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
18816         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
18818         mountlist: include sysmacros.h for glibc
18819         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
18820         AC_HEADER_MAJOR.
18821         * lib/mountlist.c (includes): Use correct headers.
18823 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18825         extensions: port to more ISO C TSes
18826         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
18827         master, to add support for more recent ISO C TRs and TSes.
18829 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18831         intprops: new macro TYPE_WIDTH
18832         * lib/intprops.h (TYPE_WIDTH): New macro.
18833         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
18834         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
18835         * lib/parse-datetime.y (parse_datetime2):
18836         Use it.
18838         extensions: port to recent ISO C TRs
18839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
18840         Sync from Autoconf master, to add support for recent ISO C TRs.
18841         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
18842         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
18843         the MinGW option is not an extension.
18845 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18847         dfa: port to Solaris 9
18848         Problems reported by Tom G. Christensen in:
18849         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
18850         * modules/dfa (Depends-on): Add isblank.
18851         * modules/dfa-tests (dfa_match_aux_LDADD):
18852         Rename from test_stat_LDADD, to fix typo.
18853         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
18855 2016-09-10  Jim Meyering  <meyering@fb.com>
18857         strverscmp: avoid link failure on OS X
18858         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
18859         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
18861 2016-08-16  Jim Meyering  <meyering@fb.com>
18863         dfa: new module, importing grep's DFA matcher
18864         Since grep's DFA matcher is now being used by two gnulib-enabled
18865         projects, grep and sed, it makes sense to version-control its
18866         sources and unit tests in one place: here.
18867         * modules/dfa: New module.
18868         * modules/dfa-tests: New file.
18869         * lib/dfa.c: New file, from grep.
18870         * lib/dfa.h: Likewise.
18871         * lib/localeinfo.c: Likewise.
18872         * lib/localeinfo.h: Likewise.
18873         * tests/dfa-match-aux.c: Likewise.
18874         * tests/dfa-invalid-char-class.sh: Likewise.
18875         * tests/dfa-match.sh: Likewise, with minor changes.
18876         * MODULES.html.sh (Misc): Add "dfa" to this list.
18878 2016-09-09  Jim Meyering  <meyering@fb.com>
18880         getprogname-tests: don't depend on assert-h
18881         * modules/getprogname-tests (Depends-on): Remove assert-h.
18882         It was not needed, and in fact would cause build failure for
18883         coreutils on some systems.  Reported by Assaf Gordon in https:
18884         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
18886 2016-09-07  Jim Meyering  <meyering@fb.com>
18888         getprogname-tests: work also when EXEEXT is nonempty
18889         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
18890         * tests/test-getprogname.c (main): Use it.
18891         Suggested by Gisle Vanem.
18893 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
18895         getprogname: fix errors in previous change
18896         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
18897         s/program_invocation_name/base/
18898         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
18900 2016-09-08  Pádraig Brady  <P@draigBrady.com>
18902         parse-datetime: restrict debug output to input string
18903         * lib/parse-datetime.y (parse_datetime2): If we parse
18904         all of the input but determine it's invalid, ensure
18905         we don't output the now invalid input pointer.
18906         This issue was seen with `date -d 'now +1'`.
18908 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18910         flexmember: new macro FLEXALIGNOF
18911         * lib/flexmember.h: Include <stddef.h>, for offsetof.
18912         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
18913         this macro.  Update comments.
18915 2016-09-07  Jim Meyering  <meyering@fb.com>
18917         getprogname: port to systems with __argv (mingw, msvc)
18918         * lib/getprogname.c (getprogname): Include "dirname.h" and use
18919         last_component: more general than open coding it with hard-coded "/".
18920         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
18921         * modules/getprogname (Depends-on): Add dirname-lgpl.
18922         (configure.ac): Check for __argv in <stdlib.h>.
18923         * modules/getprogname-tests: New file.
18924         * tests/test-getprogname.c: New file.
18925         Suggested by Gisle Vanem in
18926         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
18928 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18930         flexmember: port better to GCC + valgrind
18931         With a char[] flexible array member in a struct with nontrivial
18932         alignment, GCC-generated code can access past the end of the
18933         array, because GCC assumes there are padding bytes to get the
18934         struct aligned.  So the common idiom of malloc (offsetof (struct
18935         s, m), n) does not properly allocate an n-byte trailing member, as
18936         malloc’s argument should be the next multiple of alignof (struct s).
18937         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
18938         Although C11 apparently permits this GCC optimization (i.e., there
18939         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
18940         See the thread containing:
18941         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
18942         * lib/flexmember.h: New file.
18943         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
18944         * lib/localename.c, lib/time_rz.c:
18945         Include flexmember.h.
18946         * lib/fnmatch_loop.c (struct patternlist):
18947         * lib/localename.c (struct hash_node):
18948         Use FLEXIBLE_ARRAY_MEMBER.
18949         * lib/fnmatch_loop.c (EXT):
18950         * lib/fts.c (fts_alloc):
18951         * lib/glob.c (glob_in_dir):
18952         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18953         * lib/localename.c (gl_lock_define_initialized):
18954         * lib/time_rz.c (tzalloc):
18955         Use FLEXSIZEOF instead of offsetof.
18956         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18957         Check that the size of the struct can be taken.
18958         * modules/flexmember (Files): Add lib/flexmember.h.
18959         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
18960         Add flexmember.
18962 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18964         getprogname: port to Solaris 10
18965         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
18966         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
18967         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
18969         stdalign: correct mistake in alignof doc
18970         Problem reported by Joseph Myers in:
18971         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
18972         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
18973         alignof(S) where S is a structure containing a flexible array
18974         member.  The Gnulib substitute does not support this, but C11 does.
18976 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
18978         main.mk: remove sc_program_name, since there is no more need to
18979         use set_program_name in tools (getprogname is enough for most
18980         of the cases).
18981         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
18982         * top/maint.mk (sc_program_name): Remove.
18984 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
18986         Port tests away from progname, since modules that need the
18987         program name already depend on getprogname.
18988         * modules/acl-tests (Depends-on): Remove progname.
18989         * modules/argmatch (Depends-on): Likewise.
18990         * modules/argmatch-tests (Depends-on): Likewise.
18991         * modules/argp-tests (Depends-on): Likewise.
18992         * modules/argp-version-etc-tests (Depends-on): Likewise.
18993         * modules/array-list-tests (Depends-on): Likewise.
18994         * modules/array-oset-tests (Depends-on): Likewise.
18995         * modules/avltree-list-tests (Depends-on): Likewise.
18996         * modules/avltree-oset-tests (Depends-on): Likewise.
18997         * modules/avltreehash-list-tests (Depends-on): Likewise.
18998         * modules/carray-list-tests (Depends-on): Likewise.
18999         * modules/copy-file-tests (Depends-on): Likewise.
19000         * modules/exclude-tests (Depends-on): Likewise.
19001         * modules/fchownat-tests (Depends-on): Likewise.
19002         * modules/fdopendir-tests (Depends-on): Likewise.
19003         * modules/filenamecat-tests (Depends-on): Likewise.
19004         * modules/fstatat-tests (Depends-on): Likewise.
19005         * modules/fstrcmp-tests (Depends-on): Likewise.
19006         * modules/linked-list-tests (Depends-on): Likewise.
19007         * modules/linkedhash-list-tests (Depends-on): Likewise.
19008         * modules/mkdirat-tests (Depends-on): Likewise.
19009         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
19010         * modules/nonblocking-socket-tests (Depends-on): Likewise.
19011         * modules/obstack-printf-tests (Depends-on): Likewise.
19012         * modules/openat-tests (Depends-on): Likewise.
19013         * modules/parse-datetime-tests (Depends-on): Likewise.
19014         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
19015         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
19016         * modules/quotearg-simple-tests (Depends-on): Likewise.
19017         * modules/quotearg-tests (Depends-on): Likewise.
19018         * modules/rbtree-list-tests (Depends-on): Likewise.
19019         * modules/rbtree-oset-tests (Depends-on): Likewise.
19020         * modules/rbtreehash-list-tests (Depends-on): Likewise.
19021         * modules/spawn-pipe-tests (Depends-on): Likewise.
19022         * modules/system-quote-tests (Depends-on): Likewise.
19023         * modules/uniname/uniname-tests (Depends-on): Likewise.
19024         * modules/uninorm/nfc-tests (Depends-on): Likewise.
19025         * modules/uninorm/nfd-tests (Depends-on): Likewise.
19026         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
19027         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
19028         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
19029         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
19030         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
19031         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
19032         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
19033         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
19034         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
19035         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
19036         * modules/unlinkat-tests (Depends-on): Likewise.
19037         * modules/version-etc-tests (Depends-on): Likewise.
19038         * modules/xalloc-die-tests (Depends-on): Likewise.
19039         * modules/xmemdup0-tests (Depends-on): Likewise.
19040         * modules/xprintf-posix-tests (Depends-on): Likewise.
19041         * modules/xvasprintf-tests (Depends-on): Likewise.
19042         * tests/test-argmatch.c: Do not include progname.h.
19043         (main) Stop calling set_program_name.
19044         * tests/test-argp-version-etc.c: Likewise.
19045         * tests/test-argp.c: Likewise.
19046         * tests/test-argv-iter.c: Likewise.
19047         * tests/test-array_list.c: Likewise.
19048         * tests/test-array_oset.c: Likewise.
19049         * tests/test-avltree_list.c: Likewise.
19050         * tests/test-avltree_oset.c: Likewise.
19051         * tests/test-avltreehash_list.c: Likewise.
19052         * tests/test-carray_list.c: Likewise.
19053         * tests/test-copy-acl.c: Likewise.
19054         * tests/test-copy-file.c: Likewise.
19055         * tests/test-exclude.c: Likewise.
19056         * tests/test-fchownat.c: Likewise.
19057         * tests/test-fdopendir.c: Likewise.
19058         * tests/test-filenamecat.c: Likewise.
19059         * tests/test-fstatat.c: Likewise.
19060         * tests/test-fstrcmp.c: Likewise.
19061         * tests/test-linked_list.c: Likewise.
19062         * tests/test-linkedhash_list.c: Likewise.
19063         * tests/test-mkdirat.c: Likewise.
19064         * tests/test-nonblocking-pipe-main.c: Likewise.
19065         * tests/test-nonblocking-socket-main.c: Likewise.
19066         * tests/test-obstack-printf.c: Likewise.
19067         * tests/test-openat.c: Likewise.
19068         * tests/test-parse-datetime.c: Likewise.
19069         * tests/test-pipe-filter-gi1.c: Likewise.
19070         * tests/test-pipe-filter-gi2-main.c: Likewise.
19071         * tests/test-pipe-filter-ii1.c: Likewise.
19072         * tests/test-pipe-filter-ii2-main.c: Likewise.
19073         * tests/test-quotearg-simple.c: Likewise.
19074         * tests/test-quotearg.c: Likewise.
19075         * tests/test-rbtree_list.c: Likewise.
19076         * tests/test-rbtree_oset.c: Likewise.
19077         * tests/test-rbtreehash_list.c: Likewise.
19078         * tests/test-sameacls.c: Likewise.
19079         * tests/test-set-mode-acl.c: Likewise.
19080         * tests/test-spawn-pipe-main.c: Likewise.
19081         * tests/test-system-quote-main.c: Likewise.
19082         * tests/test-unlinkat.c: Likewise.
19083         * tests/test-version-etc.c: Likewise.
19084         * tests/test-xalloc-die.c: Likewise.
19085         * tests/test-xfprintf-posix.c: Likewise.
19086         * tests/test-xmemdup0.c: Likewise.
19087         * tests/test-xprintf-posix.c: Likewise.
19088         * tests/test-xvasprintf.c: Likewise.
19089         * tests/uniname/test-uninames.c: Likewise.
19090         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19091         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19092         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19093         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19094         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19095         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19096         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19097         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19098         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19099         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19100         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19101         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19102         * tests/test-c-stack.c: (program_name): Do not define.
19103         (main): Do not set program_name.
19104         * tests/test-closein.c: Likewise.
19105         * tests/test-xstrtol.c: Likewise.
19106         * tests/test-yesno.c: Likewise.
19108 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19110         Port modules to use getprogname explicitly, instead of requiring
19111         progname to be used (or program_name to be provided).
19112         * lib/argmatch.c: Do not include progname.h.
19113         [TEST] (program_name): Do not define.
19114         [TEST] (main): Call getprogname instead of using program_name.
19115         * lib/c-stack.c: Do not include progname.h.
19116         (program_name): Do not define.
19117         (die): Call getprogname instead of using program_name.
19118         * lib/chdir-long.c: Do not include progname.h.
19119         [TEST_CHDIR] (main): Do not set program_name.
19120         * lib/error.c [!_LIBC]: Include progname.h.
19121         [!_LIBC] (program_name): Define using getprogname.
19122         * lib/euidaccess.c: Do not include progname.h.
19123         [TEST] (main): Do not set program_name.
19124         * lib/git-merge-changelog.c: Include getprogname.h instead of
19125         progname.h.
19126         (usage): Call getprogname instead of using program_name.
19127         (main): Likewise.  Stop calling set_program_name.
19128         * lib/group-member.c: Do not include progname.h.
19129         [TEST] (main): Do not set program_name.
19130         * modules/argmatch (Depends-on): Add getprogname.
19131         * modules/c-stack (Depends-on): Likewise.
19132         * modules/error (Depends-on): Likewise.
19133         * modules/git-merge-changelog (Depends-on): Likewise.
19134         Also remove progname.
19136 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
19138         * NEWS: Document the deprecation of the 'progname' module.
19140 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
19142         getprogname: new module
19143         This provides a LGPL module for getting the name of the current
19144         program, using the same API found on *BSD systems.
19145         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
19146         * modules/getprogname: New files.
19147         * MODULES.html.sh (Misc): Add getprogname.
19149 2016-09-02  Jim Meyering  <meyering@fb.com>
19151         manywarnings: add -fno-common
19152         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
19153         to the list.  Quoting the manual, "Compiling with -fno-common is
19154         useful on targets for which it provides better performance, or if
19155         you wish to verify that the program will work on other systems that
19156         always treat uninitialized variable declarations this way [putting
19157         it in the data section]."  If diffutils had been using this sooner,
19158         it would have prevented this duplicate declaration issue:
19159         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
19161 2016-08-31  Simon Josefsson  <simon@josefsson.org>
19163         parse-datetime: Fix typo.
19164         * lib/parse-datetime.y (parse_datetime2): Fix typo.
19166 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19168         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
19169         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
19170         GCC 5 and 6 that have __builtin_sub_overflow but not
19171         __builtin_sub_overflow_p.  With the recent changes, these
19172         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
19173         implementation than with INT_SUBTRACT_OVERFLOW implementation,
19174         since the former needs just one runtime comparison whereas the
19175         latter needs two.
19177         strverscmp: sync with glibc
19178         Although this doesn't exactly synchronize with glibc
19179         byte-for-byte, it makes the code behave the same as glibc.
19180         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
19181         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
19182         difference shouldn't matter in practical use.  All uses changed
19183         back to isdigit.
19184         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
19185         (next_state): Now unsigned char array; redo elements.
19186         (result_type): Now signed char array; redo elements.
19187         (__strverscmp): Fix glibc bug 9913 by using new states.
19188         * tests/test-strverscmp.c (main): Test glibc bug 9913.
19190 2016-08-29  Jim Meyering  <meyering@fb.com>
19192         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
19193         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
19194         similarly to how it was done to intprops.h.
19196 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19198         intprops.h: port recent changes to GCC 6.2.0
19199         * lib/intprops.h (__has_builtin): Move earlier.
19200         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
19201         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
19202         the last argument can be null.  All uses changed.
19203         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
19204         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19205         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
19206         and it's not clear which GCC versions it works for.
19207         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
19208         its definiens.
19210         intprops.h: use __typeof__ with GCC 7
19211         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
19212         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
19213         This avoids computing the expression's value (which might overflow!).
19215 2016-08-29  Jim Meyering  <meyering@fb.com>
19217         intprops.h, xalloc-oversized.h: work with gcc 7
19218         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
19219         __builtin_mul_overflow each accept a NULL pointer as the third
19220         argument.  However in gcc 7, that is no longer accepted.
19221         Instead, one must use the "_p"-suffixed names, with which, the
19222         third parameter is no longer a pointer.
19223         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
19224         the definition: not true for gcc 7 and subsequent.
19225         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
19226         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19227         Provide new definitions for gcc 7 and subsequent.
19228         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
19229         that works with gcc-7.
19231         intprops.h: fix missing-backslash problems
19232         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
19233         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
19235 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19237         intprops: fix paren typo on old platforms
19238         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
19239         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
19240         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
19241         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
19242         && !defined LLONG_MAX]:
19243         Remove stray paren.
19245         intprops: port to OpenVMS
19246         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
19247         * doc/posix-headers/limits.texi: Document the problem.
19248         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
19249         Define if not already defined.
19251 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
19253         parse-datetime: improve debug implementation
19254         Follow-up to commit 12ad79069 ("add optional debug printing").
19255         Improve parse-datetime's debug implementation: remove macros,
19256         replace global debug flag variable with a function parameter,
19257         use nstrftime for formatting.
19258         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
19259         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
19260         (parse_datetime2): New function, accepts 'flags' parameter, supporting
19261         debug flag. Existing interface 'parse_datetime' left unmodified.
19262         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
19263         (struct parser_control): add 'parse_datetime_debug' member variable.
19264         (parse_datetime): Call new function 'parse_datetime2' without debug.
19265         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
19266         pc.parse_datetime_debug variable as needed.
19267         (to_year): Accept new flags parameter, instead of using global variable.
19268         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
19269         use struct 'debug' variable instead of global variable.
19270         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
19271         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
19272         correspnding functions directly instead of using macros.
19273         * modules/parse-datetime: Add gnulib's strftime module.
19275 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
19277         c-strcase-tests: port to EBCDIC
19278         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
19279         which assume ASCII encoding semantics to run only in ASCII
19280         mode, as they fail in EBCDIC.
19282         sigpipe-tests: fix typo
19283         * tests/test-sigpipe.sh: C, not B.
19285 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19287         canonicalize-lgpl: fix errno after malloca fails
19288         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
19289         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
19290         * lib/canonicalize-lgpl.c (__realpath):
19291         Don't assume malloca sets errno on failure.
19293 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19295         strtod: port errno handling to z/OS
19296         * lib/strtod.c (strtod): Save and restore errno more reliably.
19298 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19300         strtod: port to z/OS
19301         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19302         implementation.
19304 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19306         strtod: port to z/OS
19307         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
19308         implementation.
19310         regex, string: rename to avoid '__string'
19311         * lib/regex.h, lib/string.in.h: Do not use the identifier
19312         '__string', as it is effectively reserved by string.h on z/OS.
19314         c-strcase-tests, wcwidth-tests: depend on c-ctype
19315         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
19316         Add c-ctype.
19318 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
19320         thread: port to z/OS
19321         * lib/glthread/thread.c, lib/glthread/thread.h:
19322         Rudimentary gl_thread support for z/OS.
19324         maint: port tests to z/OS errno behavior
19325         * tests/test-nonblocking-reader.h:
19326         * tests/test-nonblocking-writer.h:
19327         Accommodate z/OS errno code preferences. (I believe this should
19328         still be within spec; IBM is good at following the letter if not
19329         the spirit of such things.)
19331         maint: preprocessor changes to support z/OS
19332         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
19333         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
19334         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
19335         * tests/test-nonblocking-pipe.h:
19337         fclose, strstr-simple, wchar: port to z/OS
19338         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
19339         Changes to the Autoconf M4 code to support z/OS.  Note that
19340         fclose() is broken in a different way on z/OS than it is on other
19341         systems, thus the special-case in fclose.m4.
19343         iconv_open-utf-tests, iconv-tests: port to EBCDIC
19344         * tests/test-iconv-utf.c, tests/test-iconv.c:
19345         Added appropriately conditional #pragmas so that the test strings
19346         in test-iconv-utf.c are correctly interpreted in ASCII instead of
19347         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
19348         addressed in a more portable way by simply rewriting all the ASCII
19349         literal characters as octal escapes, but then you would lose the
19350         partial readability that the strings have now. Also, iconv_open()
19351         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
19353         c-strcase-tests, wcwidth-tests: port to EBCDIC
19354         * tests/test-c-strcasecmp.c: Include c-ctype.h.
19355         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
19356         * tests/test-wcwidth.c: Likewise.
19358 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19360         stdbool: don't require _Bool for C++
19361         Problem reported by David Seifert in:
19362         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
19363         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
19364         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
19365         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
19366         stricter about checking that bool and _Bool are compatible in C.
19368 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19370         getdelim: remove dependency on realloc-posix
19371         * lib/canonicalize-lgpl.c (alloc_failed)
19372         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
19373         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
19374         Use __set_errno where needed, for consistency.
19375         * lib/getdelim.c (alloc_failed): New function.
19376         (getdelim): Use it.
19378 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
19380         parse-datetime: add optional debug printing
19381         Print parsing information, warnings, and errors to stderr.
19382         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
19383         * lib/parse-datetime.y:
19384         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
19385         (PROGRESS*): Same as DEBUG, for progress reporting.
19386         (dbg_printf): Print message to stderr, with 'date' prefix.
19387         (struct parser_control): Add 'debug_*_seen' variables.
19388         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
19389         (debug_print_current_time, debug_print_relateive_time): Prints the
19390         current/relative date/time value of parser_control.
19391         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
19392         (to_year): Warn about 2-digit year parsing.
19393         (yylex):   Warn about unrecognized words.
19394         (get_effective_timezone): Returns current timezone in minutes.
19395         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
19396         clearly and unambigiously as possible.
19397         (debug_mktime_not_ok): Print detailed information about failed
19398         date/time values.
19399         (parse_datetime): Add DEBUG messages for failures, warnings. Add
19400         PROGRESS messages for status messages.
19401         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
19403 2016-08-06  Jim Meyering  <meyering@fb.com>
19405         tests/init.sh: exclude dash with bad "local" semantics
19406         * tests/init.sh (gl_shell_test_script_): Add a function to
19407         eliminate a shell like "dash" (unlike bash, zsh) that has
19408         surprising/risky "local var='...'" semantics.  Inspired by
19409         the problem and discussion in https://bugs.gnu.org/24116#11.
19411 2016-08-02  Ján Tomko  <jtomko@redhat.com>
19413         maint.mk: expand the prohibit_doubled_word regex
19414         This check has a static list of words that are checked for
19415         repetitions.  Expand it before running the perl script to
19416         avoid using expensive captures.  This decreases the cost
19417         for libvirt from 1.66s to 0.66s.
19418         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
19419         (sc_prohibit_doubled_word): Use it.
19421 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19423         useless-if-before-free: skip non-matching lines early
19424         * build-aux/useless-if-before-free: First match each line with the
19425         simple/quick /\bif\b/ and reject if there is no match. This often
19426         saves the cost of the much more involved regular expression.
19427         For libvirt, this decreases the cost from 1.44s to 1.02s.
19429 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19431         maint.mk: speed up sc_po_check
19432         sc_po_check would skip files based on their names, or on the
19433         existence of files with derived names. Rewrite it to use perl
19434         instead of shell to make the check faster.
19435         * top/maint.mk (perl_translatable_files_list_): Define.
19436         (sc_po_check): Use it.
19438 2016-07-30  Ján Tomko  <jtomko@redhat.com>
19440         maint.mk: speed up require_config_h_first
19441         Instead of spawning three processes per file,
19442         rewrite the check in perl and run it once for all the files.
19443         * top/maint.mk (perl_config_h_first_): Define.
19444         (sc_require_config_h_first): Use it in place of shell code.
19446 2016-07-26  Ján Tomko  <jtomko@redhat.com>
19448         maint.mk: speed up sc_po_check
19449         sc_po_check would skip files based on their names, or on the
19450         existence of files with derived names. Rewrite it to use perl
19451         instead of shell to make the check faster.
19452         * top/maint.mk (perl_translatable_files_list_): Define.
19453         (sc_po_check): Use it.
19455 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19457         obstack: pacify GCC 6 with -Wnull-dereference
19458         Problem reported by Assaf Gordon in:
19459         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
19460         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
19461         Declare with __attribute_noreturn__.
19462         * lib/obstack.h (__attribute_noreturn__): New macro.
19464 2016-07-13  Eric Blake  <eblake@redhat.com>
19466         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
19467         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
19468         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
19470 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19472         doc: mention glibc SSIZE_MAX buglet
19473         * doc/posix-headers/limits.texi (limits.h): Document the bug.
19475 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
19477         printf-posix: Fix mingw build
19478         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
19479         expression for detecting C symbol prefixes but forgot to qoute square
19480         brackets in the command line arguments for grep.  That way when
19481         building with mingw the condition was false although it ought to be
19482         true instead.  In particular scenarios this led to the following
19483         compile error:
19485             Cannot export rpl_printf: symbol not found
19486             Cannot export rpl_scanf: symbol not found
19487             collect2: error: ld returned 1 exit status
19489         Fix this by properly quoting square brackets.
19491 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
19493         mktime: call tzset as per POSIX
19494         Problem reported by Ludovic Courtès in:
19495         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
19496         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
19497         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
19499 2016-06-26  Pádraig Brady  <P@draigBrady.com>
19501         fts: handle readdir() errors
19502         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
19503         but also upon error when it will also set errno.  Therefore
19504         flag the error case from readdir().  We treat the case where
19505         no items are read the same as if the dir can't be accessed,
19506         i.e. by setting fts_errno to FTS_DNR.
19508 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19510         intprops: port better to GCC 7
19511         GCC 7 __builtin_add_overflow supports a new usage form, where the
19512         last argument is a null pointer, and which merely returns 1 if an
19513         overflow would occur.  This is a constant expression if all
19514         arguments are constants, and should generate faster code when code
19515         needs to be generated.
19516         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
19517         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
19518         Use builtin operations if available.
19519         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
19520         operations are available, as it's almost surely faster.
19522 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19524         intprops-test: port to GCC 6
19525         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
19526         since the bug is not fixed in GCC 6.1.
19528 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19530         xalloc-oversized: port to GCC 7; fewer warnings
19531         GCC 7 will have a better way to deal with integer overflow.
19532         Plus, fix a warnings problem reported by Tim Ruehsen in:
19533         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
19534         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
19535         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
19536         For GCC 5, use __xalloc_oversized if both args are constants,
19537         or if pedantic.
19539 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19541         regex: port to Sun C
19542         Reported by Daiki Ueno.
19543         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
19544         __restrict, in prototype.  This fixes a problem I introduced in
19545         the 2016-02-19 merge from glibc.
19547 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
19549         stdbool: Restore __bool_true_false_are_defined check
19550         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
19551         __bool_true_false_are_defined is still defined, even with C++11.
19553 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
19555         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
19556         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
19558 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
19560         Use GCC_LINT, not lint
19561         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
19562         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
19563         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
19564         Document problem with lint and _Noreturn.
19565         * lib/diffseq.h (IF_LINT, IF_LINT2):
19566         * lib/fts.c (sccsid):
19567         * lib/getndelim2.c (IF_LINT):
19568         * lib/gl_anylinked_list2.h (gl_linked_iterator)
19569         (gl_linked_iterator_from_to):
19570         * lib/gl_anytree_list2.h (gl_tree_iterator)
19571         (gl_tree_iterator_from_to):
19572         * lib/gl_anytree_oset.h (gl_tree_iterator):
19573         * lib/gl_array_list.c (gl_array_iterator)
19574         (gl_array_iterator_from_to):
19575         * lib/gl_array_oset.c (gl_array_iterator):
19576         * lib/gl_carray_list.c (gl_carray_iterator)
19577         (gl_carray_iterator_from_to):
19578         * lib/idcache.c:
19579         * lib/inet_ntop.c (IF_LINT):
19580         * lib/regcomp.c (build_charclass_op, create_tree):
19581         * lib/regex_internal.c (re_acquire_state)
19582         (re_acquire_state_context):
19583         * lib/trigl.c (rcsid):
19584         * lib/trim.c (IF_LINT):
19585         * lib/vasnprintf.c (IF_LINT):
19586         * lib/verify.h (assume):
19587         Treat GCC_LINT like lint.
19589 2016-05-29  Bruno Haible  <bruno@clisp.org>
19591         secure_getenv: Port to many more platforms.
19592         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
19593         functions.
19594         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
19595         for non-BSD Unix platforms and for native Windows.
19596         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
19597         Prompted by a request from Nikos Mavrogiannopoulos.
19599 2016-05-27  Eric Blake  <eblake@redhat.com>
19601         canonicalize: Fix broken probe for realpath.
19602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
19603         in logic introduced in 54615b95.
19605 2016-05-26  Eric Blake  <eblake@redhat.com>
19607         unsetenv: relax to LGPLv2+
19608         * modules/unsetenv (License): Match setenv license.
19610 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
19612         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
19613         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
19614         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
19615         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
19616         (commonarg, dirargs, dirs, infoarg, generate_ascii)
19617         (generate_html, generate_info, generate_tex, outdir)
19618         (source_extra, split, srcfile, texarg): Move above 'version'.
19619         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
19621 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19623         manywarnings: update for GCC 6.1
19624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19625         Add GCC 6.1 options that apply to C.
19626         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
19627         do not apply to C, are obsolescent, etc.
19629 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
19631         glob: size_t overflow checks
19632         * lib/glob.c (__has_builtin): New macro.
19633         (size_add_wrapv, glob_use_alloca): New static functions.
19634         (glob, glob_in_dir): Check for size_t overflow in several places,
19635         and fix some size_t checks that were not quite right.
19637         glob: don't assume INT_MAX < SIZE_MAX
19638         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
19639         latter is not portable to (probably theoretical) hosts where
19640         SIZE_MAX <= INT_MAX.
19642 2016-05-09  Bruno Haible  <bruno@clisp.org>
19644         Fix undefined behaviour in gettext.h.
19645         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
19646         pointer's value after the storage it points to has been freed.
19647         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
19648         Spotted by Coverity.
19650 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19652         git-version-gen: avoid undefined shift
19653         Problem reported by Mosè Giordano in:
19654         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
19655         * build-aux/git-version-gen: Avoid undefined behavior if invoked
19656         with --prefix or --fallback but without a later argument.  While
19657         we're at it, omit unnecessary quotes.
19659 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
19661         glob: merge glibc changes into lib/glob.c
19662         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
19663         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
19664         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
19665           struct dirent [BZ #19779]
19666         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
19667           callback gl_readdir
19668         2015-10-20 Convert miscellaneous function definitions to prototype style
19669         2015-10-20 Convert 113 more function definitions to prototype style
19670           (files with assertions)
19671         2015-06-12 Fix getlogin_r namespace (bug 18527).
19672         2014-02-10 Use glibc_likely instead __builtin_expect.
19673         2013-10-20 When glob pattern contains a trailing slash match only
19674           directories. Fixes bug 10278.
19675         2013-09-04 glob: silence -Wattribute warnings
19676         2013-06-07 Avoid use of "register" as optimization hint.
19677         2012-09-25 Use size_t instead of int for internal variables in glob
19678           (bug 14621)
19679         2011-07-20 Check for overflows in expressions
19680         2011-05-28 Remove unused variable
19681         2011-05-22 Add a few more alloca size checks
19682         2010-03-27 Whitespace fixes
19683         2010-03-27 Fix one more issue with the glob patch
19684         2010-03-24 Fix glob with empty pattern
19685         2008-05-27 Remove useless more "if" tests before "free"
19686         * modules/glob (Depends-on): Add stdint.
19688 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19690         mktime: port to stricter signed overflow checking
19691         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
19692         (long_int): Require width for INT_MAX * 3 * (seconds per year),
19693         instead of merely for INT_MAX * 2.  In practice platforms that
19694         do the latter also do the former.
19695         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
19696         (shr): New static function, replacing SHR.  All uses changed.
19697         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
19698         and TIME_T_MAX.  All uses changed.
19699         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
19700         Use long_int, not time_t.
19701         (long_int_avg): New static function, replacing time_t_avg.
19702         All uses changed.  Round toward positive infinity, as that
19703         generates slightly better code.
19704         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
19705         by INT_ADD_WRAPV.
19706         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
19707         (convert_time): New static function.
19708         (ranged_convert): Use it
19709         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
19710         Use simpler test for loop exit.
19711         (__mktime_internal): Store negative of guessed offset, to simplify
19712         overflow checking.  Remove no-longer-needed test for small time_t
19713         overflows.
19715         mktime: speed up DEBUG_MKTIME benchmarks
19716         Call tzset just once, at the start, rather than for every test
19717         case.  This lets us measure the CPU cost of mktime as opposed to
19718         that of tzset.  This is relevant when TZ is not set and glibc is
19719         being used.  This speeds up tests by a factor of 40 on my Fedora
19720         23 x86-64 platform.
19721         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
19722         to call tzset and as a sanity check.  Later on, use localtime_r
19723         instead of localtime.
19725         mktime: resurrect DEBUG_MKTIME testing
19726         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
19727         Include <string.h>, for strcmp.
19729         mktime: simplify DEBUG_MKTIME
19730         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
19731         Simplify later usage accordingly.
19733         Port mktime_internal offset to unsigned time_t
19734         This avoids some assumptions about wraparound arithmetic on
19735         signed integer overflow.
19736         * lib/mktime-internal.h (mktime_offset_t): New type.
19737         (mktime_internal): Use it in decl.
19738         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
19740         * lib/mktime.c (__mktime_internal, localtime_offset):
19741         * lib/timegm.c (timegm): Use it.
19742         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
19743         (gl_FUNC_MKTIME): Require it.
19745 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19747         xstrtol: prohibit monstrosities like "1bB"
19748         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
19749         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
19750         "B" only if the first suffix needs a base.
19751         * tests/test-xstrtol.sh: Test this.
19753 2016-04-21  Pádraig Brady  <P@draigBrady.com>
19755         xstrtod: reinstate setting of *result upon ERANGE
19756         * lib/xstrtod.c (XSTRTOD): The user may decide to use
19757         the returned limits upon ERANGE, so allow and document that.
19759 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
19761         xstrtod: modify *result only if no errors
19762         * lib/xstrtod.c (XSTRTOD).
19764 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19766         btowc: document problems in C locale
19767         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
19768         with mbrtowc.  See: http://bugs.gnu.org/23269#32
19770 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19772         mktime: improve integer overflow checking
19773         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
19774         (WRAPV): Remove; no longer needed.
19775         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
19776         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
19777         Remove.  Use intprops.h defns instead.
19778         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
19779         Use bool for Boolean, for clarity.
19780         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
19781         detect integer overflow.
19782         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
19784         intprops: check two's complement assumption
19785         Suggested by Eric Blake in:
19786         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
19787         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
19788         short, int, long, and (if available) long long are two's complement.
19789         * modules/intprops (Depends-on): Add 'verify'.
19791         intprops, mktime, strtol: assume two's complement
19792         These macros were not portable to every conforming C11 ones'
19793         complement platform.  It's not worth the hassle of porting to some
19794         platforms that use ones' complement or signed magnitude, as such
19795         platforms are almost purely theoretical nowadays and porting even
19796         to some of them makes the code harder to review for little
19797         practical benefit.  Problem reported by Florian Weimer in:
19798         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
19799         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
19800         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
19801         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
19802         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
19803         (TYPE_SIGNED_MAGNITUDE):
19804         Remove.  All uses rewritten to assume two's complement, which is
19805         all we can reasonably test nowadays anyway.
19806         * top/maint.mk (_intprops_names): Remove the removed macros.
19808 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19810         stdint: port to strict C11 left shift
19811         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
19812         Pacify clang -Wshift-negative-value, which should be an issue only
19813         on clang setups where stdint.h does not conform to C11 or to C++11.
19814         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
19816 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
19818         mbrtowc: work around glibc bug#19932
19819         Fix mbrtowc so that it never returns -1 in the C locale,
19820         as this conflicts with a future version of POSIX
19821         http://austingroupbugs.net/view.php?id=663#c2738
19822         and causes problems with GNU grep: http://bugs.gnu.org/23234
19823         See glibc bug 19932:
19824         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
19825         * doc/posix-functions/mbrlen.texi (mbrlen):
19826         * doc/posix-functions/mbrtowc.texi (mbrtowc):
19827         Document the glibc bug.
19828         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
19829         Include hard-locale.h, locale.h.
19830         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
19831         if the bug is possible.
19832         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
19833         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
19834         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
19835         * modules/mbrtowc (Depends-on): Add hard-locale.
19836         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
19837         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
19838         * tests/test-mbrtowc5.sh: New file.
19840 2016-04-03  Pedro Alves  <palves@redhat.com>
19842         stdint: detect good enough pre-C++11 stdint.h in C++ mode
19843         When gnulib is configured in C++ mode for a system with a working C99
19844         implementation of stdint.h that predates C++11, gnulib ends up
19845         substituting stdint.h anyway.  This works on most targets, but on e.g.,
19846         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
19847         MinGW is LLP64.  Instead of trying to detect the right types, detect
19848         good-enough-pre-C++11 stdint.h and in such case define
19849         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
19850         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
19851         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
19852         conforms to C99.  If it does, check whether it hides symbols
19853         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
19854         does, define those macros in config.h.
19856 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19858         argp: merge changes from glibc
19859         Among other things, this should fix problems found by a Coverity
19860         scan and reported by Andrei Borzenkov:
19861         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
19862         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
19863         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
19864         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
19865         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
19866         * lib/argp.h:
19867         Merge changes from glibc.
19868         * tests/test-argp-2.sh: Adjust to match new behavior.
19870 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
19872         stddef: support configuring with g++
19873         Problem reported by Ángel González in:
19874         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
19875         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
19876         Do not define if _GCC_MAX_ALIGN_T is defined.
19878 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19880         test-framework-sh: minor cleanups
19881         * tests/init.sh (testdir_prefix_): Output a trailing newline,
19882         since strictly speaking POSIX requires this.
19883         (setup_): Do not use the variable 'fail', as that makes the
19884         trace output harder to read ('fail' is typically used by
19885         tests to mean the test failed).  Treat // portably.
19886         Check that new directory is not merely a sibling of the tmp dir.
19887         Avoid unnecessary invocation of tr.
19889         test-framework-sh: revert port to NetBSD 7.0
19890         It was a false alarm; I misinterpreted Assaf Gordon's report.
19891         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
19892         Restore.
19893         (test_dir_): Adjust to mktempd_ change.
19894         (mktempd_): Restore 2nd arg.  Use -t again.
19895         (base_template_, template_, nx_): Resurrect old code.
19897         Port better to Alpine Linux
19898         Its diff implementation does not support -c, but does support -U3.
19899         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
19900         * tests/init.sh (diff_opt_): New var.
19901         (compare_): Prefer diff -U3 to diff -c to plain diff.
19903 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19905         test-framework-sh: port to NetBSD 7.0
19906         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
19907         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
19908         Remove.  All uses removed.
19909         (test_dir_): Adjust to mktempd_ change.
19910         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
19911         (base_template_, template_, nx_): Simplify by hardcoding.
19913 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
19915         gitlog-to-changelog: suppress ignored chatter
19916         * build-aux/gitlog-to-changelog: Do not warn about skipping
19917         an SHA if it would have been ignored anyway.
19919 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
19921         setlocale: add "sv" to Windows language table
19922         * lib/setlocale.c (language_table) [W32]: Add "sv".
19923         Reported in <https://savannah.gnu.org/bugs/?44588>.
19925 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19927         sys_select: port to new Cygwin
19928         Problem reported by Ken Brown in:
19929         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
19930         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
19931         diagnostics.
19933 2016-03-17  Jim Meyering  <meyering@fb.com>
19935         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
19936         * tests/test-userspec.c (main): Remove unnecessary braces and fix
19937         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
19938           test-userspec.c:176:9: error: statement is indented as if it were \
19939             guarded by... [-Werror=misleading-indentation]
19940                    {
19941                    ^
19942           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
19943                  if (!diag && !T[i].result)
19944                  ^~
19946 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19948         time_rz: port to clang -Wunused-const-variable
19949         * lib/time_rz.c (TZ): Remove.  All uses removed.
19951         std-gnu11: improve clang support
19952         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
19953         2016-03-15 Also try clang
19954         2016-03-15 Port C11 and C++11 testing to clang
19956         select: port more to Intel 2016.1.150 compiler
19957         Problem reported by Balázs Hajgató in:
19958         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
19959         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
19961 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19963         select: try to port to 2016.1.150 compiler
19964         Problem reported by Balázs Hajgató in:
19965         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
19966         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
19967         POSIX specifies 'restrict'.
19969 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19971         localename-tests: memory allocation fixes
19972         * tests/test-localename.c (test_locale_name)
19973         (test_locale_name_thread): Don't call freelocale on a locale
19974         that was the base of a successful newlocale, as that
19975         results in a double free.  Problem reported by Assaf Gordon.
19976         (test_locale_name_thread): Free saved names after use, to pacify
19977         gcc -fsanitize=address.
19979 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19981         intprops: make .h file license match module
19982         * lib/intprops.h: Change the license wording to match glibc format.
19983         This is what is in modules/intprops anyway.  See:
19984         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
19986 2016-03-08  Eric Blake  <eblake@redhat.com>
19988         acl: fix missing return on Cygwin
19989         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
19990         fall off end of function. Fixes http://bugs.gnu.org/22949
19992 2016-03-05  Bruno Haible  <bruno@clisp.org>
19994         extern-inline: port to PGI CC
19995         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
19996         keyword 'inline'.
19997         Reported by Adam James Stewart in:
19998         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
20000 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20002         signbit: port back to pre-C++11 GCC
20003         * lib/math.in.h (signbit): Do previous change only if
20004         __cplusplus < 201103.  See Jonathan Wakely in:
20005         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
20007 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
20009         mountlist: recognize autofs-mounted remote file systems, too
20010         Originally reported at: https://bugzilla.redhat.com/1309247
20011         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
20012         "-hosts" because it is used by autofs to mount remote file systems.
20014 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20016         signbit: port to C++ with GCC 6
20017         * lib/math.in.h (signbit) [__cplusplus]:
20018         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
20019         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
20021         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
20023         regex: make it closer to libc
20024         Make Idx a signed type, rather than possibly unsigned.
20025         The unsignedness was not really buying us anything, since the code
20026         overflows for other reasons before getting to PTRDIFF_MAX.  Making
20027         it signed allows us to use -1 and -2 with abandon, like libc does,
20028         thus lessening the number of differences between gnulib and libc.
20029         Also, it should help avoid gratuitous warnings like the one
20030         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
20031         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
20034         regex: merge patches from libc
20036         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
20037         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
20038         Convert miscellaneous function definitions to prototype style.
20039         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
20040         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
20041         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
20042         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
20043         (re_search_internal):
20044         Convert to prototype-style function definition.
20045         Use internal_function for internal functions.
20047 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
20049         stdalign: port to older HP and IBM cc
20050         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
20051         C compilers, by checking their version numbers.  These version
20052         numbers appear in MariaDB and in Qt code that dates way back and
20053         that conditiionally uses the 'aligned' attribute.
20055 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20057         stdalign: port to clang 3.7.0
20058         Problem reported by Herbert J. Skuhra in:
20059         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
20060         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
20061         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
20062         https://llvm.org/bugs/show_bug.cgi?id=26547
20064 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20066         readdir_r: now obsolescent
20067         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
20068         * lib/mountlist.c (read_file_system_list): Add a FIXME.
20070 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20072         misc: port better to gcc -fsanitize=address
20073         Without these patches, ./configure CFLAGS='-fsanitize=address'
20074         would compute incorrect values.  This patch fixes some (but not all)
20075         test failures with recent glibc, with this configuration.
20076         * m4/acl.m4 (gl_ACL_GET_FILE):
20077         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
20078         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
20079         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
20080         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
20081         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20082         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
20084         * m4/getline.m4 (gl_FUNC_GETLINE):
20085         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
20086         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
20087         * m4/regex.m4 (gl_REGEX):
20088         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20089         * tests/test-calloc-gnu.c (main):
20090         * tests/test-duplocale.c (main):
20091         * tests/test-getgroups.c (main):
20092         * tests/test-getline.c (main):
20093         * tests/test-inttostr.c (main):
20094         * tests/test-localename.c (test_locale_name)
20095         (test_locale_name_thread, test_locale_name_environ)
20096         (test_locale_name_default):
20097         * tests/test-regex.c (main):
20098         * tests/test-setlocale1.c (main):
20099         * tests/test-stat.h (test_stat_func):
20100         Free heap-allocated storage before exiting.
20101         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
20102         Don't match *_foo symbols inserted by AddressSanitizer.
20103         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
20105 2016-02-02  Jim Meyering  <meyering@fb.com>
20107         verify-tests: also remove stray test-verify.Tpo
20108         * modules/verify-tests (Makefile.am): Arrange for "make clean"
20109         to remove the test-verify.Tpo file that is left behind by
20110         the automake-generated rule upon compilation failure.
20111         Otherwise, that .Tpo file would cause a failed "make distcheck"
20112         at least for grep.
20114 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20116         std-gnu11: new module
20117         This makes it easier for applications to prefer C11 and C++11
20118         to older variants, when compiling C and C++ code.
20119         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
20120         a nontrivial chunk of GPLed Autoconf source code.
20121         * COPYING: Mention the m4/*.m4 copyright situation.
20122         * MODULES.html.sh (std-gnu11): New module.
20123         * m4/std-gnu11.m4, modules/std-gnu11: New files.
20125 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20127         get-permissions, strftime: fix grammar in comments
20128         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
20129         some grammar fixes Alan Mackenzie made to GNU Emacs.
20131 2016-01-25  Daiki Ueno  <ueno@gnu.org>
20133         gettext: mark as obsolete
20134         Suggested by Paul Eggert in:
20135         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
20136         * modules/gettext (Status): Mark as obsolete.
20137         (Notice): Suggest to use 'gettext-h' instead.
20138         * modules/gettext-h (Description): Suggest GNU gettext, instead of
20139         the 'gettext' module.
20141 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20143         gnulib-tool: don't give up on ln -s so easily
20144         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
20145         because an earlier one failed.  The targets could be on different
20146         file systems.  Problem reported by KO Myung-Hun in:
20147         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
20149         closedir: fix OS/2-related typos
20150         Problem reported by KO Myung-Hun in:
20151         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
20152         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
20153         in the last couple of changes.
20155 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
20157         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
20158         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
20159         copying a directory.
20161 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20163         regex: treat [x] as x if x is a unibyte encoding error
20164         Problem reported by Aharon Robbins in:
20165         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
20166         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
20167         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
20169         closedir, dirfd, opendir: port to OpenSolaris 5.10
20170         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
20171         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20172         * m4/opendir.m4 (gl_FUNC_OPENDIR):
20173         Don't use ${word##pat} substitution, as it doesn't work in
20174         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
20175         http://bugs.gnu.org/22443#11
20177 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20179         bootstrap: use American spelling
20180         * build-aux/bootstrap: Honor American spelling.
20182 2016-01-22  Karl Berry  <karl@freefriends.org>
20184         * doc/posix-functions/localtime.texi,
20185         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
20187 2016-01-21  Bruno Haible  <bruno@clisp.org>
20189         hash-pjw-bare: fix comment
20190         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
20192         wcwidth: Replace also on OpenBSD 5.8
20193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
20194         * doc/posix-functions/wcwidth.texi: Update.
20196 2016-01-20  Pádraig Brady  <P@draigBrady.com>
20198         gnu-web-doc-update: fix addition of new files
20199         If there were already added (emnpty) dirs,
20200         then cvs aborts the add with the message:
20201           cvs [add aborted]: there is a version in <./dirname> already
20202         * build-aux/gnu-web-doc-update: Add directories separately
20203         to the addition of files, to avoid the above issue
20204         impacting the addition of files.
20206 2016-01-19  Daiki Ueno  <ueno@gnu.org>
20208         utimens-tests: avoid pulling gettext .m4 files
20209         Although this is not the right fix to the original problem:
20210         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
20211         it makes it possible again for consumer projects to use arbitrary
20212         version of gettext, through the steps described at:
20213         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
20214         See here for details:
20215         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
20216         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
20217         'gettext'.
20218         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
20219         'gettext'.
20221 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20223         regex: pacify static checkers
20224         Problem and draft fix reported by Aharon Robbins in:
20225         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20226         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
20227         Clear memory to pacify static checkers.
20229         regex: fix [ diagnostic
20230         Problem and fix reported by Aharon Robbins in:
20231         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20232         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
20234         regex: fix memory leaks
20235         Problem and draft fix reported by Aharon Robbins in:
20236         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
20237         * lib/regcomp.c (build_range_exp, build_charclass_op)
20238         * lib/regex_internal.c (re_dfa_add_node):
20239         Fix memory leak on failure.
20241 2016-01-18  Pádraig Brady  <P@draigBrady.com>
20243         fts: don't unconditionally use leaf optimization for NFS
20244         NFS st_nlink are not accurate on all implementations,
20245         leading to aborts() if that assumption is made.
20246         See <https://bugzilla.redhat.com/1299169>
20247         * lib/fts.c (leaf_optimization_applies): Remove NFS from
20248         the white list, and document the issue.
20250 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20251             KO Myung-Hun  <komh@chollian.net>
20253         gnulib-tool: don't assume ln -s works
20254         * gnulib-tool (func_ln_s): New function.
20255         (func_ln): Use it.
20257 2016-01-15  KO Myung-Hun  <komh@chollian.net>
20259         utimes: detect utimes() correctly on OS/2 kLIBC
20260         utimes() of OS/2 kLIBC has some limitations.
20261         1. OS/2 itself supports a file date since 1980 year in local time.
20262         2. OS/2 itself supports only even seconds for a file time.
20263         3. utimes() of OS/2 kLIBC does not work on an opened file.
20264         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
20265         * doc/posix-functions/utimes.texi: Document the above limitations of
20266         utimes() on OS/2 kLIBC.
20268 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20269             KO Myung-Hun  <komh@chollian.net>
20271         openat_proc_name: port to OS/2 kLIBC
20272         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
20273         instead of /proc/self/fd.
20274         * lib/openat-proc.c (openat_proc_name):
20275         Don't assume file name length is less than INT_MAX.
20276         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
20278 2016-01-14  KO Myung-Hun  <komh@chollian.net>
20280         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
20281         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
20282         definitions of intptr_t and uintptr_t (which use int and unsigned)
20283         to avoid clashes with declarations of system functions like sbrk.
20284         * lib/stdint.in.h (intptr_t, uintptr_t): Check
20285         _INTPTR_T_DECLARED before defining them.
20287         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
20288         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
20289         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
20290         Declare on kLIBC.
20291         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
20292         fd associated with dirp.
20293         (_gl_register_dirp_fd): New. Register fd associated with dirp to
20294         dirp_fd_list.
20295         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
20296         (dirfd): Implemented for kLIBC.
20297         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
20298         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
20299         succeeds.
20300         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
20301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20302         (REPLACE_DIRFD): Define to 1 if replaced.
20303         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
20304         * modules/closedir (Depends-on): Add dirfd.
20305         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
20306         condition.
20307         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
20308         * modules/opendir (Depends-on): Add dirfd.
20310         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
20311         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
20312         * lib/dup.c (dup_nothrow): New.
20313         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
20314         (klibc_dup2): New.
20315         * lib/fcntl.c (klibc_fcntl): New.
20316         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
20317         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
20318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
20319         fd.
20321         pipe_filter_ii_execute: port to OS/2 kLIBC
20322         Pipes on kLIBC do not support O_NONBLOCK like Win32.
20323         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
20324         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
20325         Reuse Win32 code on OS/2 kLIBC.
20326         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
20327         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
20329         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
20330         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
20331         static inline function.  The implementation of wcwidth in wcwidth.c
20332         causes a "conflicting types" error.
20333         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
20335         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
20336         spawn() on OS/2 kLIBC is not silly like one on Windows
20337         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
20338         empty string on OS/2 kLIBC.
20340         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
20341         On OS/2 kLIBC, select() works only on sockets.
20342         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
20344         binary-io: don't put fd in binary mode if it is a console on EMX
20345         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
20346         a console on EMX.
20348 2016-01-15  Pádraig Brady  <P@draigBrady.com>
20350         doc: mention unfixed issues with unsupported localtime() values
20351         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
20352         returns nonsense for localtime(2^56).
20353         * doc/posix-functions/localtime_r.texi: Likewise.
20355 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20357         doc: mention setlocale() issues on OpenBSD
20358         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
20359         never fails, and the need to check categories individually.
20361 2016-01-14  Pádraig Brady  <P@draigBrady.com>
20363         sig2str: list all signals on FreeBSD >= 7
20364         FreeBSD >= 7 is contravening POSIX by not defining NSIG
20365         to the maximal statically defined signal value.
20366         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
20367         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
20368         where available, even when NSIG is defined.
20370 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20372         acl-permissions: port to USE_ACL==0 platforms
20373         I ran into this problem when building bleeding-edge GNU Emacs
20374         with gcc -fsanitize=address on Fedora 23.  On this platform
20375         the ACL library does not pass the 'configure' test and Emacs
20376         then does not build due in part to what appear to be typos in the
20377         ACL part of Gnulib.
20378         * lib/acl-internal.c (free_permission_context):
20379         * lib/acl-internal.h (struct permission_context):
20380         Test whether USE_ACL is nonzero, not whether it is defined.
20382 2016-01-12  Martin Sebor  <msebor@redhat.com>
20384         mktime: rename macro to avoid glibc clash
20385         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
20386         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
20388 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20390         Port "$@" to OpenIndiana ksh93
20391         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
20392         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
20393         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
20394         bug long-dead shells, so remove the workaround.
20395         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
20396         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20397         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
20398         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
20399         Use "$@" instead of ${1+"$@"}.
20401         Port Universal Time settings to strict POSIX
20402         * build-aux/announce-gen, build-aux/bootstrap:
20403         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
20404         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
20405         * build-aux/gnupload, build-aux/mkinstalldirs:
20406         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20407         * build-aux/update-copyright, build-aux/useless-if-before-free:
20408         * build-aux/vc-list-files, tests/test-strftime.c:
20409         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
20410         but POSIX says the behavior of TZ="UTC" is undefined.
20412 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20414         msvc-inval: fix problem with unset shell var
20415         Problem reported by Karl Berry in:
20416         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
20417         * modules/msvc-inval (Depends-on):
20418         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
20419         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
20421 2016-01-01  Pádraig Brady  <P@draigBrady.com>
20423         tests: for compare_(), use cmp -s where available
20424         * tests/init.sh (compare_): Only fall back to cmp without
20425         the POSIX defined -s option, where this is not available.
20427 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20429         version-etc: new year
20430         * build-aux/gendocs.sh (version):
20431         * doc/gendocs_template:
20432         * doc/gendocs_template_min:
20433         * doc/gnulib.texi:
20434         * lib/version-etc.c (COPYRIGHT_YEAR):
20435         Update copyright dates by hand in templates and the like.
20436         * all files: Run 'make update-copyright'.
20438 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
20440         human: fix output buffer overrun by 1
20441         * lib/human.c (human_readable): Fix off-by-one typo in buffer
20442         calculation that could lead to a one-byte buffer overrun.
20444 2015-12-28  Daiki Ueno  <ueno@gnu.org>
20446         maint: fix operator precedence in mbrtowc test
20447         This is a fix for test breakage introduced by commit 45228d96; the
20448         equality expression must be parenthesized when negated with '!',
20449         otherwise we always get:
20451           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
20453         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
20454         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
20456 2015-12-23  James Youngman  <jay@gnu.org>
20458         regexprops-generic: update from regex.h
20459         * doc/regexprops-generic.texi: update by running the regexprops binary
20460         from findutils (the command line is 'regexprops "Regular Expressions"
20461         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
20462         gnulib with GNU grep had made this document out-of-date.
20464 2015-12-23  Pádraig Brady  <P@draigBrady.com>
20466         strftime-tests: avoid false failure on OS X
20467         * tests/test-strftime.c (struct localtime_rz_test): Add an
20468         ahistorical member which is used to warn rather than fail
20469         when tm_isdst isn't set for such entries.  This is the case for
20470         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
20472 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
20474         fts: ensure leaf optimization is used for NFS
20475         NFS provides usable dirent.d_type but not necessarily for all entries
20476         of large directories.  See <https://bugzilla.redhat.com/1252549>
20477         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
20479 2015-12-20  Pádraig Brady  <P@draigBrady.com>
20481         fts: enable leaf optimization for XFS
20482         XFS provides usable dirent.d_type only for DT_DIR,
20483         but the noleaf optimization still applies.
20484         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
20486 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20488         intprops: comment fix
20489         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
20490         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
20492         intprops-test: work around GCC bug 68971
20493         Problem reported by Pádraig Brady in:
20494         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
20495         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
20496         (main): Add a case that better tests 64-bit long in this area.
20498 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
20500         gnulib-tool: allow multiple --local-dir usage
20501         * gnulib-tool: Use --local-dir to construct compound
20502         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
20503         PATH_SEPARATOR early.
20504         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
20505         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
20506         func_determine_path_separator because that needs to be detected
20507         earlier now.
20508         (func_determine_path_separator): New function.
20509         (func_path_foreach, func_path_foreach_inner): New functions.
20510         (func_path_prepend, func_path_append): Likewise.
20511         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
20512         (func_lookup_file, func_all_modules): Use new functions to work
20513         with local_gnulib_path.
20514         (func_modules_in_dir, func_exists_module): New callbacks for
20515         func_path_foreach.
20516         (func_exists_module, func_get_tests_module): Likewise.
20517         (func_is_local_file, func_should_symlink): New helper methods.
20518         (func_add_file, func_update_file): Use new func_should_symlink
20519         instead, DRY.
20520         (func_reconstruct_cached_local_gnulib_path): New helper.
20521         (func_reconstruct_cached_dir): New callback.
20522         (func_import): The cached_local_gnulib_dir renamed to
20523         cached_local_gnulib_path similarly to local_gnulib_dir.
20524         Use new func_reconstruct_cached_local_gnulib_path.
20525         (func_count_relative_local_gnulib_path): New sub-method.
20526         (func_create_testdir): Use func_should_symlink, DRY.
20527         (func_create_megatestdir): Use new functions to work with
20528         local_gnulib_path correctly.
20529         (func_append_local_dir): New helper.
20531 2015-12-08  Pádraig Brady  <P@draigBrady.com>
20533         fix freadptr to work with ungetc on all uClibc configs
20534         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
20535         where GNU coreutils cut(1) generates invalid output on uClibc
20536         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
20537         * lib/freadptr.c (freadptr): Return NULL if there are
20538         ungotten chars.  In this case freadseek() will iterate
20539         again to process the ungotten character.
20541 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
20543         xalloc-oversized: improve performance with GCC 5
20544         * lib/xalloc-oversized.h (xalloc_oversized):
20545         Improve performance with GCC 5 by using __builtin_mul_overflow.
20547 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20549         intprops: new public macro EXPR_SIGNED
20550         Emacs can use this macro, so make it public.
20551         * doc/intprops.texi (Arithmetic Type Properties): Rename from
20552         'Integer Type Determination', since some of these macros apply
20553         to non-integer types.  Clarify what kinds of constant expressions
20554         these macros return.  Say when the arguments can be non-integers.
20555         Mention newly published macro EXPR_SIGNED.
20556         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
20557         make it public.  All uses changed.
20559         intprops: fix typo in clang port
20560         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
20561         '__builtin_add_overflow' that is not caught by compiler.
20563 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20565         test-timespec: fix typo in previous change
20566         * tests/test-timespec.c (main): Fix typo that reduced test quality.
20568         timespec-sub: fix overflow bug; add tests
20569         * lib/timespec-add.c (timespec_add):
20570         * lib/timespec-sub.c (timespec_sub):
20571         Work even if time_t is narrower than int (a theoretical
20572         possibility).  Redo code for a bit more clarity.
20573         * lib/timespec-sub.c (timespec_sub):
20574         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
20575         * modules/timespec-tests, tests/test-timespec.c: New files.
20577         intprops-test: suppress -Woverlength-strings
20578         Problem reported by Pádraig Brady in:
20579         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
20580         It is not worth the hassle to port this test to compilers that
20581         cannot handle long strings in diagnostics.
20582         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
20584 2015-11-03  Pádraig Brady  <P@draigBrady.com>
20586         quotearg: add quotearg_n_style_colon()
20587         This quotes with default options of the specified style,
20588         but with quoting enabled for instances of ':'.
20589         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
20590         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
20592 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
20594         intprops: revise _WRAPV macros, revert _OVERFLOW
20595         The incompatible changes to the _OVERFLOW macros were too much of
20596         a hassle in practice, so revert them.  Instead, change the new
20597         _WRAPV macros to make them closer in behavior to GCC 5's new
20598         builtin_add_overflow etc. functions.  No other software was using
20599         these newly-added macros yet, so this should be OK.
20600         * NEWS: Revert previous change, since the incompatible change
20601         has been reverted, and nobody used the incompatible version.
20602         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
20603         Document revised behavior.
20604         (Integer Range Overflow): Adjust example to match above revisions.
20605         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
20606         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
20607         these can be used in integer constant expressions again.
20608         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
20609         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
20610         needed.
20611         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
20612         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
20613         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
20614         Remove, as they did not seem that useful.
20615         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
20616         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
20617         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20618         Support new semantics.
20619         (__has_builtin): New macro, if not alreay defined.
20620         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
20621         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
20622         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
20623         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
20624         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
20625         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
20626         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
20627         New macros.
20628         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
20630 2015-11-03  Jim Meyering  <meyering@fb.com>
20632         intprops: add parentheses for when OP has precedence lower than "-"
20633         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
20634         "a OP b" must be parenthesized for when OP is like "<<", which has
20635         lower precedence than the following "-". Reported by Pádraig Brady.
20637 2015-11-03  Pádraig Brady  <P@draigBrady.com>
20639         quotearg: constify get_quoting_style parameters
20640         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
20641         * lib/quotearg.c (get_quoting_style): Likewise.
20643 2015-11-02  Pádraig Brady  <P@draigBrady.com>
20645         quotearg: add support for $'' shell escaping
20646         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
20647         items and descriptions.
20648         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
20649         above types by quoting like "shell", but using $'...' syntax
20650         for non printable characters, which should provide unambiguous
20651         printable output for any input.
20652         * tests/test-quotearg-simple.c: Update accordingly.
20654 2015-11-02  Pádraig Brady  <P@draigBrady.com>
20656         maint: use a more standard return from mbrtowc test
20657         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
20658         from the test program as this is non standard and often
20659         indicates an unhandled case in the test program.
20660         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
20662 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20664         intprops: add WRAPV and const flavors for GCC 5
20665         If available, use GCC 5's builtin functions for efficient integer
20666         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
20667         and safely compute the low-order bits of the correct answer.
20668         A downside of these efficient functions is that they cannot be
20669         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
20670         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
20671         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
20672         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
20673         Document the changes.
20674         (Wraparound Arithmetic): New section.
20675         (Integer Range Overflow):
20676         Put this subsection last, since it's least useful.
20677         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
20678         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
20679         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
20680         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
20681         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
20682         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
20683         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
20684         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
20685         New macros.
20686         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20687         Generate calls to GCC builtins if available, for speed.
20688         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
20689         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
20690         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
20691         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
20692         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
20693         (CHECK_QUOTIENT, CHECK_REMAINDER):
20694         Test WRAPV and CONST flavors (when available) too.
20696 2015-10-30  Pádraig Brady  <P@draigBrady.com>
20698         doc: use extended timezone format in iso-8601 example
20699         * doc/parse-datetime.texi: The standard states that extended format
20700         is to be used consistently throughout.
20701         Note that lib/parse-datetime.y can handle either tz format.
20703 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20705         stdalign: port to Sun C 5.9
20706         * doc/posix-headers/stdalign.texi: Document this.
20707         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
20708         __attribute__ ((__aligned__ (...))).
20710 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
20712         time_rz: fix comment about tzalloc
20713         * lib/time_rz.c (tzalloc): Fix comment.
20715 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20717         stdalign: work around pre-4.9 GCC x86 bug
20718         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
20719         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
20720         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
20722 2015-10-18  Pádraig Brady  <P@draigBrady.com>
20724         maint.mk: sc_tight_scope: remove extraneous expressions
20725         * top/maint.mk (tight_scope): This is not really required since
20726         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
20727         that matches all nm entries.  But it does remove extraneous entries
20728         that may be confusing or cause issue in future maintenance.
20730 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20732         time_rz: return NULL if localtime_r fails
20733         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
20734         while still attempting to pacify bleeding-edge GCC.
20736         fts: port to C11 alignof
20737         * doc/posix-headers/stdalign.texi (stdalign.h):
20738         Document the C11 restriction.
20739         * lib/fts.c: Include stddef.h, for max_align_t.
20740         (fts_alloc): Align using max_align_t, not FTSENT.
20741         * modules/fts (Depends-on): Add stddef.
20743 2015-10-18  Jim Meyering  <meyering@fb.com>
20745         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
20746         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
20747         would see this:
20749         lib/time_rz.c: In function 'localtime_rz':
20750         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
20751           [-Werror=nonnull]
20752                    if (tm && !save_abbr (tz, tm))
20753                        ^
20755         That was complaining about "tm" because it is a parameter that was
20756         declared with the __nonnull__ attribute.
20757         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
20758         result of localtime_r.
20760 2015-10-17  Jim Meyering  <meyering@fb.com>
20762         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
20763         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
20764         name-extraction regexp mistakenly used \S+, and would mistakenly
20765         extract "*F" from "extern int *F()" rather than the desired "F".
20766         Use \w+ instead.
20768 2015-10-17  Jim Meyering  <meyering@fb.com>
20770         maint.mk: sc_tight_scope: factor and support OS X
20771         * top/maint.mk (_gl_tight_scope): Address three issues:
20772         - factor out four instances of code that wraps a string in "^...$"
20773         - allow nm-reported symbol names to have an optional leading "_"
20774         - add "main" to the list of ignored variable names, because on os x,
20775         "main" has nm-reported type "S" in the variable-checking section.
20777 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
20779         safe-alloc-tests: fix typo in license header
20780         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
20782 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
20784         copy-file: fix mem leak in error case
20785         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
20786         upon error opening or performing I/O to the src and dest files.
20788 2015-10-15  Mike Frysinger  <vapier@chromium.org>
20790         localename: control langinfo.h inclusion
20791         This header is only used to work around buggy behavior in old
20792         versions of glibc, so do not include it all the time.  Otherwise
20793         we get build failures on systems that do not provide langinfo.h.
20794         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
20795         in the source later on.
20796         The patch was originally submitted to gettext as:
20797         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
20799 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20801         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
20802         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
20803         * lib/u64.c, lib/unistd.c:
20804         Append 'typedef int dummy;', to pacify compilers that are picky
20805         about empty translation units.
20807 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
20809         accept4-tests: fix to avoid non portable flags
20810         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
20811         as they are the only documented ones, and passing others may trigger
20812         EINVAL (seen on FreeBSD 10.1-RELEASE).
20813         * doc/glibc-functions/accept4.texi: Mention that we don't provide
20814         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
20816 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
20818         gnulib-tool: fix tests of 'extensions' module
20819         This complements f8fe25fab60e3c687a124 commit.
20820         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
20821         emitting of initial gl_EARLY macros.
20822         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
20823         replaced with func_emit_pre_early_macros call.
20825 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20827         unicase/locale-language: fix typo in utf-8 cookie
20828         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
20829         Problem reported by Zbigniew Jędrzejewski-Szmek.
20831 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20833         xalloc: do not worry about GCC 5 warning on 32 bit
20834         * lib/xalloc.h: Revert previous change.
20835         I found a better way to fix this in coreutils.
20837 2015-10-02  Pádraig Brady  <P@draigBrady.com>
20839         xalloc: avoid GCC 5.1 warning on 32 bit
20840         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
20841         xalloc_oversized(), which was seen to give this warning
20842         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
20843         when simplifying conditional".
20845 2015-10-02  Daiki Ueno  <ueno@gnu.org>
20847         uniname/uniname-tests: avoid compiler warnings
20848         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
20849         unused local variables.
20850         (test_alias_lookup): Fix alias name display in failure cases.
20852 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20854         c-ctype: do not worry about EBCDIC + char signed
20855         Drop support for EBCDIC with char being signed, as this breaks too
20856         many programs.  Problem reported by Ben Pfaff in:
20857         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
20858         * lib/c-ctype.h: Verify that we are not using EBCDIC with
20859         char being signed.
20860         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
20861         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
20862         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
20863         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
20864         * tests/test-c-ctype.c (test_all):
20865         Simplify by assuming standard char values cannot be negative.
20866         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
20868 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20870         c-ctype: port better to z/OS EBCDIC
20871         Problems reported by Daniel Richard G. in:
20872         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
20873         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
20874         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
20875         (_C_CTYPE_OTHER_CNTRL): New macro.
20876         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
20877         from SCHAR_MIN, as the functions are defined only from values
20878         promoted from char or from unsigned char, not necessarily from
20879         signed char.
20881 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
20883         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
20885         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
20886         and ARFLAGS variables.  Doing this unconditionally could break
20887         later Automake's AM_PROG_AR invocation (at least it's
20888         AC_CHECK_TOOLS call to detect correct 'ar' binary).
20890         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
20891         Amsterdam Compiler Kit, so make the previous code to have effects
20892         only on ACK, and rather automatically call the Automake's
20893         AM_PROG_AR as soon as possible to decide other cases.
20895         References:
20896         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
20898         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
20899         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
20900         is possible, keep setting AR/ARFLAGS to reasonable defaults.
20901         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
20902         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
20903         'extensions' module is used.
20904         * modules/extensions (configure.ac-early): Remove as this snippet
20905         is added to gnulib-comp.m4 earlier anyway.
20907 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20909         sockets: MS Windows initalization fixes
20910         Problem reported by Test User in:
20911         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
20912         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
20913         Correct the endianness.
20914         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
20915         number mismatch, not just on <.  Cleanup before any such failure.
20917 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
20919         gc: fix detection of installed libgcrypt version
20920         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
20921         at least as recent as 1.4.4.  The previously used macro is not
20922         available now, since modules were removed in version 1.6.0.
20924 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20926         c-ctype: rewrite to use inline functions
20927         This simplifies maintenance, since it makes for just one
20928         implementation of each function, letting the compiler have the fun
20929         of optimization.  In practice this works well nowadays with GCC.
20930         E.g., c_isascii might need only three instructions even though the
20931         source code lists every ASCII character individually in a large
20932         switch statement.
20933         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
20934         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
20935         * NEWS: Document the API change.
20936         * lib/c-ctype.c: Drastically simplify, since this now just expands
20937         inline functions.
20938         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20939         (C_CTYPE_INLINE): New macro.
20940         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
20941         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
20942         Verify that either ASCII or EBCDIC is being used.
20943         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
20944         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
20945         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
20946         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
20947         New private macros.
20948         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
20949         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
20950         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
20951         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
20952         (c_tolower, c_toupper): When converting, return the unsigned char,
20953         as that is what z/OS does.
20954         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
20955         of some c-ctype.h macros.
20956         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
20957         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
20958         c_tolower promotion to be compatible with z/OS.
20960 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
20962         gitlog-to-changelog: trim only trailing whitespaces
20963         This is fix for --format regression introduced by commit
20964         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
20965         doubled %n string) had no effect anymore.  This format
20966         specification has been used e.g. by GNU paxuitils (commit
20967         edfd8bcc3).
20969         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
20970         newlines in commmit messages.
20972 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
20974         Test that c_iscntrl agrees with iscntrl, etc.
20975         Suggested by Daniel Richard G. in:
20976         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
20977         * modules/c-ctype-tests (Depends-on): Add ctype.
20978         * tests/test-c-ctype.c: Include <ctype.h>.
20979         (NCHARS): New constant.
20980         (test_agree_with_C_locale): New function.
20981         (main): Use it.
20982         (test_all): Use named constants.
20984         c-ctype: improve c_isascii testing
20985         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
20986         Add a test to count the number of ASCII characters.
20988 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20990         savewd: remove SAVEWD_CHDIR_READABLE
20991         It was problematic in the light of file systems that ignore umask.
20992         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
20993         * NEWS: Document this.
20994         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
20995         successful, -1 (setting errno) on failure, rather than something
20996         more complicated than that.
20997         * lib/mkdir-p.c (make_dir_parents):
20998         Do not use SAVEWD_CHDIR_READABLE.
20999         * lib/savewd.c (savewd_chdir):
21000         Remove support for SAVEWD_CHDIR_READABLE.
21001         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
21003         c-ctype: port better to EBCDIC
21004         Problems reported by Daniel Richard G. in
21005         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
21006         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
21007         Include "verify.h".
21008         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
21009         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
21010         Define as enum constants with value false, if not defined, so that
21011         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
21012         code more portable, as both branches of the 'if' are compiled on
21013         all platforms.
21014         (C_CTYPE_EBCDIC): New constant.
21015         Verify that the character set is either ASCII or EBCDIC.
21016         (to_char): New static function.
21017         (c_isascii, c_iscntrl):
21018         Assume standard control-character assignments for EBCDIC.
21019         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
21020         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
21021         Rewrite to use 'if' instead of 'ifdef'.
21022         Use to_char if non-ASCII.  Prefer <= to >=.
21023         Prefer true and false to 1 and 0, for booleans.
21024         (c_iscntrl): Use 'if', not 'ifdef'.
21025         * modules/c-ctype (Depends-on): Add verify.
21026         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
21027         (to_char): New function.
21028         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
21030 2015-09-21  Pádraig Brady  <P@draigBrady.com>
21032         nanosleep: fix return code for interrupted replacement
21033         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
21034         that we return -1 in the case the call is interrupted by a signal,
21035         rather than the current value of 1.
21036         Diagnosed and tested by Daniel Richard G.
21038 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
21040         Diagnose ERE '()|\1'
21041         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
21042         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
21043         track of the set of previously-completed subexpressions available
21044         before the first alternative, and restore this set just before
21045         parsing each subsequent alternative.  This lets us diagnose the
21046         invalid back-reference in the ERE '()|\1'.
21048         regex: merge patches from libc
21050         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
21051         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
21052         * lib/regex_internal.h:
21053         Include <libc-lock.h> instead of <bits/libc-lock.h>.
21055         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
21056         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
21057         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
21058         wcscoll.
21059         * lib/regexec.c (check_node_accept_bytes): Likewise.
21061         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21062         Fix regex wcrtomb namespace (bug 18496).
21063         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
21064         instead of wcrtomb.
21066         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
21067         Fix regex wctype namespace (bug 18495).
21068         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
21069         instead of towlower.
21070         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
21071         instead of iswlower.  Call __towupper instead of towupper.
21072         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
21073         instead of iswalnum.
21075         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21076         * lib/regcomp.c (parse_bracket_exp): Initialize type to
21077         COLL_SYM in a couple of places to avoid uninitialized variable
21078         wanings on tilegx gcc 4.8.2.
21080         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
21081         * lib/regex_internal.h: Remove NOT_IN_libc.
21083         2014-11-17  Andreas Schwab  <schwab@suse.de>
21084         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
21086         2014-09-11  Roland McGrath  <roland@hack.frob.com>
21087         Move findidx nested functions to top-level.
21088         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
21089         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
21090         Pass new arguments to findidx.
21091         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
21092         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
21093         Don't #include it inside the function.  Pass new arguments to findidx.
21094         * lib/regex_internal.h:
21095         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
21096         (re_string_elem_size_at): Don't #include it inside the function.
21097         Pass new arguments to findidx.
21099         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21100         Check if DEBUG is defined in regex_internal.c
21101         * lib/regex_internal.c: Check if DEBUG is defined and is set.
21103 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
21105         ceill: detect buggy OpenBSD implementation
21106         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
21107         which returns zero for small values.  Discussed here:
21108         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
21110 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
21112         mountlist: add me_mntroot field on Linux machines
21113         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
21114         mount_entry so Linux machines based on /proc/self/mountinfo can
21115         distinguish between bind mounts and original mounts.  In reality bind
21116         mounts aren't treated differently than mountroot=/ mounts by the
21117         kernel, but the user often wants these bind mounts distinguished.
21118         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
21119         More details at https://pad.lv/1432871
21121 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
21123         doc: Describe to use multiple instances of gnulib
21124         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
21125         instances of gnulib with different modules can be used, for example one
21126         for a lib and another one for associated tools.
21128 2015-09-01  Pádraig Brady  <P@draigBrady.com>
21130         base32: mark function as __attribute__ const
21131         * lib/base32.h (isbase32): Mark __attribute__ const as
21132         suggested by GCC, and consistent with the base64 module.
21134 2015-08-20  Daiki Ueno  <ueno@gnu.org>
21136         gnulib-tool: don't transform binary files with sed
21137         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
21138         .mo and .class files.
21139         Reported by Denis Denisov.
21141 2015-08-10  Daiki Ueno  <ueno@gnu.org>
21143         gperf: respect silent rules
21144         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
21145         V_GPERF_0 for silent rules.
21146         * modules/iconv_open (Makefile.am): Use V_GPERF.
21147         * modules/unicase/locale-language (Makefile.am): Likewise.
21148         * modules/unicase/special-casing (Makefile.am): Likewise.
21149         * modules/unictype/category-byname (Makefile.am): Likewise.
21150         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21151         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21152         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21153         * modules/unictype/property-byname (Makefile.am): Likewise.
21154         * modules/unictype/scripts (Makefile.am): Likewise.
21155         * modules/uninorm/composition (Makefile.am): Likewise.
21157 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21159         Improve port of stdalign to C++11
21160         Problem reported by Sundaram in:
21161         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
21162         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
21163         (__alignas_is_defined): Define if C++11 or newer.
21165 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
21167         pmccabe2html: fix gawk regex escaping
21168         * build-aux/pmccabe2html: Add one more backslash to properly
21169         escape the gsub replacement value.  Fixes this error:
21170         gawk: ./build-aux/pmccabe2html:425: \
21171         warning: escape sequence `\&' treated as plain `&'
21173 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
21175         time_rz: port to pedantic memcpy
21176         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
21177         that reject memcpy (..., NULL, 0).
21179 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21181         time_rz: port better to MinGW
21182         Don't change tzname, as this makes MinGW dump core (Bug#21020).
21183         Instead, store the tzname copy in the struct tm_zone object.
21184         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
21185         * lib/strftime.c [!_LIBC]:
21186         * lib/time_rz.c: Include time-internal.h.
21187         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
21188         name from *TZ rather than from TZNAME, doable because *TZ now has
21189         a tzname_copy member.
21190         * lib/time-internal.h: New file, with contents taken from
21191         lib/time_rz.c.  It's separate because strftime.c now accesses
21192         struct tm_zone members.
21193         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21194         New member tzname_copy.
21195         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
21196         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
21197         Initialize tzname_copy member.
21198         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
21199         in tzname_copy member.
21200         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
21201         (restore_tzname): Remove; no longer needed.  All calls removed.
21202         * modules/time_rz (Files): Add lib/time-internal.h.
21204         time: port __need_time_t to MinGW
21205         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
21206         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
21208 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
21210         strftime: fix newly-introduced bug on Solaris
21211         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
21212         consistently at the start, rather than doing some of the setup at
21213         the start and some in the %Z format spec.  This is cleaner, and
21214         works better with time_rz on platforms like Solaris where struct
21215         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
21216         mktime_z and localtime_rz can mess up the tzname cache.
21218         test-strftime: test for Solaris bug
21219         * modules/strftime-tests (Depends-on): Add strerror.
21220         * tests/test-strftime.c: Include <errno.h>.
21221         (posixtm_test): New function, containing the old 'main'.
21222         (struct tzalloc_test, struct localtime_rz_test): New types.
21223         (TZ, LT): New static vars.
21224         (tzalloc_test): New function.
21225         (main): Rewrite in terms of posixtm_test and tzalloc_test.
21227         time_rz: port to Solaris etc.
21228         Works around a tzname problem on platforms like Solaris that have
21229         tzname but not tm_zone, by setting tzname at the appropriate time
21230         and restoring it later.
21231         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
21232         New static vars.
21233         (save_abbr) [HAVE_TZNAME]: Set them.
21234         (revert_tz) [HAVE_TZNAME]: Clear or use them.
21235         (restore_tzname): New function.
21236         (localtime_rz, mktime_z): Use it.
21238         time_rz: now LGPL
21239         * modules/time_rz (License): Now LGPL, because strftime depends on it.
21241         time_rz: make a constant 'const'
21242         * lib/time_rz.c (local_tz): Now const.
21244         time_rz: fix off-by-one typo
21245         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
21247 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
21249         fprintftime, strftime: use timezone_t args
21250         * NEWS: Document the change.
21251         * lib/fprintftime.h (fprintftime):
21252         * lib/strftime.c (extra_args) [my_strftime]:
21253         * lib/strftime.h (nstrftime):
21254         Time zone arg is now of type timezone_t, not int.
21255         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
21256         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
21257         (my_strftime) [emacs && !my_strftime]:
21258         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
21259         Remove; Emacs doesn't need this any more.
21260         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
21261         fprintftime and nstrftime to call tzset.
21262         (ut) [!my_strftime]: Remove, replacing with ...
21263         (tz) [!my_stftime]: ... this new macro.  All uses changed.
21264         (strftime_case_): Use localtime_rz and mktime_z instead
21265         of localtime_r and mktime.
21266         * modules/fprintftime (Depends-on): Add time_rz.
21267         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
21268         * tests/test-strftime.c (main): Adjust to new nstrftime API.
21270         time_rz: new module
21271         * MODULES.html.sh: Add time_rz.
21272         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
21273         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
21274         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
21275         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
21276         New var HAVE_TIMEZONE_T (default 0).
21277         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
21278         New var GNULIB_TIME_RZ (default 0).
21279         * modules/time (time.h): Substitute the new vars.
21281         flexmember: license is now unlimited
21282         * modules/flexmember (License): Change to unlimited,
21283         since its only source file gives an unlimited license.
21285 2015-07-15  Eric Blake  <eblake@redhat.com>
21287         maint: update copyright paper procedures
21288         * config/srclist.txt: Drop outdated files.
21289         * doc/Copyright/conditions.txt: Update to latest.
21290         * doc/Copyright/assign.changes.manual: Delete.
21291         * doc/Copyright/assign.future.manual: Likewise.
21292         * doc/Copyright/assign.manual: Likewise.
21293         * doc/Copyright/assign.translation.manual: Likewise.
21294         * doc/Copyright/disclaim.changes.manual: Likewise.
21295         * doc/Copyright/disclaim.manual: Likewise.
21296         * doc/Copyright/disclaim.program: Likewise.
21298 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21300         localename: fix link error on Illumos
21301         Illumos defines __sun, but does not have getlocalename_l nor the
21302         equivalent.  This partially reverts commit 387c214.
21303         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
21304         available, as well as uselocale.
21305         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
21306         use getlocalename_l if it is not available.
21308 2015-07-07  Daiki Ueno  <ueno@gnu.org>
21310         unistr/uN-strtok-tests: avoid a trivial leak
21311         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
21312         input and delim after the multibyte delimiter tests.
21314 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21316         file-has-acl, acl-permissions: fix HP-UX typos
21317         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
21318         * lib/file-has-acl.c (file_has_acl):
21319         * lib/set-permissions.c (context_acl_from_mode)
21320         (context_aclv_from_mode, set_acls):
21321         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
21322         They were introduced by the recent ACL changes.
21324         regex: match current GNU grep behavior
21325         These symbols have not matched GNU grep behavior for quite some time.
21326         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
21327         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
21328         Change to match current GNU behavior.
21329         Simplify by expressing it as differences from POSIX BREs and EREs.
21330         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
21332 2015-07-03  Jim Meyering  <meyering@fb.com>
21334         set-permissions.c: adjust acl_from_mode's cpp guard
21335         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
21336         directives identical to those guarding the sole use.
21337         Otherwise, on some systems, we'd get a warning about
21338         the function being defined but not used.
21339         Also, filter through cppi to correct misleading indentation
21340         of cpp directives.
21342 2015-07-03  Pádraig Brady  <P@draigBrady.com>
21344         tests: restrict shells to those that support 'local'
21345         The local keyword is very widely supported and used
21346         in tests in coreutils and grep at least.  Therefore
21347         restrict to testing with shells that support it.
21348         This mainly excludes /bin/sh on Solaris.
21349         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
21351 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
21352         and Daiki Ueno  <ueno@gnu.org>
21354         unistr/uN-strtok: handle multibyte delimiters
21355         Previously, uN_strtok moved PTR to the next unit to the token end.
21356         When DELIM contained a multibyte character, the new position could
21357         be a middle of a multibyte character.
21358         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
21359         after the token.
21360         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
21361         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
21362         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
21363         * modules/unistr/u8-strtok (Depends-on): Depend on
21364         unistr/u8-strmblen.
21365         * modules/unistr/u16-strtok (Depends-on): Depend on
21366         unistr/u16-strmblen.
21367         * modules/unistr/u32-strtok (Depends-on): Depend on
21368         unistr/u32-strmblen.
21369         * tests/unistr/test-u-strtok.h: New file.
21370         * tests/unistr/test-u8-strtok.c: New file.
21371         * tests/unistr/test-u16-strtok.c: New file.
21372         * tests/unistr/test-u32-strtok.c: New file.
21373         * modules/unistr/u8-strtok-tests: New file.
21374         * modules/unistr/u32-strtok-tests: New file.
21375         * modules/unistr/u16-strtok-tests: New file.
21377 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
21379         update-copyright: fix test failure with perl >= 5.22 (trivial)
21380         * build-aux/update-copyright: Escape a literal left curly bracket,
21381         required with perl >= 5.22
21383 2015-07-02  Daiki Ueno  <ueno@gnu.org>
21385         u{16,32}-strstr-tests: relax timeout condition
21386         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
21387         tests can take longer than 5 seconds to complete.
21388         Reported by Dagobert Michelsen in:
21389         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
21390         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
21391         seconds to 10 seconds.
21392         * tests/unistr/test-u32-strstr.c (main): Likewise.
21394 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21396         gnulib-common.m4: change the ARFLAGS default to 'cr'
21397         In some GNU/Linux distributions people started to compile 'ar'
21398         binary with --enable-deterministic-archives (binutils project).
21399         That, however, in combination with previous autotools long time
21400         working default AR{_,}FLAGS=cru causes warnings on such
21401         installations:
21402         ar: `u' modifier ignored since `D' is the default (see `U')
21403         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
21404         set already.
21406 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
21408         selinux-h: avoid double free after *getfilecon()
21409         Originally reported by Ben Shelton on bug-tar:
21410         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
21411         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
21412         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
21413         param should be freed by freecon(3) (regardless the return value).
21415 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
21417         fix pty related tests issues on Windows (trivial)
21418         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
21419         however it's still present in tests/ subdirectory of the final project.
21420         Therefore avoid it to pass `make check`.
21421         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
21422         will just return -ENOSYS, so avoid this non applicable test allowing
21423         the build to proceed.
21425 2015-07-01  Pádraig Brady  <P@draigBrady.com>
21427         acl: fix definition of acl_from_mode on FreeBSD
21428         This was causing basic coreutils copy operations to fail
21429         with ENOTSUP or ENOENT error messages.
21430         * lib/acl-internal.h (acl_from_mode): Only define when
21431         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
21432         of acl_from_mode() defined in lib/set-permissions.c to
21433         be used on FreeBSD at least.
21434         * lib/set-permissions.c: Fix up comment spelling,
21435         and a redundant variable assignment; noticed in passing.
21437 2015-06-30  Pádraig Brady  <P@draigBrady.com>
21439         readutmp: port to FreeBSD >= 9
21440         * lib/readutmp.h: Map utmpxname() to setutxdb().
21441         With that coreutils who(1) and pinky(1) tests pass.
21443 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
21445         mgetgroups: port to strict OS X
21446         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
21447         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
21448         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
21449         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
21451 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
21453         mgetgroups: port to strict OS X
21454         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
21455         Document the getgrouplist problem.
21456         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
21457         New macro.
21458         (mgetgroups): Use it.
21459         * m4/mgetgroups.m4 (gl_MGETGROUPS):
21460         Check for OS X signature for getgrouplist.
21462 2015-06-29  Jim Meyering  <meyering@fb.com>
21464         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
21465         It started like this when building coreutils' latest on OS X,
21466         invoking ./configure with a nonempty --cache=.cache:
21468           lib/linkat.c:46:42: error: operator '||' has no right operand
21469           lib/linkat.c: In function 'rpl_linkat':
21470           lib/linkat.c:330:27: error: #if with no expression
21472         Here's linkat.c's line 46:
21474           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
21476         Here's some context:
21478           $ grep linkat_nofoll .cache
21479           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
21480           $ grep LINKAT_SYM lib/config.h
21481           #define LINKAT_SYMLINK_NOTSUP
21483         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
21484         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
21485         but that violates a tenet of AC_CACHE_CHECK: it must
21486         have no side effect other than setting its cache variable.
21488         What happens is that when the cache is set, we'd skip the
21489         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
21490         defined to whatever value it happened to have in configure's
21491         environment.  In my case, it was not defined, so this later code:
21493           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
21494             [Define to 1 if linkat can create hardlinks to symlinks])
21496         would emit code with an empty RHS.
21498         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
21499         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
21501 2015-06-28  Jim Meyering  <meyering@fb.com>
21503         mountlist: avoid an unused-label warning on OS X
21504         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
21505         Building on OS X, I saw a warning about the "free_then_fail" label
21506         being unused.  Give it the _GL_UNUSED_LABEL attribute.
21508         error.c: correct printf-style format: %d -> %u
21509         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
21510         rather than %d, to match the type of "line_number", unsigned int.
21512 2015-06-25  Pádraig Brady  <P@draigBrady.com>
21514         fts: avoid reading beyond the heap allocation
21515         GCC 5.1.1 with -O2 and -fsanitize=address reports
21516         a read of size 4 from a heap object of size 3 is indeed invalid,
21517         though this may be due to incorrect padding assumptions by GCC, see:
21518         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
21519         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
21520         * modules/fts: Depend on stdalign.
21522 2015-06-24  Pádraig Brady  <P@draigBrady.com>
21524         savedir: avoid undefined behavior in qsort call
21525         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
21526         "runtime error: null pointer passed as argument 1,
21527          which is declared to never be null"
21528         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
21530 2015-06-24  Pádraig Brady  <P@draigBrady.com>
21532         userspec: avoid undefined behavior in gettext call
21533         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
21534         "runtime error: null pointer passed as argument 2,
21535          which is declared to never be null"
21536         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
21538 2015-06-20  Glenn Morris  <rgm@gnu.org>
21540         gitlog-to-changelog: improve gitmerge.el commits
21541         Let the Emacs ChangeLog generation process exclude "skipped"
21542         messages from merge commits (Bug#20717).
21543         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
21545 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21547         wchar: fix MinGW compilation warnings
21548         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
21549         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
21550         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
21552 2015-06-20  Daiki Ueno  <ueno@gnu.org>
21554         uniname/uniname-tests: use pristine data files
21555         For copyright and maintenance reasons, use the data files from UCD
21556         without modification.
21557         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
21558         (getfield): Remove.
21559         (aliases_count): New global variable.
21560         (fill_names): Skip comments and empty lines in the input.  Don't
21561         use getfield.
21562         (fill_aliases): Likewise.
21563         (main): Change the expected command line arguments to:
21564         NAMES... ["--" ALIASES...].
21565         * tests/uniname/test-uninames.sh: Adjust to the change in
21566         test-uninames.c.
21567         * tests/uniname/UnicodeDataNames.txt: Remove.
21568         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
21569         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
21570         file from Unicode 8.0.0.
21572 2015-06-19  Pádraig Brady  <P@draigBrady.com>
21574         linked-list, linkedhash-list: avoid compiler warnings
21575         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
21576         -Werror=suggest-attribute=pure (from GCC 5.1.1).
21578 2015-06-19  Daiki Ueno  <ueno@gnu.org>
21580         libunistring: bump minimum version to 0.9.6
21581         * all modules depending on updated Unicode data: Regenerate.
21582         The modules are listed by a script that does:
21583         - for each file listed by: git show --oneline --name-only 705f4efc
21584           - deduce the containing modules, based on "Files:"
21585         - deduce the modules which depend on the containing modules, based
21586           on "Depends-on:"
21588 2015-06-18  Daiki Ueno  <ueno@gnu.org>
21590         uniname/uniname: update to Unicode 8.0.0
21591         * lib/uniname/uninames.h: Regenerate.
21592         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
21593         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
21595 2015-06-18  Daiki Ueno  <ueno@gnu.org>
21597         libunistring: update to Unicode 8.0.0
21598         * lib/gen-uni-tables.c (SIZEOF): New macro.
21599         (output_numeric): Increase the maximum number of fractions from
21600         128 to 160.  Increase the level3 value width from 7 bits to 8
21601         bits.  Use SIZEOF instead of a hard-coded integer.
21602         (output_blocks): Decrease the cut-off threshold from 0x30000 to
21603         0x28000.
21604         (fill_blocks): Increase the maximum number of blocks from 256 to
21605         384.  Use SIZEOF instead of a hard-coded integer.
21606         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
21607         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
21608         value width.
21609         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
21610         a new case added to LBP22.
21611         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
21612         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
21613         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
21614         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
21615         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
21616         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21617         lib/uniwidth/width.c.
21618         * all generated files under lib/uni* and tests/uni*: Regenerate.
21620 2015-06-16  Pádraig Brady  <P@draigBrady.com>
21622         gnu-web-doc-update: add --mirror to remove stale files
21623         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
21624         out of date files from the CVS server.  Since this is usually
21625         appropriate, a prompt is given when the option is not specified,
21626         along with the `cvs remove` command that would be run.
21628 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
21630         acl-permissions: pacify -Wsuggest-attribute=const
21631         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
21632         * lib/acl-internal.h (free_permission_context):
21633         Declare with attribute const if ! (defined USE_ACL &&
21634         (HAVE_ACL_GET_FILE || defined GETACL)).
21636         fsync: document AIX misbehavior
21637         * doc/posix-functions/fsync.texi (fsync):
21638         Document failure on AIX with read-only file descriptor.
21640 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
21642         stdio: Don't redefine gets when using C++
21643         * lib/stdio.in.h (gets): Disable warning on C++.
21645 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
21647         acl-permissions: port to AIX, C89 HP-UX
21648         Problems reported by Michael Felt.
21649         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
21650         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
21651         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
21652         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
21653         Add cast for AIX, whose system calls are declared to accept
21654         char * even though the arguments are really char const *.
21655         * lib/get-permissions.c (get_permissions):
21656         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
21657         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
21658         that broke a build.
21659         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
21660         Rework types to pacify xlc.
21662 2015-06-03  Pádraig Brady  <P@draigBrady.com>
21664         vasprintf-posix: avoid compiling vasnprintf where possible
21665         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
21666         module where not required.  For example on a GNU/Linux system
21667         when gnulib-tool is run with the --conditional-dependencies option.
21669 2015-06-02  Pádraig Brady  <P@draigBrady.com>
21671         file-has-acl: fix build on Mac OS X 10
21672         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
21673         which has an incompatible 6 parameter getxattr() call.
21674         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
21675         call on Mac OS X >= 10.4.
21676         * doc/glibc-functions/fgetxattr.texi: Likewise.
21677         * lib/file-has-acl.c: Revert to more complete combined check.
21678         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
21679         Reported by Jack Howarth.
21681 2015-06-02  Pádraig Brady  <P@draigBrady.com>
21683         prefix-gnulib-mk: remove no longer needed special case
21684         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
21685         continued lib_SOURCES lines are no longer present,
21686         so special case handling of such entries is not required.
21688 2015-06-01  Pádraig Brady  <P@draigBrady.com>
21690         acl: don't depend on the deprecated qacl module
21691         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
21693 2015-06-01  Pádraig Brady  <P@draigBrady.com>
21695         gnulib-tool: concatenate lib_SOURCES to a single line
21696         * gnulib-tool: Refactor the line merging sed logic,
21697         and use that to output a single lib_SOURCES line for each module.
21698         gnulib using projects often postprocess this output to prepend
21699         subdir paths to each item, and having a single line simplifies this
21700         processing allowing better decoupling from the gnulib-tool output.
21702 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
21704         pthread_sigmask: discount system version if a simple macro (trivial)
21705         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
21706         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
21707         function to ensure it's available.
21709 2015-05-31  Pádraig Brady  <P@draigBrady.com>
21711         readlinkat: avoid OS X 10.10 trailing slash bug
21712         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
21713         has this bug.
21714         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
21715         that OS X 10.10 has this function.
21716         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
21717         as done for readlink().
21718         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
21719         trailing slash bug, and assume readlinkat() has the same issue.
21720         Also fix a typo where $gl_cv_decl_readlink_works was tested,
21721         rather than the correct $gl_cv_decl_readlinkat_works.
21723 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
21725         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
21726         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
21727         module rewrite.
21729         acl-permissions: Fix build on Solaris and Cygwin
21730         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
21731         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
21732         ace_entries variables have moved into struct permission_context but
21733         they were still accessed as local variables here.
21735 2015-05-29  Pádraig Brady  <P@draigBrady.com>
21737         linkat: avoid OS X 10.10 trailing slash with symlink bug
21738         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
21739         causes the symlink to be dereferenced, and if it points
21740         to a non existent file, that file will be created as
21741         a hard link to "path1".
21742         This fixes a test failure in test-linkat.c.
21743         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
21744         this case.  The existing workaround in linkat.c for
21745         trailing slash issues, suffices for this case.
21746         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
21747         the list of platforms with trailing slash issues.
21749 2015-05-28  Pádraig Brady  <P@draigBrady.com>
21751         unlinkat: handle ignoring of ".." on Darwin 14
21752         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
21753         on Mac OS X 10.10, where it ignores paths with a trailing "..",
21754         so handle in the same manner.
21755         * m4/unlinkat.m4: Comment on this Darwin issue.
21756         * doc/posix-functions/unlink.texi: Update the latest version
21757         where the issue was seen.
21758         * doc/posix-functions/unlinkat.texi: Mention this issue.
21759         Fixes a test failure in test-unlinkat.c.
21761 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21763         qacl: split into qcopy-acl and qset-acl
21764         Emacs needs the former, but not the latter.
21765         * modules/acl-permissions: New file, containing most of the old qacl.
21766         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
21767         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
21768         * modules/qcopy-acl, modules/qset-acl: New files.
21769         * MODULES.html.sh (File system functions):
21770         Mention the new modules, and mention qacl while we're at it.
21772 2015-05-27  Glenn Morris  <rgm@gnu.org>
21774         gitlog-to-changelog: new option --ignore-line
21775         (This patch is imported from the GNU Emacs master.)
21776         This option ignores individual commit lines matching a pattern.
21777         * build-aux/gitlog-to-changelog: Add --ignore-line option.
21779 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
21781         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
21782         Implement get_permissions and set_permissions primitives for getting all
21783         the permissions of a file, storing them, and later setting them. (In the
21784         minimal case, the permissions consist only of a file mode.) Reimplement
21785         qset_acl and qcopy_acl based on these new primitives: this avoids code
21786         duplication and makes error handling more consistent.
21787         The Solaris and Cygwin code still uses duplicate code paths for setting
21788         a file mode while making sure that no acls exist and setting an explicit
21789         acl; this is no worse than before, but could be cleaned up.  The AIX
21790         code still doesn't read ACLs, it only makes sure that acls don't get in
21791         the way when setting a file mode.
21792         * lib/acl-internal.h (struct permission_context): New data structure.
21793         (get_permissions, set_permissions, free_permission_context): Declare.
21794         * lib/acl-internal.c (free_permission_context): New helper function.
21795         * lib/get-permissions.c (get_permissions): New helper function split off
21796         from qcopy_acl.
21797         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
21798         AIX, set a file's permissions based only on a file mode.
21799         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
21800         other platforms construct a temporary acl from the file mode and set
21801         that acl in the same way as setting an acl read from the source file.
21802         This should help avoid code duplication and inconsistent / buggy
21803         behavior.
21804         (set_acls): New helper function Split off from qcopy_acl.
21805         (chmod_or_fchmod): Moved here from qset-acl.c.
21806         (set_permissions): New helper function.
21807         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
21808         set_permissions.
21809         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
21810         * modules/qacl: Add get-permissions.c and set-permissions.c.
21812         file-has-acl: Split feature tests again (Bug#20667)
21813         * lib/file-has-acl.c: Instead of testing for
21814         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
21815         define them when needed.
21816         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
21817         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
21819 2015-05-27  Pádraig Brady  <P@draigBrady.com>
21821         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
21822         This avoids a conflict with "FORTIFY_SOURCE" variants
21823         of the string functions when they're replaced on NetBSD-6.0.1
21824         and Darwin-14.3.0 at least.
21825         * lib/string.in.h: Avoid including our "lib/string.h" while
21826         including the system <string.h>.
21828 2015-05-26  Eric Blake  <eblake@redhat.com>
21830         stdio: limit __gnu_printf__ witness to gcc 4.4+
21831         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
21832         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
21834         error: use correct printf attributes on mingw
21835         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
21837         inttypes: force correct mingw PRIdMAX even without <stdio.h>
21838         * modules/inttypes (Depends-on): Require extensions, so that mingw
21839         always uses GNU style inttypes.
21840         * lib/inttypes.in.h: On mingw, include <stdio.h>.
21842         stdio: fix probe on mingw under gcc 5.1
21843         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
21844         around new gcc preprocessor rules.
21846 2015-05-07  Glenn Morris  <rgm@gnu.org>
21848         gitlog-to-changelog: parse "Tiny-change"
21849         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
21850         "Copyright-paperwork-exempt".  (Bug#20324)
21852 2015-05-06  Pádraig Brady  <P@draigBrady.com>
21854         doc: document glibc posix_fallocate() issues
21855         * doc/posix-functions/posix_fallocate.texi: Mention the
21856         glibc efficiency problems and issues with NFS.
21858 2015-05-05  Karl Berry  <karl@freefriends.org>
21860         * build-aux/gendocs.sh (usage): document new css default
21861         for HTML (--htmlarg).
21863 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21865         extern-inline: no need for workaround in GCC 5.1
21866         * doc/extern-inline.texi (extern inline):
21867         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
21868         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
21869         around these bugs in GCC 5.1 and later.  Maybe in a decade or
21870         two we can remove these workarounds.
21872 2015-04-28  Pádraig Brady  <P@draigBrady.com>
21874         eealloc, pagealign_alloc, xalloc: avoid clang warnings
21875         Avoid [-Wunknown-attributes] warnings like:
21876         warning: unknown attribute '__alloc_size__' ignored
21877         * lib/xalloc.h: Don't use the __alloc_size__  attribute
21878         with clang, as support has been fully removed as of clang 3.5:
21879         https://github.com/llvm-mirror/clang/commit/c047507a
21880         * lib/eealloc.h: Likewise.
21881         * lib/pagealign_alloc.h: Likewise.
21883 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
21885         tests: pacify GCC 5.1's stricter printf checking
21886         * tests/test-dirname.c (main):
21887         * tests/test-getaddrinfo.c (simple):
21888         * tests/test-getlogin.c (main):
21889         * tests/test-getndelim2.c (main):
21890         * tests/test-inttostr.c (CK):
21891         * tests/test-md5.c (main):
21892         * tests/test-read-file.c (main):
21893         * tests/test-sha1.c (main):
21894         Fix mismatches between printf format and value signedness.
21895         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
21896         Remove, as CAST_VAL always returned a value of type uintmax_t.
21898         fts: port to GCC 5.1 with --enable-gcc-warnings
21899         Without this fix, GCC 5.1 (correctly) warns about a subscript
21900         error on the fts_name component of FTSENT.  It's actually a
21901         flexible member, so define it that way on C99 or later hosts.
21902         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
21903         structure that now has a flexible array member.
21904         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
21905         (FTSENT): fts_name is now flexible on C99-or-later platforms.
21906         * modules/fts (Depends-on): Add flexmember.
21908 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21910         file-has-acl: port to CentOS 6
21911         Problem reported by Tom G. Christensen in:
21912         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
21913         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
21914         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
21915         HAVE_GETXATTR.
21916         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
21917         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
21918         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
21919         file-has-acl.c actually needs.
21921 2015-04-26  Pádraig Brady  <P@draigBrady.com>
21923         file-has-acl: always return false when ACLs aren't supported
21924         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
21925         change the GNU/Linux getxattr path, to transform "not supported"
21926         errors to a false return rather than an error.  This is handled
21927         within file_has_acl() due to the platform specific tests to
21928         determine if ACLs are not supported.
21930 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21932         gettext: propagate po/Makefile.in.in too
21933         * build-aux/po/Makefile.in.in: Copy from latest gettext.
21934         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
21935         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
21936         between Makefile.in.in and the gettext-runtime m4 files.
21938 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21940         file-has-acl: new module, split from acl
21941         And add a new module file-has-acl-tests to match.
21942         I ran into a problem with the recent changes to the acl module,
21943         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
21944         When using the fixed version with Emacs, I discovered that
21945         file-has-acl wasn't separated out well enough for Emacs (e.g., it
21946         had multiple libraries, but needed only one), so I fixed that too.
21947         * NEWS: Document this incompatible change.
21948         * modules/file-has-acl, modules/file-has-acl-tests: New files.
21949         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
21950         Initialize gl_need_lib_has_acl.
21951         (gl_FUNC_ACL): Require it.
21952         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
21953         Move the file-has-acl.c-relevant stuff to ...
21954         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
21955         use_xattrs = 0' typo, and omit some needless work.  Set
21956         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
21957         when gl_FUNC_ACL is called.
21958         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
21959         (Link): Remove $(LIB_HAS_ACL).
21960         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
21961         (check_PROGRAMS): Move stuff relevant to file-has-acl to
21962         modules/file-has-acl-tests.
21963         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
21965         manywarnings: add GCC 5.1 warnings
21966         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
21967         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
21968         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
21969         -Wsuggest-override, -Wuse-without-only.  Change
21970         -Wnormalized=... operands to match 5.1.
21971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
21972         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
21973         -Wdiscarded-qualifiers, -Wformat-signedness,
21974         -Wincompatible-pointer-types, -Wint-conversion,
21975         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
21976         -Wshift-count-negative, -Wshift-count-overflow,
21977         -Wsizeof-array-argument, -Wsuggest-final-methods,
21978         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
21979         and add -Warray-bounds=2 as a special case.
21981 2015-04-21  Simon Josefsson  <simon@josefsson.org>
21983         doc: update FDL template to match FDL examples.
21984         * doc/alloca-opt.texi:
21985         * doc/alloca.texi:
21986         * doc/c-ctype.texi:
21987         * doc/c-strcase.texi:
21988         * doc/c-strcaseeq.texi:
21989         * doc/c-strcasestr.texi:
21990         * doc/c-strstr.texi:
21991         * doc/c-strtod.texi:
21992         * doc/c-strtold.texi:
21993         * doc/ctime.texi:
21994         * doc/error.texi:
21995         * doc/gcd.texi:
21996         * doc/gnulib-tool.texi:
21997         * doc/inet_ntoa.texi:
21998         * doc/intprops.texi:
21999         * doc/lib-symbol-visibility.texi:
22000         * doc/maintain.texi:
22001         * doc/parse-datetime.texi:
22002         * doc/quote.texi:
22003         * doc/regexprops-generic.texi:
22004         * doc/standards.texi: Remove spurious 'with' in FDL license
22005         template.
22007 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
22009         lstat: fix cross-compilation 'ln -s' problem
22010         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22011         Have the test program call 'symlink' rather than a separate
22012         script run 'ln -s'; this is more likely to work in
22013         cross-compilation environments.  Reported by Pavel Fedin in:
22014         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
22016 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
22018         gendocs.sh: default to a common CSS style sheet for HTML output
22019         * build-aux/gendocs.sh (htmlarg): Change default value.
22021 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
22023         gnulib-tool: output bold attribute more portably
22024         * gnulib-tool (func_show_module_list): Change hexadecimal
22025         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
22026         encoded numbers as arguments to `printf' is not portable,
22027         and is not claimed by POSIX.  This is the case with FreeBSD.
22029 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
22031         qacl: Simplify HP-UX acl_nontrivial check
22032         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
22033         acl_nontrivial. Check if the acl has at most three entries instead (it must
22034         have exactly three entries according to the HP-UX documentation). Ignore
22035         uids and gids as long as an entry is either for a user (i.e., the owner),
22036         a group (i.e., the owning group), or others.
22037         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
22038         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
22040 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
22042         acl: On Linux, check for acls without libacl
22043         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
22044         library function to check for the presence of acls, avoiding a library.
22045         * lib/file-has-acl.c: Include xattr headers if we have them.
22046         (file_has_acl): On Linux, use getxattr().
22047         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
22048         file_has_acl(). Check for xattr headers and getxattr().
22050 2015-04-14  Ángel González  <keisial@gmail.com>
22052         tempname: avoid unused parameter warnings (trivial)
22053         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
22054         (try_nocreate): Likewise.
22056 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
22058         fseeko: fix build failure on NetBSD >= 6 (trivial)
22059         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
22060         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
22062 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22064         gitlog-to-changelog: port to MS-Windows
22065         * build-aux/gitlog-to-changelog (git_dir_option):
22066         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
22067         MS-Windows Perl.  Reported by Eli Zaretskii in:
22068         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
22070 2015-04-07  Karl Berry  <karl@gnu.org>
22072         gendocs: new option --tex for passing args to texi2dvi.
22073         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
22074         (TEXI2DVI): cut to just command name.
22075         (usage): mention new option, and update copyright.
22076         <generate_tex>: use it.
22078 2015-04-07  Karl Berry  <karl@gnu.org>
22080         * config/srclistvars.sh (GETTEXT): new definition.
22081         * config/srclist.txt: use it for gettext .m4 files.
22082         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
22083         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
22084         and continuing into April.
22086 2015-04-07  Daiki Ueno  <ueno@gnu.org>
22088         uniname/uniname-tests: fix failure due to alias
22089         Reported by Jack Howarth in:
22090         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
22091         * tests/uniname/test-uninames.c (name_has_alias): New function.
22092         (test_inverse_lookup): Exclude character name with valid alias,
22093         from randomly generated character names.
22094         (main): Fill unicode_aliases before calling test functions.
22096 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
22098         hash: remove deprecated hash_insert0 function
22099         * lib/hash.h (hash_insert0): Remove deprecated function.
22100         * lib/hash.c (hash_insert0): Likewise.
22102 2015-04-02  Pádraig Brady  <P@draigBrady.com>
22104         mountlist: remove dependency on libmount
22105         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
22106         directly, rather than depending on libmount, which has many
22107         dependencies due to its dependence on libselinux, as detailed at:
22108         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
22109         Note we restrict this to __linux__ as that's probably where this
22110         interface will remain.  If ever porting, it would be best
22111         to first pull the makedev() wrapper from coreutils to a gnulib module.
22112         Note also we don't add a getline dependency to the mountlist module,
22113         as all Linux versions are sufficient.
22115 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
22117         stddef: port to pre-C11 GCC on x86
22118         On this platform, max_align_t should have an alignment of 8 even
22119         though the storage alignments of double, long, etc. max out at 4.
22120         Inspired by a comment of Andreas Schwab's here:
22121         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
22122         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
22123         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
22124         * tests/test-stddef.c: Test __alignof__ too, if available.
22126 2015-03-24  Pádraig Brady  <P@draigBrady.com>
22128         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
22129         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
22131 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
22133         yesno: make EOL optional in ENABLE_NLS case also (trival)
22134         * lib/yesno.c (yesno): Check for EOL before replacing.
22135         * tests/test-yesno.sh: Add a test case (test along with gettext).
22137 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22139         fdopendir-tests: test it does not close its arg
22140         * tests/test-fdopendir.c (main): Test that fdopendir does not
22141         close its argument.  From a suggestion by David Grayson in:
22142         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
22144 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22146         gitlog-to-changelog: trim trailing white space
22147         * build-aux/gitlog-to-changelog (main):
22148         Trim trailing white space from commit message lines.
22149         This is helpful for processing the GNU Emacs repository,
22150         which dates back to 1985 and contains a lot of such lines.
22152         gitlog-to-changelog: new option --ignore-matching
22153         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
22154         Support new option --ignore-matching=PAT, which ignores all
22155         commit messages whose first line matches PAT.
22157 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22159         fdopendir: port better to MinGW
22160         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
22161         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
22162         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
22163         * modules/fdopendir (Depends-on): Add dirfd.
22165 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
22167         fdopendir: fix typo in comment
22168         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
22170 2015-03-09  Eric Blake  <eblake@redhat.com>
22172         error: document all entry points provided
22173         * doc/glibc-functions/error_print_progname.texi
22174         (error_print_progname): Mention the error module.
22175         * doc/glibc-functions/error_at_line.texi (error_at_line):
22176         Likewise.
22177         * doc/glibc-functions/error_message_count.texi
22178         (error_message_count): Likewise.
22179         * doc/glibc-functions/error_one_per_line.texi
22180         (error_one_per_line): Likewise.
22182 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
22184         vasnprintf: pacify clang 3.5.0
22185         Problem reported by Werner Lemberg in:
22186         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
22187         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
22188         The casts aren't needed, since the characters in question are ASCII.
22190 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22192         glob, etc.: port to MSVC v18 on MS-Windows 8.1
22193         * lib/dirent--.h (GNULIB_defined_opendir):
22194         * lib/dirent.in.h (GNULIB_defined_opendir)
22195         (GNULIB_defined_closedir):
22196         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
22197         #undef only if Gnulib defined it.
22199         poll: port to MSVC v18 on MS-Windows 8.1
22200         Problem reported by Gisle Vanem in:
22201         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
22202         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
22203         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
22204         Add sys_socket.
22206 2015-02-24  Pádraig Brady  <P@draigBrady.com>
22208         tests: support stderr verification with returns_()
22209         * tests/init.sh (returns_): Disable tracing for this wrapper
22210         function, so that stderr of the wrapped command is unchanged,
22211         allowing for verification of the contents.
22213 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
22215         passfd: avoid valgrind uninitalised data warning
22216         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
22217         to include just the fd we've initialized, rather than including
22218         the extra space used for alignment.
22220 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
22222         uniwbrk/u32-wordbreaks-tests: fix copyright
22223         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
22225         dup2: doc and test for Android bug
22226         Reported by Kevin Cernekee in:
22227         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
22228         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22229         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
22231 2015-02-23  Kevin Cernekee  <cernekee@google.com>
22233         Replace dup2() on Android
22234         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
22235         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
22236         fails.  Using rpl_dup2() fixes this because it has an explicit test
22237         for this condition.
22239 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
22241         Android doesn't define RLIM_SAVED_*
22242         Portability problem reported by Kevin Cernekee in:
22243         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
22244         * doc/posix-headers/sys_resource.texi (sys/resource.h):
22245         Mention the portability problem.
22246         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
22247         Define if not defined.
22248         * m4/dup2.m4 (gl_FUNC_DUP2):
22249         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22250         Likewise.
22252 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
22254         vasnprintf-posix-tests: use consistent test
22255         * tests/test-vasnprintf-posix.c (test_function):
22256         Use "<" in assert instead of "<=", for consistency with other tests.
22258 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22260         printf, isinf, etc.: noncanonical != NaN
22261         Do not require that isinf, printf, etc. treat noncanonical
22262         values as NaNs.  Instead, require only that they do not crash.
22263         Problem reported by Joseph Myers in:
22264         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
22265         * doc/posix-functions/dprintf.texi (dprintf):
22266         * doc/posix-functions/fprintf.texi (fprintf):
22267         * doc/posix-functions/isfinite.texi (isfinite):
22268         * doc/posix-functions/isinf.texi (isinf):
22269         * doc/posix-functions/isnan.texi (isnan):
22270         * doc/posix-functions/printf.texi (printf):
22271         * doc/posix-functions/snprintf.texi (snprintf):
22272         * doc/posix-functions/sprintf.texi (sprintf):
22273         * doc/posix-functions/vdprintf.texi (vdprintf):
22274         * doc/posix-functions/vfprintf.texi (vfprintf):
22275         * doc/posix-functions/vprintf.texi (vprintf):
22276         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22277         * doc/posix-functions/vsprintf.texi (vsprintf):
22278         Document this.
22279         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
22280         * m4/isinf.m4 (gl_ISINFL_WORKS):
22281         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
22282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
22283         * tests/test-isfinite.c (test_isfinitel):
22284         * tests/test-isinf.c (test_isinfl):
22285         * tests/test-isnan.c (test_long_double):
22286         * tests/test-isnanl.h (main):
22287         * tests/test-snprintf-posix.h (test_function):
22288         * tests/test-sprintf-posix.h (test_function):
22289         * tests/test-vasnprintf-posix.c (test_function):
22290         * tests/test-vasprintf-posix.c (test_function):
22291         Test only that noncanonical values do not cause crashes, not that
22292         they are treated as NaNs.  In some cases this means a larger
22293         output buffer is needed.
22295 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
22297         fts: remove redundant close() (trivial)
22298         * lib/fts.c (fts_read): Remove redundant call to close().
22299         Spotted by coverity.
22301 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22303         getdtablesize: port better for Android
22304         Problem reported by Kevin Cernekee in:
22305         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
22306         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
22307         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
22308         Instead, just use getrlimit, taking care to avoid Cygwin bug.
22310         poll: fixes for large fds
22311         * lib/poll.c (poll): Don't check directly for NFD too large.
22312         Don't rely on undefined behavior in FD_SET when an arg exceeds
22313         FD_SETSIZE.  Always set revents afterwards, even if to zero.
22314         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
22315         as that makes the test a bit stricter.
22317 2015-02-19  Kevin Cernekee  <cernekee@google.com>
22319         fcntl: Fix cross compiling
22320         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
22321         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
22323 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22325         dup2, fcntl: cross-compile better for Android
22326         Problem reported by Kevin Cernekee in:
22327         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
22328         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
22329         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
22330         there's little need to cross-compile for older kernels nowadays.
22331         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
22332         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
22334 2015-02-18  Pádraig Brady  <P@draigBrady.com>
22336         getopt: don't crash on memory exhaustion
22337         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
22338         memory exhaustion.  In the _LIBC case we use alloca() as is
22339         already done in glibc, so we don't need to consider the separate
22340         error path in that awkward case.  Also fix a memory leak when
22341         ambiguous options are present.
22342         Reported by Tobias Stoeckmann
22344 2015-02-17  Mike Miller  <mtmiller@ieee.org>
22346         tempname: allow compilation with C++ (trivial)
22347         * lib/tempname.h [C++]: Specify extern "C" linkage.
22348         * lib/tempname.h (try_tempname):
22349         * lib/tempname.c (__try_tempname, __gen_tempname):
22350         Rename 'try' to 'tryfunc'.
22352 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22354         dup2, fcntl: port to AIX
22355         * m4/dup2.m4 (gl_FUNC_DUP2):
22356         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22357         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
22358         The former works on AIX 7.1 but the latter does not.
22359         Also, this may work better with Android; see:
22360         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
22362 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22364         getdtablesize, dup2, fcntl: port to Android
22365         Problem reported by Kevin Cernekee in:
22366         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
22367         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
22368         Mention that getdtablesize doesn't work on Android.
22369         * lib/getdtablesize.c: Use getrlimit substitute only if
22370         getdtablesize is declared.  This should suffice for Cygwin
22371         while not breaking Android.
22372         * m4/dup2.m4 (gl_FUNC_DUP2):
22373         * m4/fcntl.m4 (gl_FUNC_FCNTL):
22374         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
22375         standardized but the latter is not, and sysconf works on Android.
22376         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
22377         Also check that getdtablesize is declared.
22378         This removes the need for a special case for Android.
22380 2015-02-16  Kevin Cernekee  <cernekee@google.com>
22382         localename: Implement gl_locale_name_thread_unsafe for Android
22383         * lib/localename.c: Android API level >= 21 supports two hardcoded
22384         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
22385         the internal __locale_t struct.
22387 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
22389         fts: avoid crash when a cycle is added while traversing
22390         This could be triggered by auto-mounting a recursive bind mount.
22391         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
22392         * lib/fts.c (fts_read): Avoid removing the original hash table item
22393         when leaving a directory that caused a cycle, and preserve the FTS_DC
22394         flag.
22396 2015-02-16  Daiki Ueno  <ueno@gnu.org>
22398         uniname/uniname: support character alias
22399         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
22400         Generate one-way mapping from aliases to codepoints in the
22401         generated tables.  Special case variation selectors to reduce
22402         table size.
22403         * lib/uniname/uniname.c (unicode_character_name): Special case
22404         variation selectors.
22405         (unicode_name_character): Special case variation selectors and
22406         their aliases.
22407         * lib/uniname/uninames.h: Regenerate.
22408         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
22409         * modules/uniname/uniname-tests (Files): Add
22410         tests/uniname/NameAliases.txt.
22411         * tests/uniname/test-uninames.c: Mark as static.
22412         (ALIASLEN): Define.
22413         (struct unicode_alias): New struct.
22414         (unicode_aliases): New variable.
22415         (fill_aliases): New function.
22416         (test_alias_lookup): New test function.
22417         (main): Run the 'test_alias_lookup' test if the second argument is
22418         given.
22419         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
22420         second argument.
22422 2015-02-11  Kevin Cernekee  <cernekee@google.com>
22424         Fix FILE struct compatibility with Android API level >= 21
22425         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
22426         __sferror.  Recent versions of Bionic's stdio.h no longer define
22427         __sferror.
22428         * lib/fbufmode.c: Likewise.
22429         * lib/fflush.c: Likewise.
22430         * lib/fpurge.c: Likewise.
22431         * lib/freadable.c: Likewise.
22432         * lib/freadahead.c: Likewise.
22433         * lib/freading.c: Likewise.
22434         * lib/freadptr.c: Likewise.
22435         * lib/freadseek.c: Likewise.
22436         * lib/fseeko.c: Likewise.
22437         * lib/fseterr.c: Likewise.
22438         * lib/fwritable.c: Likewise.
22440         Assume unbroken ungetc() on Android
22441         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
22442         test case passed when running on an Android host, and the code
22443         hasn't really changed since 2009.
22445         getdtablesize: Fix Android build
22446         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
22447         versions have this symbol in the .so library (at least 32-bit
22448         platforms) but are missing the declaration in the header file,
22449         causing the m4 logic to guess incorrectly.
22451         localename: Fix Android build
22452         * modules/localename (Depends-on): Add langinfo.
22454         getugroups: Fix Android build
22455         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
22456         functions.
22458         euidaccess: Fix Android build
22459         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
22460         AT_EACCESS gets declared.
22462         linkat_nofollow: Add fallback case for cross compiling
22463         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
22465         net_if: Handle content-free <net/if.h> system headers
22466         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
22467         struct if_nameindex.  If not, enable the replacement header.
22469         signal_h: Fix Android build
22470         * lib/signal.in.h: Add Android to the list of platforms that declare
22471         pthread_sigmask() in <pthread.h> instead of <signal.h>.
22473         duplocale: Fix Android build of duplocale-tests
22474         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
22475         is included by test-duplocale.c (but not by duplocale.c).
22476         * modules/duplocale-tests (configure.ac): Check for monetary.h.
22477         * tests/test-duplocale.c: Skip test if monetary.h is absent.
22478         * doc/posix-headers/monetary.texi: Add Android to the list of
22479         platforms missing monetary.h.
22481 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22483         tests: avoid recent -Werror=unused-variable regression in test-locale
22484         * tests/test-locale.c (main): Reference the variable to avoid the
22485         "unused variable" warning.
22487 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22489         maint: various whitespace cleanups in tempname
22490         * lib/tempname.c: Normalize spacing and line length.
22491         * lib/tempname.h: Likewise.
22492         * modules/tempname: Likewise.
22494 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22496         tests: provide returns_() to simplify exit status checking
22497         * tests/init.sh (returns_): A new function for use in tests,
22498         to allow for easier checking of return values, where you expect
22499         a command to exit with failure status.  By checking for a particular
22500         exit code, you don't hide any crashes for example.
22502 2015-02-11  Pádraig Brady  <P@draigBrady.com>
22504         mountlist: only use libmount when specified
22505         There are currently many shared libs dependencies introduced by
22506         libmount with associated runtime and virt mem overhead.
22507         Therefore don't enable by default.
22508         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
22510 2015-02-08  Daiki Ueno  <ueno@gnu.org>
22512         uniname/unimame-tests: don't link with -lunistring
22513         * modules/uniname/uniname-tests (Makefile.am): Don't link against
22514         $(LIBUNISTRING).  Document the rationale why we need to
22515         conditionalize the test.
22517 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22519         fstrcmp: don't assume strlen < INT_MAX
22520         * lib/fstrcmp.c: Include stddef.h and stdint.h.
22521         (uintptr_t): Remove, as we're now assuming stdint.
22522         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
22523         Prefer ptrdiff_t to int when the value could exceed INT_MAX
22524         if the input string is long.
22525         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
22526         uintptr_t to size_t when the underlying value is a pointer casted
22527         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
22528         * modules/fstrcmp (Depends-on): Add stdint.
22530         diffseq: prefer ptrdiff_t to ssize_t
22531         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
22532         ptrdiff_t is the natural type for signed indexes.
22533         On a few older platforms, ssize_t is narrower than size_t.
22535         xalloc: fix typo that suppressed warnings
22536         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
22537         This typo, introduced a couple of years ago, mistakenly suppressed
22538         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
22539         -Wmissing-declarations warnings.
22541         full-read: fix license notice typo
22542         * lib/full-read.h: Remove a stray line in the license notice.
22543         Reported by Sam Ellis in: http://bugs.gnu.org/19808
22545         crypto/gc: fix a -Wswitch warning
22546         Reported by Bruce Korb in:
22547         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
22548         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
22550 2015-02-03  Pádraig Brady  <P@draigBrady.com>
22552         gnulib-tool: fix handling of patch(1) diagnostics
22553         * gnulib-tool: Send diagnostics from patch(1) to stderr,
22554         as otherwise gnulib-tool will reparse that output and attempt
22555         to lookup modules.
22557 2015-02-03  Pádraig Brady  <P@draigBrady.com>
22559         bootstrap: exit immediately upon gnulib-tool failure
22560         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
22561         This was noticed when gnulib-tool exited early due to failure
22562         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
22563         but various confusing errors were then given as the build proceeded.
22565 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
22567         symlinkat: include all required header files
22568         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
22569         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
22570         Reported at https://savannah.gnu.org/bugs/index.php?44151
22571         and by Jack Howarth.
22573 2015-01-29  Pádraig Brady  <P@draigBrady.com>
22575         localename: support Solaris 12 and illumos
22576         * lib/localename.c (gl_locale_name_thread_unsafe): call
22577         getlocalename_l() on newer __sun platforms.
22578         Reported by Alexander Pyhalov.
22579         Fix suggested by Rich Burridge.
22581 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
22583         locale: fix tests on illumos (trivial)
22584         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
22585         so move from global scope to main().
22587 2015-01-24  Daiki Ueno  <ueno@gnu.org>
22589         unictype: avoid undefined left-shift behavior
22590         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
22591         gcc's -fsanitize=shift and running its tests triggered:
22592           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
22593             places cannot be represented in type 'int'
22594         Cast LHS to 'unsigned int' after integer promotion.
22595         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
22596         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
22598 2015-01-20  Daiki Ueno  <ueno@gnu.org>
22600         libunistring: bump version of unitypes dependants
22601         Due to the header file search order, all the headers which depend
22602         on unitypes.h need to be generated, when the preinstalled
22603         libunistring is older.
22604         * modules/unicase/base (configure.ac): Bump minimum version to
22605         0.9.4.
22606         * modules/uniconv/base (configure.ac): Likewise.
22607         * modules/unilbrk/base (configure.ac): Likewise.
22608         * modules/uninorm/base (configure.ac): Likewise.
22609         * modules/unistdio/base (configure.ac): Likewise.
22610         * modules/unistr/base (configure.ac): Likewise.
22611         * modules/uniwbrk/base (configure.ac): Likewise.
22612         * modules/uniwidth/base (configure.ac): Likewise.
22614 2015-01-20  Daiki Ueno  <ueno@gnu.org>
22616         unictype/category-none: fix link with libunistring
22617         Since _UC_CATEGORY_NONE is not a public symbol, it will be
22618         prefixed with "libstring_" when compiled as part of libunistring.
22619         To avoid undefined symbol at link time, increase the minimum
22620         version when the dependant modules are updated.
22621         * modules/unictype/category-none (configure.ac): Bump minimum
22622         version to 0.9.5.
22624 2015-01-20  Daiki Ueno  <ueno@gnu.org>
22626         unitypes: fix build with installed libunistring
22627         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
22628         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
22629         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
22631 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22633         time: port to MinGW32 3.21
22634         Problem reported by Eli Zaretskii in:
22635         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
22636         * lib/time.in.h:
22637         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
22638         * modules/time (Depends-on):
22639         Fall back on unistd.h if the other include files don't define
22640         struct timespec.
22642         update-copyright: apply to self
22643         * build-aux/update-copyright: Fix copyright date.  How ironic!
22645 2015-01-15  Daiki Ueno  <ueno@gnu.org>
22647         libunistring: update to Unicode 7.0.0
22648         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
22649         Manichaean names.
22650         * lib/unictype/joininggroup_name.h: Likewise.
22651         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
22652         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
22653         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
22654         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
22655         (fill_arabicshaping, joining_group_as_c_identifier): Support those
22656         enum values.
22657         (is_property_alphabetic): Accept newly added characters to
22658         cuneiform numeric signs.
22659         (is_property_default_ignorable_code_point): Reject U+0605.
22660         (FIELDLEN): Increase from 120 to 160.
22661         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
22662         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
22663         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
22664         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
22665         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
22666         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
22667         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
22668         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
22669         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
22670         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
22671         U+1E8D0..U+1E8D6.
22672         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
22673         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22674         lib/uniwidth/width.c.
22675         * all generated files under lib/uni* and tests/uni*: Regenerate.
22677 2015-01-14  Daiki Ueno  <ueno@gnu.org>
22679         libunistring: update to Unicode 6.3.0
22680         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
22681         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
22682         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
22683         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
22684         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
22685         Update WB5, WB9, WB10, WB13a, and WB13b.
22686         * tests/uniwbrk/test-uc-wordbreaks.c
22687         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
22688         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
22689         (UC_BIDI_PDI): New enumeration values.
22690         (bidi_category_byname): Support those enum values.
22691         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
22692         dedicated property assigned.
22693         (is_property_case_ignorable): Check 0x0027.
22694         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
22695         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
22696         (output_wbp): Support those enum values.
22697         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
22698         (UC_BIDI_PDI): New enumeration values.
22699         * lib/unictype/bidi_byname.gperf: Add those property names.
22700         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
22701         U+180E, U+1A1B, and U+2066..U+2069.
22702         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22703         lib/uniwidth/width.c.
22704         * all generated files under lib/uni* and tests/uni*: Regenerate.
22706 2015-01-14  Daiki Ueno  <ueno@gnu.org>
22708         libunistring: update to Unicode 6.2.0
22709         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
22710         (unilbrk_table): Adjust table size.
22711         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
22712         for LBP_RI.
22713         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
22714         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
22715         Normalize table index skipping ignored properties.
22716         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
22717         WBP_EXTEND and WBP_FORMAT, which are now computed without using
22718         the table.
22719         * lib/uniwbrk/wbrktable.h: Adjust table size.
22720         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
22721         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
22722         Support rule GB8a.
22723         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
22724         * tests/unigbrk/test-uc-is-grapheme-break.c
22725         (graphemebreakproperty_to_string): Support GBP_RI.
22726         * tests/uniwbrk/test-uc-wordbreaks.c
22727         (wordbreakproperty_to_string): Support WBP_RI.
22728         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
22729         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
22730         (output_lbp): Support LBP_RI.  Adjust some characters changed from
22731         LBP_AL to LBP_ID.
22732         (output_lbp): Support LBP_RI.
22733         (WBP_RI): New enumeration value.
22734         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
22735         (output_wbp): Support WBP_RI.
22736         (GBP_RI): New enumeration value.
22737         (output_gbp_test, fill_org_gbp): Support GBP_RI.
22738         * all generated files under lib/uni* and tests/uni*: Regenerate.
22740 2015-01-14  Daiki Ueno  <ueno@gnu.org>
22742         libunistring: update to Unicode 6.1.0
22743         * lib/gen-uni-tables.c (output_joining_group): Switch to
22744         3-level table to accommodate joining groups defined with higher
22745         codepoint value.  Since there are only 88 groups defined in
22746         Unicode 7.0.0, use 7-bit packed format for level3 entries.
22747         (get_lbp): Update for Unicode 6.1.0.
22748         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
22749         3-level table.
22750         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
22751         joining group name.
22752         * lib/unictype/joininggroup_name.h: Likewise.
22753         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
22754         (unilbrk_table): Adjust table size.
22755         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
22756         for LBP_HL.
22757         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
22758         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
22759         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
22760         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
22761         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
22762         U+302E..U+302F.
22763         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22764         lib/uniwidth/width.c.
22765         * all generated files under lib/uni* and tests/uni*: Regenerate.
22766         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
22768 2015-01-15  Daiki Ueno  <ueno@gnu.org>
22770         uniwbrk/u32-wordbreaks-tests: add conformance test
22771         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
22772         tests/uniwbrk/test-uc-wordbreaks.c,
22773         tests/uniwbrk/test-uc-wordbreaks.sh, and
22774         tests/uniwbrk/WordBreakTest.txt.
22775         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
22776         test-uc-wordbreaks to $(check_PROGRAMS), and define
22777         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
22778         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
22779         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
22781 2015-01-15  Daiki Ueno  <ueno@gnu.org>
22783         uniwbrk: ignore Extended/Format characters at BOL not BOS
22784         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
22785         characters if the previous character property is one of
22786         WBP_NEWLINE, WBP_CR, and WBP_LF.
22788 2015-01-11  Jim Meyering  <meyering@fb.com>
22790         test-strstr.c: avoid a trivial leak
22791         * tests/test-strstr.c (main): Free haystack.
22793         update-copyright: recognize groff's \(co marker
22794         * build-aux/update-copyright (circle_c_re): Also accept
22795         uses of \(co, as found in gzip.1.
22797 2015-01-08  Pádraig Brady  <P@draigBrady.com>
22799         maint.mk: fix compatibility with OS X nm
22800         * top/maint.mk (_gl_tight_scope): Use the -g option to
22801         show exported items rather than the -e option which is
22802         ignored on all platforms except OS X where it gives an error.
22803         Reported by Assaf Gordon.
22805 2015-01-07  KO Myung-Hun  <komh@chollian.net>
22807         localcharset: improve charset detection on OS/2
22808         Use system codepage when appropriate.  Map OS/2 codepages to
22809         GNU canonical charset names if possible.
22810         * lib/config.charset: Don't output aliases if "$os" is os2*.
22811         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
22812         result for OS/2.
22813         (locale_charset) [OS2]: Use system codepage if codeset is omitted
22814         from the locale name which is neither "C" nor "POSIX".
22816 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22818         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
22819         This reverts the last patch but one, as it shouldn't be needed now
22820         that the typo is fixed.
22821         * lib/count-leading-zeros.h (count_leading_zeros_ll):
22822         * lib/count-trailing-zeros.h:
22823         * lib/count-one-bits.h:
22824         Go back to using 64-bit intrinsics.
22826         count-leading-zeros: fix pragma typos
22827         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
22828         Fix typos in declaration of intrinsics when _MSC_VER.
22830 2015-01-06  Pádraig Brady  <P@draigBrady.com>
22832         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
22833         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
22834         intrinsics in this case.
22835         * lib/count-trailing-zeros.h: Likewise.
22836         * lib/count-one-bits.h: Likewise.
22838 2015-01-06  Daiki Ueno  <ueno@gnu.org>
22840         uniname/uniname: update to Unicode 7.0.0
22841         To accommodate new characters added since Unicode 5.1.0, this
22842         changes the internal representation of codepoint ranges.
22843         Previously, we grouped codepoint ranges by manually assigned 4-bit
22844         tag, which only allowed 16 groups.  This removes the limitation by
22845         switching to binary search on a table.  For the detail rationale
22846         and the benchmark results, see:
22847         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
22848         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
22849         to INDEX, as it no longer represents a codepoint.
22850         (range): New struct.
22851         (main): Switch to intervals list from a bit-pattern based
22852         classification.
22853         * lib/uniname/uninames.h: Regenerate.
22854         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
22855         * modules/uniname/base (configure.ac): Bump minimum version to
22856         0.9.5.
22857         * modules/uniname/uniname (configure.ac): Bump minimum version to
22858         0.9.5.
22860 2015-01-05  Eric Blake  <eblake@redhat.com>
22862         doc: update INSTALL from autoconf
22863         * doc/install.texi: Resync from autoconf.
22864         * doc/INSTALL: Reflect recent autoconf update.
22865         * doc/INSTALL.ISO: Likewise.
22866         * doc/INSTALL.UTF-8: Likewise.
22868         stdio: fix use of PRIdMAX on modern mingw
22869         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
22870         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
22871         to work with modern mingw.
22873 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
22875         pthread: detect git mingw builds with only partial pollution
22876         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
22877         pollution, as seen temporarily in Fedora 21.
22879 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22881         lib-symbol-versions: cache script check
22882         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
22883         Cache the check for linker version scripts.
22884         From a suggestion by Christophe Curis in:
22885         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
22887 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
22889         maint: fix grammar nits in propername (trivial change)
22890         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
22891         and use an adequate verb and tense.
22893 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
22895         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
22896         * module/gendocs: Add 'doc/gendocs_template_min'.
22898         * build-aux/gendocs.sh: Change email addresses and upstream URLs
22899         from to Gnulib's.
22900         (scripturl, templateurl): Adjust accordingly.
22902 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22904         gendocs: copyright date and version fix
22905         Reported by Karl Berry in:
22906         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
22907         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
22908         Fix copyright date.
22909         * build-aux/gendocs.sh (scriptversion): Update.
22911 2015-01-01  Karl Berry  <karl@gnu.org>
22913         * doc/install.texi,
22914         * build-aux/mdate-sh,
22915         * build-aux/depcomp,
22916         * build-aux/config.guess,
22917         * build-aux/config.sub,
22918         * build-aux/ar-lib,
22919         * build-aux/compile: revert copyright updates (some from last
22920         year) in slaved files.
22922 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22924         version-etc: new year
22925         * doc/gnulib.texi:
22926         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
22927         * all files: Run 'make update-copyright'.
22929 2014-12-30  Pádraig Brady  <P@draigBrady.com>
22931         xstrtol: ensure errno is reset
22932         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
22933         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
22935         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
22937 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22939         utimens: fix dependency typo
22940         * modules/utimens (Depends-on): Remove 'assure'.
22941         This bug was introduced in the recent 'assure' patch.
22943 2014-12-22  Eric Blake  <eblake@redhat.com>
22945         docs: mention why libgen.h is bad
22946         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
22948 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22950         assure: new module
22951         This works better than 'assert' when compiling with -DNDEBUG,
22952         as it avoids some compiler diagnostics in that case.
22953         Reported by Norihiro Tanaka in:
22954         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
22955         * MODULES.html.sh (func_all_modules): Add 'assure'.
22956         * lib/assure.h, modules/assure: New files.
22957         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
22958         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
22959         Prefer 'assure' to 'assert'.
22960         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
22961         * modules/chdir-long, modules/cycle-check, modules/fchdir:
22962         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
22963         Depend on 'assure'.
22965 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22967         stdalign: port better to HP compilers
22968         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
22969         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
22971         stdalign: work around Apple GCC 4.0 bug
22972         Reported by David Fang in:
22973         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
22974         * lib/stdalign.in.h (_Alignas):
22975         * m4/stdalign.m4 (gl_STDALIGN_H):
22976         Do not use aligned attribute with GCC 4.0 on Apple.
22978 2014-12-16  Pádraig Brady  <P@draigBrady.com>
22980         getcwd: fix test failure on OS X 10.9
22981         * m4/getcwd-path-max.m4: Avoid the replacement if it
22982         won't be effective due to the PATH_MAX limitation of lstat().
22983         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
22984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
22985         for this case for use in tests, and also exclude this
22986         case when setting REPLACE_GETCWD.
22987         * tests/test-getcwd.c (test_long_name): Restrict the
22988         tested path length so that lstat() will not be passed
22989         a path greater than PATH_MAX.
22990         Also key a test condition on HAVE_OPENAT_SUPPORT rather
22991         than AT_FDCWD, since the latter is set unconditionally
22992         since Sep 2009 in commit 52c658e9.
22994 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
22996         parse-datetime: avoid a compiler warning with byacc (trivial)
22997         * lib/parse-datetime.y (yylex): Use the same prototype in the
22998         function definition as the declaration, to avoid a -Wstrict-prototypes
22999         warning seen when using byacc.
23001 2014-12-12  Daiki Ueno  <ueno@gnu.org>
23003         unicase/locale-language-tests: fix LOCALE_FR test
23004         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
23005         a French locale with traditional encoding.
23006         Reported by umerqayam in:
23007         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
23009 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23011         stddef: support C11's max_align_t
23012         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
23013         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
23014         Do not undef, as that might cause max_align_t to be defined twice.
23015         Instead, change use to check for _GL_STDDEF_WINT_T too.
23016         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
23017         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
23018         Check for max_align_t.
23019         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
23020         * modules/stddef-tests (Depends-on): Add stdalign.
23021         * tests/test-stddef.c: Test max_align_t.
23023 2014-12-11  Daiki Ueno  <ueno@gnu.org>
23025         unistd: fix iOS check conditional
23026         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
23027         as 0 or 1 in <TargetConditionals.h>, and the previous check always
23028         yielded true on non-iOS environment.
23029         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
23030         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
23031         they are defined.
23033 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23035         posixtm: avoid compiler warning in a better way
23036         * lib/posixtm.c (IF_LINT): Remove.
23037         (year, posix_time_parse):
23038         Return true (not 0) if successful.  All callers changed.
23039         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
23041 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23043         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
23044         started with '/' on EMX.
23046 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
23048         freopen: workaround freopen() on OS/2 kLIBC
23049         * lib/freopen.c (rpl_freopen): Workaround.
23050         * m4/freopen.m4: Add os2* case.
23052         get_shared_library_fullname: port to EMX
23053         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
23054         on EMX, respectively.
23055         (_DLL_InitTerm): New on EMX.
23056         (get_shared_library_fullname): Implement on EMX.
23058         find_executable: port to EMX
23059         * lib/progreloc.c (find_executable): Implement on EMX.
23061         sched: check struct sched_param in spawn.h as well
23062         * lib/sched.in.h: Include spawn.h on kLIBC.
23063         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
23065 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
23067         bootstrap: Allow perl modules in $buildreq
23068         * build-aux/bootstrap: Add case for perl modules.
23070 2014-12-08  Pádraig Brady  <P@draigBrady.com>
23072         apply _GL_ATTRIBUTE_PURE to some inline functions
23073         clang 3.4.2 flagged these inline functions as pure
23074         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
23075         * lib/sig-handler.h (get_handler): Likewise.
23076         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
23077         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
23079 2014-12-06  Pádraig Brady  <P@draigBrady.com>
23081         vasnprintf: fix potential use after free
23082         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
23083         flagged by clang-analyzer 3.4.2.
23085 2014-12-05  Pádraig Brady  <P@draigBrady.com>
23087         filevercmp, posixtm: avoid compiler warnings with -O3
23088         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
23089         * lib/posixtm.c: (IF_LINT): Define.
23090         (posix_time_parse): Use it to void a "may be used uninitialized"
23091         warning, seen only with -O3.
23093 2014-12-05  Bruno Haible  <bruno@clisp.org>
23095         Fix LDBL80_WORDS macro on big endian platforms.
23096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
23097         LDBL80_WORDS macro.
23098         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23099         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23100         * tests/test-isfinite.c (test_isfinitel): Likewise.
23101         * tests/test-isinf.c (test_isinfl): Likewise.
23102         * tests/test-isnan.c (test_long_double): Likewise.
23103         * tests/test-isnanl.h (main): Likewise.
23104         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
23105         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
23106         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
23107         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
23108         Reported by Pádraig Brady.
23110 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
23112         git-version-gen: do not print new line characters
23113         * build-aux/git-version-gen: Use printf instead of echo and tr.
23115         gnulib-tool: recognize x:* as an absolute path
23116         * gnulib-tool (func_gnulib_dir): Add ?:* case.
23117         (func_relconcat): Likewise.
23119 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
23121         argp: avoid extraneous translation and mem leak with empty pre doc
23122         * lib/argp-help.c (argp_doc): Never translate the empty string,
23123         when "\v" is the first or last character of the string, as that
23124         has a reserved meaning to return the header info from a po file.
23125         This also fixes a small memory leak in the !post case.
23126         The issue can be seen with this command for example:
23127         LC_MESSAGES=en_US grub2-mknetdir --help
23129 2014-11-27  Daiki Ueno  <ueno@gnu.org>
23131         uniname/uniname-tests: skip if system's libunistring is used
23132         * modules/uniname/uniname-tests (Makefile.am): Skip test if
23133         uniname/uniname module is not compiled.
23135 2014-11-27  Pádraig Brady  <P@draigBrady.com>
23137         printf: fix configure check on big endian systems
23138         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
23140 2014-11-22  Daiki Ueno  <ueno@gnu.org>
23142         pipe-filter-gi, pipe-filter-ii: port to AIX
23143         On AIX 7.1, 'select' is defined as static and cannot be referred
23144         to from inline function.
23145         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
23146         the definition...
23147         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
23148         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
23150 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23152         gitlog-to-changelog: add --until
23153         * build-aux/gitlog-to-changelog: Support new --until option.
23154         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
23156 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
23158         extern-inline: update commentary about GCC bugs
23159         * m4/extern-inline.m4: Add another GCC bug number to comments.
23161 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23163         gen-uni-tables: untabify
23164         * lib/gen-uni-tables.c: Untabify.
23166 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23168         gen-uni-tables: check out-of-range values added to 3-level tables
23169         * lib/gen-uni-tables.c (output_category, output_bidi_category)
23170         (output_joining_type, output_ident_category): Check out-of-range
23171         values added to 3-level tables.
23173 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23175         gen-uni-tables: utilize 'assert'
23176         * lib/gen-uni-tables.c: Include <assert.h>.
23177         (output_category, output_combclass, output_decimal_digit_test)
23178         (output_decimal_digit, output_digit_test, output_digit)
23179         (output_numeric, get_mirror_value, fill_properties)
23180         (fill_property30, is_property_alphabetic)
23181         (is_property_default_ignorable_code_point)
23182         (is_property_uppercase, is_property_lowercase)
23183         (is_property_cased, is_property_case_ignorable)
23184         (is_property_changes_when_lowercased, is_property_iso_control)
23185         (is_property_math, fill_arabicshaping, output_joining_group)
23186         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
23187         (output_wbp, fill_org_gbp, get_decomposition)
23188         (output_decomposition, fill_composition_exclusions)
23189         (debug_output_composition_tables, output_composition_tables)
23190         (redistribute_casefolding_rules, output_casing_rules): Use
23191         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
23192         reporting.
23194 2014-11-13  Daiki Ueno  <ueno@gnu.org>
23196         gen-uni-tables: cosmetic improvements
23197         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
23198         variables specification.
23199         (is_outdigit): Remove unused function.
23201 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
23203         fcntl-h-tests: port to PA-RISC GNU/Linux
23204         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
23206 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23208         fts: port to C89
23209         Problem reported for MSVC 16 by Gisle Vanem in:
23210         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
23211         * lib/fts.c (fts_build): Avoid declaration before statement.
23213 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23215         unistd: port to iOS
23216         Problem reported by André Klitzing in:
23217         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
23218         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
23220 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
23222         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
23223         Problem reported by Alan Modra in:
23224         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
23225         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
23226         Always cast the function arg, reverting this part of the previous
23227         change.
23229 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23231         obstack: avoid potentially-nonportable function casts
23232         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
23233         Remove, replacing with ...
23234         (call_chunkfun, call_freefun): New static functions.
23235         All uses changed.  Avoid potentially-nonportable casts.
23236         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
23237         (_obstack_begin_worker): Omit last two args, since they
23238         rely on potentially-nonportable casts.  All callers changed.
23239         * lib/obstack.h (_OBSTACK_CAST): New macro.
23240         Use it everywhere the old API used a potentially-nonportable cast.
23241         The new API doesn't cast.
23242         (struct obstack): Use unions rather than requiring
23243         potentially-nonportable casts.
23244         (obstack_chunkfun, obstack_freefun): Return void.
23246 2014-11-03  Alan Modra  <amodra@gmail.com>
23248         obstack: fix macro return values
23249         * lib/obstack.h (obstack_next_free): Return void *.
23250         (obstack_1grow_fast, obstack_blank_fast): Return void.
23251         For __GNUC__ macros:
23252         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
23253         For !__GNUC__ macros:
23254         (obstack_make_room, obstack_grow, obstack_grow0)
23255         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
23257 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23259         obstack: do not assume system-supplied obstack is size_t safe
23260         * m4/obstack.m4: New file.
23261         * modules/obstack (Files): Add it.
23263         obstack: port to platforms that #define __alignof__
23264         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
23265         not if !_LIBC.  We don't know of any platforms that #define
23266         __alignof__, but it might be useful in tests.  Conversely,
23267         glibc assumes GCC.
23269 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23271         linkat: don't unconditionally replace on GNU/Linux
23272         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
23273         was redundant for a few reasons.  It was present to support compiling
23274         on new systems but running on the old narrow window of Linux 2.6.1[67].
23275         It setup and cleaned up test files which weren't actually used.
23276         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
23277         implicit in the following check.
23279 2014-11-03  Pádraig Brady  <P@draigBrady.com>
23281         linkat: wrap to handle symlinks on OS X 10.10
23282         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
23283         but not usable because it doesn't support creating hardlinks
23284         to symlinks.  Therefore add a generic test for this capability
23285         and fallback to our emulation if linkat() fails with ENOTSUP.
23287 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23289         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
23290         * doc/posix-functions/open.texi (open):
23291         * doc/posix-functions/openat.texi (openat):
23292         Document that these functions do not set errno to ELOOP when
23293         a symlink is opened with O_NOFOLLOW.
23295 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
23297         obstack: add NEWS entry for recent incompatible changes
23298         * NEWS: Describe recent changes.
23300 2014-10-30  Pádraig Brady  <P@draigBrady.com>
23302         mountlist: don't use libmount to decide on dummy/remote
23303         * lib/mountlist.c (read_file_system_list): Don't use the libmount
23304         routines to determine whether a file system is dummy or remote,
23305         as they're not currently compatible.  For example the remoteness
23306         is determined on file system type (for which the list seems incomplete),
23307         rather than simply checking for a ':' in the device name.
23308         Also libmount currently determines that 'tmpfs' is a dummy file system
23309         even though it has associated storage.
23311 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23313         obstack: prefer __alignof__ to alignof
23314         This is for portability to pre-4.7 GCC when compiling glibc.
23315         See Joseph S. Myers in:
23316         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
23317         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
23318         New macro, defined by including and using <alignof.h>.
23319         (MAX): New macro.
23320         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
23321         Do not use enums as they are not portable to some broken compilers.
23322         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
23324         obstack: prefer alignof to calculating alignments by hand
23325         * lib/obstack.c: Include <stdalign.h>.
23326         (struct fooalign): Remove.
23327         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
23328         * modules/obstack (Depends-on): Add stdalign.
23330 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23332         obstack: use size_t alignments and check for overflow
23333         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
23334         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
23335         * lib/obstack.h (struct obstack.alignment_mask):
23336         Use _OBSTACK_SIZE_T, not int, for alignments.
23337         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
23338         overflows, e.g., when adding the alignment.
23340 2014-10-29  Alan Modra  <amodra@gmail.com>
23342         obstack: 64-bit obstack support, part 3
23343         This finally enables full 64-bit obstack support.  The glibc
23344         shared library specific code is removed from obstack.c too, and
23345         the error handling code conditionally compiled under control of
23346         another macro, _OBSTACK_NO_ERROR_HANDLER.
23347         * lib/obstack.h: Include string.h earlier.
23348         (_OBSTACK_INTERFACE_VERSION): Define.
23349         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
23350         * lib/obstack.c: Don't include shlib-compat.h.
23351         (OBSTACK_INTERFACE_VERSION): Delete.
23352         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
23353         glibc code is compatible with version 2.  Don't include stdio.h for
23354         __GNU_LIBRARY.
23355         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
23356         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
23357         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
23358         glibc shared library specific source.
23360         obstack: 64-bit obstack support, part 2
23361         This gets us 4G obstack support, without changing ABI
23362         compatibility, apart from possibly introducing some
23363         signed/unsigned comparison warnings in code that uses obstack.h.
23364         a) Replace "int" size parameters, return values, and macro local vars
23365            with _OBSTACK_SIZE_T, an "unsigned int" for now.
23366         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
23367         c) Make all obstack macros checking available room use obstack_room.
23368            "next_free + desired > chunk_limit" may wrap the lhs for chunks
23369            allocated near the top of memory.
23370         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
23371         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
23372         in place of "int" size parameters, return values and local vars.
23373         (_CHUNK_SIZE_T): Define.
23374         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
23375         union use an _OBSTACK_SIZE_T integer type.
23376         For __GNUC__ versions of the following macros...
23377         (obstack_room): Rename local var.
23378         (obstack_make_room): Use obstack_room.
23379         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23380         obstack_int_grow, obstack_blank): Likewise.
23381         (obstack_finish): Use unsigned comparison when comparing aligned
23382         next_free against chunk_limit.
23383         (obstack_free): Cast OBJ to remove possible const qualifier.
23384         For !__GNUC__ versions of the following macros...
23385         (obstack_make_room): Use obstack_room.
23386         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
23387         obstack_int_grow, obstack_blank): Likewise.
23388         (obstack_finish): Use unsigned comparision when comparing aligned
23389         next_free against chunk_limit.
23390         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
23391         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
23392         _OBSTACK_SIZE_T.
23393         (_obstack_begin, _obstack_begin_1): Likewise.
23394         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
23395         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
23397         obstack: 64-bit obstack support, part 1
23398         a) Correct calls to alloc function, to use a size_t arg.  "long" is
23399            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
23400            and "size_t" 64 bits.
23401         b) Consolidate _obstack_begin and _obstack_begin1 code.
23402         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
23403         use "size_t" rather than "long".
23404         (_obstack_begin, _obstack_begin1): Likewise.
23405         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
23406         obstack_chunkfun): Update alloc function casts.
23407         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
23408         (chunkfun_type, freefun_type): New typdefs.
23409         (_obstack_begin_worker): Split out from ..
23410         (_obstack_begin, _obstack_begin_1): ..here.
23412         obstack: tidy part 2
23413         a) Don't be concerned about "not polluting the namespace with stddef.h
23414            symbols" in obstack.h, since gnulib string.h includes stddef.h
23415            anyway, and it seems unlikely that anyone would care.
23416         b) Don't roll our own slow memcpy in _obstack_newchunk.
23417         c) Rename obstack_free to _obstack_free.  This makes the naming
23418            consistent with other obstack functions and obviates the need for
23419            __obstack_free.  Ancient obstack.c defined both obstack_free and
23420            _obstack_free.  We continue to do that for _LIBC via an alias.
23421         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
23422            is clever, but nowadays gcc warns on undefined macros.  You'll get
23423            an undefined macro warning if simulating an old gcc with -U__GNUC__
23424            -U__GNUC_MINOR__ -D__GNUC__=1.
23425         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
23426         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
23427         (__obstack_free): Delete, update refs.
23428         (_obstack_free): Rename from obstack_free.
23429         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
23430         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
23431         * lib/obstack.c: Don't include stddef.h.
23432         (COPYING_UNIT): Delete.
23433         (_obstack_begin): Formatting fix.
23434         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
23435         (_obstack_free): Rename from __obstack_free, update alias.  Move
23436         undef of obstack_free to where it is needed.
23438         obstack: tidy part 1
23439         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
23440            to me, and result in overlong lines after later patches.
23441         b) Move error handling code, to avoid a forward declaration and to
23442            simplify later patches in this series.
23443         * lib/obstack.h (struct obstack <temp>): Rename fields of union
23444         and update all uses.
23445         * lib/obstack.c: Include stdlib.h earlier.
23446         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
23447         in file.
23448         (print_and_abort): Remove now redundant forward declaration.
23450 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23452         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
23453         Without this change, in bleeding-edge fileutils Autoconf complains
23454         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
23455         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
23456         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
23457         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
23459 2014-10-24  Daiki Ueno  <ueno@gnu.org>
23461         iconv: avoid false detection of non-working iconv
23462         The INBUF arguments of iconv can be either 'const char **'
23463         or 'char **'.  If CC is g++, the difference causes a compile error
23464         and thus leads to a false detection of non-working iconv.
23465         Reported by Eli Zaretskii and Werner LEMBERG in:
23466         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
23467         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
23468         iconv.  Bump serial number.
23470 2014-10-23  Pádraig Brady  <P@draigBrady.com>
23472         bootstrap: print more diagnostics for missing programs
23473         * build-aux/bootstrap: only suppress stderr when checking for
23474         alternative program names.  This supports programs issuing non
23475         standard error messages.
23477 2014-10-23  Pádraig Brady  <P@draigBrady.com>
23479         bootstrap: only update the gnulib submodule
23480         * build-aux/bootstrap: Restrict the "submodule update" command
23481         to the gnulib path.
23483 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23485         symlinkat: port to AIX 7.1
23486         * doc/posix-functions/symlinkat.texi (symlinkat):
23487         Mention AIX porting problem.
23488         * lib/symlinkat.c: Always include errno.h.
23489         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
23490         * lib/unistd.in.h (symlinkat): Add replacement machinery.
23491         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
23492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
23493         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
23494         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
23495         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
23497         readlinkat: port to AIX 7.1
23498         * doc/posix-functions/readlink.texi (readlink):
23499         * doc/posix-functions/readlinkat.texi (readlinkat):
23500         Mention AIX porting problem.
23501         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
23502         New function.
23503         * lib/unistd.in.h (readlinkat): Add replacement machinery.
23504         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
23505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
23506         * modules/readlinkat (configure.ac): Also compile replacement
23507         if REPLACE_READLINKAT.
23508         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
23510 2014-10-12  Karl Berry  <karl@gnu.org>
23512         * doc/posix-functions/dirname.texi: remove spurious {.
23514 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
23516         basename, dirname: Improve documentation.
23517         * doc/posix-functions/basename.texi: Mention dirname module and
23518         base_name() function.
23519         * doc/posix-functions/dirname.texi: Mention dir_name() and
23520         mdir_name() functions.
23521         Suggested by Werner LEMBERG <wl@gnu.org>.
23523 2014-09-24  Jim Meyering  <meyering@fb.com>
23525         exclude: declare exclude_patopts static
23526         * lib/exclude.c (exclude_patopts): Declare static,
23527         to avoid triggering a -Wmissing-prototypes warning.
23528         The alternative (declaring it in the .h file) would
23529         require publicizing the private "struct patopts".
23531 2014-09-21  Werner Lemberg  <wl@gnu.org>
23533         dirname: support compilation with C++
23534         * lib/dirname.h: Add necessary C linkage declarations.
23536 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23538         qsort_r: include <config.h>
23539         Problem reported by Tom G. Christensen in:
23540         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
23541         * lib/qsort.c [!_LIBC]: Include <config.h> first.
23543 2014-09-16  Dylan Cali  <calid1984@gmail.com>
23545         avltree-list: avoid compiler warnings (trivial)
23546         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
23547         -Werror=suggest-attribute=pure.
23548         * lib/gl_array_list.c: Likewise.
23549         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
23550         declaration to avoid -Werror=missing-prototypes.  This is not added
23551         to a header as only exported for tests.  Add (void) to the
23552         check_invariants() call to indicate we're discarding the result
23553         in this context which avoids -Werror=unused-value.  Note we don't
23554         use ignore_value here to avoid a dependency as we know we'll not
23555         be adding __attribute__((warn_unused_result)) to check_invariants().
23556         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
23558 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23560         qsort_r: new module, for GNU-style qsort_r
23561         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
23563 2014-09-15  Werner LEMBERG  <wl@gnu.org>
23565         strerror_r-posix: support compilation with C++
23566         * lib/strerror_r.c: Add necessary C linkage declarations.
23568 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
23570         fcntl-h: fix compilation with Intel C++ compiler (trivial)
23571         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
23573 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
23575         mountlist: use /proc/self/mountinfo when available
23576         Use libmount to propagate device IDs provided by Linux in
23577         /proc/self/mountinfo.  This will give more accurate output when
23578         using df in chroot'ed environments as the device IDs are not
23579         determined by stat() which may be inaccurate within the chroot.
23580         * lib/mountlist.c (read_file_system_list): Use the libmount routines
23581         from util-linux to parse "/proc/self/mountinfo" or fall back to
23582         standard getmntent() processing.
23583         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
23584         getmntent() is used, as is the case on GNU/Linux.
23586 2014-09-07  Eric Wong  <normalperson@yhbt.net>
23588         users.txt: add cmogstored
23589         cmogstored has used gnulib since the beginning in 2012 to support
23590         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
23592 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
23594         Trivial change.
23595         * gnulib-tool: Use same options as build-aux/bootstrap to download
23596         PO files.
23598 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
23600         Trivial change.
23601         * gnulib-tool: Fallback to wget when rsync of PO files fails.
23603 2014-09-04  Eric Blake  <eblake@redhat.com>
23605         maintainer-makefile: add syntax check for useless ';;'
23606         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
23608 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
23610         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
23611         Problem reported by Assaf Gordon in:
23612         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
23613         Apparently Ubuntu is doing some fancy link-time optimization
23614         that doesn't work with -lpthread but does work with -pthread.
23615         Work around the bug by preferring -pthread to -lpthread.
23616         * m4/pthread.m4 (gl_PTHREAD_CHECK):
23617         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
23618         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
23619         Treat -pthread like -lpthread.
23621 2014-09-04  Eric Blake  <eblake@redhat.com>
23623         error: drop spurious semicolon
23624         * lib/error.c (__error_at_line): Fix ';;'.
23626 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23628         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
23629         * m4/gnulib-common.m4 (AC_C_RESTRICT):
23630         Override AC_C_RESTRICT unconditionally.
23631         Update from autoconf, incorporating:
23632         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
23633         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
23635 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23637         manywarnings: add GCC 4.9 warnings
23638         Also, make it easier to maintain this in the future.
23639         * build-aux/gcc-warning.spec: Add -Wabi-tag,
23640         -Wconditionally-supported, -Wdelete-incomplete,
23641         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
23642         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
23643         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
23644         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
23645         only for older GCC versions that need them.  Handle
23646         -Wnormalized=nfc specially, so that the 'comm' command used
23647         for maintenance doesn't get confused.
23649 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
23651         vasnprintf: fix bugs in width computation
23652         * lib/vasnprintf.c (VASNPRINTF):
23653         Rework previous change, which introduced a bug,
23654         to avoid the warning in a different way.
23655         Avoid undefined behavior if the width arg is less than -INT_MAX.
23656         Avoid unnecessary use of HAS_WIDTH local.
23658 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
23660         vasnprintf: Avoid signed/unsigned comparison warning.
23661         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
23662         compare end addr of generated string w/ maximum end addr.
23664 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
23666         parse-datetime: Avoid pointer difference.
23667         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
23668         instead of calculating difference of pointers.  This removes an
23669         annoying warning, devoid of any use.
23671 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23673         qsort_r: new module, for GNU-style qsort_r
23674         This works even on FreeBSD, which has an incompatible qsort_r API.
23675         * MODULES.html.sh: Add it.
23676         * doc/glibc-functions/qsort_r.texi: It's now supported.
23677         * lib/qsort.c: New file, taken from glibc with minor changes
23678         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
23679         removed.
23680         * lib/qsort_r.c: New file, compiled only on FreeBSD.
23681         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
23682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
23683         * modules/qsort_r, modules/qsort_r-tests: New files.
23684         * modules/stdlib (Makefile): Set up its defaults.
23685         * tests/test-qsort_r.c: New file.
23687 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
23689         vla: new module
23690         GNU RCS can use this, mostly for documentation I expect.  See:
23691         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
23692         * MODULES.html.sh: Add vla.
23693         * lib/vla.h, modules/vla: New files.
23695 2014-08-07  Daiki Ueno  <ueno@gnu.org>
23697         localename: make gl_locale_name_thread really thread-safe on Windows
23698         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
23699         "glthread/lock.h".
23700         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
23701         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
23703 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
23705         getpass: don't assume struct termios
23706         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
23707         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
23708         * lib/getpass.c (getpass): Port to systems lacking struct termios.
23710         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
23711         Problem reported by Jonas 'Sortie' Termansen in:
23712         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
23713         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
23714         Implement via sysconf for platforms that lack getdtablesize.
23716         vararrays: modernize AC_C_VARARRAYS for C11
23717         This backports a change I recently made to Autoconf.
23718         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
23719         VLAs are not supported, as this is what C11 does.  The old macro
23720         HAVE_C_VARARRAYS is still defined if they are supported, but is
23721         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
23723 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
23725         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
23726         * build-aux/install-reloc (func_create_wrapper): Also wrap
23727         strerror-override, stat, stat.
23729 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23731         sys_select: fix FD_ZERO problem on Solaris 10
23732         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
23733         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
23734         to expand to an expression that invoked memset without necessarily
23735         including <string.h>.  The problem was that the first include
23736         defined _SYS_TIME_H, causing the second include to short-circuit.
23737         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
23738         Also, fix what appears to be a cut-and-paste typo, by replacing
23739         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
23740         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
23742         accept: document Solaris 10 type glitch
23743         * doc/posix-functions/accept.texi (accept): Mention that
23744         Solaris 10 'accept' takes void * last arg, not socklen_t *.
23746 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
23748         extern-inline: port to FreeBSD, DragonFly
23749         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
23750         is present if either __DragonFly__ or __FreeBSD__ is defined.
23751         FreeBSD problem reported by Andrey Borzenkov in:
23752         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
23753         Also, worry about __APPLE__ only if __MACH__ is also defined,
23754         as this is more consistent with the rest of gnulib.
23755         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
23756         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
23758 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23760         regex: Make #if/#ifdef usage consistent for DEBUG
23761         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
23762         of the inconsistent usage of #if and #ifdef as that works with
23763         both Glibc and Gnulib's style.
23765 2014-07-31  Eric Blake  <eblake@redhat.com>
23767         openat-die: use _Noreturn markup
23768         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
23769         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
23770         _Noreturn.
23772 2014-07-30  Eric Blake  <eblake@redhat.com>
23774         test-open: port to cygwin, which lacks Fortify
23775         * tests/test-open.h (ALWAYS_INLINE): New macro.
23776         (__always_inline): Don't abuse internal symbol on non-glibc.
23778 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
23780         localename: Enforce declarations before statements.
23781         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
23782         first statement.
23784 2014-07-18  Jim Meyering  <meyering@fb.com>
23786         test-userspec: don't look up numeric user names
23787         * tests/test-userspec.c: I found a system for which getpwnam("0")
23788         returned a pointer to a non-root user's entry, and that made the
23789         test fail.
23790         (T): Prefix each numeric input with "+", to inhibit lookup.
23792 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
23794         localcharset, localename: MS-Windows support for non-default locales
23795         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
23796         falling back on the default system codepage, try extracting
23797         the codepage from what 'setlocale' returns.  This allows to
23798         take into account changes of the codeset due to non-default
23799         locale set by a previous call to 'setlocale'.
23800         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
23801         Define if not already defined.
23802         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
23803         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
23804         current locale by calling 'setlocale', then converting the
23805         locale name into LCID by calling 'get_lcid'.  This allows to
23806         take into account changes in the current locale from the
23807         default one, in contrast to GetThreadLocale.
23809 2014-07-14  Daiki Ueno  <ueno@gnu.org>
23811         announce-gen: avoid failure when Digest::SHA is installed
23812         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
23813         Digest::SHA1->new in print_checksums fails.
23814         * build-aux/announce-gen (digest_classes): New associative array
23815         for available message digest implementations.
23816         (print_locations): Use it.
23818 2014-07-13  Pádraig Brady  <P@draigBrady.com>
23820         gettext: revert "update macros to version 0.19"
23821         This reverts commit 9b9370ca, as it currently requires that
23822         developers of any project that explicitly uses the gettext module
23823         or implicitly uses it through the utimens-tests or
23824         futimens-tests modules, use gettext >= 0.19.
23825         However there are some stability and availablity issues with
23826         that version at present.  We can reinstate this soon, when stability
23827         is addressed and packages are more readily available.
23829 2014-07-12  Jim Meyering  <meyering@fb.com>
23831         regex: don't deref NULL upon heap allocation failure
23832         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
23833         failure in one more place.
23834         To trigger the segfault, configure grep -with-included-regex,
23835         build it, and run these commands:
23836         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
23837         I discovered this while replying to a private report from
23838         Jens Schleusener about excessive memory consumption by grep
23839         when using a regular expression like the one above.
23841 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
23843         regex: fix memory leak in compiler
23844         Fix by Andreas Schwab in:
23845         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
23846         * lib/regcomp.c (parse_reg_exp): Deallocate partially
23847         constructed tree before returning error.
23849 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
23851         announce-gen: avoid perl warnings
23852         * build-aux/announce-gen: add two minor checks to avoid
23853         "use of uninitialized value" warnings when command-line parameters are
23854         missing.
23856 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
23858         localename: avoid -Wsuggest-attribute={const,pure} warnings
23859         * lib/localename.c (string_has): Tag internal function as pure.
23860         * lib/localename.h (gl_locale_name_default): Tag extern declaration
23861         as const when appropriate.
23863 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
23865         nl_langinfo: Fix last change.
23866         * lib/nl_langinfo.c (includes): Drop redundant include.
23868 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23870         error: Fix -Wundef warnings in glibc
23871         * lib/error.c [_LIBC]: Define default macros for
23872         glibc.
23873         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
23874         Check _LIBC before STRERROR_R_CHAR_P.
23876         error: Sync from glibc master
23877         * lib/error.c [_LIBC]: Remove INTUSE usage.
23878         (error_tail): Remove unused macro ALLOCA_LIMIT.
23879         Fix potential buffer overflow.  Fix potential NULL dereference
23880         in strcmp.
23882 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
23884         nl_langinfo: fix build under mingw
23885         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
23887 2014-07-09  Andrew D Warshall  <warshall@99main.com>
23889         mountlist: do not classify a bind-mounted dir entry as "dummy"
23890         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
23891         1-argument getmntent() (instead of assuming absence).
23893 2014-07-08  Eric Blake  <eblake@redhat.com>
23895         maint.mk: less syntax-check noise when SIGPIPE is ignored
23896         * top/maint.mk (_sc_header_without_use)
23897         (sc_require_config_h_first): Parse full list.
23899 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
23900             Paul Eggert  <eggert@cs.ucla.edu>
23902         nl_langinfo: CODESET on MS-Windows and more items from localeconv
23903         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
23904         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
23905         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
23906         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
23907         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
23908         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
23909         Include <stdio.h> if Microsoft Windows.
23910         Include <time.h> if !REPLACE_NL_LANGINFO.
23911         (ctype_codeset): New function, taken from rpl_nl_langinfo,
23912         and with improvements for Microsoft Windows.
23913         (rpl_nl_langinfo): Use it.
23914         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
23915         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
23916         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
23917         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
23918         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
23919         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
23920         corresponding values returned by 'localeconv'.  Compute the values
23921         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
23922         'strftime' with a suitable struct tm value.
23924 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23926         Bruno Haible has stepped down as maintainer.
23927         See Karl Berry in:
23928         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
23929         Daiki Ueno has volunteered to maintain libunistring; see:
23930         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
23931         * modules/gen-uni-tables, modules/libunistring:
23932         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
23933         * modules/unicase/base, modules/unicase/cased:
23934         * modules/unicase/empty-prefix-context:
23935         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
23936         * modules/unicase/locale-language, modules/unicase/special-casing:
23937         * modules/unicase/tocasefold, modules/unicase/tolower:
23938         * modules/unicase/totitle, modules/unicase/toupper:
23939         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
23940         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
23941         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
23942         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
23943         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
23944         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
23945         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
23946         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
23947         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
23948         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
23949         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
23950         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
23951         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
23952         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
23953         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
23954         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
23955         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
23956         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
23957         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
23958         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
23959         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
23960         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
23961         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
23962         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
23963         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
23964         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
23965         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
23966         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
23967         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
23968         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
23969         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
23970         * modules/unicase/ulc-casexfrm, modules/unicodeio:
23971         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
23972         * modules/uniconv/u16-conv-to-enc:
23973         * modules/uniconv/u16-strconv-from-enc:
23974         * modules/uniconv/u16-strconv-from-locale:
23975         * modules/uniconv/u16-strconv-to-enc:
23976         * modules/uniconv/u16-strconv-to-locale:
23977         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
23978         * modules/uniconv/u32-strconv-from-enc:
23979         * modules/uniconv/u32-strconv-from-locale:
23980         * modules/uniconv/u32-strconv-to-enc:
23981         * modules/uniconv/u32-strconv-to-locale:
23982         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
23983         * modules/uniconv/u8-strconv-from-enc:
23984         * modules/uniconv/u8-strconv-from-locale:
23985         * modules/uniconv/u8-strconv-to-enc:
23986         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
23987         * modules/unictype/bidicategory-all:
23988         * modules/unictype/bidicategory-byname:
23989         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
23990         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
23991         * modules/unictype/bidiclass-byname:
23992         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
23993         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
23994         * modules/unictype/block-all, modules/unictype/block-list:
23995         * modules/unictype/block-of, modules/unictype/block-test:
23996         * modules/unictype/category-C, modules/unictype/category-Cc:
23997         * modules/unictype/category-Cf, modules/unictype/category-Cn:
23998         * modules/unictype/category-Co, modules/unictype/category-Cs:
23999         * modules/unictype/category-L, modules/unictype/category-LC:
24000         * modules/unictype/category-Ll, modules/unictype/category-Lm:
24001         * modules/unictype/category-Lo, modules/unictype/category-Lt:
24002         * modules/unictype/category-Lu, modules/unictype/category-M:
24003         * modules/unictype/category-Mc, modules/unictype/category-Me:
24004         * modules/unictype/category-Mn, modules/unictype/category-N:
24005         * modules/unictype/category-Nd, modules/unictype/category-Nl:
24006         * modules/unictype/category-No, modules/unictype/category-P:
24007         * modules/unictype/category-Pc, modules/unictype/category-Pd:
24008         * modules/unictype/category-Pe, modules/unictype/category-Pf:
24009         * modules/unictype/category-Pi, modules/unictype/category-Po:
24010         * modules/unictype/category-Ps, modules/unictype/category-S:
24011         * modules/unictype/category-Sc, modules/unictype/category-Sk:
24012         * modules/unictype/category-Sm, modules/unictype/category-So:
24013         * modules/unictype/category-Z, modules/unictype/category-Zl:
24014         * modules/unictype/category-Zp, modules/unictype/category-Zs:
24015         * modules/unictype/category-all, modules/unictype/category-and:
24016         * modules/unictype/category-and-not, modules/unictype/category-byname:
24017         * modules/unictype/category-longname, modules/unictype/category-name:
24018         * modules/unictype/category-none, modules/unictype/category-of:
24019         * modules/unictype/category-or, modules/unictype/category-test:
24020         * modules/unictype/category-test-withtable:
24021         * modules/unictype/combining-class:
24022         * modules/unictype/combining-class-all:
24023         * modules/unictype/combining-class-byname:
24024         * modules/unictype/combining-class-longname:
24025         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
24026         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
24027         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
24028         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
24029         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
24030         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
24031         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
24032         * modules/unictype/digit, modules/unictype/joininggroup-all:
24033         * modules/unictype/joininggroup-byname:
24034         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
24035         * modules/unictype/joiningtype-all:
24036         * modules/unictype/joiningtype-byname:
24037         * modules/unictype/joiningtype-longname:
24038         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
24039         * modules/unictype/mirror, modules/unictype/numeric:
24040         * modules/unictype/property-all, modules/unictype/property-alphabetic:
24041         * modules/unictype/property-ascii-hex-digit:
24042         * modules/unictype/property-bidi-arabic-digit:
24043         * modules/unictype/property-bidi-arabic-right-to-left:
24044         * modules/unictype/property-bidi-block-separator:
24045         * modules/unictype/property-bidi-boundary-neutral:
24046         * modules/unictype/property-bidi-common-separator:
24047         * modules/unictype/property-bidi-control:
24048         * modules/unictype/property-bidi-embedding-or-override:
24049         * modules/unictype/property-bidi-eur-num-separator:
24050         * modules/unictype/property-bidi-eur-num-terminator:
24051         * modules/unictype/property-bidi-european-digit:
24052         * modules/unictype/property-bidi-hebrew-right-to-left:
24053         * modules/unictype/property-bidi-left-to-right:
24054         * modules/unictype/property-bidi-non-spacing-mark:
24055         * modules/unictype/property-bidi-other-neutral:
24056         * modules/unictype/property-bidi-pdf:
24057         * modules/unictype/property-bidi-segment-separator:
24058         * modules/unictype/property-bidi-whitespace:
24059         * modules/unictype/property-byname:
24060         * modules/unictype/property-case-ignorable:
24061         * modules/unictype/property-cased:
24062         * modules/unictype/property-changes-when-casefolded:
24063         * modules/unictype/property-changes-when-casemapped:
24064         * modules/unictype/property-changes-when-lowercased:
24065         * modules/unictype/property-changes-when-titlecased:
24066         * modules/unictype/property-changes-when-uppercased:
24067         * modules/unictype/property-combining:
24068         * modules/unictype/property-composite:
24069         * modules/unictype/property-currency-symbol:
24070         * modules/unictype/property-dash:
24071         * modules/unictype/property-decimal-digit:
24072         * modules/unictype/property-default-ignorable-code-point:
24073         * modules/unictype/property-deprecated:
24074         * modules/unictype/property-diacritic:
24075         * modules/unictype/property-extender:
24076         * modules/unictype/property-format-control:
24077         * modules/unictype/property-grapheme-base:
24078         * modules/unictype/property-grapheme-extend:
24079         * modules/unictype/property-grapheme-link:
24080         * modules/unictype/property-hex-digit:
24081         * modules/unictype/property-hyphen:
24082         * modules/unictype/property-id-continue:
24083         * modules/unictype/property-id-start:
24084         * modules/unictype/property-ideographic:
24085         * modules/unictype/property-ids-binary-operator:
24086         * modules/unictype/property-ids-trinary-operator:
24087         * modules/unictype/property-ignorable-control:
24088         * modules/unictype/property-iso-control:
24089         * modules/unictype/property-join-control:
24090         * modules/unictype/property-left-of-pair:
24091         * modules/unictype/property-line-separator:
24092         * modules/unictype/property-logical-order-exception:
24093         * modules/unictype/property-lowercase, modules/unictype/property-math:
24094         * modules/unictype/property-non-break:
24095         * modules/unictype/property-not-a-character:
24096         * modules/unictype/property-numeric:
24097         * modules/unictype/property-other-alphabetic:
24098         * modules/unictype/property-other-default-ignorable-code-point:
24099         * modules/unictype/property-other-grapheme-extend:
24100         * modules/unictype/property-other-id-continue:
24101         * modules/unictype/property-other-id-start:
24102         * modules/unictype/property-other-lowercase:
24103         * modules/unictype/property-other-math:
24104         * modules/unictype/property-other-uppercase:
24105         * modules/unictype/property-paired-punctuation:
24106         * modules/unictype/property-paragraph-separator:
24107         * modules/unictype/property-pattern-syntax:
24108         * modules/unictype/property-pattern-white-space:
24109         * modules/unictype/property-private-use:
24110         * modules/unictype/property-punctuation:
24111         * modules/unictype/property-quotation-mark:
24112         * modules/unictype/property-radical:
24113         * modules/unictype/property-sentence-terminal:
24114         * modules/unictype/property-soft-dotted:
24115         * modules/unictype/property-space:
24116         * modules/unictype/property-terminal-punctuation:
24117         * modules/unictype/property-test, modules/unictype/property-titlecase:
24118         * modules/unictype/property-unassigned-code-value:
24119         * modules/unictype/property-unified-ideograph:
24120         * modules/unictype/property-uppercase:
24121         * modules/unictype/property-variation-selector:
24122         * modules/unictype/property-white-space:
24123         * modules/unictype/property-xid-continue:
24124         * modules/unictype/property-xid-start:
24125         * modules/unictype/property-zero-width, modules/unictype/scripts:
24126         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
24127         * modules/unictype/syntax-c-whitespace:
24128         * modules/unictype/syntax-java-ident:
24129         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
24130         * modules/unigbrk/u16-grapheme-breaks:
24131         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
24132         * modules/unigbrk/u32-grapheme-breaks:
24133         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
24134         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
24135         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
24136         * modules/unigbrk/uc-is-grapheme-break:
24137         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
24138         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
24139         * modules/unilbrk/u16-width-linebreaks:
24140         * modules/unilbrk/u32-possible-linebreaks:
24141         * modules/unilbrk/u32-width-linebreaks:
24142         * modules/unilbrk/u8-possible-linebreaks:
24143         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
24144         * modules/unilbrk/ulc-possible-linebreaks:
24145         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
24146         * modules/uniname/uniname, modules/uninorm/base:
24147         * modules/uninorm/canonical-decomposition:
24148         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
24149         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
24150         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
24151         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
24152         * modules/uninorm/nfkc, modules/uninorm/nfkd:
24153         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
24154         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
24155         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
24156         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
24157         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
24158         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
24159         * modules/unistdio/base, modules/unistdio/u-printf-args:
24160         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
24161         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
24162         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
24163         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
24164         * modules/unistdio/u16-u16-sprintf:
24165         * modules/unistdio/u16-u16-vasnprintf:
24166         * modules/unistdio/u16-u16-vasprintf:
24167         * modules/unistdio/u16-u16-vsnprintf:
24168         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
24169         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
24170         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
24171         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
24172         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
24173         * modules/unistdio/u32-u32-asnprintf:
24174         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
24175         * modules/unistdio/u32-u32-sprintf:
24176         * modules/unistdio/u32-u32-vasnprintf:
24177         * modules/unistdio/u32-u32-vasprintf:
24178         * modules/unistdio/u32-u32-vsnprintf:
24179         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
24180         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
24181         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
24182         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
24183         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
24184         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
24185         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
24186         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
24187         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
24188         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
24189         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
24190         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
24191         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
24192         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
24193         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
24194         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
24195         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
24196         * modules/unistr/u16-check, modules/unistr/u16-chr:
24197         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
24198         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
24199         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
24200         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
24201         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
24202         * modules/unistr/u16-move, modules/unistr/u16-next:
24203         * modules/unistr/u16-prev, modules/unistr/u16-set:
24204         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
24205         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
24206         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
24207         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
24208         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
24209         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
24210         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
24211         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
24212         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
24213         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
24214         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
24215         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
24216         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
24217         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
24218         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
24219         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
24220         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
24221         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
24222         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
24223         * modules/unistr/u32-next, modules/unistr/u32-prev:
24224         * modules/unistr/u32-set, modules/unistr/u32-startswith:
24225         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
24226         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
24227         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
24228         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
24229         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
24230         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
24231         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
24232         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
24233         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
24234         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
24235         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
24236         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
24237         * modules/unistr/u8-check, modules/unistr/u8-chr:
24238         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
24239         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
24240         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
24241         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
24242         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
24243         * modules/unistr/u8-next, modules/unistr/u8-prev:
24244         * modules/unistr/u8-set, modules/unistr/u8-startswith:
24245         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
24246         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
24247         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
24248         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
24249         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
24250         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
24251         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
24252         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
24253         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
24254         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
24255         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
24256         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
24257         * modules/uniwbrk/base, modules/uniwbrk/table:
24258         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
24259         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
24260         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
24261         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
24262         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
24263         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
24264         * modules/uniwidth/width, modules/utf16-ucs4:
24265         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
24266         * modules/utf8-ucs4-unsafe:
24267         Change maintainer from Bruno Haible to Daiki Ueno.
24268         This is my guess at the libunistring modules; please feel free
24269         to fix if I guessed incorrectly.
24270         * modules/accept4, modules/acl, modules/acos, modules/acosf:
24271         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
24272         * modules/areadlink, modules/array-list, modules/array-mergesort:
24273         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
24274         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
24275         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
24276         * modules/binary-io, modules/bison-i18n, modules/btowc:
24277         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
24278         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
24279         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
24280         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
24281         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
24282         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
24283         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
24284         * modules/closedir, modules/concat-filename, modules/copy-file:
24285         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
24286         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
24287         * modules/csharpcomp-script, modules/csharpexec:
24288         * modules/csharpexec-script, modules/ctype, modules/diffseq:
24289         * modules/dprintf, modules/dprintf-posix, modules/dup:
24290         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
24291         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
24292         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
24293         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
24294         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
24295         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
24296         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
24297         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
24298         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
24299         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
24300         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
24301         * modules/findprog, modules/findprog-lgpl, modules/floor:
24302         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
24303         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
24304         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
24305         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
24306         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
24307         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
24308         * modules/freadable, modules/freadahead, modules/freadptr:
24309         * modules/freadseek, modules/freopen, modules/frexp:
24310         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
24311         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
24312         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
24313         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
24314         * modules/ftello, modules/full-read, modules/full-write:
24315         * modules/fwritable, modules/fwriteerror, modules/gcd:
24316         * modules/get-rusage-as, modules/get-rusage-data:
24317         * modules/getdtablesize, modules/getrusage, modules/gettext:
24318         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
24319         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
24320         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
24321         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
24322         * modules/iconv, modules/iconv-h, modules/iconv_open:
24323         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
24324         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
24325         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
24326         * modules/integer_length_ll, modules/ioctl, modules/isatty:
24327         * modules/isblank, modules/isnand, modules/isnand-nolibm:
24328         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
24329         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
24330         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
24331         * modules/javaexec, modules/javaexec-script, modules/javaversion:
24332         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
24333         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
24334         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
24335         * modules/lib-symbol-visibility, modules/libsigsegv:
24336         * modules/linked-list, modules/linkedhash-list, modules/list:
24337         * modules/localcharset, modules/locale, modules/localeconv:
24338         * modules/localename, modules/lock, modules/log, modules/log-ieee:
24339         * modules/log10, modules/log10-ieee, modules/log10f:
24340         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
24341         * modules/log1p, modules/log1p-ieee, modules/log1pf:
24342         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
24343         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
24344         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
24345         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
24346         * modules/logf, modules/logf-ieee, modules/login_tty:
24347         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
24348         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
24349         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
24350         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
24351         * modules/mbscspn, modules/mbsinit, modules/mbslen:
24352         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
24353         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
24354         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
24355         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
24356         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
24357         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
24358         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
24359         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
24360         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
24361         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
24362         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
24363         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
24364         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
24365         * modules/posix_spawn, modules/posix_spawn-internal:
24366         * modules/posix_spawn_file_actions_addclose:
24367         * modules/posix_spawn_file_actions_adddup2:
24368         * modules/posix_spawn_file_actions_addopen:
24369         * modules/posix_spawn_file_actions_destroy:
24370         * modules/posix_spawn_file_actions_init:
24371         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
24372         * modules/posix_spawnattr_getpgroup:
24373         * modules/posix_spawnattr_getschedparam:
24374         * modules/posix_spawnattr_getschedpolicy:
24375         * modules/posix_spawnattr_getsigdefault:
24376         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
24377         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
24378         * modules/posix_spawnattr_setschedparam:
24379         * modules/posix_spawnattr_setschedpolicy:
24380         * modules/posix_spawnattr_setsigdefault:
24381         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
24382         * modules/pow, modules/powf, modules/printf-frexp:
24383         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
24384         * modules/progname, modules/propername, modules/pselect:
24385         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
24386         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
24387         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
24388         * modules/read, modules/readdir, modules/readlink:
24389         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
24390         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
24391         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
24392         * modules/relocatable-script, modules/remainder:
24393         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
24394         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
24395         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
24396         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
24397         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
24398         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
24399         * modules/setlocale, modules/sh-quote, modules/shutdown:
24400         * modules/signal, modules/signbit, modules/sigpipe:
24401         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
24402         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
24403         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
24404         * modules/snippet/link-warning, modules/snippet/unused-parameter:
24405         * modules/snprintf, modules/snprintf-posix, modules/spawn:
24406         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
24407         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
24408         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
24409         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
24410         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
24411         * modules/streq, modules/strerror_r-posix, modules/striconv:
24412         * modules/striconveh, modules/striconveha, modules/strncat:
24413         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
24414         * modules/sublist, modules/sys_resource, modules/sys_utsname:
24415         * modules/sys_wait, modules/system-posix, modules/system-quote:
24416         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
24417         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
24418         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
24419         * modules/truncf, modules/truncf-ieee, modules/truncl:
24420         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
24421         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
24422         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
24423         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
24424         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
24425         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
24426         * modules/wait-process, modules/waitpid, modules/wcpcpy:
24427         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
24428         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
24429         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
24430         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
24431         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
24432         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
24433         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
24434         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
24435         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
24436         * modules/write, modules/xconcat-filename, modules/xlist:
24437         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
24438         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
24439         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
24440         * modules/y0, modules/y1, modules/yn:
24441         Remove Bruno Haible as maintainer; if he's the sole maintainer,
24442         change the maintainer to 'all'.  Let's hope someone volunteers.
24444 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
24446         mktime: merge #if/#ifdef usage from glibc
24447         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
24448         as that works with both Glibc's and Gnulib's style.
24449         See thread starting at Siddhesh Poyarekar's bug report at:
24450         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
24452 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
24454         git-version-gen: improve option descriptions
24455         * build-aux/git-version-gen: Mention that --prefix and --fallback
24456         have a mandatory argument.
24458 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24460         regex: fix memory leak in compiler
24461         Fix by Andreas Schwab in:
24462         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
24463         * lib/regcomp.c (parse_expression): Deallocate partially
24464         constructed tree before returning error.
24466         regex: merge patch from libc
24467         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
24468         Combine __USE_BSD and __USE_SVID into __USE_MISC.
24469         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
24471 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
24473         acl: port to gcc -Wredundant-decls
24474         From a request by Dmitry Antipov in:
24475         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
24476         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
24477         "#ifndef _GL_ACL_H".
24479 2014-06-11  Bruce Korb  <bkorb@gnu.org>
24480         Jim Meyering  <meyering@fb.com>
24482         parse-duration: eliminate 68-year duration limit
24483         * lib/parse-duration.c: Include "intprops.h".
24484         (TIME_MAX): Rename to MAX_DURATION and define to
24485         TYPE_MAXIMUM(time_t).
24486         * modules/parse-duration (Depends-on): Add intprops.
24487         Reported by Jonas 'Sortie' Termansen.
24489 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24491         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
24492         * modules/pthread (Depends-on): Add 'extensions', as it defines
24493         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
24494         (configure.ac-early): New section.
24495         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
24496         it is no longer needed.
24498 2014-06-14  Pádraig Brady  <P@draigBrady.com>
24500         pthread: define thread-safe macros on some platforms
24501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
24502         for thread-safe operation on some platforms.
24504 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24506         regex: don't be multithreaded if USE_UNLOCKED_IO.
24507         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
24508         * lib/regex_internal.h: Do not use multithreaded version if
24509         USE_UNLOCKED_IO is defined.  This is a hack, but it works
24510         around a porting bug with coreutils 8.22 on AIX 7.1.
24512 2014-06-11  Daiki Ueno  <ueno@gnu.org>
24514         gettext: update macros to version 0.19
24515         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
24516         depend on gl_EXTERN_INLINE and drop support for older Bison
24517         versions.
24519 2014-06-10  Pádraig Brady  <P@draigBrady.com>
24521         select,poll: fix console handle check on windows 8
24522         lib/poll.c (IsConsoleHandle): Change from testing the lower
24523         2 bits of the handle to the more expensive but accurate syscall.
24524         lib/select.c: Likewise.
24526 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
24528         select: fix waiting on anonymous pipes on MS-Windows
24529         * lib/select.c (rpl_select): Fall back to polling when select()
24530         indicates there is nothing to check, while due to the timeout not
24531         expiring, activity is indicated on one of the handles.
24532         Also clear the TIMEOUT argument if the timer does expire.
24534 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
24536         times: fix to return non constant value on MS-Windows
24537         * lib/times.c (times): Don't use the process creation time,
24538         rather clock() which on windows returns the number of
24539         clock ticks since the process started.
24541 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
24543         isatty: fix to work on windows 8
24544         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
24545         2 bits of the handle to the more expensive but accurate syscall.
24547 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
24549         maint: fix typo in fdl.texi
24550         * doc/fdl.texi: Fix typo (missing '@').
24551         Somehow this was in fdl.texi but not fdl-1.3.texi.
24553 2014-06-06  Ben Walton  <bdwalton@gmail.com>
24555         mountlist: avoid hasmntopt const type warning on solaris
24556         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
24557         with char * instead of const char *.  Passing the constant string
24558         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
24559         to avoid the warning.
24561 2014-06-04  Eric Blake  <eblake@redhat.com>
24563         maintainer-makefile: delete obsolete code
24564         * top/maint.mk (build_aux): Drop old code, as threatened.
24566         maintainer-makefile: avoid spurious error messages
24567         * top/maint.mk (syntax-check): Guard definition and use of
24568         $(shell) by whether Makefile is present.
24570 2014-06-03  Ben Walton  <bdwalton@gmail.com>
24572         rename: avoid unused-but-set-variable compiler warning
24573         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
24574         it is possible that dst_exists may be set but not used.  Mark it with
24575         the unused attribute to avoid compiler warnings.
24577 2014-06-02  Ben Walton  <bdwalton@gmail.com>
24579         rename: mark a label as potentially unused
24580         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
24581         by marking the out label as potentially unused.
24582         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
24584 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
24586         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
24587         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
24589 2014-06-02  Ben Walton  <bdwalton@gmail.com>
24591         acl: apply pure attribute to two functions
24592         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
24593         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
24595 2014-06-01  Pádraig Brady  <P@draigBrady.com>
24597         gnulib-common.m4: add _GL_UNUSED_LABEL
24598         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
24599         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
24601 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24603         dup2, fcntl, fcntl-h: port to AIX 7.1
24604         This fixes some porting problems discovered when testing the latest
24605         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
24606         in grep but it could be important for other applications.
24607         * doc/posix-functions/dup2.texi:
24608         * doc/posix-functions/fcntl.texi:
24609         * doc/posix-headers/fcntl.texi:
24610         Document AIX bugs.
24611         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
24612         Define to 0 if outside 'int' range.
24613         * m4/dup2.m4 (gl_FUNC_DUP2):
24614         * m4/fcntl.m4 (gl_FUNC_FCNTL):
24615         Check for getdtablesize.  If it's available, test a value just
24616         outside its range instead of testing 1000000.  When cross-compiling,
24617         guess that AIX will fail this improved test.
24619 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24621         printf, config.rpath: Port to FreeBSD 10.
24622         Problem reported by Tijl Coosemans in:
24623         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
24624         * build-aux/config.rpath (hardcode_libdir_flag_spec)
24625         (hardcode_direct): Simplify FreeBSD configuration.
24626         (library_names_spec): Don't mishandle FreeBSD 10+.
24627         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
24628         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
24629         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
24630         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
24631         Don't mishandle FreeBSD 10+ when cross-compiling.
24633         ftoastr: work around compiler bug in IBM xlc 12.1
24634         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
24635         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
24636         around a compiler bug in IBM xlc 12.1.0.0: it complains
24637         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
24638         _GL_FLT_PREC_BOUND.'
24640 2014-05-30  Kieran Colford  <colfordk@gmail.com>
24642         valgrind-tests: fixed misleading help message
24643         * m4/valgrind-tests.m4: The help message generated by configure
24644         implied that valgrind was disabled by default, which it wasn't.
24645         Adjusted the help message using s/enable/disable/ to clarify.
24647 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
24649         isfinite, isinf, isnan tests: fix for little-endian PowerPC
24650         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
24651         first double of a PowerPC "double double" pair.
24652         * tests/test-isinf.c (test_isinfl): Likewise.
24653         * tests/test-isnan.c (test_long_double): Likewise.
24654         * tests/test-isnanl.h (main): Likewise.
24655         * tests/test-signbit.c (test_signbitl): Likewise.
24657 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
24659         exclude-tests: port to AIX 7.1
24660         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
24661         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
24662         the regex code uses locks.
24664 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
24666         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
24667         Without this fix, Emacs would sometimes call sigprocmask instead
24668         of pthread_sigmask, which is a no-no in multithreaded applications.
24669         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
24670         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
24671         Suppress check for pthread_sigmask working without -lpthread if
24672         the application always links with -lpthread.  Do not link with
24673         $LIBMULTITHREAD if gl_THREADLIB is not defined.
24674         * m4/timer_time.m4 (gl_TIMER_TIME):
24675         Require gl_THREADLIB only if it is defined.  Do not append
24676         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
24678 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
24680         gnulib-tool: wget translations using --no-verbose rather than --quiet
24681         This allows the user to see error messages if any (--quiet hides them)
24682         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
24684 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
24686         gnulib-tool: adjust translation wget to avoid a https redirection
24687         Context: http://translationproject.org/latest/gnulib redirects to
24688            https://translationproject.org/latest/gnulib/
24689         Rationale: if the user falls back to wget, she doesn't have rsync and
24690         is probably in a minimal build environment, where packages such as
24691         'ca-certificates' are missing as well, resulting in a failed (and
24692         difficult to detect since ignored) translation initial fetch.
24693         Consequently let's avoid https if possible, and add the missing
24694         trailing slash.  This also avoids an unnecessary 302 redirection.
24695         * gnulib-tool: Add trailing slash to gnulib URL.
24697 2014-05-22  Pádraig Brady  <P@draigBrady.com>
24699         getlogin_r-tests: check return value rather than errno
24700         * tests/test-getlogin_r.c (main): As per POSIX we should be
24701         verifying the return value from getlogin_r() rather than errno.
24703 2014-05-22  Pádraig Brady  <P@draigBrady.com>
24705         getlogin_r-tests: fix various issues in recent change
24706         * tests/test-getlogin_r.c: Include required headers that were
24707         missed in recent commit eec20b4e.
24708         Also consistently check the errno rather than the return value from
24709         getlogin_r as POSIX only specifies that non zero is returned on error.
24710         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
24712 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
24714         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
24715         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
24716         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
24717         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
24718         * lib/spawn-pipe.c:
24719         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
24720         and then 'int open64(const char *, int, ...);', which means the
24721         declaration for 'open' gets lost if we later '#undef open'.
24722         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
24723         where the compilation reported the non-fatal error "In function
24724         'openat_proc_name' ... warning: implicit declaration of function
24725         'open'".  In this case the error is relatively harmless, but in
24726         other cases it might not be so minor.
24728 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24730         xalloc: don't potentially generate invalid code for xmemdup calls
24731         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
24732         this function can initialize the newly-allocated storage with new
24733         pointers, which means this function is not malloc-like.  See:
24734         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
24736 2014-05-19  Pádraig Brady  <P@draigBrady.com>
24738         getlogin_r-tests: avoid false failure under sudo/ssh etc.
24739         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
24740         changes from commit 97249cf29 to not depend on environment variables.
24742 2014-05-18  Pádraig Brady  <P@draigBrady.com>
24744         getlogin-tests: avoid false failure under cron
24745         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
24746         since that's not what's under test.  Centos 6 was seen to return
24747         EINVAL for ttyname() when run from cron.
24749 2014-05-16  Jim Meyering  <meyering@fb.com>
24751         mbrtowc.m4: fix a comment typo
24752         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
24753         emitted documentation string.
24755 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24757         mbrlen, mbrtowc: fix bug with empty input
24758         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
24759         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
24760         so this is mainly for documentation.
24761         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
24762         (gl_FUNC_MBRTOWC): Use it.
24763         * tests/test-mbrtowc.c (main): Test for the bug.
24765 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
24767         doc: document mbrtowc and mbrlen problem with empty input
24768         * doc/posix-functions/mbrlen.texi (mbrlen):
24769         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24770         Document portability problem when the input string is empty.  See:
24771         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
24773         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
24774         Problem reported by Eli Zaretskii in:
24775         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
24776         * doc/posix-functions/execl.texi (execl):
24777         * doc/posix-functions/execle.texi (execle):
24778         * doc/posix-functions/execlp.texi (execlp):
24779         * doc/posix-functions/execv.texi (execv):
24780         * doc/posix-functions/execve.texi (execve):
24781         * doc/posix-functions/execvp.texi (execvp):
24782         Mention spawn+exit problem on non-Cygwin Windows platforms.
24784 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
24786         getlogin-tests: avoid false failure under sudo/ssh etc.
24787         * modules/getlogin-tests (configure.ac): Check for ttyname().
24788         * tests/test-getlogin.c (main): Don't depend on environment variables
24789         to correlate with getlogin(), since sudo and ssh etc. can tamper
24790         with the LOGNAME and USER env vars.  Instead lookup the name from
24791         the uid associated with the stdin tty.
24793 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24795         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
24796         These were found when building the latest grep snapshot on IRIX 6.5.
24797         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
24798         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
24799         never used later.
24800         * lib/quotearg.c (quoting_options_from_style):
24801         * lib/xstrtol.c (__xstrtol):
24802         Use enum instead of 0, to pacify IRIX 6.5 cc.
24804 2014-04-18  Pádraig Brady  <P@draigBrady.com>
24806         gitlog-to-changelog: revert inclusion of git-log-fix file
24807         * build-aux/git-log-fix: Delete dummy file.
24808         * modules/gitlog-to-changelog: Don't reference (overwrite)
24809         the project specific git-log-fix file.
24811 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
24813         maint.mk: Relax the copyright check to cater for non FSF projects
24814         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
24815         to not require the "Free" suffix after the copyright years.
24817 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
24819         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
24820         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
24821         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
24822         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
24823         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
24825 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
24827         exclude: port to strict C99
24828         Strict C does not allow converting a function pointer to void *
24829         and vice versa.  Pass a pointer to a function pointer instead.
24830         * lib/exclude.c (add_exclude_file):
24831         Pass the address of the function pointer.
24832         (call_addfn): And deference the address here, to match.
24834 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24836         regex: do not depend on malloc-gnu
24837         * modules/regex (Depends-on): Remove malloc-gnu.
24838         It's no longer needed, because of the 2012-12-29 patch
24839         "regex: port to hosts where malloc (0) == NULL".
24840         Reported by Nathan Kennedy in:
24841         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
24843 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
24845         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
24846         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
24847         * doc/posix-functions/expl.texi: Mention the workaround.
24849 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24851         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
24852         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
24853         size to be zero even when the pointer is nonnull.  This
24854         accommodates the use case where P is malloc (0) and *PN is 0 on a
24855         host where malloc (0) yields nonnull.
24857 2014-04-09  Eric Blake  <eblake@redhat.com>
24859         fts: avoid unnecessary strlen calls
24860         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
24862 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24864         fts: avoid unnecessary strlen calls
24865         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
24866         when that can be faster than strlen.
24868 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
24870         fts: avoid unnecessary strlen calls
24871         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
24872         (fts_build): Store the length of the dp->d_name entry in a local variable
24873         instead of calling strlen() several times via the above, removed macro.
24874         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
24875         run by ~4%, yet this reduces the execution time by about a third if run
24876         via "ltrace -c rm -rf some-dir".
24878 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
24880         obstack: Remove ancient NeXTSTEP gcc support conditional
24881         This change will ease merging with glibc.  The "#if ... __NEXT__"
24882         causes a warning with -Wundef which glibc now enables by default.
24883         Problem reported by Will Newton in
24884         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
24885         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
24886         so go with that.
24887         * lib/obstack.h (__extension__):
24889 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
24891         obstack: merge with glibc changes
24892         * lib/obstack.c, lib/obstack.h: Merge from glibc.
24893         This is mostly indenting and commentary changes.
24894         Instances of 'register' have been removed.
24896 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
24898         strftime: wrap macros in "do {...} while(0)"
24899         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
24900         this macro in "do {...} while(0)" to prevent false use as a
24901         single statement, e.g., in an un-braced "{}" else-block.
24902         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
24903         (strftime_case_): Remove 'else' after 'goto' - which was the
24904         only non-fatal, un-braced use of one of the above macros.
24905         Spotted by coverity (NESTING_INDENT_MISMATCH).
24907 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
24909         modechange: avoid memory leaks for invalid octal modes
24910         * lib/modechange.c (mode_compile): During the parsing of
24911         notations like +40, free the 'mc' buffer for invalid mode
24912         strings like +17777 (greater than the maximum octal mode),
24913         =18 (bad octal mode characters) or u=1 ('affected' with
24914         octal modes).
24915         Reproducer, e.g.:
24916             $ valgrind --leak-check=full chmod +17777 file
24917         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
24918         add notations +40, 00440, etc.".
24919         Spotted by coverity (RESOURCE_LEAK).
24921 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24923         gitlog-to-changelog: include a dummy git-log-fix file
24924         Problem reported by Nathan Stratton Treadway in:
24925         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
24926         * build-aux/git-log-fix: New file.
24928 2014-03-13  Jim Meyering  <meyering@fb.com>
24930         gitlog-to-changelog: also include the file, git-log-fix
24931         * modules/gitlog-to-changelog (Files): Add git-log-fix.
24932         Reported by Assaf Gordon.
24934 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
24936         regex: port to OS X 10.8.5 en_US.UTF-8 locale
24937         This fixes a bug when ignoring case and when comparing the
24938         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
24939         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
24940         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
24941         titlecase letter is neither lowercase nor uppercase, but
24942         uppercasing the titlecase letter (via towupper) yields the
24943         uppercase letter, so the two letters should match when ignoring case.
24944         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
24945         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
24946         Don't test whether a character is lowercase before uppercasing it.
24948 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
24950         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
24951         This is basically one of the options Bruno Haible proposed in:
24952         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
24953         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
24954         * lib/stdint.in.h: Use it.
24955         * modules/stdint (Depends-on): Add sys_types.
24957 2014-02-26  Pádraig Brady  <P@draigBrady.com>
24959         parse-datetime: fix crash or infloop in TZ="" parsing
24960         * lib/parse-datetime.y (parse_datetime): Break out of the
24961         TZ="" parsing loop once the second significant " is found.
24962         Also skip over any subsequent whitespace to be consistent
24963         with the non TZ= case.
24964         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
24966 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24968         savedir: new symbol for fast-read version
24969         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
24970         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
24971         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
24972         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
24974 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24976         unistd: port readlink to Mac OS X 10.3.9
24977         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
24978         around self-include problem in Mac OS X 10.3.9 when combined with
24979         readlink module.  Problem reported by Klaus Zietler in
24980         <http://bugs.gnu.org/16825>.
24982 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
24984         diffseq: remove TOO_EXPENSIVE heuristic
24985         Problem with diffutils reported by Vincent Lefevre in
24986         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
24987         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
24988         Although appropriate for circa-1993 hardware, these days the heuristic
24989         seems to be more trouble than it's worth.
24990         * lib/diffseq.h: Modernize citations.
24991         (struct context): Remove member too_expensive.
24992         All uses changed.
24993         (struct partition): Remove members lo_minimal, hi_minimal.
24994         All uses changed.
24995         (diag, compareseq): Remove arg find_minimal.  All uses changed.
24996         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
24997         1993 to make 'diff' run faster (but not as well) on large inputs.
24998         These days, computers are fast enough that it's typically better
24999         to run slower but more accurately.
25000         * lib/fstrcmp.c: Remove duplicate comment.
25001         * lib/fstrcmp.c (strcmp_bounded):
25002         * lib/git-merge-changelog.c (compute_differences):
25003         Adjust to diffseq.h changes.
25004         * NEWS: Document the change.
25006         savedir: simplify by using stpcpy
25007         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
25008         (streamsavedir): Use stpcpy instead.
25009         * modules/savedir (Depends-on): Add stpcpy.
25011 2014-02-21  Pádraig Brady  <P@draigBrady.com>
25013         spawn: fix link error on uclibc
25014         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
25015         to incorporate -lrt if needed (on uclibc for example).
25016         * modules/posix_spawn: Reference the substituted LIB.
25018 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
25019         timer: fix uClibc detection of threading
25020         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
25021         enabled in uClibc.
25023 2014-02-21  Eric Blake  <eblake@redhat.com>
25025         maintainer-makefiles: provide AC_PROG_SED for older autoconf
25026         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
25028 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25030         exclude: add support for posix regexps
25032         This commit adds support for POSIX extended regular expressions
25033         and fixes a long-standing memory leak (pattern buffer was never
25034         freed).  It also implements a new interface function to read
25035         exclude patterns from a FILE, which passes an additional parameter
25036         to its callback function, thereby allowing to preserve its state
25037         between invocations.
25039         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
25040         (pattern_buffer): New struct.
25041         (exclude): New member patbuf.
25042         (exclude_add_pattern_buffer): New function.
25043         (free_exclude_segment): Free regexps.
25044         (free_exclude): Free allocated pattern buffers.
25045         (exclude_patopts): New function.
25046         (file_pattern_matches): Use exclude_patopts.
25047         (add_exclude): support regexps.
25048         (add_exclude_fp): New function.
25049         (add_exclude_file): Rewrite using add_exclude_fp.
25050         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25051         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25052         (add_exclude_fp)
25053         (add_exclude_file): Rewrite using add_exclude_fp.
25054         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
25055         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
25056         (add_exclude_fp)
25057         (exclude_add_pattern_buffer): New prototypes.
25058         * modules/exclude: Depends on regex and filename.
25060 2014-02-20  Eric Blake  <eblake@redhat.com>
25062         maintainer-makefiles: use $(SED) for syntax check
25063         * modules/maintainer-makefile (configure.ac): Check for sane sed.
25064         * top/maint.mk: Change sed to $(SED).
25066 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
25067             Paul Eggert  <eggert@cs.ucla.edu>
25069         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
25070         Patch based on an idea by Dick Streefland in
25071         <https://savannah.gnu.org/patch/?7892>.
25072         * NEWS: Document this.
25073         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
25074         (direntry_t, comparison_function): New types.
25075         (direntry_cmp_name): New function.
25076         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
25077         (streamsavedir, savedir): New arg OPTION.
25078         (streamsavedir): Simplify memory allocation.
25079         (fdsavedir): Remove.
25080         * lib/savedir.h (enum savedir_option): New type.
25081         (streamsavedir, savedir): New arg OPTION.
25082         (fdsavedir): Remove.
25084 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25086         file-type: add support for doors and other less-common file types
25087         Problem with S_ISDOOR reported by Rich Burridge.
25088         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
25089         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
25090         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
25092 2014-01-23  Eric Blake  <eblake@redhat.com>
25094         pthread: work around winpthread header pollution on mingw
25095         * lib/time.in.h: Move pthread workarounds...
25096         * lib/pthread.in.h: ...here.
25097         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
25098         detect macro pollution on mingw.
25099         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
25101 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25103         qacl: check for fchmod
25104         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
25105         and qset-acl.c both use HAVE_FCHMOD.
25107 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25109         fdopen-tests: port to Tru64
25110         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
25111         descriptor that is not open, as POSIX doesn't specify the
25112         resulting behavior and the test does not work on Tru64.
25113         Problem reported by Steven M. Schweda in:
25114         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
25116         stdalign: port to HP-UX compilers
25117         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
25118         if __HP_cc or __HP_aCC are nonzero.
25120 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25122         strtoimax: port to platforms lacking 'long long'
25123         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
25124         check whether strtoll is declared, which causes the C file to
25125         wrongly report an error.  Problem reported by Steven M. Schweda in:
25126         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
25127         * lib/strtoimax.c (strtoull):
25128         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
25129         (strtoll): Declare only if HAVE_LONG_LONG_INT.
25131 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
25133         relocatable-perl: fix texi syntax
25134         * doc/relocatable-maint.texi: Escape braces.
25136 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
25138         relocatable-perl: like relocatable-script, but for Perl scripts
25139         * build-aux/relocatable.pl.in: Add.
25140         * doc/relocatable-maint.texi: Add documentation.
25141         * modules/relocatable-perl: Add.
25143 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
25145         tests: fix export bug in previous patch
25146         Problem reported by Jim Meyering.
25147         * tests/init.sh (re_shell): New var, which is exported instead of
25148         re_shell_.
25150         tests: simplify porting to Solaris 10 /bin/sh
25151         Some test cases in 'grep' need a shell that groks '$(';
25152         export re_shell_ for their benefit.  Problem reported for 'grep'
25153         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
25154         * tests/init.sh (re_shell_): Export if it's used.
25156 2014-01-06  Eric Blake  <eblake@redhat.com>
25158         md5, sha1, sha256, sha512: support older autoconf
25159         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
25160         for autoconf < 2.63b.
25162         include_next: port to autoconf 2.63
25163         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
25165 2014-01-04  Jim Meyering  <meyering@fb.com>
25167         maint: add a gnulib-local rule to keep non-ascii out of .texi files
25168         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
25169         so that "make sc_maint" will ding anyone who puts non-ascii
25170         in any of gnulib's .texi files.
25172 2014-01-03  Jim Meyering  <meyering@fb.com>
25174         freadable, fwritable, fwriting: declare with the "pure" attribute
25175         * lib/freadable.h (freadable): Declare with the "pure" attribute.
25176         * lib/fwritable.h (fwritable): Likewise.
25177         * lib/fwriting.h (fwriting): Likewise.
25178         Suggested by Bruno Haible.
25180         maint.mk: adapt openat.h-include-without-use test
25181         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
25182         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
25183         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
25184         With this change, running "make sc_maint" in gnulib's top-level
25185         directory now passes for me.
25187 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
25189         doc: use ASCII in .texi files where UTF-8 isn't needed
25190         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
25191         * doc/posix-functions/setkey.texi, doc/regex.texi:
25192         Use ASCII input, not UTF-8.
25194 2014-01-02  Jim Meyering  <meyering@fb.com>
25196         freading: declare with the "pure" attribute
25197         * lib/freading.h (freading): Declare with the "pure" attribute.
25199         manywarnings: remove -Wmudflap
25200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
25201         it is no longer supported in gcc-4.9-to-be.
25203 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25205         relocatable-script: remove unused code
25206         Problem reported by Reuben Thomas in:
25207         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
25208         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
25210 2014-01-01  Jim Meyering  <meyering@fb.com>
25212         maint: fix public-submodule-commit to work with newer git
25213         * top/maint.mk (public-submodule-commit): Remove excess quoting.
25214         We were over-quoting the test arguments, and somewhere prior to
25215         version 1.8.5.2.229, git stopped removing those excess quotes,
25216         which made the test fail, since the unexpanded strings would
25217         always differ; using GIT_TRACE=1 confirmed that the git merge-base
25218         command wasn't even being run.
25220 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25222         doc: update main copyright year
25223         * doc/gnulib.texi: Update copyright date.
25225 2014-01-01  Eric Blake  <eblake@redhat.com>
25227         version-etc: new year
25228         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
25229         * all files: run 'make update-copyright'
25231 2013-12-24  Eric Blake  <eblake@redhat.com>
25233         passfd: give nicer error for recvfd at eof
25234         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
25235         * tests/test-passfd.c (main): Enhance test to cover this.
25237 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25239         gettimeofday: port recent C++ fix to Emacs
25240         Without this further patch, Emacs won't build due to
25241         the portcheck failing.  Also, this simplifies the patch a bit.
25242         * lib/time.in.h (localtime, gmtime): Don't replace unless
25243         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
25244         * lib/time.in.h (localtime, gmtime):
25245         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
25246         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25247         * modules/time (time.h):
25248         Don't worry about the possibility of localtime and gmtime
25249         being absent; they're present in all C libraries we know about.
25250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25251         Don't assume sys_time is present and has been initialized.
25252         Instead, use a hack that should work even if it hasn't been.
25253         Don't use a portcheck for gmtime or localtime; this supports
25254         the hack.
25255         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
25257 2013-12-17  John W. Eaton  <jwe@gnu.org>
25259         gettimeofday: fix C++ crosscompilation
25261         Never replace gmtime and localtime by macros when compiling with
25262         C++, this prevents <ctime> from being included.
25264         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
25265         define gmtime and localtime as preprocessor macros.  Instead
25266         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
25267         REPLACE_LOCALTIME substitutions.
25268         * lib/time.in.h: Declare gmtime and localtime when needed.
25269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
25270         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
25271         * modules/time: Depend on gettimeofday, and substitute the above
25272         variables in time.h.
25274 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25276         qacl: port to Windows better
25277         See Eli Zaretskii in
25278         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
25279         * lib/file-has-acl.c (acl_access_nontrivial):
25280         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
25281         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
25283 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
25285         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
25286         * lib/gl_openssl.h: Cast void pointers to a specific type.
25288 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25290         open-tests: fix build failure with -Werror=old-style-declaration
25291         * tests/test-open.h: Reorder the inline to avoid the issue.
25293 2013-12-07  Pádraig Brady  <P@draigBrady.com>
25295         md5, sha1, sha256, sha512: fix link error with partial libcrypto
25296         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
25297         init time, so that if early checks find crypto routines,
25298         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
25299         avoiding link failures.
25301 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25303         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
25304         This provides a new way to specify the default for
25305         gl_CRYPTO_CHECK, one that is reflected in the --help message.
25306         Emacs uses this, as well as the old way.
25307         This attempts to implement a suggestion by Pádraig Brady in
25308         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
25309         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
25310         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
25312         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
25313         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
25314         Add support for a new option, --with-openssl=auto, which causes
25315         the library to be used if available and silently ignored if not.
25316         Add support to allow configure.ac to specify its own
25317         default, by setting with_openssl_default before invoking gl_INIT.
25319 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
25321         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
25322         Problem reported by Daiki Ueno in:
25323         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
25324         * tests/test-open.h (__always_inline):
25325         New macro, if not already defined.
25326         (test_open): Use it.
25328 2013-12-04  Eric Blake  <eblake@redhat.com>
25330         include_next: minimize code duplication
25331         * modules/include_next (Depends-on): Add absolute-header.
25332         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
25333         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
25335 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25337         getcwd: fix compile error in configure check
25338         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
25340 2013-12-04  Pádraig Brady  <P@draigBrady.com>
25342         regex: suppress core dumps from detection code
25343         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
25344         to suppress core dumps that may well occur on glibc systems.
25345         These core dumps might not be cleaned up automatically, or could
25346         trigger some system core dump handling logic.
25348 2013-12-03  Pádraig Brady  <P@draigBrady.com>
25350         md5, sha1, sha256, sha512: support mandating use of openssl
25351         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
25352         description, to list the now 3 separate options.  also don't
25353         mention the default=no, since this is implicit given the option
25354         is described as --with-openssl rather than --without-openssl.
25355         If projects change the default they're free to document that.
25356         with --with-openssl[=yes] we now error out when the specified
25357         hash algorithm is not available in libcrypto.
25359 2013-12-03  Ivailo  <xakepa10@gmail.com>
25361         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
25362         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
25363         -Wformat-nonliteral checks, as these edge cases are part of the test.
25365 2013-12-03  Eric Blake  <eblake@redhat.com>
25367         regex: avoid glibc deadlock during configure
25368         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
25369         glibc bug 15078 in turn triggers bug 16159.
25370         Reported by Michal Privoznik.
25372 2013-12-02  Pádraig Brady  <P@draigBrady.com>
25374         md5, sha1, sha256, sha512: use openssl routines if available.
25375         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
25376         routines will be used if available, requiring apps to link @LIB_CRYPTO@
25377         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
25378         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
25379         in the standard system location.
25380         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
25381         * m4/sha256.m4: Likewise with SHA256.
25382         * m4/sha512.m4: Likewise with SHA512.
25383         * m4/md5.m4: Likewise with MD5.
25384         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
25385         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
25386         * lib/sha256.h: Likewise with SHA256.
25387         * lib/sha512.h: Likewise with SHA512.
25388         * lib/md5.h: Likewise with MD5.
25389         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
25390         * lib/sha256.c: Likewise with SHA256.
25391         * lib/sha512.c: Likewise with SHA512.
25392         * lib/md5.c: Likewise with MD5.
25393         * modules/crypto/sha1 (Link:): Add the new optional lib.
25394         (Depends-on:): Add dependency on extern-inline.
25395         * modules/crypto/sha256: Likewise.
25396         * modules/crypto/sha512: Likewise.
25397         * modules/crypto/md5: Likewise.
25398         * modules/crypto/sha1-tests: Reference the lib here too.
25399         * modules/crypto/md5-tests: Likewise.
25400         * modules/crypto/gc-des-tests: Likewise.
25401         * modules/crypto/gc-hmac-md5-tests: Likewise.
25402         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25403         * modules/crypto/gc-hmac-sha256-tests: Likewise.
25404         * modules/crypto/gc-hmac-sha512-tests: Likewise.
25405         * modules/crypto/gc-md5-tests: Likewise.
25406         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25407         * modules/crypto/gc-sha1-tests: Likewise.
25408         * modules/crypto/gc-tests: Likewise.
25409         * modules/crypto/hmac-md5-tests: Likewise.
25410         * modules/crypto/hmac-sha1-tests: Likewise.
25411         * modules/crypto/hmac-sha256-tests: Likewise.
25412         * modules/crypto/hmac-sha512-tests: Likewise.
25414 2013-11-29  RV1971  <rv1971@web.de>
25416         base64: (trivial) fix compilation regression on some compilers
25417         * lib/base64.c: Don't return the void function,
25418         instead split to a separate return statement.
25420 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
25422         ignore-value: revert previous code change
25423         * lib/ignore-value.h (ignore_value): Use __extension__ and
25424         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
25425         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
25426         Change the comment to try to explain this better.
25428 2013-11-27  Pádraig Brady  <P@draigBrady.com>
25430         selinux-h: improve stub types and add more stub functions
25432         * lib/se-selinux.in.h: Change security_context_t to a typedef
25433         rather than a define, as it's a pointer type and so is better
25434         as a typedef to avoid issues declaring multiple variables
25435         with the comma operator.  Also add stub for string_to_security_class().
25436         * lib/se-context.in.h: Add stub functions for
25437         context_{type,range,role,user}_get().
25439 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
25441         ignore-value: prefer GCC version back through 2.0
25442         The code didn't match the comments, so I did a bit of software
25443         archaeology.  GCC 2.0 seems to support __extension__ and
25444         __typeof__, so fix both code and comments to use 2.0.
25445         * lib/ignore-value.h (ignore_value): Use __extension__ and
25446         __typeof__ for GCC 2.0 through 3.3, too.
25448 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
25450         pty: Activate the signature wrapper of forkpty.
25451         The intended preprocessor macro HAVE_FORKPTY is
25452         never defined, yet `lib/forkpty.c' depends on it.
25454         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
25455         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
25456         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
25458 2013-11-18  Jim Meyering  <meyering@fb.com>
25459         and Paul Eggert  <eggert@cs.ucla.edu>
25461         quotearg: don't attempt to store 1 << 31 into an "int"
25462         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
25463         gcc's new -fsanitize=undefined and running its tests triggered some
25464         new test failures due to undefined behavior, all with this diagnostic:
25465           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
25466             cannot be represented in type int
25467         Rather than shifting "1" left to form a mask, shift the bits right and
25468         simply use "1" as the mask.
25470 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
25472         error: depend on stdio
25473         Problem reported by Nikos Mavrogiannopoulos in
25474         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
25475         * modules/error (Depends-on): Add stdio.
25477 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
25479         * doc/relocatable-maint.texi (Supporting Relocation): Improve
25480         wording.
25481         Reported by Reuben Thomas <rrt@sc3d.org>.
25483 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25485         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
25486         New function and macro, to work around _DARWIN_C_SOURCE problem.
25487         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
25489 2013-11-11  Pádraig Brady  <P@draigBrady.com>
25491         base64: provide a fast path for encoding well sized buffers
25492         Avoid conditionals in the base64 encoding loop,
25493         which was seen to give 60% better throughput.
25494         * lib/base64.c (base64_encode_fast): A new function to be called
25495         when we don't want to NUL terminate, and we have enough space
25496         in the output to encode the given input.
25497         (base64_encode): Call the _fast() version when appropriate.
25498         Also remove a redundant mask with 0x3F on the first encoded byte.
25500 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
25502         extern-inline: port better to OS X 10.9
25503         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
25504         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
25505         OS X 10.9, except for g++ where the bug is still present.
25506         See <http://trac.macports.org/ticket/41033>.
25508 2013-11-08  Eric Blake  <eblake@redhat.com>
25510         fpending: fix regression on DragonFly BSD
25511         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
25512         * lib/fpending.h (__fpending): Don't declare twice.
25513         Reported by GW in
25514         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
25516 2013-11-05  Jim Meyering  <meyering@fb.com>
25518         hash: relax license to LGPLv2+, for libguestfs
25519         * modules/hash (License): Change from GPL to LGPLv2+.
25521 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25523         intprops: port to Oracle Studio c99
25524         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
25525         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
25527 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25529         obstack: pacify HP C
25530         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
25531         warning "conversion from pointer to smaller integer" from HP
25532         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
25533         C89 or later nowadays, so cast to void instead of int.  Privately
25534         reported by H.Merijn Brand.  Also, change header to match glibc's,
25535         to make checking against glibc easier.
25537 2013-10-29  Jim Meyering  <meyering@fb.com>
25539         maint.mk: prefer gpgv2 over gpgv
25540         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
25541         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
25542         Reported by Gary Vaughan.
25544 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25546         isnan: port to VAX
25547         Reported by John Klos for NetBSD-5/VAX in
25548         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
25549         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
25550         (FUNC): Use it.
25552 2013-10-28  Jim Meyering  <meyering@fb.com>
25554         gnulib-tool: protect against CDPATH
25555         * gnulib-tool: Many "cd" built-in functions print a directory name
25556         to stdout when CDPATH is set, e.g.,
25557           $ bash -c 'CDPATH=/; cd tmp'
25558           /tmp
25559         Unset it, when possible.  Prompted by a comment from Bruce Korb.
25561         maint.mk: restore functionality removed by recent change...
25562         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
25563         the context of a shallow-cloned gnulib repository: "git describe"
25564         would fail in such a directory.  However, that change made it so
25565         the reported gnulib revision no longer includes the version number
25566         or a commit count, even when run from a full clone.
25567         * top/maint.mk (gnulib-version): Use the full "git describe"
25568         output when possible, e.g., the form above, rather than the
25569         abbreviated, no-tag, no-commit-count string, and fall back to
25570         using a 10-byte hash, rather than the default minimal-length
25571         hash prefix, since while the minimal-length one may be fine today,
25572         it is likely not to be unique for very long.
25574 2013-10-26  Jim Meyering  <meyering@fb.com>
25576         maint.mk: fix "release" target to build _version
25577         This fixes a bug in README-release whereby following the outlined
25578         steps, one would publish a tarball whose programs would report
25579         --version output not consistent with the package version number.
25580         This bug caused grep-2.15 to produce a grep program whose
25581         --version option made it print 2.14.56-1e3d rather than 2.15.
25582         * top/maint.mk (release): Making this target build "_version"
25583         ensures that the new version number is reflected in configure.
25585 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
25587         install-reloc: Support multi-binary installation.
25588         * build-aux/install-reloc: Support installing multiple programs in
25589         one invocation, as done by Automake starting with commit
25590         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
25591         Haible <bruno@clisp.org>, archived at
25592         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
25593         Reported by Sylvain <beuc@gnu.org>.
25595 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25597         selinux-h: Really build without selinux when library is missing.
25598         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
25599         continue without selinux, as already told in the warning message.
25601 2013-10-21  Jim Meyering  <meyering@fb.com>
25603         regex: also remove dependency on HAVE_WCSCOLL
25604         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
25606 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
25608         xfreopen: Fix typo. s/frepoen/freopen/
25609         * lib/xfreopen.c: Fix description.
25610         * modules/xfreopen: Likewise.
25612 2013-10-21  Jim Meyering  <meyering@fb.com>
25614         regex: don't depend on wcscoll
25615         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
25616         It is no longer used.
25618 2013-10-20  Jim Meyering  <meyering@fb.com>
25620         error: add the printf attribute to a static function
25621         * lib/error.c (error_tail): Add the printf attribute, to placate
25622         gcc's -Werror=suggest-attribute=format option.
25624 2013-09-30  Jim Meyering  <meyering@fb.com>
25626         fpending, obstack, strerror-override: use pure+const function attrs
25627         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
25628         * lib/obstack.c (_obstack_allocated_p): Likewise.
25629         * lib/obstack.h (_obstack_memory_used): Likewise.
25630         (_obstack_memory_used): Likewise.
25631         * lib/strerror-override.h (strerror_override): Declare with
25632         the "const" attribute.
25634 2013-10-18  Eric Blake  <eblake@redhat.com>
25636         extern-inline: make safe for -Wundef usage
25637         Reported by Vladimir 'phcoder' Serbinenko in
25638         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
25639         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
25641 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25643         mkfifo-tests, etc.: allow HP-UX 11.11 bug
25644         Problem reported by Daniel Richard G. in
25645         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
25646         * doc/posix-functions/mkfifo.texi (mkfifo):
25647         * doc/posix-functions/mkfifoat.texi (mkfifoat):
25648         * doc/posix-functions/mknod.texi (mknod):
25649         * doc/posix-functions/mknodat.texi (mknodat):
25650         Document the HP-UX 11.11 bug.
25651         * tests/test-mkfifo.h (test_mkfifo):
25652         Allow the HP-UX 11.11 bug.
25654 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25656         acl: allow cross-compilation to Gentoo
25657         Problem reported by Gabriel Marcano in
25658         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
25659         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
25660         test only whether it links.
25662 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25664         mgetgroups: remove dependency on realloc-gnu
25665         The dependency violates the comment in realloc-gnu, which
25666         says that tests can't depend on realloc-gnu; some tests depend
25667         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
25668         Problem reported by Daniel Richard G. in
25669         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
25670         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
25671         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
25672         not realloc-gnu.
25674 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
25676         regex-tests: port to HP-UX 11.11
25677         Problem reported by Daniel Richard G. in
25678         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
25679         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
25681 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25683         verify: document some 'assume' pitfalls
25684         * doc/verify.texi (Compile-time Assertions):
25685         Mention that 'assume (E)' can sometimes slow things down.
25686         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
25688 2013-10-10  Eric Blake  <eblake@redhat.com>
25690         strtoumax: fix typo in previous commit.
25691         * modules/strtoumax (Depends-on): Fix typo.
25692         * modules/strtoimax (Depends-on): Likewise.
25694 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25696         strtoumax: port to Solaris 8
25697         This problem was introduced in the recent HP-UX patch.
25698         Reported by Tom G. Christensen in
25699         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
25700         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
25701         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
25703 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
25705         strtoimax, strtoumax: port to HP-UX 11.11
25706         Problem reported by Daniel Richard G. in
25707         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
25708         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
25709         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
25710         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
25711         REPLACE_STRTOUMAX.
25712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
25713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
25714         Replace the function if defined as a macro but not as a function.
25715         * modules/inttypes-incomplete (inttypes.h): Substitute
25716         REPLACE_STRTOUMAX.
25717         * modules/strtoumax (configure.ac): Replace strtoumax if
25718         REPLACE_STRTOUMAX.
25720 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25722         strtoimax: port to HP-UX 11.11
25723         Problem reported by Daniel Richard G.
25724         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
25725         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
25726         they might clash with inttypes.h.
25728 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25730         New module 'count-trailing-zeros'.
25731         * MODULES.html.sh: Mention it.
25732         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
25733         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
25734         * modules/count-trailing-zeros-tests:
25735         * tests/test-count-trailing-zeros.c:
25736         New files.
25738         count-leading-zeros: port to MSC; support types wider than 64 bits
25739         The ideas behind the MSC port are stolen from Emacs.
25740         * lib/count-leading-zeros.h:
25741         Don't include verify.h: it's no longer needed, as types wider than
25742         64 bits are now supported.
25743         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
25744         performance with MSC.  All uses changed.  Do not assume that TYPE
25745         has at most 64 bits.
25746         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
25747         All uses changed.  Fold the subtraction from 31 into the table.
25749         count-one-bits: port to MSC; support types wider than 64 bits
25750         The ideas behind the MSC port are stolen from Emacs.
25751         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
25752         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
25753         Don't include verify.h: it's no longer needed, as types wider than
25754         64 bits are now supported.
25755         (COUNT_ONE_BITS_GENERIC): New macro.
25756         (popcount_supported) [_MSC_VER]: New inline function.
25757         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
25758         performance with MSC.  All uses changed.  Do not assume that TYPE
25759         has at most 64 bits.
25760         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
25762 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
25764         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
25765         * lib/mountlist.c (read_file_system_list): fix leak of directory
25766         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
25768 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25770         tests: improve diagnostic when an assertion fails
25771         * tests/macros.h (ASSERT): Report the assertion that failed.
25773 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25775         verify: new macro 'assume'
25776         This is taken from Emacs, and should be generally useful.
25777         * doc/verify.texi (assume): Document it.
25778         * lib/verify.h (assume): New macro.
25779         (__has_builtin): Expand to 0 if not defined.
25781 2013-09-26  Eric Blake  <eblake@redhat.com>
25783         dup2, dup3: work around another cygwin crasher
25784         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
25785         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
25786         * tests/test-dup2.c (main): Likewise.
25787         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
25788         * lib/dup3.c (dup3): Likewise.
25789         * doc/posix-functions/dup2.texi (dup2): Document it.
25790         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25792         getdtablesize: work around cygwin issue
25793         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
25794         * modules/getdtablesize (configure.ac): Build replacement.
25795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
25796         * modules/unistd (Makefile.am): Expose the witness.
25797         * lib/unistd.in.h (getdtablesize): Declare replacement.
25798         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
25799         * tests/test-getdtablesize.c (main): Test it.
25800         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
25802 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25804         pmccabe2html: escaping of special characters
25805         Escape all '<', '>', and '&' in HTML output.
25806         * build-aux/pmccabe2html (html_fnc): Call gsub()
25807         instead of sub() to capture all '<', '>', and '&'.
25808         Neither of '<' and '>' is special in a regexp,
25809         so first arguments to gsub() are corrected. Also,
25810         in replacement strings, ampersand must be escaped.
25811         Finally, '&' must be handled first, then '<' and '>'.
25813 2013-09-24  Eric Blake  <eblake@redhat.com>
25815         manywarnings: enable nicer gcc warning messages
25816         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
25817         some -f options for optimal warnings.
25819 2013-09-21  Jim Meyering  <meyering@fb.com>
25821         timespec: use the new TIMESPEC_RESOLUTION in a few more places
25822         * lib/timespec-add.c (timespec_add): Also replace 999999999
25823         with TIMESPEC_RESOLUTION - 1.
25824         * lib/timespec-sub.c (timespec_sub): Likewise.
25826 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25828         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
25829         Problem reported by Dagobert Michelsen via Eric Blake in
25830         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
25831         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
25832         not AC_COMPILE_IFELSE.
25834 2013-09-23  Eric Blake  <eblake@redhat.com>
25836         configmake: support new --runstatedir option
25837         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
25838         even if autoconf was too old to provide the command line option.
25839         * modules/configmake (Makefile.am): Propagate it to .h file.
25841 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25843         ctype, string: depend on extern-inline
25844         This is needed to complete the recent OS X fixes.
25845         Also, fix related documentation as suggested by Eric Blake.
25846         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
25847         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
25848         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
25849         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
25850         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
25851         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
25852         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
25853         * doc/posix-functions/toupper.texi:
25854         List the 'ctype' gnulib module.
25855         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
25856         * doc/posix-functions/strncpy.texi:
25857         List the 'string' gnulib module.
25858         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
25859         Add string.
25860         * modules/ctype, modules/string (Depends-on): Add extern-inline.
25862 2013-09-19  Pádraig Brady  <P@draigBrady.com>
25864         userspec: support optional parameters to parse_user_spec()
25865         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
25866         then avoid group processing and treat the full spec as a user.
25867         (parse_with_separator): Allow the USERNAME and GROUPNAME to
25868         be optional params (NULL), in which case they're ignored.
25870 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25872         timespec: new function make_timespec, and new constants
25873         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
25874         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
25875         (make_timespec): New function.
25876         * lib/dtotimespec.c (dtotimespec):
25877         * lib/timespec-add.c (timespec_add):
25878         * lib/timespec-sub.c (timespec_sub):
25879         * lib/utimens.c (validate_timespec):
25880         * lib/utimensat.c (rpl_utimensat):
25881         Use these new constants and functions.
25883         stdio: OS X port of putc_unlocked + extern inline
25884         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
25885         * doc/posix-functions/putc_unlocked.texi:
25886         * doc/posix-functions/putchar_unlocked.texi:
25887         Document this portability problem.
25889         signal: OS X port of sigaddset etc. + extern inline
25890         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
25891         (sigismember): #undef on problematic Apple platforms.
25892         * doc/posix-functions/sigaddset.texi:
25893         * doc/posix-functions/sigdelset.texi:
25894         * doc/posix-functions/sigemptyset.texi:
25895         * doc/posix-functions/sigfillset.texi:
25896         * doc/posix-functions/sigismember.texi:
25897         Document this portability problem.
25899         extern-inline: do not always suppress extern inline on OS X
25900         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
25901         extern inline on Apple only if the particular compile-time
25902         configuration is known to have the problem.
25903         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
25904         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
25905         other Gnulib modules.
25907         extern-inline: document fixes for ctype and wctype macros
25908         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
25909         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
25910         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
25911         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
25912         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
25913         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
25914         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
25915         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
25916         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
25917         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
25918         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
25919         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
25920         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
25921         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
25922         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
25923         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
25924         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
25925         * doc/posix-functions/strncpy.texi:
25926         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
25927         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
25928         Document that Gnulib fixes portability problems with these
25929         functions on OS X 10.8 and earlier when called from plain inline
25930         or extern inline functions.
25932 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
25934         fflush, freadahead, fseeko: Fix for Android
25935         Suggested by Bruno Haible in:
25936         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
25937         * lib/stdio-impl.h: Use local __sfileext definition.
25939 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
25941         pmccabe2html: Portability to other awk versions.
25942         The functions systime() and strftime() are available
25943         in Gawk only.  Properly close two HTML-tags 'style'
25944         and 'span'.
25945         * build-aux/pmccabe2html (BEGIN): Store timing
25946         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
25947         systime() in HTML_COMMENT.
25948         (html_header): Correctly close tag 'style'.
25949         (END): Replace strftime() by CHRONOS_TIME.  Close
25950         tag 'span' correctly, not as 'div'.
25952 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
25954         getgroups: statement without effect
25955         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
25956         Change equality conditional to expected assignment.
25958 2013-09-09  Eric Blake  <eblake@redhat.com>
25960         glob: fix compilation
25961         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
25963 2013-09-07  Eric Blake  <eblake@redhat.com>
25965         glob: fix build for platforms without __THROW
25966         * lib/glob.in.h (__THROW): Add definition again.
25968 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
25970         regex-quote: fix buffer access out of bounds
25971         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
25972         * lib/regex-quote.c (regex_quote_spec_pcre):
25973         Fix typo that resulted in an out-of-bounds read.
25975 2013-09-04  Eric Blake  <eblake@redhat.com>
25977         glob: avoid -Wattribute warnings on glibc
25978         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
25979         __THROWNL, not __THROW, on static functions.
25980         * lib/glob.in.h (__THROW): Adjust...
25981         (__THROWNL): ...accordingly.
25983 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
25985         headers: check that _GL_INLINE_HEADER_BEGIN is defined
25986         Suggested by Bruce Korb in:
25987         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
25988         * doc/extern-inline.texi (extern inline):
25989         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
25990         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
25991         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
25992         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
25993         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
25994         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
25995         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
25996         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
25997         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
25998         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
25999         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
26000         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
26001         * lib/xtime.h:
26002         Check that _GL_INLINE_HEADER_BEGIN is defined.
26004 2013-08-29  Pádraig Brady  <P@draigBrady.com>
26006         bootstrap: remove the --version requirement from ancillary tools
26007         * build-aux/bootstrap (check_exists): A new refactored function to
26008         determine if a command exists.
26009         (find_tool): Use the new function which does not require the
26010         --version option to be supported.
26011         (check_versions): Use the new function.
26013 2013-08-26  Simon Josefsson  <simon@josefsson.org>
26015         gc: support HMAC-SHA256 and HMAC-SHA512.
26016         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
26017         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
26018         functions.
26019         (gc_hmac_md5): Use symbolic constant.
26020         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
26021         (gc_hmac_sha256, gc_hmac_sha512): New functions.
26022         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
26023         * m4/sha256.m4: Protect against empty expansion.
26024         * m4/sha512.m4: Likewise.
26025         * lib/hmac-sha256.c: New file.
26026         * lib/hmac-sha512.c: Likewise.
26027         * m4/gc-hmac-sha256.m4: Likewise.
26028         * m4/gc-hmac-sha512.m4: Likewise.
26029         * m4/gc-sha256.m4: Likewise.
26030         * m4/gc-sha512.m4: Likewise.
26031         * modules/crypto/gc-hmac-sha256: Likewise.
26032         * modules/crypto/gc-hmac-sha256-tests: Likewise.
26033         * modules/crypto/gc-hmac-sha512: Likewise.
26034         * modules/crypto/gc-hmac-sha512-tests: Likewise.
26035         * modules/crypto/hmac-sha256: Likewise.
26036         * modules/crypto/hmac-sha256-tests: Likewise.
26037         * modules/crypto/hmac-sha512: Likewise.
26038         * modules/crypto/hmac-sha512-tests: Likewise.
26039         * tests/test-gc-hmac-sha256.c: Likewise.
26040         * tests/test-gc-hmac-sha512.c: Likewise
26041         * tests/test-hmac-sha256.c: Likewise.
26042         * tests/test-hmac-sha512.c: Likewise
26044 2013-08-24  Daiki Ueno  <ueno@gnu.org>
26046         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
26047         of AC_CHECK_DECLS.
26049 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26051         selinux-at: omit unnecessary include
26052         * lib/selinux-at.c: Don't include dosname.h; not needed, since
26053         this source file doesn't use its macros, and subsidiary files that
26054         use the macros already include it.
26056 2013-08-21  Eric Blake  <eblake@redhat.com>
26058         d-ino: avoid false negative on symlink
26059         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
26060         Reported by Stephane Chazelas.
26062 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
26064         bootstrap: port to OpenBSD sed
26065         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
26066         does not interpret `-' as a file argument to mean stdin.
26068 2013-08-15  Eric Blake  <eblake@redhat.com>
26070         warnings: minor optimization
26071         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
26073         warnings: check -Wfoo rather than -Wno-foo
26074         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
26075         -Wno-, test if the compiler recognizes the positive form instead.
26077 2013-08-15  Karl Berry  <karl@gnu.org>
26079         * config/srclist-update: add option "doclicense" to placate
26080         pulling *.texi files from Emacs.  Write terse usage
26081         documentation at the top.
26083 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
26085         xvasprintf-tests: port to GCC with hardening flags
26086         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
26087         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
26088         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
26090 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26092         fpending: port to recent Cygwin change to stdio_ext.h
26093         Reported by LRN in
26094         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
26095         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
26096         just declare __fpending unless it's a macro.
26097         A duplicate decl shouldn't hurt.
26098         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
26099         call compiles and links, instead of separately checking for
26100         decl and lib function.
26101         * modules/fpending (configure-ac):
26102         Adjust to fpending.m4's renaming of shell variable.
26104 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26106         sys_time: port to OpenBSD
26107         * lib/sys_time.in.h: Simply delegate to the system's header
26108         in the BSDish cases as well.  Problem reported by Mike Miller in
26109         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
26110         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
26111         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
26112         wider than time_t.
26114 2013-08-09  Pádraig Brady  <P@draigBrady.com>
26116         bootstrap: support checksum utils having -c but not --status
26117         * build-aux/bootstrap: Only look for sha1sum if updating po files.
26118         Add sha1 to the list of supported checksum utils since it's now
26119         supported through adjustments below.
26120         (update_po_files): Remove the use of --status
26121         in a way that will suppress all error messages, but since this is
26122         only used to minimize updates, it shouldn't cause an issue.
26123         Exit early if there is a problem updating the po file checksums.
26124         (find_tool): Remove the check for --version support as this
26125         is optional as per commit 86186b17.  Don't even check for the
26126         presence of the command as if that is needed, it's supported
26127         through configuring prerequisites in bootstrap.conf.
26128         Prompt that when a tool isn't found, one can define an environment
26129         variable to add to the hardcoded search list.
26131 2013-08-05  Jim Meyering  <meyering@fb.com>
26133         regex: port to non-glibc/lock-using systems
26134         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
26135         system with GNULIB_LOCK would fail due to absence of the
26136         included "glthread/lock.h".  This would affect any package
26137         for which the "lock" module is used only by the regex module,
26138         and not explicitly used.
26139         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
26140         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
26141         Add a dependency on the "lock" module.
26143 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26145         localecharset: make locale_charset thread-safe on Mac OS X
26146         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
26147         instead of MB_CUR_MAX.
26149 2013-07-20  Daiki Ueno  <ueno@gnu.org>
26151         gettext: update to version 0.18.3
26152         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
26153         require AC_PROG_SED to allow user to specify custom sed command when
26154         generating en@quot PO file.
26156 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
26158         bootstrap: use correct source when copying build-aux files
26159         * build-aux/bootstrap (gnulib_extra_files): This variable is
26160         relative to upstream gnulib layout, not downstream.
26162 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
26164         tmpdir: fix bug in VMS port
26165         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
26166         See Steven M. Schweda in
26167         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
26169 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26171         tmpdir: port to VMS, to // != /, and to long dirs
26172         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
26173         __secure_getenv, so that we're more like the glibc version.
26174         All uses changed.
26175         (path_search): Don't put slash after directory if __VMS.
26176         Problem reported by Steven M. Schweda in
26177         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
26178         Simplify code to add slash; no need for a loop.
26179         Do not remove trailing slash from "//".
26180         Do not assume dlen <= INT_MAX.
26182 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26184         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
26185         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
26186         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
26187         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
26189         accept4, dup3, pipe2: port to Cygwin
26190         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
26191         * lib/accept4.c (accept4) [O_BINARY]:
26192         * lib/dup3.c (dup3) [O_BINARY]:
26193         * lib/pipe2.c (pipe2) [O_BINARY]:
26194         Use set_binary_mode, not setmode.
26195         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
26196         * modules/binary-io (Depends-on): Remove module indicator.
26197         These last two bits undo the previous change to pipe2 and binary-io.
26199 2013-07-09  Pádraig Brady  <P@draigBrady.com>
26201         mountlist: add support for deallocating returned list entries
26202         * lib/mountlist.c (free_mount_entry): A new exported function
26203         to deallocate a mount list entry.
26204         (read_file_system_list): Refactor to use the new deallocation function.
26205         Suggested by Anton Ovchinnikov.
26207 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26209         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
26210         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
26211         * lib/stdalign.in.h (_Alignas, _Alignof):
26212         Port to FreeBSD 9.1, and to C11 and C++11.
26213         (_Alignas): Also support ICC.
26214         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
26215         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
26217 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26219         fnmatch: don't goto over declaration
26220         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
26221         undefined behavior for goto over a declaration.
26222         Problem reported by Charlie Brown in
26223         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
26225         pipe2: decouple from binary-io a bit
26226         This is for Emacs, which needs pipe2 but not binary-io.
26227         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
26228         * modules/binary-io (Depends-on): Add module indicator.
26230 2013-07-03  Eric Blake  <eblake@redhat.com>
26232         mgetgroups: relax license to LGPLv2+
26233         * modules/getugroups (License): Change from GPLv3+.
26234         * modules/mgetgroups (License): Likewise.
26235         * modules/getgroups (License): Change from LGPLv3+.
26237         xalloc-oversized: relax license to LGPLv2+
26238         * modules/xalloc-oversized (License): Change from GPLv3+.
26240         nproc: relax license to LGPLv2+
26241         * modules/nproc (License): Change from LGPLv3+.
26243         bootstrap: honor --no-git
26244         * build-aux/bootstrap: Don't even try to use git when user is
26245         pointing to a static checkout.
26247 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26249         ignore-value: port to gcc -pedantic
26250         * lib/ignore-value.h (ignore_value):
26251         Port to gcc -pedantic, by using __extension__.
26252         Reindent as per usual gnulib style nowadays.
26253         Simplify GCC version check.
26255 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26257         extern-inline: port to gcc -std=c89
26258         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26259         Do not use __gnu_inline__ if pedantic and pre-C99.
26261 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
26263         doc: document extern-inline
26264         * doc/extern-inline.texi: New file.
26265         * doc/gnulib.texi (alloca-opt): Include it.
26266         * m4/extern-inline.m4: Move some comments to documentation,
26267         and others closer to what they describe.
26269         doc: chatter less
26270         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
26271         (updated-stamp): Use it.  This causes 'make' to output just
26272         one file name rather than zillions.
26274         fflush, fseeko: port to musl cross-compiles
26275         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
26276         on some implementation that (1) is not known to be buggy,
26277         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
26278         cross-compiled to so we can't easily check for lack of
26279         conformance.  This is for cross-compiling to musl.
26280         Reported by Rich Felker in
26281         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
26282         * m4/fclose.m4 (gl_FUNC_FCLOSE):
26283         * m4/fflush.m4 (gl_FUNC_FFLUSH):
26284         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
26285         Adjust to above change.
26286         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
26287         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
26288         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
26289         known not to work, or unknown.
26291 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
26293         msvc-inval: port to mingw-w64
26294         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
26295         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
26296         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
26298 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
26300         getcwd-lgpl: port to Tru64
26301         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
26302         Problem reported by Steven M. Schweda in
26303         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
26305         tests: port large-fd POSIX spawn tests to OS X
26306         Problem reported by Daiki Ueno in
26307         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
26308         * tests/test-posix_spawn_file_actions_addclose.c:
26309         * tests/test-posix_spawn_file_actions_adddup2.c:
26310         * tests/test-posix_spawn_file_actions_addopen.c:
26311         Include <limits.h>, for OPEN_MAX, if available.
26312         (big_fd): New static function.
26313         (main): Use it.
26315 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
26317         tests/nap.h: use an adaptive delay to avoid ctime update issues
26318         The recent change in nap.h (5191133e) decreased the probability of lost
26319         races to about a third, however such problems could still be observed
26320         in virtual machines and openSUSE's OBS.
26321         Before, nap() detected the needed time once empirically and then used
26322         that delay (together with a small correction multiplier) in further
26323         calls.  This problem has been reported and discussed several times,
26324         including guesses about possible kernel issues:
26325         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
26326         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
26327         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
26328         http://bugs.gnu.org/12820
26329         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
26330         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
26331         Now, nap() avoids the race alltogether by verifying on a reference
26332         file whether a timestamp difference has happened.
26333         * tests/nap.h (nap_fd): Define file descriptor variable for the
26334         witness file.
26335         (nap_works): Change return value to bool.  Change passing
26336         the old file's status by value instead of by reference as this function
26337         does no longer update that timestamp; rename the function argument from
26338         st to old_st.  Remove the local variables cdiff and mdiff because that
26339         function now returns true/false instead of the precise delay.
26340         (guess_delay): Remove function.
26341         (clear_tmp_file): Add new function to close and unlink the witness file.
26342         (nap): Instead of re-using the delay which has been calculated during
26343         the first call, avoid the race by actually verifying that a timestamp
26344         difference can be observed on the current file system.  Use an adaptive
26345         approach for the delay to minimize execution time.  Assert that the
26346         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
26347         = 2^31 - 1 = 2.1s.
26348         Use atexit to call clear_tmp_file when the process terminates.
26350 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26352         sig2str: port to C++
26353         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
26354         Reported by Daniel J Sebald in
26355         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
26357 2013-05-30  Eric Blake  <eblake@redhat.com>
26359         docs: mention cygwin shortcoming in <sys/un.h>
26360         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
26362         vasnprintf: silence mingw compiler warning
26363         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
26365 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
26367         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
26368         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
26369         This fixes a porting bug I recently reintroduced in regex, and
26370         some other instances that I discovered while testing the fix.
26371         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
26372         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
26373         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
26374         with an empty argument if this is a pedantic pre-C99 GCC.
26375         * lib/verify.h: Do not use _Static_assert if this is a pedantic
26376         pre-C11 GCC.
26378         regex: adapt to locking regime instead of depending on pthread
26379         Instead of depending on pthread, adapt to whatever thread
26380         modules are in use.  Problem reported by Ludovic Courtès in
26381         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
26382         and by Mats Erik Andersson in
26383         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
26384         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26385         Support either the 'lock' module, or the 'pthread' module, or
26386         no module.
26387         (lock_lock, lock_unlock): New macros.
26388         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
26389         * modules/lock, modules/pthread (configure.ac): Add module indicator.
26390         * modules/regex (Depends-on): Remove pthread.
26392 2013-05-22  Eric Blake  <eblake@redhat.com>
26394         getgroups: document portability issues
26395         * doc/glibc-functions/initgroups.texi (initgroups): Mention
26396         multithread safety.
26397         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
26398         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
26399         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
26400         getugroups.
26401         * doc/posix-functions/getgroups.texi (getgroups): Mention
26402         multithread safety and mgetgroups.
26404 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
26406         test-lchown, test-chown: also skip test if chown fails with EPERM
26407         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
26408         skip this test, to handle FAT file systems.
26409         * tests/test-chown.h (test_chown): Likewise.
26411 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
26413         regex: fix dfa race in multithreaded uses
26414         Problem reported by Ludovic Courtès in
26415         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
26416         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
26417         New macros.  All uses of __libc_lock_define, __libc_lock_init
26418         changed to use the first two of these.
26419         (__libc_lock_lock, __libc_lock_unlock): New macros, for
26420         non-glibc platforms.
26421         (struct re_dfa_t): Define the lock unconditionally.
26422         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
26423         '#ifdef _LIBC"s.
26424         * modules/regex (Depends-on): Add pthread, if we use the
26425         included regex.
26427         * lib/regcomp.c: Do actions that are not needed for glibc,
26428         but may be needed elsewhere.
26429         (regfree, re_compile_internal): Destroy the lock.
26430         (re_compile_internal): Check for lock-initialization failure.
26432         malloca: port to compilers that reject size-zero arrays
26433         This fixes a bug introduced in my previous patch.
26434         * lib/malloca.c (struct preliminary_header): Use an int
26435         rather than a character array of size int; that's simpler.
26436         (struct header): Remove, replacing with ...
26437         (union header): New type.  This avoids the need for declaring a
26438         character array of size zero, which is not allowed on some platforms.
26439         All uses changed.
26441 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26443         parse-datetime, tests: don't use "string" + int
26444         Recent versions of 'clang' complain about C source code that
26445         uses expressions of the form '"string literal" + integer',
26446         I guess on the theory that it's confusing for readers who are
26447         used to C++.  On those grounds I suppose it's OK to make this
26448         minor style change.
26449         * lib/parse-datetime.y (parse_datetime):
26450         * tests/test-fchdir.c (main):
26451         * tests/test-snprintf-posix.h (test_function):
26452         * tests/test-snprintf.c (main):
26453         * tests/test-vasnprintf-posix.c (test_function):
26454         * tests/test-vasnprintf.c (test_function):
26455         * tests/test-vsnprintf.c (main):
26456         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
26457         Rewrite '"str" + E' to '&"str"[E]'.
26459 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26461         argmatch: port to C++
26462         * lib/argmatch.h [__cplusplus]: Add extern "C".
26464         argp: typo fix
26465         * lib/argp-help.c: Typo in comment.
26467 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
26469         manywarnings: update for GCC 4.8.0
26470         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
26471         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
26472         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
26473         -Wmissing-noreturn, as they are duplicates of other warnings.
26474         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
26475         was documented to be flaky in earlier versions of GCC.
26477         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
26478         * tests/test-spawn.c (main):
26479         * tests/test-sys_socket.c (main):
26480         * tests/test-sys_wait.c (main):
26481         Don't have a switch value that isn't covered by a case.
26483         getaddrinfo-tests: port --enable-gcc-warnings to clang
26484         * tests/test-getaddrinfo.c (simple):
26485         Avoid casts from looser to stricter-aligned pointers.
26487         thread: port --enable-gcc-warnings to clang
26488         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
26489         Include <signal.h>, to pacify a warning about pthread_sigmask.
26491         stdio: use __REDIRECT for fwrite, fwrite_unlocked
26492         * lib/stdio.in.h (fwrite):
26493         When working around bug 11959, use __REDIRECT rather than '#define
26494         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
26495         fix the -Wunused-value issue with clang, and it works with GCC too.
26496         Problem with targeting reported by Eric Blake in
26497         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
26498         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
26499         debugging the fwrite issue.
26501         stdio: port --enable-gcc-warnings to clang
26502         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
26503         since the GCC workaround for fwrite does not pacify clang.
26505         sig2str: port --enable-gcc-warnings to clang
26506         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
26508         obstack: port --enable-gcc-warnings to clang
26509         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
26510         Avoid casts from looser to stricter-aligned pointers.
26512         memchr2: port --enable-gcc-warnings to clang
26513         * lib/memchr2.c (memchr2):
26514         Avoid casts from looser to stricter-aligned pointers.
26516         mbsstr: port --enable-gcc-warnings to clang
26517         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
26518         Avoid casts from looser to stricter-aligned pointers.
26520         malloca: port --enable-gcc-warnings to clang
26521         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
26522         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
26524         inttostr: port --enable-gcc-warnings to clang
26525         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
26527         warnings: port to clang
26528         Problem reported by Daniel P. Berrange via Eric Blake in
26529         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
26530         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
26531         (gl_WARN_ADD): Use it.
26533 2013-05-11  Jim Meyering  <meyering@fb.com>
26535         quotearg: do not read beyond end of buffer
26536         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
26537         end of an ARG for which no length was specified.  With an N-byte
26538         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
26539         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
26540         via coreutils' misc/sort-debug-keys.sh test and detected by running
26541         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
26542         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
26543         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
26544         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
26545         characters correctly."
26547 2013-05-11  Daiki Ueno  <ueno@gnu.org>
26549         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
26550         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
26551         compilation target is Mac OS X 10.6.
26552         Problem reported by parafin and Andoni Morales in
26553         <http://savannah.gnu.org/bugs/?37844> and
26554         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
26556 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
26558         mkdir-p: remove assumptions about umask and mode
26559         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
26560         umask is 0, or that MODE is a subset of MODE_BITS.
26562 2013-05-10  Eric Blake  <eblake@redhat.com>
26564         maint.mk: catch more abuse of HAVE_DECL in syntax-check
26565         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
26567 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
26569         deps: require Automake >= 1.9.6 in generated Makefile fragments
26571         That is the same minimal version required in the DEPENDENCIES file.
26572         Moreover, the old code generated a requirement of Automake >= 1.5,
26573         and that is an insanely outdated version.
26575         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
26576         * tests/havelib/rpathlx/Makefile.am: Likewise.
26577         * tests/havelib/rpathly/Makefile.am: Likewise.
26578         * tests/havelib/rpathlyx/Makefile.am: Likewise.
26579         * tests/havelib/rpathlz/Makefile.am: Likewise.
26580         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
26581         * tests/havelib/rpathx/Makefile.am: Likewise.
26582         * tests/havelib/rpathy/Makefile.am: Likewise.
26583         * tests/havelib/rpathz/Makefile.am: Likewise.
26585 2013-05-08  Eric Blake  <eblake@redhat.com>
26587         bootstrap: AC_INIT may have more than four parameters
26588         * build-aux/bootstrap (extract_package_name): Correctly extract
26589         non-empty tarname field.  Avoid range in regex.
26590         Based on a report by Sami Kerola <kerolasa@iki.fi>.
26592 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
26594         qacl: port to MS-Windows port of GNU Emacs
26595         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
26596         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
26597         port of GNU Emacs.  Problem reported by Eli Zaretskii in
26598         <http://bugs.gnu.org/14295#14>.
26600 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
26602         acl: include quote.h
26603         * lib/copy-acl.c: Include quote.h.
26604         * lib/set-acl.c: Likewise.
26606 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
26608         fchownat, renameat, unlinkat: update statat dependencies
26609         These modules use statat and lstatat, not fstatat; so depend on
26610         the statat module, which was split out recently from fstatat.
26611         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
26612         * modules/renameat: Likewise.  Also delete fstat.
26613         URL: http://bugs.gentoo.org/468790
26615 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
26617         Assume gnulib is checked out from Git, not CVS
26619         In fact, access to the gnulib repository through CVS has been
26620         disabled, or more precisely, got broken and was never restored; see:
26621         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
26623         Note that support for CVS is not removed completely and unthinkingly
26624         by this change: only support for CVS checkouts of gnulib itself is
26625         removed.  For example, the 'bootstrap' script still cater to .cvsingore
26626         files and CVS directories, for the benefit of those poor gnulib clients
26627         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
26629         * gnulib-tool: Simplify accordingly.
26630         * posix-modules: Likewise.
26631         * MODULES.html.sh: Likewise.
26632         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
26633         repository.
26634         * doc/gnulib-intro.texi: Likewise.
26635         * doc/gnulib-readme.texi: Likewise.
26636         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
26637         sample '.gitignore' file rather than a sample '.cvsignore'.
26638         * NEWS: Update.
26639         * m4/extensions.m4: While at it, remove a comment mistakenly referring
26640         to "CVS Autoconf" rather than "git Autoconf".
26642 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
26644         utimensat-tests, etc.: try to fix some races
26645         Problem reported by Bernhard Voelker in
26646         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
26647         I don't know whether this patch fixes that race condition, but it
26648         fixes *some* race conditions, so it should be a win.
26649         * modules/chown-tests (Depends-on):
26650         * modules/fchownat-tests (Depends-on):
26651         * modules/fdutimensat-tests (Depends-on):
26652         * modules/futimens-tests (Depends-on):
26653         * modules/lchown-tests (Depends-on):
26654         * modules/stat-time-tests (Depends-on):
26655         * modules/utimens-tests (Depends-on):
26656         * modules/utimensat-tests (Depends-on):
26657         Depend on nanosleep, not usleep.
26658         * modules/chown-tests (test_chown_LDADD):
26659         * modules/lchown-tests (test_lchown_LDADD):
26660         * modules/stat-time-tests (test_stat_time_LDADD):
26661         New macro.
26662         * modules/fchownat-tests (test_fchownat_LDADD):
26663         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
26664         * modules/futimens-tests (test_futimens_LDADD):
26665         * modules/utimens-tests (test_utimens_LDADD):
26666         * modules/utimensat-tests (test_utimensat_LDADD):
26667         Add $(LIB_NANOSLEEP).
26668         * modules/stat-time-tests (Files): Add tests/nap.h.
26669         * tests/nap.h: Include <limits.h>, for INT_MAX.
26670         (lt_mtime): Remove.
26671         (diff_timespec): New function.
26672         (get_stat): Rename from get_mtime.  All callers changed.
26673         (nap_works): Determine the needed delay by inspecting the
26674         file system's timestamp jumps; this should be more reliable.
26675         Look at both mtime and ctime, and take the maximum of the two jumps.
26676         (nap_works, guess_delay):
26677         Return a nanosecond count, not a microsecond count.
26678         All callers changed.
26679         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
26680         failure.
26681         (nap): Multiply the guess by 1.125, to accommodate the case where
26682         the file system's clock is a bit slower than nanosleep's clock.
26683         * tests/test-stat-time.c (BASE): New macro.
26684         Include nap.h.
26685         (nap): Remove; nap.h now defines this.  This removes a duplicate
26686         implementation of 'nap'.
26688         utimens, utimensat: work around Solaris UTIME_OMIT bug
26689         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
26690         Linux kernel 2.6.32 does.  Work around it in the same way.
26691         * doc/posix-functions/futimens.texi (futimens):
26692         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
26693         * lib/utimens.c (fdutimens, lutimens):
26694         * lib/utimensat.c (rpl_utimensat): Work around the bug.
26696         gettext: now it's your responsibility to add -I$(top_builddir)/intl
26697         Formerly, it was your responsibility to do this for all Makefile.ams
26698         other than Gnulib's.  Now it's your responsibility to do it for
26699         Gnulib's Makefile.am, too.
26700         * NEWS: Document this.
26701         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
26703         acl: include errno.h to get errno
26704         Reported by Daiki Ueno in
26705         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
26706         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
26708 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26710         tests: don't assume getdtablesize () <= 10000000
26711         * modules/cloexec-tests:
26712         * modules/dup2-tests:
26713         * modules/dup3-tests:
26714         * modules/nonblocking-tests:
26715         * modules/posix_spawn_file_actions_addclose-tests:
26716         * modules/posix_spawn_file_actions_adddup2-tests:
26717         * modules/posix_spawn_file_actions_addopen-tests:
26718         * modules/unistd-safer-tests:
26719         Depend on the getdtablesize module.
26720         * tests/test-cloexec.c:
26721         * tests/test-dup-safer.c:
26722         * tests/test-dup2.c:
26723         * tests/test-dup3.c:
26724         * tests/test-fcntl.c:
26725         * tests/test-nonblocking.c:
26726         * tests/test-posix_spawn_file_actions_addclose.c:
26727         * tests/test-posix_spawn_file_actions_adddup2.c:
26728         * tests/test-posix_spawn_file_actions_addopen.c:
26729         Don't assume getdtablesize () <= 10000000.
26731 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
26733         extern-inline: work around bug in Sun c99
26734         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
26735         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
26737 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26739         qacl: new module, broken out from the acl module
26740         This is for GNU Emacs, which wants the acl functions but does
26741         not want 'error' invoked when they fail.
26742         * lib/acl-internal.h: Do not include error.h, quote.h.
26743         (ENOSYS, ENOTSUP): Remove; no longer needed.
26744         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
26745         * lib/acl.h: Include <stdbool.h>.
26746         (acl_errno_valid): New function.
26747         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
26748         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
26749         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
26750         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
26751         (ACL_INTERNAL_INLINE): Remove; no longer needed.
26752         * lib/file-has-acl.c (file_has_acl):
26753         * lib/qcopy-acl.c (qcopy_acl):
26754         * lib/qset-acl.c (qset_acl):
26755         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
26756         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
26757         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
26758         lib/file-has-acl.c, m4/acl.m4 to qacl module.
26759         Add lib/set-acl.c.
26760         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
26761         Add qacl.
26762         (configure.ac): Move gl_FUNC_ACL to qacl module.
26763         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
26764         Rename set-mode-acl.c to set-acl.c.
26765         * lib/acl-errno-valid.c: New file.
26766         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
26767         copy_acl function remains in copy-acl.c.
26768         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
26769         (_): Remove; not needed.
26770         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
26771         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
26772         * modules/qacl: New file, moved from the old modules/acl.
26773         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
26774         Remove set-mode-acl.c, copy-acl.c.
26775         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
26777         alignof, intprops, malloca: port better to IBM's C compiler
26778         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
26779         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
26780         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
26782 2013-04-25  Daiki Ueno  <ueno@gnu.org>
26784         wctype-h: fix gettext link error on mingw
26785         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
26786         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
26787         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
26788         rpl_towupper and rpl_towupper.
26790 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
26792         regex-tests, regex: allow glibc re_search behavior
26793         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
26794         re_search input data to make the multi-character collating element
26795         in it clearly visible, and treat re_search return code 0 as valid.
26796         * m4/regex.m4 (gl_REGEX): Likewise.
26798 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26800         stdalign: doc fix
26801         * doc/posix-headers/stdalign.texi (stdalign.h):
26802         Gnulib doesn't support '_Alignof expr'.
26804 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
26806         stdalign: port to stricter ISO C11
26807         ISO C11 says that _Alignof's operand must be a parenthesized type.
26808         Problem reported by Eli Zaretskii in
26809         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
26810         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
26811         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
26813 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
26815         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
26816         Problem reported by Marco Atzeri in
26817         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
26818         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
26819         Simply delegate to the system <sys/select.h> in this case too.
26820         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
26821         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
26822         be needed on Solaris either.
26823         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
26824         Simply delegate to the system <sys/time.h> in this case.
26826 2013-03-19  Karl Berry  <karl@gnu.org>
26828         * build-aux/gnupload: check for erroneous (with gnupload) use of
26829         ftp-upload.gnu.org, tweak help.
26831 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26833         copy-file, rpmatch: fix problems found by cppcheck
26834         Reported by Arno Onken in
26835         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
26836         * lib/rpmatch.c (try): Fix memory leak.
26837         * lib/copy-file.c: Include "ignore-value.h".
26838         (qcopy_file_preserving): Ignore chown value.
26839         * modules/copy-file (Depends-on): Add ignore-value.
26841 2013-01-27  Jim Meyering  <jim@meyering.net>
26843         prefix-gnulib-mk: give better diagnostics
26844         * build-aux/prefix-gnulib-mk: Don't just "die".
26845         Give better diagnostics upon failure.
26847 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
26849         putenv: port to Solaris 10
26850         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
26851         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
26852         is not what is wanted here.
26853         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
26854         declaration, not for its existence.
26856 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
26858         mktime: fix configure typo
26859         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
26861 2013-03-12  Eric Blake  <eblake@redhat.com>
26863         regex-tests: skip UTF-8 test on mingw
26864         * modules/regex-tests (Depends-on): Add localcharset.
26865         * tests/test-regex.c (main): Use it to skip test on mingw.
26867 2013-03-11  Eric Blake  <eblake@redhat.com>
26869         tests: make it easier to bypass alarm time in debugger
26870         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
26871         * tests/test-memmem.c (main): Likewise.
26872         * tests/test-passfd.c (main): Likewise.
26873         * tests/test-ptsname.c (main): Likewise.
26874         * tests/test-ptsname_r.c (main): Likewise.
26875         * tests/test-strcasestr.c (main): Likewise.
26876         * tests/test-strstr.c (main): Likewise.
26878         regex: port to mingw's recent addition of undeclared alarm
26879         * doc/posix-functions/alarm.texi (alarm): Document that alarm
26880         exists but still doesn't work in newer mingw.
26881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
26882         not existence.  Ensure SIGALRM is not trapped.
26883         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
26884         * m4/regex.m4 (gl_REGEX): Likewise.
26885         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
26886         * tests/test-regex.c (main): Use correct probe for alarm.
26888         putenv: avoid compilation warning on mingw
26889         * lib/putenv.c (_unsetenv): Protect variable declaration.
26890         (putenv): Fix indentation.
26892 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
26894         unistd: don't prevent Tru64 Unix from using gnulib strtod.
26895         * lib/unistd.in.h: be careful not to include un-needed system
26896         stdlib.h from here, because that prevents gnulib stdlib.h from
26897         defining rpl_strtod correctly.
26899 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
26901         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
26902         changesets, but for the 'precision 0' test.
26903         * tests/test-vasprintf-posix.c (test_function): Don't insist on
26904         round-to-even, since POSIX says rounding is implementation-defined
26905         and OS X 10.8.2 rounds 1.51 to 1 here.
26907         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
26908         changeset.
26909         * tests/test-vasprintf-posix.c (test_function): Don't insist on
26910         round-to-even, since POSIX says rounding is implementation-defined
26911         and OS X 10.8.2 rounds 1.5 to 1 here.
26913 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
26915         vasnprintf-posix-tests: allow rounding 1.5 to 1
26916         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
26917         round-to-even, since POSIX says rounding is implementation-defined
26918         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
26919         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
26921         bootstrap: port to FreeBSD
26922         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
26923         that treat '--' differently.  Reported by Mats Erik Andersson in
26924         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
26926 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
26928         regex: rename remaining __attribute calls to __attribute__.
26929         2012-02-25 changed definition of __attribute, but left some uses
26930         unchanged, preventing compilation of regex module on most non-gcc
26931         environments.
26932         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
26933         (lookup_collation_sequence_value, build_range_exp)
26934         (build_collating_symbol): Set attributes with newly renamed
26935         __attribute__ decorator.
26936         * lib/regex_internal.c (re_string_peek_byte_case)
26937         (re_node_set_compare, re_node_set_contains): Likewise.
26938         * lib/regexec.c (acquire_init_state_context): Likewise.
26940 2013-03-06  Bruno Haible  <bruno@clisp.org>
26942         execute: Revert last change, but use a different condition.
26943         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
26944         on Windows.
26946 2013-03-05  Eric Blake  <eblake@redhat.com>
26948         execute: drop dead code
26949         * lib/execute.c (nonintr_close, nonintr_open): Delete.
26951 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
26953         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
26954         * m4/non-recursive-gnulib-prefix-hack.m4
26955         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
26956         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
26957         <http://bugs.gnu.org/10305#237>.
26959 2013-03-04  Eric Blake  <eblake@redhat.com>
26961         test-getsockopt: avoid compiler warning
26962         * tests/test-getsockopt.c (includes): Ensure close is declared.
26964 2013-03-02  Bruno Haible  <bruno@clisp.org>
26966         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
26967         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
26969 2013-03-02  Bruno Haible  <bruno@clisp.org>
26971         gettext: Update to version 0.18.2.
26972         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
26973         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
26974                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
26976 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26978         regex: merge patches from libc
26980         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26981         * lib/regex_internal.h (__attribute__): Rename from __attribute.
26982         All uses changed.
26983         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
26984         (re_string_wchar_at, re_string_elem_size_at):
26985         Mark function as possibly unused.
26987         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
26988         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
26989         elements compare against the byte sequence of it, not its name.
26991 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26993         putenv: port better to native Windows
26994         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
26995         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
26996         (_unsetenv): Use _putenv if available.
26997         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
26998         a bit less likely to cause damage.
26999         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
27000         Fix the wrong value with SetEnvironmentVariable.
27001         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
27002         code better.
27004 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27006         regex: ignore old-style-definition warnings
27007         * lib/regex.c: Add pragma to ignore these warnings.
27008         Problem reported for GNU tar by Pavel Raiskup.
27010 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27012         getcwd: support coreutils better
27013         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
27014         but this might not be correct in coreutils, which disables
27015         the raw decl checks.  Problem reported by Nagendra in
27016         <http://bugs.gnu.org/10305#192>.
27017         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
27018         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27019         Test the getcwd function, not any macro, since getcwd.c wants the
27020         function.
27021         * m4/getcwd.m4 (gl_FUNC_GETCWD):
27022         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
27023         compile, as might happen if there's a macro but no function.
27025         strtod: support coreutils better
27026         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
27027         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
27028         disables the raw decl checks.  This assumes there is an underlying
27029         strtod, but that's a safe assumption these days.
27030         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
27032         mountlist: port to HP NonStop
27033         Reported by Joachim Schmitz in
27034         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
27035         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
27036         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
27038 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27040         extern-inline: avoid compilation error with HP-UX cc
27041         Reported by Richard Lloyd in
27042         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
27043         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
27044         Suppress extern inline with HP-UX cc.  This should be safe,
27045         though it may hurt performance.  Perhaps someone with some HP-UX
27046         experience can come up with a higher-performance fix.
27048 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27050         putenv: fix heap corruption with mixed putenv/_putenv
27051         Problem reported by Michael Goffioul in
27052         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
27053         * lib/putenv.c (putenv) [HAVE__PUTENV]:
27054         Rely on _putenv to allocate the new environment.
27055         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27056         * modules/putenv (configure.ac): Use it.
27058 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
27060         unsetenv etc.: port to Solaris 11 + GNU Emacs
27061         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
27062         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
27063         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
27064         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
27065         idea but is too painful to fix right now), and without this gnulib
27066         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
27067         compiling unsetenv.c on Solaris 11.  Fix the problem for
27068         unsetenv.c, and fix other similar occurrences.
27070 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27072         secure_getenv: fix C++ declaration typo
27073         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
27074         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
27075         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
27077 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27079         careadlinkat: stop exporting careadlinkatcwd
27080         Only Emacs used it directly, and Emacs no longer needs it.
27081         * NEWS: Document this simplification.
27082         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
27083         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
27084         for readlink.
27085         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
27086         Don't include stdlib.h; no longer needed.
27087         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
27088         * lib/relocwrapper.c: Adjust comment to match new dependencies.
27089         * modules/areadlink (Depends-on): Add readlink.
27090         (Maintainer): Add self.
27091         * modules/careadlinkat (Depends-on): Remove readlink.
27093         extensions: port better to HP-UX
27094         This is merged from git Autoconf.
27095         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27096         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
27097         so that it's compatible with the value used when compiling.
27099         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
27100         Problem reported by Mats Erik Andersson in
27101         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
27102         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27103         openpty function exists, not merely when we intend to replace it.
27104         This corrects the 2013-01-31 patch, which mistakenly defined
27105         HAVE_OPENPTY even on hosts that lacked it.
27107 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27109         secure_getenv: fix include typo
27110         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
27112         secure_getenv: port better to FreeBSD and Solaris
27113         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
27114         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
27115         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
27116         This works better on BSDish platforms.
27117         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
27118         Test for issetugid if __secure_getenv is missing.
27120 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27122         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
27123         Some of these changes are merged in from git Autoconf.
27124         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27125         When deciding whether to define _XOPEN_SOURCE, inspect the
27126         preprocessor macro __hpux instead of the more-heavyweight
27127         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
27128         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
27129         as the key for __EXTENSIONS__.
27131         unistd: avoid namespace pollution on non-glibc systems
27132         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
27133         This avoids namespace pollution on non-glibc systems, by causing
27134         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
27135         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
27136         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
27138 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27140         tmpdir: use secure_getenv
27141         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
27142         Define to secure_getenv, not getenv.
27143         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
27144         as that's now secure_getenv's job.
27145         * modules/tmpdir (Depends-on): Add secure_getenv.
27147         tempname: use secure_getenv
27148         * lib/tempname.c (__secure_getenv) [!_LIBC]:
27149         Define to secure_getenv, not getenv.
27150         * modules/tempname (Depends-on):
27151         Add secure_getenv.
27153         secure_getenv: new module
27154         * MODULES.html.sh (Extra functions based on ANSI C 89):
27155         Add secure_getenv.
27156         * doc/glibc-functions/secure_getenv.texi: New file.
27157         * doc/gnulib.texi: Include it.
27158         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
27159         New files.
27160         * lib/stdlib.in.h (secure_getenv): New decl.
27161         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
27162         * modules/stdlib (stdlib.h):
27163         Add secure_getenv checks.
27165 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27167         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
27168         Reported for OS X 10.8.2 by Assaf Gordon in
27169         <http://bugs.gnu.org/13516>.
27170         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
27171         !HAVE_OPENAT && !HAVE_FDOPENDIR.
27172         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
27173         so that they can be kept in sync more easily.  Avoid PATH_MAX
27174         test on the Hurd.  Sync from test-getcwd.c for errno tests after
27175         mkdir or chdir failure.
27176         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
27177         lib/getcwd.c.
27178         (test_abort_bug): Do not test for the deep directory bug unless we
27179         have openat support.  Avoid PATH_MAX test on the Hurd.
27181         regex-tests, regex: fix bug: memset undeclared
27182         * tests/test-regex.c: Don't include regex.h twice.  Include
27183         string.h, to declare memset.  Christensen's report also mentioned
27184         this issue.
27185         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
27186         test-regex.c, to avoid future problems like this.  Remove
27187         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
27188         twice.
27190         regex-tests: fix link errors on older Solaris
27191         These need to link with @LIBINTL@ to get libintl_gettext.
27192         Problem reported by Tom G. Christensen in
27193         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
27194         * modules/regex-tests (test_regex_LDADD): New macro.
27196 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27198         regex-tests: new module
27199         * modules/regex-tests, tests/test-regex.c: New files.
27201         regex: fix off-by-one error in configure test
27202         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
27204 2013-01-31  Eric Blake  <eblake@redhat.com>
27206         regex: avoid infinite configure test
27207         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
27209 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
27211         openpty: fix bug where HAVE_OPENPTY wasn't defined
27212         See the thread starting at:
27213         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
27214         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
27215         openpty function exists, not merely when we intend to replace it.
27217 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
27219         sys_time: port to Solaris 2.6
27220         There is a circularity problem on Solaris 2.6, where <time.h> includes
27221         <sys/time.h> for struct timespec.  The include nesting is gnulib
27222         <time.h>, system <time.h>, gnulib <sys/time.h>, system
27223         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
27224         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
27225         <sys/siginfo.h>; the last, innermost file needs struct
27226         timestruc_t, which is defined in <sys/time.h>, which has not been
27227         fully parsed.  Problem reported by Tom G. Christensen in
27228         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
27229         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
27230         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
27231         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
27232         uses split double-inclusion guards.
27234 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27236         regex: test for buffer overrun
27237         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
27238         for the just-fixed regex bug.
27240 2013-01-29  Andreas Schwab  <schwab@suse.de>
27242         regex: fix buffer overrun in regexp matcher [BZ #15078]
27243         * lib/regexec.c (extend_buffers): Add parameter min_len.
27244         (check_matching): Pass minimum needed length.
27245         (clean_state_log_if_needed): Likewise.
27246         (get_subexp): Likewise.
27248 2013-01-28  Pádraig Brady  <P@draigBrady.com>
27250         mountlist: don't consider "devtmpfs" as dummy
27251         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
27252         as there is storage associcated with it.
27254 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27256         futimens-tests, utimens-tests: Depend on gettext.
27257         This works around a problem introduced in my 2013-01-12 patch,
27258         which added @LIBINTL@ to these modules.
27259         * modules/futimens-tests (Depends-on):
27260         * modules/utimens-tests (Depends-on): Add gettext.
27262 2013-01-26  Eric Blake  <eblake@redhat.com>
27264         test-getpeername: fix typo
27265         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
27267 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
27269         bootstrap: remove the need for a sorted .gitignore file
27270         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
27271         rename to insert_if_absent(), so that we don't need or generate
27272         a sorted .gitignore file.  We do require a .gitignore with no
27273         existing duplicate entries and enforce that.
27274         (sort_patterns): Remove this function as we now use the simpler
27275         technigue of inserting blacklist entries at the top of the file,
27276         assuming gnulib won't be inserting !whitelist entries.
27278 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27280         readlinkat: don't depend on gl_FUNC_OPENAT
27281         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
27282         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
27283         renameat.m4, symlinkat.m4; but one thing at a time.
27285         statat: new module, split out from fstatat
27286         GNU Emacs needs the POSIX-specified fstatat, but not the
27287         gnulib-specified statat and lstat.  Split the latter two into a
27288         new module 'statat'.
27289         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
27290         * lib/openat.h, lib/statat.c (STATAT_INLINE):
27291         Rename from FSTATAT_INLINE. All uses changed.
27292         * modules/fstatat (Files): Remove lib/statat.c.
27293         (gl_MODULE_INDICATOR([fstatat])): Remove.
27294         (lib_SOURCES): Remove.
27295         (Maintainer): Add self.
27296         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
27297         * tests/test-fstatat.c (BASE): Don't define if already defined.
27298         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
27300 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27302         tests: don't assume fd 99 is closed
27303         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
27304         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
27305         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
27306         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
27307         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
27308         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
27309         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
27310         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
27311         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
27312         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
27313         * tests/test-fwrite.c, tests/test-getpeername.c:
27314         * tests/test-getsockname.c, tests/test-getsockopt.c:
27315         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
27316         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
27317         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
27318         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
27319         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
27320         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
27321         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
27322         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
27323         * tests/test-unlinkat.c, tests/test-unlockpt.c:
27324         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
27325         Close file descriptor 99, instead of assuming it's already closed.
27327 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27329         stpncpy: port to OS X 10.8
27330         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
27331         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
27333 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27335         unistd: port to recent mingw
27336         * lib/unistd.in.h: Remove special invocation convention for mingw,
27337         which breaks for the latest mingw version.  See John W. Eaton in
27338         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
27340         largefile: port better to Mac OS X 10.5
27341         This patch is backported from Autoconf git.
27342         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
27343         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
27344         with ino_t size being different for configuration time versus
27345         build/run time.  Problem reported by PHO in
27346         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
27348 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27350         doc: clarify -Werror
27351         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
27352         clarify that it's intended for developers, not for ordinary builds,
27353         and mention --enable-gcc-warnings as one possible use.
27355 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
27357         stdint: fix build with Android's Bionic fox x86
27358         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
27359         was already included as _SSIZE_T_DEFINED_ might also be defined
27360         in include/machine/_types.h, which is included by stdio.h
27362 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27364         net_if-tests: port to Solaris 7 + GCC 3.4.6
27365         Problem reported by Tom G. Christensen in
27366         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
27367         * tests/test-net_if.c (ni): Move to next the code that uses it,
27368         so that it's declared only if needed.
27370 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27372         net_if-tests: port to older Solaris
27373         Problem reported by Tom G. Christensen in
27374         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27375         * modules/net_if-tests (NET_IF_LIB): New substitution.
27376         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
27377         (HAVE_IF_NAMEINDEX): New C macro.
27378         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
27380         system-quote-tests: port to older Solaris
27381         Problem reported by Tom G. Christensen in
27382         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27383         * tests/test-system-quote-child.c (fopen, fread): Undef.
27385         c-xvasprintf etc.: fix link errors on older Solaris
27386         These need to link with @LIBINTL@ to get libintl_gettext.
27387         Problem reported by Tom G. Christensen in
27388         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
27389         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
27390         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
27391         * modules/futimens-tests (test_futimens_LDADD):
27392         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
27394 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
27396         locale: port to Solaris 2.6 and 7 + GNU gettext
27397         * lib/locale.in.h: Just include_next <locale.h> when
27398         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
27399         when combining the localename module with GNU gettext 0.18.2.
27400         Problem reported by Tom G. Christensen in
27401         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
27403 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27405         stdlib: port to Solaris 2.6
27406         Also, the code worked on Solaris 7 through 9 only by accident.
27407         Problem reported by Tom G. Christensen in
27408         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
27409         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
27410         simply include the system stdlib.h.
27411         * lib/getopt.in.h (__need_system_stdlib_h):
27412         * lib/pthread.in.h (__need_system_stdlib_h):
27413         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
27414         Define when including <stdlib.h>, to avoid problems at least for
27415         the pthread case on Solaris 2.6 and 7.  These .h files can get by
27416         with the system stdlib.h.
27418 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27420         doc: update main copyright year
27421         * doc/gnulib.texi: Update copyright date.
27423         doc: improve ISO 8601 discussion
27424         * doc/parse-datetime.texi (Combined date and time of day items):
27425         Specify more carefully what formats are supported and what is
27426         done with excess precision.
27428 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27430         doc: avoid small caps
27431         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
27432         they're more trouble than they're worth.  Suggested by Karl Berry
27433         in <http://bugs.gnu.org/13360>.
27435         regex: conform to strict C
27436         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
27437         From Aharon Robbins.
27439         gnulib-tool: fix incompatibility with autopoint 0.18.2
27440         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
27441         Problem reported by Tom G. Christensen in
27442         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
27444 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27446         fprintftime: bring back and reword fwrite comment
27447         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
27449         stdio: remove now-unnecessary stdio.c
27450         Since stdio.in.h no longer uses inline functions, we no longer
27451         need to compile the extern versions.
27452         * lib/stdio.c: Remove.
27453         * modules/stdio (Files): Remove lib/stdio.c.
27454         (lib_SOURCES): Remove.
27456         unicodeio: depend on stdio, not ignore-value
27457         * lib/unicodeio.c: Do not include ignore-value.h.
27458         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
27459         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
27461         fprintftime: depend on stdio, not ignore-value
27462         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
27463         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
27464         since the stdio module arranges to silence that warning now.
27465         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
27467 2012-10-04  Simon Josefsson  <simon@josefsson.org>
27469         stdint-tests: Fix expanded-before-required-warning.
27470         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
27472 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27474         fwrite: silence __wur only for older glibc versions
27475         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
27476         This will help us remove this workaround some time in the far future.
27478 2013-01-03  Eric Blake  <eblake@redhat.com>
27480         fwrite: silence __wur without using inline
27481         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
27482         just gcc, and in a way that avoids inline issues.
27483         * modules/stdio (Depends-on): Drop extern-inline.
27485 2013-01-03  Jim Meyering  <jim@meyering.net>
27487         update-copyright: avoid copyright notice date corruption
27488         Given a sequence of copyright year numbers in which the final
27489         one was a two-digit number that happened to be a substring of
27490         a preceding four-digit year number, we would mistakenly update
27491         the substring (from two- to four-digit) rather than the two-digit
27492         number at the end, which, combined with the addition of the current
27493         4-digit year number would yield two 5-digit year numbers, e.g.,
27494         here, it would convert the first "99" to "1999, 2013" rather than
27495         the final one:
27496           1991, 99
27497           11999, 20131, 1999
27498         * build-aux/update-copyright: Tighten a regexp.
27499         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
27500         Reported by Joseph Myers in
27501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
27503 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27505         regex: omit needless signed-pointer casts
27506         * lib/regcomp.c (build_charclass, build_charclass_op):
27507         Use char *, not unsigned char *, for class name and extra.
27508         The char values are always nonnegative so there's no need to
27509         insist on unsigned char * here, and using char * removes the need
27510         for casts.  Reported by Aharon Robbins in
27511         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27513         regex: support Gawk, which never uses alloca
27514         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
27515         Do not include in this case.  Gawk doesn't supply a substitute
27516         alloca.h and doesn't need one.
27518         regex: port __libc_lock_define usage to C89
27519         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
27520         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
27521         does not conform to C89, as it has an empty macro argument.
27522         Reported by Aharon Robbins in
27523         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27525 2013-01-01  Eric Blake  <eblake@redhat.com>
27527         maint: update all copyright year number ranges
27528         Run "make update-copyright".
27530         version-etc: bump copyright year reported in --version
27531         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
27533 2012-12-31  Eric Blake  <eblake@redhat.com>
27535         sigprocmask-tests: skip test if pid is unexpectedly large
27536         * tests/test-sigprocmask.c (main): Add range check.
27538         git-version-gen: avoid test -z portability glitch
27539         * build-aux/git-version-gen: Prefer portable test spelling, since
27540         git-version-gen is run on more than just developer machines.
27542 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
27544         git-version-gen: add --fallback option to use if git is not present
27545         * build-aux/git-version-gen: Add support for the new option --fallback,
27546         which comes into play when there is no $tarball_version_file and
27547         git is not working.
27548         (scriptversion): Update.
27550         maint.mk: handle missing git with more grace
27551         * top/maint.mk (no-submodule-changes, public-submodule-commit):
27552         Quietly proceed if git is not present.
27554 2012-12-31  Eric Blake  <eblake@redhat.com>
27556         dup2: work around cygwin bug
27557         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
27558         * lib/dup2.c (rpl_dup2): Work around it.
27559         * doc/posix-functions/dup2.texi (dup2): Document it.
27561 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
27563         regex: remove unnecessary dependency on localcharset.h
27564         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
27565         hasn't been needed for years.
27566         * modules/regex (Depends-on): Remove localcharset.
27568         regex: revert single-byte change
27569         * lib/regexec.c (check_node_accept_bytes): Revert previous change
27570         to this function.  This was alredy fixed in a different way, at
27571         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
27572         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
27573         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
27575         regex: simplify based on Gawk version
27576         * lib/regex_internal.c (re_dfa_add_node): Simplify.
27577         Reported by Aharon Robbins in
27578         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27580 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27582         regex: check that pattern char is single-byte
27583         Reported by Aharon Robbins in
27584         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27585         * lib/regexec.c (check_node_accept_bytes):
27586         Return 0 if the pattern string has a multibyte character here.
27588         regex: implement rational ranges
27589         Reported by Aharon Robbins in
27590         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27591         * lib/regcomp.c (build_range_exp) [!_LIBC]:
27592         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
27593         Implement rational ranges.
27595         regex: avoid redefining __wctype
27596         Reported by Aharon Robbins in
27597         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27598         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
27599         #undef before defining.
27601         regex: port to hosts where malloc (0) == NULL
27602         Reported by Aharon Robbins in
27603         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27604         * lib/regex_internal.c (re_node_set_alloc):
27605         Don't assume that malloc (0) yields nonnull.
27606         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
27607         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
27608         * modules/regex (Files): Add m4/eealloc.m4.
27610         regex: port to C89
27611         Reported by Aharon Robbins in
27612         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
27613         * lib/regcomp.c (init_word_char): Declaration before statement.
27615         regex: merge glibc changes
27616         Also, copy the license wording from glibc.  This simplifies
27617         merging changes.  gnulib-tool will change the wording to GPL as
27618         appropriate, when importing it to other packages.  The only
27619         glibc change made since the last merge, which needs merging, is:
27620         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
27621         * lib/regex_internal.h (gettext): Remove use of INTUSE.
27623         * users.txt: Add Emacs.
27625         doc: omit mention of version when not needed
27626         * doc/gnulib-intro.texi (Portability and Application Code):
27627         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
27628         Don't mention particular dates or versions when not necessary, so
27629         that the documentation won't go out of date so quickly.
27631         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
27633 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
27635         bootstrap: pass --force to autoreconf.
27636         * build-aux/bootstrap (AUTORECONFFLAGS): New.
27637         Add "--force" so that Automake's ylwrap and other such tools
27638         be updated at each bootstrap invocation.
27639         Use it.
27641 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27643         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
27644         The earlier patch forgot to update one of the #if conditions, causing
27645         a problem on Debian testing i386 reported by Mats Erik Andersson
27646         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
27647         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
27648         (__argp_fmtstream_puts, argp_fmtstream_puts)
27649         (__argp_fmtstream_write, argp_fmtstream_write)
27650         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
27652         * doc/gnulib-readme.texi: Minor fixups.
27653         (Portability guidelines): Modernize URLs.  Remove some repetition.
27654         (Indent with spaces not TABs): Reword to avoid too-long lines.
27655         Remove some '@ifset standalone' stuff that isn't used.
27657         * doc/gnulib-readme.texi (Portability guidelines):
27658         ctype.h, not ctime.h.
27660         Correct name of POSIX.1-2001.
27661         * doc/posix-functions/fgetc.texi (fgetc):
27662         * doc/posix-functions/fgets.texi (fgets):
27663         * doc/posix-functions/fread.texi (fread):
27664         * doc/posix-functions/fscanf.texi (fscanf):
27665         * doc/posix-functions/getc.texi (getc):
27666         * doc/posix-functions/getchar.texi (getchar):
27667         * doc/posix-functions/scanf.texi (scanf):
27668         POSIX.1-2001, not POSIX-2001.
27670         doc: move README into manual
27671         * README: Move contents to new file doc/gnulib-readme.texi.
27672         Replace with a one-line summary.
27673         * doc/gnulib.texi (Brief Overview): New section,
27674         with old intro preface.  Include gnulib-readme.texi for contents.
27675         (Philosophy): Rename from "Introduction", since this
27676         section no longer introduces the rest.  Write a new preface.
27677         * doc/gnulib-readme.texi: New file, with the old contents of
27678         README texinfo-ized.  This way, the README info appears
27679         in the online and printed manual.
27681 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
27683         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
27684         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
27685         c_vasprintf() prototype.
27687 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
27689         c-vasprintf: Fix "empty declaration" warning reported by GCC.
27690         * lib/c-vasprintf.h: Remove stray semicolon.
27692 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27694         gettext: avoid obsolete macro AM_PROG_MKDIR_P
27695         It is obsolete and is planned to be removed from Automake 1.14; see
27696         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
27697         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
27698         (installdirs-data, installdirs-data-yes):
27699         Use $(MKDIR_P), not $(mkdir_p).
27700         * m4/intl.m4 (AM_INTL_SUBDIR):
27701         * m4/po.m4 (AM_PO_SUBDIRS):
27702         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
27704 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27706         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
27707         On this platform, we are not optimizing but we are using
27708         the substitute for extern inlines, so compile as if
27709         C99-style extern inline, or a substitute, is available.
27710         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
27711         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
27712         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
27713         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
27714         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
27715         Declare as ARGP_FS_EI, not as extern.
27716         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
27717         (__option_is_short, _option_is_end, __option_is_end)
27718         [!_LIBC && __USE_EXTERN_INLINES]:
27719         Declare as ARGP_EI, not as extern.
27721 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27723         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
27724         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
27725         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
27726         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
27727         ...), as the latter is fatal with older Autoconfs.
27728         Problem reported and fix suggested by Eric Blake in thread starting at
27729         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
27731 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27733         AC_PROG_MKDIR_P: don't workaround if not buggy
27734         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
27735         Define only for Autoconf versions before 2.62.
27736         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
27737         undocumented m4_PACKAGE_VERSION, for consistency with the
27738         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
27739         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
27740         was introduced in 2.62.
27742 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
27744         New 'c-*printf' modules for formatted output in C locale.
27746         New module 'c-vasnprintf'.
27747         * modules/c-vasnprintf: New file.
27748         * lib/c-vasnprintf.c: New file.
27749         * lib/c-vasnprintf.h: New file.
27751         New module 'c-snprintf'.
27752         * modules/c-snprintf: New file.
27753         * modules/c-snprintf-tests: New file.
27754         * lib/c-snprintf.c: New file.
27755         * lib/c-snprintf.h: New file.
27756         * tests/test-c-snprintf.c: New file.
27757         * tests/test-c-snprintf.sh: New file.
27759         New module 'c-vsnprintf'.
27760         * modules/c-vsnprintf: New file.
27761         * modules/c-vsnprintf-tests: New file.
27762         * lib/c-vsnprintf.c: New file.
27763         * lib/c-vsnprintf.h: New file.
27764         * tests/test-c-vsnprintf.c: New file.
27765         * tests/test-c-vsnprintf.sh: New file.
27767         New module 'c-vasprintf'.
27768         * modules/c-vasprintf: New file.
27769         * modules/c-vasprintf-tests: New file.
27770         * lib/c-asprintf.c: New file.
27771         * lib/c-vasprintf.c: New file.
27772         * lib/c-vasprintf.h: New file.
27773         * tests/test-c-vasprintf.c  +: New file.
27774         * tests/test-c-vasprintf.sh: New file.
27776         New module 'c-xvasprintf'.
27777         * modules/c-xvasprintf: New file.
27778         * modules/c-xvasprintf-tests: New file.
27779         * lib/c-xasprintf.c: New file.
27780         * lib/c-xvasprintf.c: New file.
27781         * lib/c-xvasprintf.h: New file.
27782         * tests/test-c-xvasprintf.c: New file.
27783         * tests/test-c-xvasprintf.sh: New file.
27785 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27787         argp: better 'inline'
27788         Use extern-inline module to declare extern inline functions.
27789         This avoids some bogus warning diagnostics.  Problem discovered
27790         when modifying GNU tar to use the manywarnings module.
27791         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
27792         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
27793         Define based on extern-inline.
27794         * modules/argp (Depends-on): Add extern-inline.
27796 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27798         filemode, sys_stat: Handle MPX files a la AIX.
27799         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
27800         * lib/sys_stat.in.h (S_ISMPX): New macro.
27801         * tests/test-sys_stat.c: Add tests for MPX files.
27803 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27805         x-to-1: honor $PERL
27806         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
27807         a chance to use his preferred version of Perl.  This is typically
27808         required by Darwin users whose default /usr/bin/perl does not have all
27809         the libraries required by help2man, and who need to use their MacPorts
27810         installation of Perl instead.
27812 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
27814         gnu-web-doc-update: add all the new files, even in new directories
27815         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
27816         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
27817         Use it.
27818         (main): Don't use cvsutils to get the list of unknown files,
27819         just add all the existing files and directories.
27821 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
27823         gnu-web-doc-update: improve --help
27824         * build-aux/gnu-web-doc-update: Move comments into --help.
27826 2012-12-07  Eric Wong  <normalperson@yhbt.net>
27828         mountlist: recognize more "dummy" file systems
27829         * lib/mountlist.c (ME_DUMMY_0):
27830         Add these dummy FS names to the list:
27831         - "debugfs" virtual filesystem for kernel debugging
27832         - "devpts" PTY slave filesystem
27833         - "devtmpfs" device filesystem on top of tmpfs/ramfs
27834         - "fusectl" control filesystem for FUSE
27835         - "mqueue" enumerates POSIX message queues
27836         - "rpc_pipefs" kernel <-> userspace bridge for NFS
27837         - "sysfs" is for exporting kernel objects
27838         - "devfs" device filesystem for Linux 2.4 and FreeBSD
27840 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
27842         extern-inline: avoid incompatibility with Darwin Libc
27843         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
27844         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
27845         Problem reported by Akim Demaille in
27846         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
27848 2012-12-11  Simon Josefsson  <simon@josefsson.org>
27850         gnupload: Work with GnuPG using gpg-agent (for smartcards).
27851         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
27852         let it handle password prompting.
27854 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
27856         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
27857         * lib/canonicalize.c (canonicalize_filename_mode):
27858         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
27859         fetching the current directory.  Don't overrun the beginning of
27860         rpath if there's no slashes after the MS-Windows drive letter.
27862 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
27864         maint.mk: avoid extra forks
27865         * top/maint.mk (_cfg_mk): The GNU make manual documents that
27866         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
27867         So use that instead of "$(shell test -f FILE && echo FILE)".
27869 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27871         vasnprintf: fix ASCII_ONLY typo
27872         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
27873         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
27874         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
27875         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
27876         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
27878 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
27880         list, oset, xlist, xoset: fix extern inline issue with C99
27881         This was introduced by my recent changes for 'inline'.
27882         Problem reported for gettext by Daiki Ueno in
27883         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
27884         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
27885         (gl_list_nx_create, gl_list_size, gl_list_node_value)
27886         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
27887         (gl_list_previous_node, gl_list_get_at)
27888         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
27889         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
27890         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
27891         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
27892         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
27893         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
27894         (gl_list_iterator_free, gl_sortedlist_search)
27895         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
27896         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
27897         (gl_sortedlist_remove):
27898         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
27899         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
27900         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
27901         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
27902         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
27903         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
27904         (gl_list_add_at, gl_sortedlist_add):
27905         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
27906         Wrap these extern decls inside "#if 0", because they are implemented
27907         as inline functions, and extern inline is not what's wanted here.
27908         It would simplify these .h files to remove the extern decls entirely,
27909         although a downside would be less-clear separation between
27910         specification and implementation.
27912 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
27914         sys_stat: no 'static inline'
27915         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
27916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
27918         extern-inline: no 'static inline'
27919         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27920         Do not require AC_C_INLINE.
27921         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
27922         'static inline', for older compilers.
27924         snippet/warn-on-use: no 'static inline'
27925         * build-aux/snippet/warn-on-use.h:
27926         Remove unnecessary 'inline' in comment.
27928         rbtree-list, rbtreehash-list: no 'static inline'
27929         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
27930         * lib/gl_anytree_list2.h (node_at):
27931         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
27932         (gl_oset_first, add_nodes_to_buckets):
27933         Now static, not static inline.
27935         regex: no 'static inline'
27936         * lib/regex_internal.c (calc_state_hash):
27937         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
27938         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
27939         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
27940         Now static, not static inline.
27941         (inline) [__GNUC__ < 3 && _LIBC]:
27942         Remove macro; no longer needed.
27944         xvasprintf: no 'static inline'
27945         * lib/xvasprintf.c (xstrcat):
27946         Now static, not static inline.
27947         * m4/xvasprintf.m4 (gl_XVASPRINTF):
27948         Do not require AC_C_INLINE.
27950         parse-datetime, parse-duration: no 'static inline'
27951         * lib/parse-datetime.y (to_uchar):
27952         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
27953         (scale_n_add):
27954         Now static, not static inline.
27955         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
27956         * modules/parse-duration (configure.ac):
27957         Do not require AC_C_INLINE.
27959         getaddrinfo: no 'static inline'
27960         * lib/getaddrinfo.c (validate_family):
27961         Now static, not static inline.
27962         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
27963         Do not require AC_C_INLINE.
27965         ftruncate, fts, lstat, openat, raise: no 'static inline'
27966         * lib/ftruncate.c (chsize_nothrow):
27967         * lib/fts.c (opendirat, diropen):
27968         * lib/lstat.c (orig_lstat):
27969         * lib/openat.c (orig_openat):
27970         * lib/raise.c (raise_nothrow):
27971         Now static, not static inline.
27972         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
27973         * m4/fts.m4 (gl_FUNC_FTS_CORE):
27974         * m4/lstat.m4 (gl_PREREQ_LSTAT):
27975         * m4/openat.m4 (gl_PREREQ_OPENAT):
27976         * m4/raise.m4 (gl_PREREQ_RAISE):
27977         Do not require AC_C_INLINE.
27979         fflush, stat: no 'static inline'
27980         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27981         (clear_ungetc_buffer, disable_seek_optimization)
27982         (restore_seek_optimization, update_fpos_cache):
27983         * lib/stat.c (orig_stat):
27984         Now static, not static inline.
27985         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
27986         (update_fpos_cache):
27987         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
27988         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
27989         * m4/stat.m4 (gl_PREREQ_STAT):
27990         Do not require AC_C_INLINE.
27992         error, filevercmp: no 'static inline'
27993         * lib/error.c (is_open, flush_stdout):
27994         * lib/filevercmp.c (order):
27995         Now static, not static inline.
27996         * m4/error.m4 (gl_PREREQ_ERROR):
27997         * modules/filevercmp (configure.ac):
27998         Do not require AC_C_INLINE.
28000         dup, execute, fatal-signal, etc.: no 'static inline'
28001         * lib/dup.c (dup_nothrow):
28002         * lib/execute.c (nonintr_close, nonintr_open):
28003         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
28004         * lib/fopen.c (orig_fopen):
28005         * lib/freadseek.c (freadptrinc):
28006         * lib/freopen.c (orig_freopen):
28007         * lib/fstat.c (orig_fstat, fstat_nothrow):
28008         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
28009         (get_rusage_as_via_iterator):
28010         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
28011         * lib/getdtablesize.c (_setmaxstdio_nothrow):
28012         * lib/isatty.c (_isatty_nothrow):
28013         * lib/open.c (orig_open):
28014         * lib/read.c (read_nothrow):
28015         * lib/sigprocmask.c (signal_nothrow):
28016         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
28017         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
28018         * lib/wait-process.c (unregister_slave_subprocess):
28019         * lib/write.c (write_nothrow):
28020         Now static, not static inline.
28021         * lib/spawn-pipe.c (nonintr_open): Define only if
28022         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
28023         * m4/dup.m4 (gl_PREREQ_DUP):
28024         * m4/execute.m4 (gl_EXECUTE):
28025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
28026         * m4/fopen.m4 (gl_PREREQ_FOPEN):
28027         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
28028         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
28029         * m4/fstat.m4 (gl_PREREQ_FSTAT):
28030         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
28031         * m4/isatty.m4 (gl_PREREQ_ISATTY):
28032         * m4/open.m4 (gl_PREREQ_OPEN):
28033         * m4/read.m4 (gl_PREREQ_READ):
28034         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
28035         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
28036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
28037         * m4/wait-process.m4 (gl_WAIT_PROCESS):
28038         * m4/write.m4 (gl_PREREQ_WRITE):
28039         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
28040         Do not require AC_C_INLINE.
28042         c-strtod, memcoll, readutmp: no 'static inline'
28043         * lib/c-strtod.c (c_locale):
28044         * lib/memcoll.c (strcoll_loop):
28045         * lib/readutmp.c (desirable_utmp_entry):
28046         Now static, not static inline.
28047         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
28048         * m4/memcoll.m4 (gl_MEMCOLL):
28049         * m4/readutmp.m4 (gl_READUTMP):
28050         Do not require AC_C_INLINE.
28052         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
28053         * lib/arctwo.c (to_uchar):
28054         * lib/md4.c (set_uint32):
28055         * lib/md5.c (set_uint32):
28056         * lib/sha1.c (set_uint32):
28057         * lib/sha256.c (set_uint32):
28058         * lib/sha512.c (set_uint64):
28059         Now static, not static inline.  This is a bit simpler, and doesn't
28060         affect performance with GCC and default optimization.
28061         * m4/arctwo.m4 (gl_ARCTWO):
28062         * m4/md4.m4 (gl_MD4):
28063         * m4/md5.m4 (gl_MD5):
28064         * m4/sha1.m4 (gl_SHA1):
28065         * m4/sha256.m4 (gl_SHA256):
28066         * m4/sha512.m4 (gl_SHA512):
28067         Do not require AC_C_INLINE.
28069         cond, lock, thread: better 'inline'
28070         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
28071         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
28072         New macros.  Use them instead of static inline, for header functions.
28073         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
28074         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28075         * lib/glthread/lock.c (gl_waitqueue_init)
28076         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
28077         * lib/glthread/thread.c (get_current_thread_handle):
28078         Change 'static inline' to 'inline'.
28079         * lib/glthread/cond.h, lib/glthread/thread.h:
28080         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28081         * m4/cond.m4 (gl_COND):
28082         * m4/lock.m4 (gl_PREREQ_LOCK):
28083         * m4/thread.m4 (gl_THREAD):
28084         Do not require AC_C_INLINE.
28085         * modules/cond, modules/thread (Depends-on): Add extern-inline.
28087         chdir-long, cycle-check, savewd: better 'inline'
28088         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
28089         (find_non_slash):
28090         * lib/cycle-check.c (is_zero_or_power_of_two):
28091         * lib/savewd.c (savewd_delegating):
28092         Change 'static inline' to 'inline'.
28093         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
28094         Replace all remaining uses of 'static inline' with it.
28095         * lib/savewd.h:
28096         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28097         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
28098         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
28099         * m4/savewd.m4 (gl_SAVEWD):
28100         Do not require AC_C_INLINE.
28101         * modules/savewd (Depends-on): Add extern-inline.
28103         base32, base64: no need for 'inline'
28104         * lib/base32.c (to_uchar, get_8, decode_8):
28105         * lib/base64.c (to_uchar, get_4, decode_4):
28106         Change 'static inline' to 'inline'.
28107         * m4/base32.m4 (gl_PREREQ_BASE32):
28108         * m4/base64.m4 (gl_PREREQ_BASE64):
28109         Do not require AC_C_INLINE.
28111         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
28112         * lib/gl_array_oset.c (gl_array_nx_add_at):
28113         (gl_array_remove_at):
28114         * lib/gl_linkedhash_list.c (hash_resize_after_add)
28115         (add_to_bucket, remove_from_bucket):
28116         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
28117         Change 'static inline' to 'static', as it's simpler to omit
28118         'inline' unless there's a significant performance advantage.
28120         list, oset, xlist, xoset, xsublist: simplify via extern inline
28121         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
28122         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
28123         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
28124         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
28125         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
28126         New macro.  Replace all uses of 'static inline' with it.
28127         [HAVE_INLINE]: Implement functions as *_INLINE functions,
28128         instead of as macros FOO that are defined to static inline
28129         functions FOO_inline.
28130         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
28131         * lib/gl_xsublist.c:
28132         Reimplement from scratch, by defining the corresponding *_INLINE
28133         macro and including the corresponding .h file.  This is simpler.
28134         * modules/list, modules/oset, modules/xlist, modules/xoset:
28135         (Files): Remove m4/gl_list.m4.
28136         (configure.ac): Remove gl_LIST.
28137         * m4/gl_list.m4: Remove.
28138         * modules/list, modules/oset, modules/xlist, modules/xoset:
28139         * modules/xsublist:
28140         (Depends-on): Depend on extern-inline, not inline.
28142         xalloc: better 'inline'
28143         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
28144         New macro.  Replace all uses of 'static inline' with it.
28145         (static_inline): Remove.
28146         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
28147         Let 'extern inline' do the work automatically, instead of doing
28148         it by hand.
28149         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
28150         Remove.  All uses removed.
28151         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
28153         gethrxtime: better 'inline'
28154         * lib/xtime.c: New file.
28155         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
28156         * lib/xtime.h (XTIME_INCLUDE):
28157         New macros.  Replace all uses of 'static inline' with them.
28158         * lib/gethrxtime.c (gethrxtime): Define only if
28159         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
28160         this source file is now always compiled, because of the extern inline.
28161         * lib/gethrxtime.h, lib/xtime.h:
28162         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28163         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
28164         if gethrtime works, as they're not needed in that case.
28165         (gl_XTIME): Do not require AC_C_INLINE.
28166         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
28167         compiled now.  Move the check into gl_GETHRXTIME.
28168         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
28169         (Depends-on): Add extern-inline.
28170         (configure.ac): gethrxtime is always compiled now.
28171         (lib_SOURCES): Add gethrxtime.c.
28173         wctype-h: better 'inline'
28174         * lib/wctype-h.c: New file.
28175         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
28176         New macro.  Replace all uses of 'static inline' with it.
28177         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28178         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
28179         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
28180         (Depends-on): Add extern-inline.
28182         unistd: better 'inline'
28183         * lib/unistd.c: New file.
28184         * lib/unistd.in.h (_GL_UNISTD_INLINE):
28185         New macro.  Replace all uses of 'static inline' with it.
28186         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28187         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
28188         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
28189         (Depends-on): Add extern-inline.
28191         sys_socket: better 'inline'
28192         * lib/sys_socket.c: New file.
28193         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
28194         New macro.  Replace all uses of 'static inline' with it.
28195         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
28197         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
28198         (Depends-on): Add extern-inline.
28200         stdio: better 'inline'
28201         * lib/stdio.c: New file.
28202         * lib/stdio.in.h (_GL_STDIO_INLINE):
28203         New macro.  Replace all uses of 'static inline' with it.
28204         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28205         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
28206         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
28207         (Depends-on): Add extern-inline.
28209         sigaction: better 'inline'
28210         * lib/sig-handler.c: New file.
28211         * lib/sig-handler.h (SIG_HANDLER_INLINE):
28212         New macro.  Replace all uses of 'static inline' with it.
28213         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28214         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
28215         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
28216         (Depends-on): Add extern-inline.
28218         selinux-h: better 'inline'
28219         * lib/se-context.c, lib/se-selinux.c: New files.
28220         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
28221         * lib/se-context.in.h (SE_CONTEXT_INLINE):
28222         New macro.  Replace all uses of 'static inline' with it.
28223         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28224         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
28225         New macro.  Replace all uses of 'static inline' with it.
28226         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28227         * modules/selinux-h (Files, lib_SOURCES):
28228         Add lib/se-context.c, lib/se-selinux.c.
28229         (Depends-on): Add extern-inline.
28230         (configure.ac): Do not require AC_C_INLINE.
28232         pthread: better 'inline'
28233         * lib/pthread.c: New file.
28234         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
28235         New macro.  Replace all uses of 'static inline' with it.
28236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28237         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28238         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
28239         * modules/pthread (Files): Add lib/pthread.c.
28240         (Depends-on): Add extern-inline.
28242         math: better 'inline'
28243         * lib/math.c: New file.
28244         * lib/math.in.h (_GL_MATH_INLINE):
28245         New macro.  Replace all uses of 'static inline' with it.
28246         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28247         * m4/math_h.m4 (gl_MATH_H):
28248         Do not require AC_C_INLINE.
28249         * modules/math (Files, lib_SOURCES):
28250         Add lib/math.c.
28251         (Depends-on): Add extern-inline.
28253         count-one-bits: better 'inline'
28254         * lib/count-one-bits.c: New file.
28255         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
28256         New macro.  Replace all uses of 'static inline' with it.
28257         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28258         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
28259         Do not require AC_C_INLINE.
28260         * modules/count-one-bits (Files, lib_SOURCES):
28261         Add lib/count-one-bits.c.
28262         (Depends-on): Add extern-inline.
28264         count-leading-zeros: better 'inline'
28265         * lib/count-leading-zeros.c: New file.
28266         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
28267         New macro.  Replace all uses of 'static inline' with it.
28268         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28269         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
28270         Do not require AC_C_INLINE.
28271         * modules/count-leading-zeros (Files, lib_SOURCES):
28272         Add lib/count-leading-zeros.c.
28273         (Depends-on): Add extern-inline.
28275         bitrotate: better 'inline'
28276         * lib/bitrotate.c: New file.
28277         * lib/bitrotate.h (BITROTATE_INLINE):
28278         New macros.
28279         Replace all uses of 'static inline' with them.
28280         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28281         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
28282         (Depends-on): Add extern-inline.
28283         (configure.ac): Do not require AC_C_INLINE.
28285 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
28287         maint.mk: avoid gratuitous failure
28288         Reported by Stefano Lattarini in
28289         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
28290         * top/maint.mk (public-submodule-commit): Quote more safely.
28292 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
28294         canonicalize, canonicalize-lgpl: support MS-Windows file names
28295         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
28296         for test cases, which it'd be nice to add at some point.
28297         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
28298         * lib/canonicalize.c (canonicalize_filename_mode):
28299         * lib/canonicalize-lgpl.c (__realpath):
28300         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
28301         slash is at the beginning of the file name.  Use ISSLASH, instead
28302         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
28303         the first character with '/'.  Test for
28304         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
28305         with a drive letter.
28306         * lib/canonicalize.c (SLASHES): New macro.
28307         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
28309 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
28311         fts: introduce FTS_VERBATIM
28312         * lib/fts_.h (FTS_VERBATIM): New bit flag.
28313         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
28314         * lib/fts.c (fts_open): Honor it.
28316 2012-11-09  Pádraig Brady  <P@draigBrady.com>
28318         getlogin-tests: allow errno == ENXIO
28319         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28320         with errno == ENXIO (No controlling tty).
28321         getlogin_r-tests: Likewise. Also allow errno == ENOENT
28322         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
28323         with errno == ENOENT.  This was reported to happen in various
28324         situations on GNU/Linux.
28326 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28328         getlogin-tests: allow errno == ENOENT
28329         * tests/test-getlogin.c (main): Skip tests if getlogin fails
28330         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
28331         when running a test in an Emacs shell buffer.
28333 2012-11-08  Jim Meyering  <jim@meyering.net>
28335         tests/nap.h: avoid warning about unused variable
28336         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
28338         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
28339         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
28340         white space before each of the special-cased file names, to avoid
28341         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
28342         in http://bugs.gnu.org/12830.
28344 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28346         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
28347         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
28348         fails with errno == EBADF when fd is opened with O_PATH.
28349         Reported by Jim Meyering in
28350         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
28351         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28352         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
28354 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28356         test-utimens: speed up by taking shorter naps
28357         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
28358         New functions.
28359         (nap): Use them, to do a better job of guessing the delay.
28360         On Fedora 17 with ext4 atop md atop hard disks, this made
28361         test-utimens run 10x faster, because the test napped for
28362         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
28363         <http://bugs.gnu.org/12820#11>.
28365 2012-11-07  Jim Meyering  <jim@meyering.net>
28367         mountlist.c: fix a compilation failure
28368         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
28369         I introduced while transforming commit v0.0-7683-g613bcb6
28371 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28373         errno: port to LynxOS 178 2.2.2
28374         Problem reported by Joel Brobecker in
28375         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
28376         * doc/posix-headers/errno.texi (errno.h): Document this.
28377         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
28378         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
28379         Supply a string for EILSEQ.
28380         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
28382 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28384         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
28385         Linux kernel 2.6.39 introduced O_PATH (see
28386         <http://lwn.net/Articles/433854/>) and this is a better fallback
28387         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
28388         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
28389         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
28390         * lib/fcntl.in.h (O_ACCMODE):
28391         * tests/test-fcntl-h.c (main):
28392         Do not reject O_ACCMODE merely because it has more than the
28393         minimal number of bits, as POSIX allows extensions here.
28395 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
28397         mountlist: do not classify a bind-mounted dir entry as "dummy"
28398         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
28399         the "none"-testing clause.
28400         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
28401         exception for bind-mounted directories.
28403 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
28405         quote: provide a means to escape strings with nul characters
28406         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
28407         (quote, quote_n): Rename formal arguments for consistency with
28408         quotearg.
28410 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28412         test-raise: don't assume 199 is an invalid signal
28413         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
28415         sh-quote-tests: port to Solaris 9
28416         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
28417         Problem reported by Dagobert Michelsen in
28418         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
28420 2012-10-28  Jim Meyering  <jim@meyering.net>
28422         maint.mk: rename a new configurable variable
28423         * top/maint.mk (_gl_translatable_string_re): Rename from
28424         translation-markers: _gl_ prefix to insulate from user Makefile code,
28425         and the _re suffix to inform that it's a regular expression.
28427 2012-10-26  Eric Blake  <eblake@redhat.com>
28429         maint.mk: let packages tweak sc_po_check pattern
28430         * top/maint.mk (sc_po_check): Add translation-markers, to allow
28431         finding files with other translation markers.
28433 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28435         euidaccess: speed up 'configure' on GNU hosts
28436         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
28437         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
28438         it's needed only in this case.  Use AC_CHECK_DECLS, not
28439         AC_CHECK_DECLS_ONCE.
28440         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
28441         or AC_REQUIRE for AC_FUNC_GETGROUPS.
28443         * lib/regexec.c (re_search_internal): Fix grammar in comment.
28445 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28447         fchmodat, fchownat, fstatat: port to non-inlining compilers
28448         Problem reported for FreeBSD 9 by Jim Meyering in
28449         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
28450         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
28451         New files, which define FCHMODAT_INLINE etc.
28452         * lib/fchmodat.c (FCHMODAT_INLINE):
28453         * lib/fchownat.c (FCHOWNAT_INLINE):
28454         * lib/fstatat.c (FSTATAT_INLINE):
28455         Remove, as chmodat.c etc. now do this.
28456         * modules/fchmodat (Files): Add lib/chmodat.c.
28457         * modules/fchownat (Files): Add lib/chownat.c.
28458         * modules/fstatat (Files): Add lib/statat.c.
28460 2012-10-15  Jim Meyering  <jim@meyering.net>
28462         fchmodat.c, fchownat.c: compile-impeding typos
28463         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
28464         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
28465         Introduced in commit v0.0-7636-gd202279.
28467 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28469         fcntl-h: support GNU flags like O_IGNORE_CTTY
28470         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
28471         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
28472         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
28473         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
28474         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
28475         Define to 0 if not already defined.
28476         * tests/test-fcntl-h.c: Test these new flags.
28478 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28480         faccessat, etc.: support AT_FDCWD-only use
28481         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
28482         this function only if its first argument is AT_FDCWD.
28483         Emacs wants faccessat for AT_EACCESS but not for any first-arg
28484         values other than AT_FDCWD, so it doesn't want all the openat
28485         machinery with fchdir etc.
28486         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
28487         * modules/fstatat, modules/mkdirat, modules/openat (Files):
28488         * modules/unlinkat (Files):
28489         Remove lib/openat-priv.h, as at-internal supplies this file.
28490         Removing this file here allows us to support programs like Emacs
28491         that avoid at-internal.
28493         faccessat: speed up 'configure' on mainstream hosts
28494         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
28495         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
28496         since it's only on unusual platforms that we need to check for
28497         'access', and it's better not to slow 'configure' down on all
28498         platforms.
28500         faccessat: port to Solaris 10
28501         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
28502         Needed on Solaris 10, which doesn't have AT_EACCESS,
28503         so we need the Gnulib fcntl.h, which defines it.
28505 2012-10-14  Pádraig Brady  <P@draigBrady.com>
28506         canonicalize: fix C89 compilation
28507         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
28508         declarations so C89 is supported.  Also remove the comment
28509         referencing memorty allocation as the suggested feature could
28510         not be implemented as suggested.
28511         Reported by Michael Goffioul.
28513 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28515         group-member: omit unnecessary dependencies
28516         This is for Emacs, which has its own allocator and where we
28517         don't want to use xalloc.
28518         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
28519         since we no longer use xmalloc.  Do not include stdbool.h, since
28520         the changes below happen to remove the only use of bool.
28521         (GROUPBUF_SIZE): New constant.
28522         (struct group_info): Remove n_groups member.  Add groupbuf member.
28523         This lets us get the groups without using malloc, usually.
28524         (free_group_info, get_group_info): Adjust to this.
28525         (get_group_info): Return the number of groups found, or -1 on error.
28526         Use plain malloc not xmalloc, and treat its failure as if there
28527         are no groups, as the user already loses in case of error.
28528         (group_member): Simplify, based on changes to get_group_info.
28529         * modules/group-member (Depends-on): Remove dependencies on
28530         xalloc and stdbool.  Add dependency on xalloc-oversized.
28532 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
28534         gethrxtime: port to C++
28535         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
28537 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28539         ptsname: fix macro-name typo
28540         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
28542 2012-10-03  Simon Josefsson  <simon@josefsson.org>
28544         inttostr: Relax license.
28545         * modules/inttostr (License): Change from LGPL to LGPLv2+.
28547 2012-10-03  Eric Blake  <eblake@redhat.com>
28549         ptsname_r: support ptys returned by FreeBSD posix_openpt
28550         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
28551         lives in /dev/pts/.
28553 2012-10-02  Eric Blake  <eblake@redhat.com>
28555         pselect: reject invalid file descriptors
28556         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
28557         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
28558         * modules/pselect (Depends-on): Add dup2.
28559         * doc/posix-functions/pselect.texi (pselect): Document this.
28561         select: reject invalid file descriptors
28562         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
28563         * lib/select.c (rpl_select) [!win32]: Work around it.
28564         * modules/select (Depends-on): Add dup2.
28565         * doc/posix-functions/select.texi (select): Document this.
28567         select: enhance test
28568         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
28569         New functions.
28570         (test_function): Enhance test.
28571         (do_select_bad_fd): Avoid any stale errno values.
28573         ptsname: reject invalid file descriptors
28574         http://www.austingroupbugs.net/view.php?id=503
28575         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
28576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
28577         * modules/stdlib (Makefile.am): Replace witness.
28578         * lib/stdlib.in.h (ptsname): Allow for replacement.
28579         * modules/ptsname (configure.ac): Trigger replacement.
28580         * doc/posix-functions/ptsname.texi (ptsname): Document this.
28582 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
28584         hash-pjw-bare: new module
28585         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
28586         * lib/hash-pjw-bare.h: Likewise.
28587         * modules/hash-pjw-bare: New file.
28588         * MODULES.html.sh (Misc): Add it.
28590 2012-10-02  Eric Blake  <eblake@redhat.com>
28592         manywarnings: cater to more gcc infelicities
28593         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
28594         -Wuninitialized without -O.
28596 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
28598         select, poll tests: Make setsockopt invocation effective.
28599         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
28600         the bind() call.
28601         * tests/test-select.h (open_server_socket): Likewise.
28603 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28605         sockets, sys_stat: restore AC_C_INLINE
28606         This undoes the 2012-09-22 patch.
28607         * m4/sockets.m4 (gl_SOCKETS):
28608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
28609         Restore AC_C_INLINE, since MSVC requires __inline or _inline
28610         and does not support plain 'inline'.  Reported by Bruno Haible in
28611         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
28613 2012-09-30  Bruno Haible  <bruno@clisp.org>
28615         localeconv tests: Avoid test failure on OpenIndiana.
28616         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
28617         skip the 'grouping' and 'mon_grouping' tests.
28618         Reported by Jim Meyering.
28620 2012-09-30  Bruno Haible  <bruno@clisp.org>
28622         havelib: Follow libtool developments.
28623         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
28624         Suggested by Simon Josefsson.
28626 2012-09-29  Jim Meyering  <meyering@redhat.com>
28628         fstatat.c: fix a compile-impeding typo
28629         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
28630         Introduced in commit v0.0-7636-gd202279.
28631         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
28633 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
28635         extern-inline: provide a -Wundef safe config.h
28636         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
28637         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
28638         to produce a -Wundef warning free config.h.
28640 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28642         hash-pjw: relax license to LGPLv2+
28643         * modules/hash-pjw (License): Relax, with consent of author.
28645 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
28647         maint.mk: fix strict vs. lazy variable issues with RELEASE
28648         * top/maint.mk (_equal): New function.
28649         (member_check): Strip the result to avoid spurious spaces.
28650         (url_dir_list): Do not use ifeq, which is strict, as it will
28651         require RELEASE_TYPE to be defined.
28652         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
28653         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
28654         (announcement_Cc_alpha,announcement_mail_headers_alpha)
28655         (announcement_Cc_beta,announcement_mail_headers_beta)
28656         (announcement_Cc_stable,announcement_mail_headers_stable): these.
28657         (release): Do not depend on $(release-type), as it forces its
28658         evaluation.  Bounce to it.
28660 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
28662         maint.mk: formatting changes
28663         * top/maint.mk: Indent bodies of if's.
28665 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
28667         maint.mk: factor the validation of RELEASE_TYPE
28668         With help from Jim Meyering.
28669         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
28670         * top/maint.mk (_empty, _sp): Move their definition earlier.
28671         (member-check, release-type): New.
28672         Use the latter instead of $(RELEASE_TYPE).
28673         Remove now useless local checks.
28675 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
28677         maint.mk: provide "make upload" to ease uploading
28678         See
28679         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
28680         Do not depend simply on the current $(VERSION), as there may have been
28681         new commits since the tarball generation.  Rather, rely on $(RELEASE),
28682         as "make release-commit" already does.
28684         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
28685         "make TYPE".
28687         * top/maint.mk (upload_command, upload, release): New.
28688         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
28689         (VERSION): first word of $(RELEASE) is always right.
28690         (emit_upload_commands): Adjust.
28691         * top/README-release: Update.
28693 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
28695         maint.mk: silent rules
28696         With help from Stefano Lattarini.
28697         * top/maint.mk (writable-files): Use $(AM_V_GEN).
28698         (announcement): Use $(AM_V_at).
28700 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28702         localename: port gl_locale_name_thread_unsafe to FreeBSD
28703         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
28704         and use the simpler FreeBSD implementation on Mac OS X as well.
28705         Original idea suggested by Ed Maste in
28706         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
28708 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28710         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
28711         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
28712         * lib/mbuiter.c, lib/xsize.c: New files.
28713         * lib/binary-io.h (BINARY_IO_INLINE):
28714         * lib/eealloc.h (EEALLOC_INLINE):
28715         * lib/mbfile.h (MBFILE_INLINE):
28716         * lib/mbiter.h (MBITER_INLINE):
28717         * lib/mbuiter.h (MBUITER_INLINE):
28718         * lib/xsize.h (XSIZE_INLINE):
28719         New macros.
28720         Replace all uses of 'static inline' with them.
28721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28722         * m4/eealloc.m4 (gl_EEALLOC):
28723         * m4/mbfile.m4 (gl_MBFILE):
28724         * m4/mbiter.m4 (gl_MBITER):
28725         * m4/xsize.m4 (gl_XSIZE):
28726         Do not require AC_C_INLINE.
28727         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
28728         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
28729         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
28730         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
28731         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
28732         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
28733         * modules/binary-io, modules/eealloc, modules/mbfile:
28734         * modules/mbiter, modules/mbuiter:
28735         (Depends-on): Add extern-inline.
28737         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
28738         * lib/pipe-filter-aux.c: New file.
28739         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
28740         Replace all uses of 'static inline' with it.
28741         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28742         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
28743         (filter_retcode): No real need for inline here.
28744         * modules/pipe-filter-gi, modules/pipe-filter-ii:
28745         (Files): Add lib/pipe-filter-aux.c.
28746         (Depends-on): Add extern-inline.
28747         (configure.ac): Do not require AC_C_INLINE.
28748         (lib_SOURCES): Add pipe-filter-aux.c.
28750         fdutimensat: omit unnecessary AC_C_INLINE
28751         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
28753         fchmodat, fchownat, fstatat: use extern-inline
28754         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
28755         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
28756         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
28757         New macros.
28758         * lib/openat.h:
28759         Replace all uses of 'static inline' with them.
28760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28761         * modules/fchmodat, modules/fchownat, modules/fstatat:
28762         * modules/openat-h:
28763         (Depends-on):
28764         Add extern-inline.
28765         (configure.ac): Remove AC_C_INLINE.
28767         acl, mbchar, priv-set: use extern-inline
28768         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
28769         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
28770         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
28771         New macros.
28772         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
28773         Replace all uses of 'static inline' with it.
28774         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28775         * m4/acl.m4 (gl_FUNC_ACL):
28776         * m4/mbchar.m4 (gl_MBCHAR):
28777         * m4/priv-set.m4 (gl_PRIV_SET):
28778         Remove AC_C_INLINE, since 'inline' is no longer used directly.
28779         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
28780         Add extern-inline.
28782         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
28783         * m4/sockets.m4 (gl_SOCKETS):
28784         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
28785         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
28786         environments where it's already guaranteed to work, so we needn't
28787         check for it at 'configure'-time.
28789         tls-tests: omit unnecessary 'inline'
28790         * tests/test-tls.c (perhaps_yield): No longer inline.
28791         Simplicity and portability trump efficiency in test cases.
28793         utimens-tests: avoid unnecessary 'inline'
28794         * modules/fdutimensat-tests (configure.ac):
28795         * modules/futimens-tests (configure.ac):
28796         * modules/utimens-tests (configure.ac):
28797         * modules/utimensat-tests (configure.ac):
28798         Remove AC_C_INLINE.
28799         * tests/test-utimens-common.h (ctime_compare):
28800         No longer inline.  Simplicity and portability trump efficiency here.
28802         misc: don't limit commentary to inline functions
28803         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
28804         * lib/xalloc-oversized.h, lib/xsize.h:
28805         Contrast macros to functions in general, not just to inline functions,
28806         when the commentary does not apply only to inline functions.
28808 2012-09-20  Jim Meyering  <meyering@redhat.com>
28810         non-recursive-gnulib-prefix-hack: new module
28811         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
28812         the file that originated in Bison.
28813         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
28814         largely copied from a snippet that resided in bison's configure.ac.
28815         * modules/non-recursive-gnulib-prefix-hack: New file.
28816         * MODULES.html.sh (Support for maintaining and releasing projects):
28817         Add it.
28819 2012-09-18  Jim Meyering  <meyering@redhat.com>
28821         maint.mk: generalize _gl_tight_scope for non-recursive make
28822         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
28823         that *.h would describe additional .h files in the directory
28824         specified by $(_gl_TS_dir).  I.e., add this...
28825         (_gl_TS_other_headers): New variable.
28827         maint.mk: exempt trailing blanks found in "binary" files
28828         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
28829         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
28830         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
28832 2012-09-17  Jim Meyering  <meyering@redhat.com>
28834         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
28835         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
28836         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
28837         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
28839 2012-09-17  Jim Meyering  <meyering@redhat.com>
28841         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
28842         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
28843         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
28844         It is not in the same category as "exit (0)" or "exit (1)", and
28845         besides, I know of no symbolic name for that 77.  Reported by
28846         Richard W.M. Jones in
28847         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
28849 2012-09-17  Jim Meyering  <meyering@redhat.com>
28851         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
28852         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
28853         all uses of #define, not just those that start in column 1.
28854         Richard W.M. Jones reported a false positive in
28855         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
28857 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28859         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
28860         * lib/localcharset.c (locale_charset) [DARWIN7]:
28861         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
28862         as these two values are incompatible.  Problem reported by Max Horn.
28863         For more discussion, please see
28864         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
28866         doc: document sticky-EOF issue
28867         * doc/posix-functions/fgetc.texi (fgetc):
28868         * doc/posix-functions/fgets.texi (fgets):
28869         * doc/posix-functions/fread.texi (fread):
28870         * doc/posix-functions/fscanf.texi (fscanf):
28871         * doc/posix-functions/getc.texi (getc):
28872         * doc/posix-functions/getchar.texi (getchar):
28873         * doc/posix-functions/scanf.texi (scanf):
28874         Mention that glibc and default Solaris do not conform to
28875         C99 and POSIX-2001 or later, with respect to how getchar
28876         etc. behave when feof reports nonzero.
28878 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
28880         poll: fix poll(0, NULL, msec)
28881         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
28882         but nfd is 0.  In that case poll should behave like select.
28884 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
28885             Paolo Bonzini  <bonzini@gnu.org>
28887         poll: fix for systems that can't recv() on a non-socket
28888         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
28889         is readable.  In this case POLLHUP will not be supported.
28890         * doc/posix-functions/poll.texi: Document this.
28892 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
28894         poll/select: document portability problems not fixed by Gnulib.
28895         * doc/posix-functions/poll.texi: poll does not work well on
28896         pipes under Windows.  It has the same limitations as select on
28897         BeOS.
28898         * doc/posix-functions/select.texi: select does not work well
28899         on pipes under Windows.
28901 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28903         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
28904         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
28905         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
28906         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
28908 2012-09-06  Eric Blake  <eblake@redhat.com>
28910         net_if: give more details about the bug being fixed
28911         * doc/posix-headers/net_if.texi: Add clarification.
28913 2012-09-05  Eric Blake  <eblake@redhat.com>
28915         net_if: new module
28916         * modules/net_if: New module, borrowing ideas from netinet_in.
28917         * m4/net_if_h.m4: New file.
28918         * lib/net_if.in.h: Likewise.
28919         * doc/posix-headers/net_if.texi (net/if.h): Document it.
28920         * MODULES.html.sh (lacking POSIX:2008): Likewise.
28921         * tests/test-net_if.c: Make function checks conditional.
28922         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
28924 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28926         readutmp: fix non-portable UT_PID use
28927         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
28928         Use `UT_PID (u) > 0' as absolute condition.
28930 2012-09-04  Jim Meyering  <meyering@redhat.com>
28932         fts: reduce two or more trailing spaces to just one, usually
28933         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
28934         or more slashes, trim all but the final one.  But if a name consists
28935         solely of two slashes, don't modify it.  If it consists solely of
28936         three or more slashes, strip all but one.
28938         This is part of the solution to a minor problem with rm:
28939         it would print a bogus ELOOP diagnostic when failing to remove
28940         the slash-decorated name of a symlink-to-directory:
28942             $ mkdir d && ln -s d s && env rm -r s/
28943             rm: cannot remove 's': Too many levels of symbolic links
28945         With the change below and a trivial don't-trim-trailing-slashes
28946         adjustment to remove.c, it does this:
28948             $ env rm -r s/
28949             rm: cannot remove 's/': Not a directory
28951         Improved by: Eric Blake
28953         fts: when there is no risk of overlap, use memcpy, not memmove
28954         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
28956 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28958         stdbool: be more compatible with mixed C/C++ compiles
28959         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
28960         Define to bool, true, false, respectively, as GCC's builtin
28961         stdbool.h does.  Problem reported by Michael Goffioul in
28962         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
28964 2012-08-28  Jim Meyering  <meyering@redhat.com>
28966         revert last change: it was not needed
28967         * tests/test-vc-list-files-git.sh: There's already a test for
28968         a working git, just below.
28970 2012-08-28  Jim Meyering  <meyering@redhat.com>
28972         tests: test-vc-list-files-git.sh: skip if git is not available
28973         * tests/test-vc-list-files-git.sh: Skip this test when git is
28974         not available.
28976 2012-08-26  Bruno Haible  <bruno@clisp.org>
28978         gnulib-tool: Remove no-op option --no-changelog.
28979         * gnulib-tool (func_usage): Don't mention --no-changelog.
28980         (do_changelog): Remove variable.
28981         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
28983 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28985         doc: remove fdl-1.2.texi
28986         It is no longer used or maintained, and its use of @acronym
28987         is problematic.  See the thread containing
28988         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
28989         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
28990         * doc/old-licenses/fdl-1.2.texi: Remove.
28992         execinfo: port to FreeBSD
28993         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
28994         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
28995         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
28996         * modules/execinfo (Link): Add $(LIB_EXECINFO).
28998 2012-08-23  Jim Meyering  <meyering@redhat.com>
29000         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
29001         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
29002         to placate gcc's -Wold-style-declaration.
29004 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29006         doc: do not use @acronym
29007         * doc/inet_ntoa.texi (inet_ntoa):
29008         * doc/parse-datetime.texi (Seconds since the Epoch)
29009         (Specifying time zone rules):
29010         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
29011         Don't use @acronym.  Problem reported by John Darlington in
29012         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
29014 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29016         stdnoreturn: port to newer GCCs
29017         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
29018         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
29019         Problem reported by Jim Meyering in
29020         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
29021         Also, rename the 'test' function to a void a clash with the
29022         already-supplied 'main' function; this fixes a bug that incorrectly
29023         rejected GCC 4.7.1's <stdnoreturn.h>.
29024         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
29025         Document GCC problem.
29027 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
29029         pipe-filter: fix comment typo
29030         * lib/pipe-filter.h: Mention correct function.
29032 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29034         execinfo: new module
29035         This is for Emacs.  Currently, it provides a no-effect stub
29036         on all platforms where it does not already work.
29037         It already works on glibc-based systems, and on Solaris 11.
29038         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
29039         New files.
29040         * doc/glibc-headers/execinfo.texi (execinfo.h):
29041         * MODULES.html.sh (Misc): Document it.
29043 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29045         extern-inline: support old GCC 'inline'
29046         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
29047         if available.  This applies to GCC versions 2.7 through 4.2, or
29048         when newer GCC is using -fgnu89-inline.  The goal is to address
29049         some of the performance issues mentioned by Bruno Haible in
29050         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
29052 2012-08-20  Eric Blake  <eblake@redhat.com>
29054         maint.mk: avoid redundant file name in message
29055         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
29056         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
29057         (sc_makefile_path_separator_check): Remove bogus $(ME).
29059 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
29061         timer-time: fix link order when static linking on glibc
29062         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
29063         _after_ -lrt so that it's significant.
29065 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29067         timespec: omit unnecessary AC_C_INLINE
29068         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
29070         stat-time: omit unnecessary AC_C_INLINE
29071         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29072         Do not require AC_C_INLINE.
29074         ignore-value: omit unnecessary AC_C_INLINE
29075         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
29077         sys_select: avoid 'static inline'
29078         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
29080         mktime: avoid 'static inline'
29081         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
29082         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
29084 2012-08-19  Bruno Haible  <bruno@clisp.org>
29086         gnulib-tool: Improve coding style.
29087         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
29088         func_emit_lib_Makefile_am.
29089         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29091 2012-08-19  Bruno Haible  <bruno@clisp.org>
29093         gnulib-tool: Fix indentation.
29094         * gnulib-tool (func_import): Fix indentation.
29096 2012-08-19  Bruno Haible  <bruno@clisp.org>
29098         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
29099         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
29100         on the list of removed files.
29102 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29104         test-parse-datetime: avoid glibc leap-second glitch
29105         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
29106         with the 2012 rules.  Problem reported by Bruce Dubbs in
29107         <http://bugs.gnu.org/12206>.
29109 2012-08-14  Bruno Haible  <bruno@clisp.org>
29111         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
29112         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
29113         from argument.
29114         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29116 2012-08-14  Eric Blake  <eblake@redhat.com>
29118         ldexp: relax license
29119         * modules/ldexp (License): Trivial relax, since the module only
29120         provides a permissively licensed m4 file.
29122 2012-08-13  Bruno Haible  <bruno@clisp.org>
29124         gnulib-tool: Fix persistence of --witness-c-macro option.
29125         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
29126         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29128 2012-08-11  Eric Blake  <eblake@redhat.com>
29130         count-leading-zeros: use a lookup table on non-gcc compilers
29131         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
29132         alternate implementation, suggested by Jim Meyering.
29134 2012-08-10  Eric Blake  <eblake@redhat.com>
29136         count-leading-zeros: new module
29137         * modules/count-leading-zeros: New module.
29138         * m4/count-leading-zeros.m4: New file.
29139         * lib/count-leading-zeros.h: Likewise.
29140         * modules/count-leading-zeros-tests: New test.
29141         * tests/test-count-leading-zeros.c: New file.
29142         * MODULES.html.sh (Integer arithmetic functions): Document it.
29144 2012-08-07  Simon Josefsson  <simon@josefsson.org>
29145             Jim Meyering  <meyering@redhat.com>
29147         maintainer-makefile: Fix syntax error with dash.
29148         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
29149         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
29151 2012-08-05  Jim Meyering  <meyering@redhat.com>
29153         extern-inline: also ignore -Wmissing-declarations
29154         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
29155         required with gcc-4.8.0-to-be.
29157         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
29158         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
29159         for /error ?([^,]*)/.  This avoids false-positives for strings like
29160         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
29162 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
29164         gnumakefile: better interaction with Automake-NG
29165         * modules/gnumakefile [Makefile.am]: The makefiles generated by
29166         Automake-NG always contain a definition of VPATH, even in non-VPATH
29167         builds (its value being simply '.' in that case).  So, in the
29168         'clean-GNUmakefile' rule, to determine whether running under a
29169         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
29170         '$(VPATH)' expands to the empty string.
29172 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
29174         base64: Use extern C scope in header file, for C++.
29175         * lib/base64.h: Add C++ namespace protection.
29177 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
29179         stat-time, timespec, u64: support naive out-of-dir builds
29180         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
29181         Use '#include "foo.h"', not '#include <foo.h>', when including
29182         one's own interface.  This works better when configuring with
29183         out-of-directory builds, since packages need not add an
29184         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
29186 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
29188         utimens: use extern-inline
29189         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
29190         * lib/utimens.h: Add copyright notice, since this is now large enough
29191         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29192         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
29193         * modules/utimens (Depends-on): Add extern-inline.
29195         u64: use extern-inline
29196         * lib/u64.c: New file.
29197         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29198         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
29199         * modules/u64 (Files): Add lib/u64.c.
29200         (Depends-on): Add extern-inline.
29201         (configure.ac): No need to require AC_C_INLINE, since extern-inline
29202         does that now.
29203         (lib_SOURCES): Add u64.c.
29205         timespec: use extern-inline
29206         * lib/timespec.c: New file.
29207         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29208         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
29209         * modules/timespec (Files): Add lib/timespec.c.
29210         (Depends-on): Add extern-inline.
29211         (lib_SOURCES): Add timespec.c.
29213         stat-time: use extern-inline
29214         * lib/stat-time.c: New file.
29215         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29216         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
29217         * modules/stat-time (Files): Add lib/stat-time.c.
29218         (Depends-on): Add extern-inline.
29219         (lib_SOURCES): Add stat-time.c.
29221         extern-inline: new module
29222         * modules/extern-inline, m4/extern-inline.m4: New files.
29223         This is for better support of 'extern inline' a la ISO C99,
29224         with a portable alternative on compilers that do not support
29225         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
29226         of the Emacs executable, when compiled with debugging disabled,
29227         which is a typical way that Emacs is built while developing.
29229 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
29231         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
29232         * build-aux/do-release-commit-and-tag: Move variable definitions
29233         together.
29234         ($branch): Instead of defaulting to "master", default to the current
29235         branch (as gnu-web-doc-update does).
29236         (help): Display the current values of the option arguments.
29237         * top/maint.mk (release-commit): New.
29238         * top/README-release: Simplify the corresponding step.
29240 2012-07-30  Eric Blake  <eblake@redhat.com>
29242         passfd: fix comment on recvfd
29243         * lib/passfd.c (recvfd): Fix comment.
29244         Reported by Jann Horn <jannhorn@googlemail.com>.
29246 2012-07-30  Jim Meyering  <meyering@redhat.com>
29248         maint.mk: avoid a sub-shell
29249         * top/maint.mk (release-prep): Remove unneeded sub-shell.
29251 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29253         maint.mk: use silent-rules support from Automake
29254         * top/maint.mk (news-check, vc-diff-check, announcement)
29255         (no-submodule-changes, alpha beta stable, release-prep)
29256         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
29258 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29260         maint.mk: provide a web-manual-update target
29261         * top/maint.mk: here.
29262         * top/README-release: Use it to simplify the web manual update step.
29264 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29266         README-release: shorten the circuit to post a news
29267         * top/README-release: Point directly to the news submission form.
29269 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29271         gnu-web-doc-update: fix --help
29272         * build-aux/gnu-web-doc-update: The information "top level" was written
29273         twice.
29275 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
29277         maint.mk: absolute VPATH issue
29278         * top/maint.mk (release-prep): Help Git find .git/.
29279         From Jim Meyering.
29281 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29283         gitlog-to-changelog: fix previous change
29284         * build-aux/gitlog-to-changelog: Fix condition.
29285         Add missing ";".
29287 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29289         gitlog-to-changelog: don't expect .git to be in $srcdir
29290         Reported by Bruno Haible.
29291         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
29292         * build-aux/gitlog-to-changelog (&git_dir_option): New.
29293         Use it.
29295 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
29297         maint.mk: absolute VPATH build fix
29298         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
29299         $(srcdir) is not a parent of $(builddir).
29301 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
29303         clean-temp: Fix memory leak.
29304         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
29305         'files' members of tmpdir.
29307 2012-07-27  Jim Meyering  <meyering@redhat.com>
29309         maint.mk: new rule: refresh-gnulib-patches
29310         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
29311         Use this rule to refresh them.
29312         * top/maint.mk (refresh-gnulib-patches): New rule.
29314 2012-07-24  Bruno Haible  <bruno@clisp.org>
29316         gnulib-tool: Fix handling of inctests variable.
29317         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
29318         Reported by Nick Bowler <nbowler@elliptictech.com>.
29320 2012-07-22  Bruno Haible  <bruno@clisp.org>
29322         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
29323         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
29324         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29325         Remove exemption for getpass.h.
29326         Suggested by Eric Blake.
29328 2012-07-20  Eric Blake  <eblake@redhat.com>
29330         verify: document conflict with -Wnested-externs
29331         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
29333         maint.mk: forbid exit(-1)
29334         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
29336 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
29338         fsusage: port back to Solaris
29339         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
29340         error (fsd not declared) on Solaris 10.  Reported privately by
29341         Andrew Borodin.
29343 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
29345         gnu-web-doc-update: fix error messages
29346         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
29348         gnu-web-doc-update: check the requirements.
29349         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
29350         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
29351         * build-aux/bootstrap (find_tool): Comment change.
29353 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
29355         maint.mk: minor simplication.
29356         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
29357         for default values.
29359 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
29361         gitlog-to-changelog: VPATH build issues
29362         If builddir is not a subdirectory of srcdir, running git from it will
29363         fail.
29364         * build-aux/gitlog-to-changelog (--srcdir): New option.
29366 2012-07-15  Bruno Haible  <bruno@clisp.org>
29368         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
29369         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
29370         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
29371         Remove exemption for fpending.h.
29372         Suggested by Eric Blake.
29374 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29376         pthread_sigmask: fix bug on FreeBSD 9
29377         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
29378         Include string.h.
29379         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
29380         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
29381         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
29382         but pthread_sigmask (1729, NULL, NULL) returns zero.
29383         See <http://bugs.gnu.org/11884>.
29384         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
29385         by inspecting whether the main call changed the old mask.
29387 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
29389         README-release: make it more legible
29390         * top/README-release: Improve typography slightly.
29392 2012-07-15  Jim Meyering  <meyering@redhat.com>
29394         maint: require that each sc_... command start with "@"
29395         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
29396         "make sc_maint" helps us avoid this nit.
29398 2012-07-15  Jim Meyering  <meyering@redhat.com>
29400         maint.mk: add leading "@" to quiet new "make syntax-check" rule
29401         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
29403 2012-07-13  Eric Blake  <eblake@redhat.com>
29405         maint.mk: new syntax check for HAVE_DECL checks
29406         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
29407         * cfg.mk
29408         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
29409         Exempt some false positives.
29410         Based on a report by Karel Zak.
29412         argp: make HAVE_DECL usage consistent
29413         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
29414         macros, not whether they are defined.
29415         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
29416         convention with other declaration checks.
29417         Reported by Karel Zak, with suggestions from Paul Eggert.
29419         stat-time: relax license to LGPLv2+
29420         * modules/stat-time (License): Relax, with consent of all authors.
29422         strndup: fix m4 usage error
29423         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
29424         defined, to either 0 or 1.
29425         Reported by Karel Zak.
29427 2012-07-11  Jim Meyering  <meyering@redhat.com>
29429         maint: enable the sc_avoid_if_before_free syntax-check rule
29430         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
29431         (if_before_free_offenders_): Define.
29432         (if_before_free_basename_re_): Define.
29433         Exempt current files with useless if-before-free.
29435 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29437         gettext: do not assume '#define ... defined ...' behavior
29438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
29439         Do not use '#define FOO ... defined BAR ...', as the C standard says
29440         it's not portable to expect that this works after macro expansion.
29441         Problem reported for gzip by Steven M. Schweda in
29442         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
29444 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
29446         getloadavg: clean out old Emacs and Autoconf cruft
29447         See Glenn Morris in <http://bugs.gnu.org/11905>.
29448         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
29449         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
29450         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
29451         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
29453 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
29455         bootstrap: let warn be like tests/init.sh's warn_
29456         Reported by Jim Meyering.
29457         * build-aux/bootstrap (warn): Remove, replaced by...
29458         (warnf_, warn_): these.
29459         Adjust callers.
29460         Shorten messages that no longer fit in 80 columns.
29462 2012-07-09  Bruno Haible  <bruno@clisp.org>
29464         getopt: Simplify after Emacs changed.
29465         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
29466         (gl_GETOPT_IFELSE): Remove macro.
29468 2012-07-09  Jim Meyering  <meyering@redhat.com>
29470         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
29471         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
29473         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
29474         Bugs in both of those conspired to make the
29475         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
29476         _sc_search_regexp's handling of non-empty $in_files would filter
29477         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
29478         choice of in_files value meant there would be no match in most
29479         projects, due to the presence of two or more Makefile.in files.
29480         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
29481         Fix a bug in how a non-empty $$in_files was processed:
29482         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
29483         in spite of the name, it's a regexp, not a list of file names.
29485 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29487         getloadavg, getopt: fix commentary re configure.in
29488         Autoconf is deprecating the name 'configure.in', so change it to
29489         to the new name 'configure.ac' in a couple of places.
29490         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
29491         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
29492         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
29493         Emacs has renamed it to configure.ac, and it no longer refers
29494         to these macros anyway.
29496         timespec: mark functions with const attributes
29497         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
29498         Mark with _GL_ATTRIBUTE_CONST.
29500 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
29502         canonicalize[-lgpl]: handle "guessing" values when cross-building
29503         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29504         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
29505         matches "*yes" instead of just "yes".  Regression introduced in commit
29506         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
29508 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
29509             Bruno Haible  <bruno@clisp.org>
29511         canonicalize: make the right guess when cross-compiling to GNU
29512         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
29513         determine whether cross-compiling to glibc systems, so as to
29514         include GNU/Hurd.
29516 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29518         timespec-sub: avoid duplicate include
29519         * lib/timespec-sub.c: Do not include <config.h> twice.
29520         Reported by Juanma Barranquero.
29522 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
29524         bootstrap: use a more consistent error reporting scheme
29525         * build-aux/bootstrap (warn, die): New.
29526         Use them.
29528 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29530         sys_time: allow too-wide tv_sec
29531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
29532         timeval even if tv_sec is wider than time_t.  This allows
29533         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
29534         as without this patch gnulib replaces struct timeval
29535         and OpenBSD futimes therefore has a type mismatch.
29536         * doc/posix-headers/sys_time.texi: Mention this.
29538         pthread: check for both pthread_create and pthread_join
29539         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
29540         alter the check so that it tests for both pthread_create and
29541         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
29542         Suggested by Bruno Haible and Richard Yao in
29543         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
29545         parse-datetime: doc tuneup
29546         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
29547         spacing issues.
29549 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
29551         do-release-commit-and-tag: fix the previous commit
29552         * build-aux/do-release-commit-and-tag: Actually the test was right,
29553         but the comment and the error message were misleading.
29554         Fix comment, and improve error message.
29555         Perform check first, so that NEWS is not modified uselessly.
29557         do-release-commit-and-tag: fix typo
29558         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
29559         _not_ start with a stub.
29561 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29563         pthread: check for pthread_create, not pthread_join
29564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
29565         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
29566         pthread_join in libc.  I hope this removes the need for all the
29567         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
29568         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
29570 2012-07-04  Jim Meyering  <meyering@redhat.com>
29572         parse-datetime: fix failure to diagnose invalid input
29573         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
29574         rather than diagnosing the invalid input.  Now it reports this:
29575         date: invalid date '\260'
29576         * lib/parse-datetime.y (to_uchar): Define.
29577         (yylex): Don't sign-extend "other" bytes.
29578         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
29579         Thanks to Bruno Haible for the patch to this file.
29580         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
29581         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
29583 2012-07-03  Jim Meyering  <meyering@redhat.com>
29585         bootstrap: do not require now-removed build-aux/missing
29586         Now that build-aux/missing is, er, missing, bootstrap would
29587         silently fail.
29588         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
29589         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
29590         no longer part of gnulib.
29591         Diagnose the failure.
29593 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29595         alloca: add support for HP NonStop TNS/E native
29596         * lib/alloca.in.h (alloca): Support the new host.
29597         From a suggestion by Joachim Schmitz in
29598         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
29600 2012-07-02  Pádraig Brady  <P@draigBrady.com>
29602         fsusage: remove code not needed on non GNU/Linux systems.
29604         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
29605         Don't include headers no longer needed in this case.
29606         * lib/fsusage.c [STAT_STATVFS &&
29607         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
29608         STAT_STATFS2_FRSIZE to exclude code not used in this case.
29610 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29612         fsusage: include files needed for glibc 2.6 fallback
29613         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
29614         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
29615         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
29616         Problem reported by Ludovic Courtès in
29617         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
29619         fsusage: avoid needless check on GNU/Linux
29620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
29621         on GNU/Linux systems, since it can't possibly work.
29623 2012-07-01  Bruno Haible  <bruno@clisp.org>
29625         log: Fix an autoconf >= 2.64 warning.
29626         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
29627         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
29629 2012-06-28  Bruno Haible  <bruno@clisp.org>
29631         log10f: Fix possible configuration problem.
29632         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
29633         $LOGF_LIBM.
29634         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
29636 2012-06-28  Bruno Haible  <bruno@clisp.org>
29638         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
29639         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
29640         not gl_cv_func_unlink_works.
29641         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
29643 2012-06-27  Eric Blake  <eblake@redhat.com>
29645         config: drop scripts that automake says are not independent
29646         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
29647         * build-aux/elisp-comp: Delete.
29648         * build-aux/missing: Likewise.
29649         * build-aux/ylwrap: Likewise.
29650         * modules/elisp-comp: Likewise.
29651         * MODULES.html.sh: Drop mention of elisp-comp.
29652         * NEWS: Mention this.
29654 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29656         root-uid: new module
29657         This is for portability to Tandem's NonStop Kernel.
29658         * lib/root-uid.h, modules/root-uid: New files.
29659         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
29660         * lib/write-any-file.c, tests/test-sethostname2.c:
29661         Include "root-uid.h".
29662         * lib/euidaccess.c (euidaccess):
29663         * lib/pt_chown.c (main):
29664         * lib/unlinkdir.c (cannot_unlink_dir):
29665         * lib/write-any-file.c (can_write_any_file):
29666         * m4/mknod.m4 (gl_FUNC_MKNOD):
29667         * tests/test-sethostname2.c (geteuid, main):
29668         Don't assume ROOT_UID == 0.
29669         * modules/euidaccess (Depends-on):
29670         * modules/pt_chown (Depends-on):
29671         * modules/sethostname-tests (Depends-on):
29672         * modules/unlinkdir (Depends-on):
29673         * modules/write-any-file (Depends-on):
29674         Add root-uid.
29676         regex: use locale-independent comparison for codeset name
29677         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
29678         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
29679         for codeset name.
29680         * lib/regex_internal.h: Do not include <strings.h>, since we
29681         no longer use strcasecmp.
29682         * modules/regex (Depends-on): Remove strcase.
29684 2012-06-23  Bruno Haible  <bruno@clisp.org>
29686         getopt-posix: No longer guarantee that option processing is resettable.
29687         * doc/posix-functions/getopt.texi: Drop description of problem with
29688         internal state. Fix info about mingw and msvc9.
29689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
29690         option processing by getopt(). Run three test programs instead of one.
29691         Simplify cross-compilation guess.
29692         * NEWS: Mention the change.
29693         Reported by Rich Felker <dalias@aerifal.cx>.
29695 2012-06-26  Bruno Haible  <bruno@clisp.org>
29697         argp, regex: Ensure strcasecmp gets declared.
29698         * lib/argp-help.c: Include <strings.h>.
29699         * lib/regex_internal.h: Likewise.
29700         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
29702 2012-06-24  Bruno Haible  <bruno@clisp.org>
29704         ptsname_r: Make it consistent with ptsname on AIX.
29705         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
29706         implementation as for OSF/1.
29707         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
29708         a pty master.
29710         ptsname_r: Make it consistent with ptsname on OSF/1.
29711         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
29712         OSF/1.
29714 2012-06-24  Bruno Haible  <bruno@clisp.org>
29716         ttyname_r: Fix result on OSF/1, Solaris.
29717         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
29719 2012-06-24  Bruno Haible  <bruno@clisp.org>
29721         ptsname_r: Add support for Solaris.
29722         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
29723         Solaris.
29725         ptsname_r: Fix test failure on native Windows.
29726         * modules/ptsname_r (Depends-on): Add isatty.
29728         ptsname_r: Fix test failures on IRIX, Solaris.
29729         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
29730         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
29731         accordingly.
29732         * lib/ptsname_r.c: Include <fcntl.h>.
29733         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
29734         set errno if fd is invalid.
29735         * tests/test-isatty.c (main): Update comments.
29737 2012-06-24  Bruno Haible  <bruno@clisp.org>
29739         ptsname test: Extend test.
29740         * tests/test-ptsname.c: Include <errno.h>.
29741         (main): Test behaviour with invalid file descriptor.
29743 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29745         time: fix obsolete comment
29746         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
29747         reference to HAVE_STRUCT_TIMESPEC in comment.
29749 2012-06-23  Bruno Haible  <bruno@clisp.org>
29751         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
29752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
29753         does not handle abbreviated long options with equivalent
29754         disambiguations, set gl_replace_getopt to yes.
29755         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
29757 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29759         time_r: fix typo that always overrode localtime_r decl
29760         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
29761         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
29762         not in a standard include.
29764 2012-06-22  Bruno Haible  <bruno@clisp.org>
29766         Write "Mac OS X" instead of "MacOS X".
29767         * README: Write "Mac OS X" instead of "MacOS X".
29768         * build-aux/bootstrap: Likewise.
29769         * build-aux/install-reloc: Likewise.
29770         * lib/acl-internal.h: Likewise.
29771         * lib/acl_entries.c: Likewise.
29772         * lib/argp-ba.c: Likewise.
29773         * lib/argp-pv.c: Likewise.
29774         * lib/config.charset: Likewise.
29775         * lib/copy-acl.c: Likewise.
29776         * lib/csharpexec.c: Likewise.
29777         * lib/euidaccess.c: Likewise.
29778         * lib/fbufmode.c: Likewise.
29779         * lib/fflush.c: Likewise.
29780         * lib/file-has-acl.c: Likewise.
29781         * lib/filemode.h: Likewise.
29782         * lib/fpurge.c: Likewise.
29783         * lib/freadable.c: Likewise.
29784         * lib/freadahead.c: Likewise.
29785         * lib/freading.c: Likewise.
29786         * lib/freadptr.c: Likewise.
29787         * lib/freadseek.c: Likewise.
29788         * lib/fseeko.c: Likewise.
29789         * lib/fseterr.c: Likewise.
29790         * lib/fsusage.c: Likewise.
29791         * lib/fwritable.c: Likewise.
29792         * lib/fwriting.c: Likewise.
29793         * lib/get-rusage-as.c: Likewise.
29794         * lib/get-rusage-data.c: Likewise.
29795         * lib/getdomainname.c: Likewise.
29796         * lib/idpriv-drop.c: Likewise.
29797         * lib/idpriv-droptemp.c: Likewise.
29798         * lib/localcharset.c: Likewise.
29799         * lib/locale.in.h: Likewise.
29800         * lib/localename.c: Likewise.
29801         * lib/mbsrtowcs-state.c: Likewise.
29802         * lib/nproc.c: Likewise.
29803         * lib/passfd.c: Likewise.
29804         * lib/posix_openpt.c: Likewise.
29805         * lib/printf-parse.c: Likewise.
29806         * lib/progreloc.c: Likewise.
29807         * lib/safe-read.h: Likewise.
29808         * lib/safe-write.h: Likewise.
29809         * lib/sched.in.h: Likewise.
29810         * lib/set-mode-acl.c: Likewise.
29811         * lib/signal.in.h: Likewise.
29812         * lib/stdint.in.h: Likewise.
29813         * lib/stdio-impl.h: Likewise.
29814         * lib/stdlib.in.h: Likewise.
29815         * lib/strtod.c: Likewise.
29816         * lib/sys_select.in.h: Likewise.
29817         * lib/tcgetsid.c: Likewise.
29818         * lib/unistd.in.h: Likewise.
29819         * lib/unlockpt.c: Likewise.
29820         * lib/vasnprintf.c: Likewise.
29821         * lib/vma-iter.c: Likewise.
29822         * lib/wcsrtombs-state.c: Likewise.
29823         * m4/acl.m4: Likewise.
29824         * m4/acosl.m4: Likewise.
29825         * m4/asinl.m4: Likewise.
29826         * m4/atanl.m4: Likewise.
29827         * m4/c-stack.m4: Likewise.
29828         * m4/cosl.m4: Likewise.
29829         * m4/expl.m4: Likewise.
29830         * m4/extensions.m4: Likewise.
29831         * m4/fdatasync.m4: Likewise.
29832         * m4/fmal.m4: Likewise.
29833         * m4/frexp.m4: Likewise.
29834         * m4/frexpf.m4: Likewise.
29835         * m4/frexpl.m4: Likewise.
29836         * m4/fsusage.m4: Likewise.
29837         * m4/getdomainname.m4: Likewise.
29838         * m4/getloadavg.m4: Likewise.
29839         * m4/getopt.m4: Likewise.
29840         * m4/gettext.m4: Likewise.
29841         * m4/gnulib-common.m4: Likewise.
29842         * m4/intdiv0.m4: Likewise.
29843         * m4/intlmacosx.m4: Likewise.
29844         * m4/largefile.m4: Likewise.
29845         * m4/ldexpl.m4: Likewise.
29846         * m4/link-follow.m4: Likewise.
29847         * m4/locale-ar.m4: Likewise.
29848         * m4/locale-fr.m4: Likewise.
29849         * m4/locale-ja.m4: Likewise.
29850         * m4/locale-tr.m4: Likewise.
29851         * m4/locale-zh.m4: Likewise.
29852         * m4/locale_h.m4: Likewise.
29853         * m4/lock.m4: Likewise.
29854         * m4/logl.m4: Likewise.
29855         * m4/mathfunc.m4: Likewise.
29856         * m4/minus-zero.m4: Likewise.
29857         * m4/mktime.m4: Likewise.
29858         * m4/mmap-anon.m4: Likewise.
29859         * m4/multiarch.m4: Likewise.
29860         * m4/nanosleep.m4: Likewise.
29861         * m4/nocrash.m4: Likewise.
29862         * m4/poll.m4: Likewise.
29863         * m4/printf-frexpl.m4: Likewise.
29864         * m4/printf.m4: Likewise.
29865         * m4/signbit.m4: Likewise.
29866         * m4/sinl.m4: Likewise.
29867         * m4/sqrtl.m4: Likewise.
29868         * m4/strerror_r.m4: Likewise.
29869         * m4/tanl.m4: Likewise.
29870         * m4/threadlib.m4: Likewise.
29871         * m4/ttyname_r.m4: Likewise.
29872         * m4/unlink.m4: Likewise.
29873         * m4/visibility.m4: Likewise.
29874         * m4/wcwidth.m4: Likewise.
29875         * tests/minus-zero.h: Likewise.
29876         * tests/test-alloca-opt.c: Likewise.
29877         * tests/test-copy-acl.sh: Likewise.
29878         * tests/test-copy-file.sh: Likewise.
29879         * tests/test-fdatasync.c: Likewise.
29880         * tests/test-file-has-acl.sh: Likewise.
29881         * tests/test-flock.c: Likewise.
29882         * tests/test-fsync.c: Likewise.
29883         * tests/test-localename.c: Likewise.
29884         * tests/test-malloca.c: Likewise.
29885         * tests/test-nonblocking-pipe.h: Likewise.
29886         * tests/test-nonblocking-socket.h: Likewise.
29887         * tests/test-openpty.c: Likewise.
29888         * tests/test-posix_openpt.c: Likewise.
29889         * tests/test-ptsname.c: Likewise.
29890         * tests/test-ptsname_r.c: Likewise.
29891         * tests/test-sameacls.c: Likewise.
29892         * tests/test-select.h: Likewise.
29893         * tests/test-set-mode-acl.sh: Likewise.
29894         * tests/test-snprintf-posix.h: Likewise.
29895         * tests/test-sprintf-posix.h: Likewise.
29896         * tests/test-strtod.c: Likewise.
29897         * tests/test-time.c: Likewise.
29898         * tests/test-vasnprintf-posix.c: Likewise.
29899         * tests/test-vasprintf-posix.c: Likewise.
29900         * doc/acl-resources.txt: Likewise.
29901         * doc/**/*.texi: Likewise.
29902         Reported by Max Horn <max@quendi.de>.
29904 2012-06-22  Bruno Haible  <bruno@clisp.org>
29906         grantpt: Relax requirement regarding invalid file descriptors.
29907         * lib/grantpt.c: Don't include <fcntl.h>.
29908         (grantpt): Don't verify the validity of the file descriptor.
29909         * modules/grantpt (Depends-on): Remove fcntl-h.
29910         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
29911         file descriptors.
29912         * doc/posix-functions/grantpt.texi: Document more platforms on which
29913         grantpt succeeds for invalid file descriptors.
29914         Reported by Rich Felker <dalias@aerifal.cx>.
29916 2012-06-22  Bruno Haible  <bruno@clisp.org>
29918         fbufmode test: Don't test unportable behaviour.
29919         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
29920         (main): Invoke it three times.
29921         Reported by Szabolcs Nagy <nsz@port70.net>
29922         and Rich Felker <dalias@aerifal.cx>.
29924 2012-06-21  Bruno Haible  <bruno@clisp.org>
29926         gnulib-tool: Refactor inctests variable.
29927         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
29928         (func_modules_transitive_closure,
29929         func_modules_transitive_closure_separately,
29930         func_import, func_create_testdir): Update.
29932         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
29933         * gnulib-tool: Accept option --without-tests.
29934         (func_usage): Document --without-tests option. Rearrange.
29935         (inctests): Normalize according to the mode.
29936         * NEWS: Mention the change.
29937         Suggested by Simon Josefsson.
29939 2012-06-21  Bruce Korb  <bkorb@gnu.org>
29941         parse-duration test: Avoid spurious output.
29942         * tests/test-parse-duration.sh: Reindent with leading tabs.
29944 2012-06-21  Jim Meyering  <meyering@redhat.com>
29946         maint: disable the strncpy prohibition
29947         * cfg.mk: Do not prohibit strncpy here.
29949 2012-06-21  Bruno Haible  <bruno@clisp.org>
29951         nonblocking: Avoid compilation error on mingw64.
29952         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
29953         fscanf.
29954         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
29955         * modules/vfscanf (configure.ac): Likewise.
29956         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
29957         definition only if stdio.h has prepared it.
29958         Reported by Daniel P. Berrange <berrange@redhat.com>.
29960 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
29962         gnulib-tool: Use readlink if it is available.
29963         * gnulib-tool (func_readlink): Choose function more appropriately.
29965 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29967         posixtm-tests: port to buggy compiler
29968         Problem reported by Simon Josefsson in
29969         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
29970         * modules/posixtm-tests (Depends-on): Add stdint.
29971         * tests/test-posixtm.c (struct posixtm_test.t_expected):
29972         Now of type int_least64_t, not int64_t, both because that's
29973         what INT64_C returns and because int_least64_t works even
29974         on 72-bit hosts.
29975         (T): Use INT64_C on constants outside the traditional int range,
29976         to work around compiler bug noted by Simon.
29978         mktime: fix integer overflow in 'configure'-time test
29979         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
29980         after integer overflow.  Problem reported by Rich Felker in
29981         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
29982         Also, don't look for further instances of a bug if we've already
29983         found one instance; this helps 'configure' run faster.
29985 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
29987         tmpfile, clean-temp: Fix invocation of GetVersionEx.
29988         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
29989         GetVersionEx correctly.
29990         * lib/clean-temp.c (supports_delete_on_close): Likewise.
29992 2012-06-20  Bruno Haible  <bruno@clisp.org>
29994         fdopen: Allow implementations that don't reject invalid fd arguments.
29995         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
29996         succeeds.
29997         Reported by Rich Felker <dalias@aerifal.cx>.
29999 2012-06-20  Simon Josefsson  <simon@josefsson.org>
30001         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
30002         bring in LIBINTL.
30004 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30006         init.sh: do not rely on autoupated PWD
30007         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
30008         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
30009         Although Nelson's bug was not necessarily fixed by this patch,
30010         it seems wise to make the change for safety.
30011         * tests/init.sh (path_prepend_): Do not rely on PWD updating
30012         automagically after 'cd'; this is not reliable on older shells.
30013         (setup_): Fail if we cannot cd to temporary directory.
30015 2012-06-19  Bruno Haible  <bruno@clisp.org>
30017         stat, fstat: Avoid warnings on mingw64.
30018         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
30019         redefining.
30020         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
30021         Reported by Daniel P. Berrange <berrange@redhat.com>.
30023 2012-06-19  Bruno Haible  <bruno@clisp.org>
30025         stdioext: Add support for musl libc.
30027         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
30028         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
30030         * m4/fseterr.m4: New file.
30031         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
30032         function exists.
30033         * modules/fseterr (Files): Add m4/fseterr.m4.
30034         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
30035         __fseterr does not exist.
30036         (Makefile.am): Remove fseterr.c from lib_SOURCES.
30038         * lib/freadable.h: Update comment.
30040         * lib/fwritable.h: Update comment.
30042         * lib/freading.h: Update comment.
30044         * lib/fwriting.h: Update comment.
30046         * m4/freadahead.m4: New file.
30047         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
30048         that function exists.
30049         * modules/freadahead (Files): Add m4/freadahead.m4.
30050         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
30051         __freadahead does not exist.
30052         (Makefile.am): Remove freadahead.c from lib_SOURCES.
30054         * m4/freadptr.m4: New file.
30055         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
30056         function exists.
30057         * modules/freadptr (Files): Add m4/freadptr.m4.
30058         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
30059         __freadptr does not exist.
30060         (Makefile.am): Remove freadptr.c from lib_SOURCES.
30062         * m4/freadseek.m4: New file.
30063         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
30064         exists.
30065         * modules/freadseek (Files): Add m4/freadseek.m4.
30066         (configure.ac): Invoke gl_FUNC_FREADSEEK.
30068         * lib/fpurge.c (fpurge): Update comment.
30070         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
30072 2012-06-19  Bruno Haible  <bruno@clisp.org>
30074         *printf-posix: Put more info into config.log.
30075         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
30076         exit code into config.log.
30078 2012-06-19  Bruno Haible  <bruno@clisp.org>
30080         getopt-gnu: Fix exit code overflow in autoconf test.
30081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
30082         to keep them below < 128.
30084 2012-06-17  Jim Meyering  <meyering@redhat.com>
30086         maint.mk: fix typo in code to derive GPG key at release time
30087         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
30089 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30091         regex: avoid warning when pointers are not long
30092         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
30093         and uintptr_t, not long, for portability to hosts where pointers and
30094         long have different sizes.  Issue noted by Daniel P. Berrange in
30095         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
30096         and fix suggested by Bruno Haible in
30097         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
30099 2012-06-17  Bruno Haible  <bruno@clisp.org>
30101         dummy: Relicense into the public domain.
30102         * modules/dummy (License): Set to "public domain".
30103         Suggested by Reuben Thomas.
30105 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30107         announce-gen: VPATH issues
30108         * build-aux/announce-gen (--srcdir): New option, used to trim the
30109         $srcdir part of the path from $builddir to NEWS.
30110         * top/maint.mk (announcement): Adjust.
30112 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
30114         gnu-web-doc-update: VPATH builds
30115         * build-aux/gnu-web-doc-update (--builddir): New option.
30116         Revamp the handling of options.
30117         Prefer $(...) to `...`.
30118         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
30119         the template, and it is GNU mktemp specific.
30120         Prefer set -e to long series of &&.
30121         Restore the initial git branch, not "master".
30122         Properly initialize submodules (don't rely only on bootstrap).
30123         Do not reconfigure blindly, use config.status.
30124         * top/README-release: Update instructions for gnu-web-doc-update.
30126 2012-06-11  Jim Meyering  <meyering@redhat.com>
30128         maint.mk: revert most of the previous change re "all these"
30129         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
30130         For rationale, see the discussion at
30131         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
30133 2012-06-10  Karl Berry  <karl@gnu.org>
30135         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
30137         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
30139 2012-06-10  Bruce Korb  <bkorb@gnu.org>
30141         parse-duration: Relicense under LGPLv2+.
30142         * modules/parse-duration (License): Change to LGPLv2+.
30144 2012-06-10  Jim Meyering  <meyering@redhat.com>
30146         maint.mk: prohibit common grammar error: "all these"
30147         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
30148         the list of prohibited word sequences.  It should be "all of these".
30149         * lib/tempname.c (__gen_tempname): Fix one of them.
30151 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30153         do-release-commit-and-tag: support VPATH builds
30154         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
30155         (noteworthy): Defined earlier to factor its value.
30156         (noteworthy_stub): New.
30157         Use it to factor.
30158         (help_version): Split into...
30159         (help, version): these.
30160         Adjust the option processing part.
30161         Support "--option=value" in addition to "--option value".
30162         (builddir): New.
30163         (--builddir): New option.
30164         * top/README-release: Document this.
30165         Reword slightly so that the reader cannot understand that he
30166         has to do these steps before calling do-release-commit-and-tag.
30168 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30170         readme-release: also require announce-gen and maintainer-makefile
30171         * modules/readme-release (Depends-on): here.
30172         * modules/announce-gen, modules/do-release-commit-and-tag,
30173         modules/gnu-web-doc-update, modules/maintainer-makefile
30174         (Description): Point to readme-release.
30176 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
30178         maint.mk: fix VPATH issues.
30179         * top/maint.mk (news-check): GNU Make understand $< very well.
30180         (release-prep): NEWS is in $(srcdir).
30182 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
30184         readme-release: require the promoted modules.
30185         * modules/readme-release (Depends-on): Add
30186         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
30187         in this text.
30189 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30190             Bruno Haible  <bruno@clisp.org>
30192         error, strerror-override: Support mingw64 from Fedora 17.
30193         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
30194         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
30195         EINPROGRESS.
30196         * lib/strerror-override.h (strerror_override): Test it.
30197         * lib/strerror-override.c (strerror_override): Likewise.
30198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
30200 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30201             Bruno Haible  <bruno@clisp.org>
30203         error, strerror-override: Support mingw64 from Fedora 17.
30204         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
30205         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
30206         * lib/strerror-override.h (strerror_override): Test it.
30207         * lib/strerror-override.c (strerror_override): Likewise.
30209 2012-06-03  Bruno Haible  <bruno@clisp.org>
30211         error, strerror-override: Support new errno values from POSIX:2008.
30212         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
30213         ENOTRECOVERABLE.
30214         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
30215         platforms.
30216         * lib/strerror-override.c (strerror_override): Conditionalize the
30217         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
30218         * lib/strerror-override.h (strerror_override): Declare also if
30219         GNULIB_defined_EOWNERDEAD is defined.
30220         * tests/test-errno.c (e130, e131): New variables.
30221         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
30222         ENOTRECOVERABLE.
30223         Reported by Paolo Bonzini.
30225 2012-05-31  Jim Meyering  <meyering@redhat.com>
30227         savewd: add missing dependency on sys_wait module
30228         * modules/savewd (Depends-on): Add sys_wait, needed at least
30229         for MSVC.  Report and suggested change by Michael Goffioul.
30231 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30233         system-quote-tests: port to CentOS 5
30234         Problem reported by Tom G. Christensen in
30235         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
30236         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
30238 2012-05-29  Jim Meyering  <meyering@redhat.com>
30240         maint: fix typos in comments and ChangeLog
30241         Culprits identified and fixed mostly automatically using these commands:
30242         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
30243         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
30244         using http://github.com/lyda/misspell-check
30245         * ChangeLog: Fix typos.
30246         * doc/solaris-versions: Likewise.
30247         * lib/regexec.c (re_search_stub): Likewise.
30248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30250 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30252         manywarnings: remove duplicate -Wmultichar entry
30253         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
30254         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
30255         so keep the entry marked as documented.
30257 2012-05-27  Karl Berry  <karl@gnu.org>
30259         * config/srclist.txt (mktime.c): remove last libc sync,
30260         perhaps just temporarily.
30262 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30264         regex: don't assume uint64_t or uint32_t
30265         * lib/regcomp.c (init_word_char): Don't assume that the types
30266         uint64_t and uint32_t exist.  The C standard doesn't guarantee
30267         them, and on some 32-bit compilers there is no uint64_t.
30268         Problem reported by Gianluigi Tiesi in
30269         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
30271 2012-05-25  Jim Meyering  <meyering@redhat.com>
30273         maint.mk: add strncpy-prohibiting syntax-check rule
30274         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
30276 2012-05-24  Jim Meyering  <meyering@redhat.com>
30278         maint.mk: compute $(gpg_key_ID) more portably
30279         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
30280         That use of sed is not portable to some fringe systems.
30281         Reported by Paul Eggert in
30282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
30284 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
30286         mktime: sync from glibc
30287         * config/srclist.txt: Uncomment mktime.c.
30288         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
30289         First, indent with tabs, since glibc uses tabs and doesn't want to
30290         change and we'd rather be identical to glibc.  Also, two small
30291         coding changes:
30292         (isdst_differ): Use &&, not &, as && is the usual style.
30293         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
30294         for clarity.
30296 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30298         announce-gen: du -h is more portable than du --human
30299         * build-aux/announce-gen (sizes): Invoke du with -h instead
30300         of --human.  Accept leading white space in its output.
30302 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30304         announce-gen: Improve diagnostics.
30305         * build-aux/announce-gen: When parsing command line options,
30306         prefer "announce-gen: option --release-type requires an argument"
30307         to "Option release-type requires an argument".
30309 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
30311         maint.mk: gpg_key_ID: use sed more portably
30312         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
30313         the closing brace.
30314         (refresh-po): Fuse two sed invocations into one.
30316 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
30318         gitlog-to-changelog: support the log message format used in Bison.
30319         * build-aux/gitlog-to-changelog: Support --strip-tab and
30320         --strip-cherry-picked.
30322 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
30324         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
30325         the rest of the current time slice to another thread in the current
30326         process. So if the thread that feeds the file decscriptor we're
30327         polling is not in the current process, we get busy-waiting.
30328         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
30329         Patch from Theodore Leblond.
30330         * lib/select.c: Split polling out of the loop that sets the output
30331         fd_sets.  Check for zero result and loop if the wait timeout is
30332         infinite.
30334 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30336         select: Fix build error on IRIX 6.5.
30337         * lib/select.c: Include stddef.h for NULL.
30339 2012-05-21  Simon Josefsson  <simon@josefsson.org>
30341         gc: fix libgcrypt detection on older machines.
30342         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
30343         copyright years because the file has been distributed every year
30344         since it was created.
30346 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30348         crypto: fix bug in large buffer handling
30349         Problem reported by Serge Belyshev for glibc in
30350         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
30351         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
30352         * lib/md4.c (md4_process_block):
30353         * lib/md5.c (md5_process_block):
30354         * lib/sha1.c (sha1_process_block):
30355         * lib/sha256.c (sha256_process_block):
30356         Don't assume the buffer length is less than 2**32.
30357         * lib/sha512.c (sha512_process_block): Likewise.
30358         Here, the bug is present only in the rare case where the host does
30359         not support uint64_t or where size_t is wider than 64 bits.
30360         Use u64size to work around the problems.
30361         * lib/u64.h (u64size): New macro.
30363 2012-05-15  Pádraig Brady  <P@draigBrady.com>
30365         fsusage: fix block size returned on older Linux 2.6
30367         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
30368         which is available since Linux 2.6.
30369         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
30370         when the member is available so it can be used as a fallback.
30371         * doc/posix-functions/statvfs.texi: Mention the hang issue
30372         on Linux < 2.6.36.
30374 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30376         bootstrap: suppress stderr chatter
30377         * build-aux/bootstrap (insert_sorted_if_absent, main program):
30378         Omit unnecessary chatter to stderr.  The main program chatter
30379         was there only inadvertantly.
30381         bootstrap: .gitignore files created by autopoint, libtool
30382         I ran into this problem when bootstrapping the latest diffutils.
30383         After './bootstrap', 'git status' reported lots of untracked files
30384         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
30385         autopoint and do not need to be version-controlled.
30386         * build-aux/bootstrap: Put into .gitignore the files that
30387         autopoint and libtool create, by keeping track of files that exist
30388         after but not before these programs are run.
30389         (version_controlled_file): Move up.  2nd arg is now full file
30390         name, not base name; this is more convenient.  Put CVS at the end,
30391         as it's now somewhat deprecated.
30393 2012-05-14  Jim Meyering  <meyering@redhat.com>
30395         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
30396         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
30397         definition.  Reported by Bruno Haible.
30399 2012-05-13  Bruno Haible  <bruno@clisp.org>
30400             Paul Eggert  <eggert@cs.ucla.edu>
30402         binary-io: Define set_binary_mode function.
30403         * lib/binary-io.h (set_binary_mode): New function.
30404         (SET_BINARY): Define in terms of set_binary_mode.
30405         * modules/binary-io (configure.ac): Require AC_C_INLINE.
30406         * tests/test-binary-io.c (main): Accept an argument, and test either
30407         set_binary_mode or SET_BINARY depending on the argument.
30408         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
30409         argument. Clean up also t-bin-out0.tmp.
30411 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
30413         bootstrap: take advantage of POSIX shell features
30415         The 'bootstrap' script offered by Gnulib script already uses POSIX
30416         shell features (like $((...)) arithmetic expansions) that are not
30417         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
30418         means that bootstrap must already be run using a proper POSIX shell,
30419         which will thus provide more features, like ${var#pattern} parameter
30420         expansion or inversion of a command exit status with '!'.  We can
30421         thus use these features to improve the clarity and the performances
30422         of the bootstrap script.
30424         Suggested by Eric Blake.
30426         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
30427         of sed/expr plus command substitutions, to save some forks.  While
30428         we are at it, prefer the POSIX $(...) form of command substitution,
30429         rather than the legacy form `...` (since the former is visually
30430         clearer and interacts better with quoting), and prefer the idiom:
30431           "if ! CMD; then ACTION ..."
30432         over the idiom:
30433           "if CMD; then :; else ACTION ..."
30434         which was required by legacy Bourne shells not supporting '!'.
30436 2012-05-12  Bruno Haible  <bruno@clisp.org>
30438         system-quote: Add more comments.
30439         * lib/system-quote.h: Add more comments about wilcards and limitations.
30440         Suggested by Eli Zaretskii <eliz@gnu.org>.
30442         sh-quote, system-quote: Add comments about wildcards.
30443         * lib/sh-quote.h: Clarify what happens with wildcard characters.
30444         * lib/system-quote.h: Likewise.
30445         Reported by Eli Zaretskii <eliz@gnu.org>.
30447 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30449         fsusage: check for GNU/Linux statvfs problem dynamically
30450         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
30451         Define STAT_STATFS2_BSIZE too, since in this case the code now
30452         checks dynamically whether statvfs is reliable, falling back on
30453         Linux-style statfs otherwise.
30454         (statvfs_works): New function, for dynamically testing statvfs.
30455         (get_fs_usage) [STAT_STATVFS]: Use it.
30456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
30457         statvfs on GNU/Linux hosts, since it's now done dynamically.
30459 2012-05-10  Bruno Haible  <bruno@clisp.org>
30461         system-quote, execute, spawn-pipe: Escape '?' on Windows.
30462         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
30463         '?' character.
30464         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
30465         * tests/test-system-quote-main.c (check_all): Check also strings like
30466         "??????????".
30467         Reported by Eli Zaretskii <eliz@gnu.org>.
30469 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
30471         _Noreturn: port config.h to gcc -Wundef
30472         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
30473         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
30474         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
30476 2012-05-10  Bruno Haible  <bruno@clisp.org>
30478         system-quote: Refactor.
30479         * lib/system-quote.h (system_quote_copy): Fix comment.
30480         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
30481         New functions, extracted from system_quote_copy.
30482         (system_quote_length, system_quote_copy): Use these functions.
30483         Reported by Paul Eggert.
30485 2012-05-08  Bruno Haible  <bruno@clisp.org>
30487         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
30488         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
30490 2012-05-08  Bruno Haible  <bruno@clisp.org>
30492         Tests for module 'system-quote'.
30493         * modules/system-quote-tests: New file.
30494         * tests/test-system-quote.sh: New file.
30495         * tests/test-system-quote-main.c: New file.
30496         * tests/test-system-quote-child.c: New file.
30498         New module 'system-quote'.
30499         * lib/system-quote.h: New file.
30500         * lib/system-quote.c: New file.
30501         * modules/system-quote: New file.
30503 2012-05-08  Bruno Haible  <bruno@clisp.org>
30505         sh-quote: Make C++ safe and allow multiple inclusion.
30506         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
30507         declarations in extern "C".
30509 2012-05-08  Bruno Haible  <bruno@clisp.org>
30511         sh-quote tests: Make tests stricter.
30512         * tests/test-sh-quote.c (check_one): Check the return value of
30513         shell_quote_copy.
30514         (main): Check a string with a CR character. Check a string that
30515         contains UCHAR_MAX.
30517 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
30519         warnings.m4: provide a means to specify the program to compile.
30520         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
30521         (gl_WARN_ADD): here.
30522         Use gl_AS_VAR_APPEND.
30523         Support an argument to specify the program to compile.
30524         (gl_WARN_ADD): Accept an argument to specify the program to compile.
30525         AC_SUBST the WARN_CFLAGS when they are used.
30526         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
30527         leave this to gl_WARN_ADD.
30529 2012-05-08  Eric Blake  <eblake@redhat.com>
30531         doc: recommendations on gettext version
30532         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
30533         choice between versions.
30534         * DEPENDENCIES (gettext): Cover both approaches.
30536 2012-05-08  Jim Meyering  <meyering@redhat.com>
30538         init.sh: explain why EXEEXT support uses aliases rather than functions
30539         * tests/init.sh: Add a comment.
30541         init.sh: don't let bash aliases interfere with tests
30542         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
30543         is bash.  This avoids problems for those who alias standard commands to
30544         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
30545         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
30547 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30549         stdint: be more consistent with glibc, SunOS libc
30550         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
30551         (gl_int_fast16_t, gl_uint_fast16_t)
30552         (gl_int_fast32_t, gl_uint_fast32_t)
30553         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
30554         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
30555         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
30556         Be consistent with glibc by default, and with SunOS 5.10 and later
30557         if __sun is defined.  This lessens the likelihood of clashes if
30558         code compiled for older hosts is combined with code compiled for
30559         newer ones.  Problem reported by Niels Möller in
30560         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
30562 2012-05-07  Eric Blake  <eblake@redhat.com>
30564         isatty: relax license to LGPLv2+
30565         * modules/isatty (License): Relax license.
30567 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30569         stat-size: comment fix
30570         * lib/stat-size.h: Remove obsolete comment about indenting.
30572 2012-05-06  Bruno Haible  <bruno@clisp.org>
30574         Tests for module 'sh-quote'.
30575         * modules/sh-quote-tests: New file.
30576         * tests/test-sh-quote.c: New file.
30578 2012-05-06  Bruno Haible  <bruno@clisp.org>
30580         sh-quote: Improve shell_quote_argv's signature.
30581         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
30582         * lib/sh-quote.c (shell_quote_argv): Likewise.
30584 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30586         stdint: document issues with int_fast8_t etc.
30587         * doc/posix-headers/stdint.texi (stdint.h): Say that other
30588         stdint.h substitutes may define these types differently.  See
30589         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
30591 2012-05-05  Bruno Haible  <bruno@clisp.org>
30593         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
30594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
30595         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
30596         or 'guessing no (mishandles large arguments)'.
30598 2012-05-05  Bruno Haible  <bruno@clisp.org>
30600         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
30601         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
30602         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
30603         set gl_cv_func_link_follows_symlink to "guessing no".
30605 2012-05-05  Bruno Haible  <bruno@clisp.org>
30607         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
30608         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
30609         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
30610         "guessing no".
30611         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
30613 2012-05-05  Bruno Haible  <bruno@clisp.org>
30615         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
30616         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
30617         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
30618         set gl_cv_struct_dirent_d_ino to "guessing yes".
30620 2012-05-05  Bruno Haible  <bruno@clisp.org>
30622         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
30623         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
30624         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
30625         "guessing yes".
30627 2012-05-05  Bruno Haible  <bruno@clisp.org>
30629         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
30630         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
30631         compiling to a glibc system, set gl_cv_func_signbit and
30632         gl_cv_func_signbit_gcc to "guessing yes".
30634 2012-05-05  Bruno Haible  <bruno@clisp.org>
30636         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
30637         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
30638         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
30639         to "guessing yes".
30640         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
30641         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
30643 2012-05-05  Bruno Haible  <bruno@clisp.org>
30645         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
30646         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
30647         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
30648         gl_cv_func_realpath_works to "guessing yes".
30650 2012-05-05  Bruno Haible  <bruno@clisp.org>
30652         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
30653         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
30654         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
30656 2012-05-04  Bruno Haible  <bruno@clisp.org>
30658         Tweak last commit.
30659         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
30660         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30662 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
30664         unistd_h: make it easier to avoid sys_types_h
30665         This is useful for Emacs, which has its own method of porting to
30666         Windows, and which therefore does not need the sys_types_h module.
30667         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
30668         code moved here from gl_SYS_TYPES_H.
30669         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
30670         using the code directly.
30671         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
30672         gl_SYS_TYPES_H.
30673         * modules/sys_types (Files):
30674         * modules/unistd (Files): Add m4/off_t.m4.
30676 2012-05-03  Bruno Haible  <bruno@clisp.org>
30678         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
30679         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
30680         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
30681         "guessing yes" or "guessing no".
30682         (gl_FUNC_LSTAT): Update.
30683         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
30684         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
30685         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
30687 2012-05-03  Bruno Haible  <bruno@clisp.org>
30689         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
30690         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
30691         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
30692         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
30693         cross-compiling, choose the first alternative on glibc systems.
30694         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
30696 2012-05-03  Bruno Haible  <bruno@clisp.org>
30698         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
30699         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
30700         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
30702 2012-05-03  Bruno Haible  <bruno@clisp.org>
30704         chown: Avoid "guessing no" when cross-compiling to glibc systems.
30705         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
30707 2012-05-03  Bruno Haible  <bruno@clisp.org>
30709         Avoid "guessing no" guesses when cross-compiling to glibc systems.
30710         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
30711         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
30712         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
30713         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
30714         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
30715         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
30716         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
30717         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
30718         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
30719         compiling to glibc systems, set gl_cv_func_chown_slash_works,
30720         gl_cv_func_chown_ctime_works to "guessing yes".
30721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
30722         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
30723         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
30724         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
30725         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
30726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
30727         compiling to glibc systems, set gl_cv_func_open_directory_works to
30728         "guessing yes".
30729         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
30730         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
30731         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
30732         "guessing yes".
30733         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
30734         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
30735         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
30736         compiling to glibc systems, set gl_cv_func_floorf_ieee to
30737         "guessing yes".
30738         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
30739         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
30740         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
30741         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
30742         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
30743         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
30744         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
30745         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
30746         "guessing yes".
30747         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
30748         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
30749         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
30750         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
30751         "guessing yes".
30752         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
30753         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
30754         "guessing yes".
30755         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
30756         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
30757         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
30758         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
30759         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
30760         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
30761         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
30762         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
30763         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
30764         compiling to glibc systems, set gl_cv_func_log10f_ieee to
30765         "guessing yes".
30766         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
30767         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
30768         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
30769         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
30770         "guessing yes".
30771         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
30772         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
30773         "guessing yes".
30774         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
30775         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
30776         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
30777         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
30778         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
30779         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
30780         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
30781         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
30782         compiling to glibc systems, set gl_cv_func_mkfifo_works to
30783         "guessing yes".
30784         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
30785         compiling to glibc systems, set gl_cv_func_mknod_works to
30786         "guessing yes".
30787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
30788         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
30789         "guessing yes".
30790         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
30791         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
30792         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
30793         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
30794         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
30795         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
30796         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
30797         compiling to glibc systems, set gl_cv_func_svid_putenv to
30798         "guessing yes".
30799         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
30800         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
30801         "guessing yes".
30802         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
30803         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
30804         "guessing yes".
30805         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
30806         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
30807         to "guessing yes".
30808         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
30809         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
30810         to "guessing yes".
30811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
30812         compiling to glibc systems, set gl_cv_func_rmdir_works to
30813         "guessing yes".
30814         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
30815         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
30816         gl_cv_func_unlink_parent_fails to "guessing yes".
30817         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
30818         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
30819         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
30820         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
30821         gl_cv_func_rename_dest_works to "guessing yes".
30822         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
30823         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
30824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
30825         compiling to glibc systems, set gl_cv_func_roundf_ieee to
30826         "guessing yes".
30827         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
30828         compiling to glibc systems, set gl_cv_func_roundl_ieee to
30829         "guessing yes".
30830         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
30831         compiling to glibc systems, set gl_cv_func_setenv_works to
30832         "guessing yes".
30833         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
30834         compiling to glibc systems, set gl_cv_func_unsetenv_works to
30835         "guessing yes".
30836         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
30837         compiling to glibc systems, set gl_cv_func_sleep_works to
30838         "guessing yes".
30839         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
30840         compiling to glibc systems, set gl_cv_func_stat_file_slash to
30841         "guessing yes".
30842         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
30843         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
30844         "guessing yes".
30845         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
30846         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
30847         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
30848         compiling to glibc systems, set gl_cv_func_truncf_ieee to
30849         "guessing yes".
30850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
30851         compiling to glibc systems, set gl_cv_func_truncl_ieee to
30852         "guessing yes".
30853         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
30854         compiling to glibc systems, set gl_cv_func_usleep_works to
30855         "guessing yes".
30856         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
30857         compiling to glibc systems, set gl_cv_func_futimesat_works to
30858         "guessing yes".
30860 2012-05-03  Bruno Haible  <bruno@clisp.org>
30862         Say "guessing yes" or "guessing no" when cross-compiling.
30863         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
30864         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
30865         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
30866         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
30867         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
30868         am_cv_func_working_getline to "guessing yes" or "guessing no".
30869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
30870         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
30871         (gl_FUNC_MEMMEM): When cross-compiling, set
30872         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
30873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
30874         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
30875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
30876         set gl_cv_func_strcasestr_works_always to "guessing yes" or
30877         "guessing no".
30878         (gl_FUNC_STRCASESTR): When cross-compiling, set
30879         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
30880         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
30881         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
30882         (gl_FUNC_STRSTR): When cross-compiling, set
30883         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
30884         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
30885         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
30886         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
30887         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
30889 2012-05-01  Bruno Haible  <bruno@clisp.org>
30891         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
30892         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
30893         * build-aux/reloc-ldflags: Likewise.
30894         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
30896 2012-05-01  Bruno Haible  <bruno@clisp.org>
30898         gnulib-tool: Remove transitional code.
30899         * gnulib-tool: Don't warn about --import with 0 arguments any more.
30900         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
30902 2012-05-01  Bruno Haible  <bruno@clisp.org>
30904         getcwd: Fix misindentation.
30905         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
30907 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30909         exclude: process exclude and include directives in order
30910         This restores the pre-2009 behavior, and is part of a fix of a
30911         grep bug reported by Quentin Arce in
30912         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
30913         * lib/exclude.c (struct exclude): Remove 'tail' member.
30914         (new_exclude_segment): Prepend the new segment instead of appending.
30915         Return void, since that's now more convenient.
30916         (file_pattern_matches): Renamed from excluded_file_pattern_p.
30917         (file_name_matches): Renamed from excluded_file_name_p.
30918         (file_pattern_matches, file_name_matches):
30919         Return true if the pattern matches, not if it excludes.
30920         All callers changed.
30921         (excluded_file_name): Process the list in reverse order;
30922         since the list is now reversed this restores the pre-2009 behavior.
30923         (add_exclude): Adjust to new reversed-order list.  Use local var
30924         rather than macro, for clarity.
30925         * tests/test-exclude7.sh: Adjust to corrected behavior.
30927         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
30928         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
30929         it's not possible here.  Handle the case of \ at end of pattern
30930         without dumping core.
30931         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
30933         _Noreturn: future-proof non-GNU and non-MSVC compilers
30934         * build-aux/snippet/_Noreturn.h (_Noreturn):
30935         * m4/gnulib-common.m4 (gl_COMMON_BODY):
30936         Do not define _Noreturn if __STDC_VERSION__ indicates this is
30937         C11 or later.  This is more likely to work with random future C
30938         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
30939         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
30941         exclude: handle wildcards with FNM_EXTMATCH
30942         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
30943         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
30944         comment that "has wildcards" really means "has or may have
30945         wildcards".  Simplify by avoiding the need to call strcspn.
30947 2012-04-29  Bruno Haible  <bruno@clisp.org>
30949         gnulib-tool: Fix list of authors.
30950         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
30952 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
30954         bootstrap: support Automake-NG in $buildreq
30955         * bootstrap (check_versions): Handle automake and aclocal from
30956         Automake-NG specially.  They can be specified as respectively
30957         the "automake-ng" and "aclocal-ng" requirements.
30959 2012-04-25  Eric Blake  <eblake@redhat.com>
30961         bootstrap: only force latest Makefile.in.in for gettext module
30962         * build-aux/bootstrap (with_gettext): Only install latest
30963         Makefile.in.in for projects requesting bleeding edge gettext.
30965 2012-04-22  Bruno Haible  <bruno@clisp.org>
30967         doc: Mention reason for replacement on glibc/Linux systems.
30968         * doc/posix-functions/dprintf.texi: Mention the problem with special
30969         'long double' values.
30970         * doc/posix-functions/fprintf.texi: Likewise.
30971         * doc/posix-functions/printf.texi: Likewise.
30972         * doc/posix-functions/snprintf.texi: Likewise.
30973         * doc/posix-functions/sprintf.texi: Likewise.
30974         * doc/posix-functions/vdprintf.texi: Likewise.
30975         * doc/posix-functions/vfprintf.texi: Likewise.
30976         * doc/posix-functions/vprintf.texi: Likewise.
30977         * doc/posix-functions/vsnprintf.texi: Likewise.
30978         * doc/posix-functions/vsprintf.texi: Likewise.
30979         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
30980         platforms with F_DUPFD_CLOEXEC problems.
30981         * doc/posix-functions/glob.texi: Mention which platforms are affected
30982         by the problem with symbolic links.
30983         * doc/posix-functions/linkat.texi: Mention the problem with
30984         AT_SYMLINK_FOLLOW on Linux.
30986 2012-04-22  Bruno Haible  <bruno@clisp.org>
30988         pwrite: Don't replace on all platforms.
30989         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
30991 2012-04-22  Bruno Haible  <bruno@clisp.org>
30993         rint* tests: Avoid gcc warnings.
30994         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
30995         * tests/test-rintf.c (INFINITY, NAN): Likewise.
30996         * tests/test-rintl.c (INFINITY, NAN): Likewise.
30998 2012-04-21  Bruno Haible  <bruno@clisp.org>
31000         users.txt: Update.
31001         * users.txt: Add freedink, wdiff. Update URLs for projects that have
31002         switched from CVS to git, bzr, or svn.
31004 2012-04-21  Bruno Haible  <bruno@clisp.org>
31006         Large File Support for native Windows platforms.
31008         * m4/largefile.m4 (gl_LARGEFILE): New macro.
31009         * modules/largefile (configure.ac): Require gl_LARGEFILE.
31011         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
31012         type.
31013         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
31014         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
31015         * doc/posix-headers/sys_types.texi: Mention the effect of the
31016         'largefile' module.
31018         * lib/fcntl.in.h: Add comments about off_t.
31019         * modules/fcntl-h (Depends-on): Add sys_types.
31021         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
31022         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
31023         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
31024         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
31025         * modules/unistd (Depends-on): Add sys_types.
31026         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
31028         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
31029         instead of lseek.
31030         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
31031         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
31032         * modules/lseek (Depends-on): Add sys_types.
31034         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
31035         msvc-nothrow.h.
31036         (SetFileSize): New function.
31037         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
31038         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
31039         if Large File Support is requested.
31040         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
31041         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
31043         * lib/stdio.in.h: Add comments about off_t.
31044         * modules/stdio (Depends-on): Add sys_types.
31046         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
31047         instead of ftello.
31048         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
31049         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
31050         (gl_PREREQ_FTELLO): New macro.
31051         * modules/ftello (Depends-on): Add sys_types.
31052         (configure.ac): Incoke gl_PREREQ_FTELLO.
31054         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
31055         instead of fseeko.
31056         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
31057         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
31058         (gl_PREREQ_FSEEKO): New macro.
31059         * modules/fseeko (Depends-on): Add sys_types.
31060         (configure.ac): Invoke gl_PREREQ_FSEEKO.
31062         * lib/sys_stat.in.h: Add comments about off_t.
31063         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
31064         64-bit integer for st_size in 'struct stat'.
31065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
31066         Define _GL_WINDOWS_64_BIT_ST_SIZE.
31067         * modules/sys_stat (Depends-on): Add sys_types.
31068         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
31070         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
31071         instead of stat or _stat.
31073         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
31074         'struct _stati64' instead of fstat and 'struct stat'.
31075         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
31076         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
31078         Reported by Ray Satiro <raysatiro@yahoo.com>.
31080 2012-04-19  Eric Blake  <eblake@redhat.com>
31082         bootstrap: accommodate older libtool
31083         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
31084         Reported by Daniel P. Berrange.
31086 2012-04-19  Jim Meyering  <meyering@redhat.com>
31088         announce-gen: avoid failure due to lack of Digest::SHA1
31089         Even with the preferred Digest::SHA available, this script
31090         would fail when the backup module, Digest::SHA1, was not installed.
31091         * build-aux/announce-gen: Quote the conditional use of "use".
31092         Reported by Reuben Thomas in:
31093         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
31095         bootstrap: don't let a user's CDPATH setting affect this script
31096         When CDPATH is set, cd will sometimes generate output.
31097         When "cd" is run in a subshell whose output matters, that
31098         surprising-to-some output can cause malfunction.
31099         Unsetting CDPATH turns off this shell "feature."
31100         * build-aux/bootstrap (CDPATH): Unset.
31101         Reported by Reuben Thomas in:
31102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
31103         and inspired by his patch here:
31104         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
31106 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
31107         and Jim Meyering  <meyering@redhat.com>
31109         maint.mk: catch "see @xref{}" and similar
31110         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
31111         prohibit "See also @xref{", "Also see @pxref{", and similar.
31113 2012-04-16  Jim Meyering  <meyering@redhat.com>
31115         bootstrap: really use gnulib's po/Makefile.in.in
31116         * build-aux/bootstrap: Correct the source file name in previous change.
31117         Reported by Akim Demaille.
31119         configmake: correct minor inconsistency in Makefile rule
31120         * modules/configmake (Makefile.am): All other rules like this one
31121         run the final "mv -f ..." in the same backslash-continued command
31122         as the one that does everything else.  This one put the mv -f ...
31123         command on a separate, non-backslash-continued line.
31124         Make it like the others.
31126         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
31127         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
31128         the one from gettext.  Reported by Akim Demaille.
31130 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
31132         Fix recursion of install-* into po directories.
31133         Bison's install-pdf bug reported by Hans Aberg at
31134         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
31135         * build-aux/po/Makefile.in.in (install-dvi, install-html)
31136         (install-info, install-pdf, install-ps): New targets.
31138 2012-04-16  Jim Meyering  <meyering@redhat.com>
31140         maint: avoid spurious "make sc_maint" failure
31141         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
31142         exempt all *.class file names, for lib/javaversion.class.
31144 2012-04-15  Bruno Haible  <bruno@clisp.org>
31146         lseek: Make configure test independent of environment.
31147         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
31148         Windows, we know that lseek() on pipes is broken; skip the runtime
31149         test.
31151 2012-04-14  Bruno Haible  <bruno@clisp.org>
31153         stat: Bypass buggy override in mingw64.
31154         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
31155         * lib/stat.c (stat) [mingw64]: Define to _stat.
31156         * doc/posix-functions/stat.texi: Mention mingw64 bug.
31158 2012-04-14  Bruno Haible  <bruno@clisp.org>
31160         pathmax: Fix compilation error on MSVC 9.
31161         * modules/pathmax (Depends-on): Add unistd.
31163 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31165         README: document pointer comparison assumption
31166         * README (Portability guidelines): Document assumption about
31167         pointer comparisons, in response to a recent bug-gnulib comment by
31168         Jeffrey Kegler.
31170 2012-04-12  Bruno Haible  <bruno@clisp.org>
31172         Tests for module 'getrusage'.
31173         * modules/getrusage-tests: New file.
31174         * tests/test-getrusage.c: New file.
31176         New module 'getrusage'.
31177         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
31178         warn-on-use.h.
31179         (getrusage): New declaration.
31180         * lib/getrusage.c: New file.
31181         * m4/getrusage.m4: New file.
31182         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
31183         is declared.
31184         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
31185         HAVE_GETRUSAGE.
31186         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
31187         snippet/c++defs, snippet/warn-on-use.
31188         (Makefile.am): Update generation of sys/resource.h. Substitute
31189         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
31190         * modules/getrusage: New file.
31191         * doc/posix-functions/getrusage.texi: Mention the new module.
31193 2012-04-12  Bruno Haible  <bruno@clisp.org>
31195         Tests for module 'sys_resource'.
31196         * modules/sys_resource-tests: New file.
31197         * tests/test-sys_resource.c: New file.
31199         New module 'sys_resource'.
31200         * lib/sys_resource.in.h: New file.
31201         * m4/sys_resource_h.m4: New file.
31202         * modules/sys_resource: New file.
31203         * doc/posix-headers/sys_resource.texi: Mention the new module.
31205 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
31207         ioctl: Fix compilation error on mingw.
31208         * lib/ioctl.c: Include <windows.h>.
31209         Also reported by Ray Satiro <raysatiro@yahoo.com>.
31211 2012-04-04  Jim Meyering  <meyering@redhat.com>
31213         regex: correct #pragma guard expression
31214         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
31215         not 4.3.  Correct its cpp guard expression.
31217 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31219         regex: remove unnecessary type punning
31220         Problem reported by Vladimir Serbinenko in
31221         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
31222         * lib/regex.h (struct re_pattern_buffer): Change the type of
31223         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
31224         Fix comment to match code.
31225         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
31226         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
31227         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31228         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
31229         (set_regs):
31230         Omit no-longer-necessary casts.
31232 2012-04-03  Bruno Haible  <bruno@clisp.org>
31234         Tests for module 'ilogbl'.
31235         * modules/ilogbl-tests: New file.
31236         * tests/test-ilogbl.c: New file.
31238         New module 'ilogbl'.
31239         * lib/math.in.h (ilogbl): New declaration.
31240         * lib/ilogbl.c: New file.
31241         * m4/ilogbl.m4: New file.
31242         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
31243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
31244         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
31245         Split sed invocation, to avoid the limit of 100 substitutions of
31246         HP-UX 'sed'.
31247         * modules/ilogbl: New file.
31248         * tests/test-math-c++.cc: Check the declaration of ilogbl.
31249         * doc/posix-functions/ilogbl.texi: Mention the new module.
31251 2012-04-03  Bruno Haible  <bruno@clisp.org>
31253         Tests for module 'ilogbf'.
31254         * modules/ilogbf-tests: New file.
31255         * tests/test-ilogbf.c: New file.
31257         New module 'ilogbf'.
31258         * lib/math.in.h (ilogbf): New declaration.
31259         * lib/ilogbf.c: New file.
31260         * m4/ilogbf.m4: New file.
31261         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
31262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
31263         REPLACE_ILOGBF.
31264         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
31265         REPLACE_ILOGBF.
31266         * modules/ilogbf: New file.
31267         * tests/test-math-c++.cc: Check the declaration of ilogbf.
31268         * doc/posix-functions/ilogbf.texi: Mention the new module.
31270 2012-04-03  Bruno Haible  <bruno@clisp.org>
31272         Tests for module 'ilogb'.
31273         * modules/ilogb-tests: New file.
31274         * tests/test-ilogb.c: New file.
31275         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
31276         tests/test-logb-ieee.h.
31278         New module 'ilogb'.
31279         * lib/math.in.h (ilogb): New declaration.
31280         * lib/ilogb.c: New file.
31281         * m4/ilogb.m4: New file.
31282         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
31283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
31284         REPLACE_ILOGB.
31285         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
31286         REPLACE_ILOGB.
31287         * modules/ilogb: New file.
31288         * tests/test-math-c++.cc: Check the declaration of ilogb.
31289         * doc/posix-functions/ilogb.texi: Mention the new module.
31291 2012-04-03  Bruno Haible  <bruno@clisp.org>
31293         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
31294         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
31295         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
31296         (main): Check their values.
31297         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
31298         problem.
31300 2012-04-03  Bruno Haible  <bruno@clisp.org>
31302         Tests for module 'logbl-ieee'.
31303         * modules/logbl-ieee-tests: New file.
31304         * tests/test-logbl-ieee.c: New file.
31306         New module 'logbl-ieee'.
31307         * modules/logbl-ieee: New file.
31309         Tests for module 'logb-ieee'.
31310         * modules/logb-ieee-tests: New file.
31311         * tests/test-logb-ieee.c: New file.
31313         New module 'logb-ieee'.
31314         * modules/logb-ieee: New file.
31316         Tests for module 'logbf-ieee'.
31317         * modules/logbf-ieee-tests: New file.
31318         * tests/test-logbf-ieee.c: New file.
31319         * tests/test-logb-ieee.h: New file.
31321         New module 'logbf-ieee'.
31322         * modules/logbf-ieee: New file.
31324 2012-04-03  Bruno Haible  <bruno@clisp.org>
31326         Tests for module 'logbl'.
31327         * modules/logbl-tests: New file.
31328         * tests/test-logbl.c: New file.
31330         New module 'logbl'.
31331         * lib/math.in.h (logbl): New declaration.
31332         * lib/logbl.c: New file.
31333         * m4/logbl.m4: New file.
31334         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
31335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
31336         REPLACE_LOGBL.
31337         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
31338         REPLACE_LOGBL.
31339         * modules/logbl: New file.
31340         * tests/test-math-c++.cc: Check the declaration of logbl.
31341         * doc/posix-functions/logbl.texi: Mention the new module.
31343 2012-04-02  Bruno Haible  <bruno@clisp.org>
31345         Tests for module 'logbf'.
31346         * modules/logbf-tests: New file.
31347         * tests/test-logbf.c: New file.
31349         New module 'logbf'.
31350         * lib/math.in.h (logbf): New declaration.
31351         * lib/logbf.c: New file.
31352         * m4/logbf.m4: New file.
31353         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
31354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
31355         REPLACE_LOGBF.
31356         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
31357         REPLACE_LOGBF.
31358         * modules/logbf: New file.
31359         * tests/test-math-c++.cc: Check the declaration of logbf.
31360         * doc/posix-functions/logbf.texi: Mention the new module.
31362 2012-04-02  Bruno Haible  <bruno@clisp.org>
31364         logb tests: More tests.
31365         * tests/test-logb.h: New file, based on tests/test-logb.c and
31366         tests/test-frexp.h.
31367         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
31368         (main): Just invoke test_function.
31369         * modules/logb-tests (Files): Add tests/test-logb.h,
31370         tests/minus-zero.h, tests/randomd.c.
31371         (Makefile.am): Add randomd.c to test_logb_SOURCES.
31373         logb: Provide replacement and workarounds.
31374         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
31375         is 1.
31376         * lib/logb.c: New file.
31377         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
31378         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
31379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
31380         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
31381         * modules/logb (Files): Add lib/logb.c.
31382         (Depends-on): Add isfinite, frexp, isnand.
31383         (configure.ac): Compile the replacement code logb.c if needed.
31384         * tests/test-math-c++.cc: Check the declaration of logb.
31385         * doc/posix-functions/logb.texi: Mention the replacement and the bug
31386         with subnormal numbers.
31388 2012-04-02  Bruno Haible  <bruno@clisp.org>
31390         log10* tests: Speed up.
31391         * tests/test-log10.h (test_function): Reduce amount of random numbers
31392         to test.
31394 2012-04-01  Bruno Haible  <bruno@clisp.org>
31396         logf-ieee: Fix test whether logf works.
31397         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
31399 2012-04-01  Bruno Haible  <bruno@clisp.org>
31401         log10l: Work around log10l-ieee test failure on IRIX 6.5.
31402         * lib/log10l.c: Include <float.h>
31403         (log10l): On IRIX, normalize the +Infinity value.
31404         * modules/log10l (Depends-on): Add 'float'.
31405         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
31406         +Infinity.
31408         log10f-ieee: Work around test failure on NetBSD 5.1.
31409         * m4/log10f-ieee.m4: New file.
31410         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
31411         test whether log10f works with a negative argument. Replace it if not.
31412         * lib/log10f.c (log10f): For negative arguments, return NaN.
31413         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
31414         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
31415         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
31417         log10f-ieee: Work around test failure on Solaris 9.
31418         * modules/log10f-ieee (Depends-on): Add log10-ieee.
31419         (configure.ac): Require gl_FUNC_LOG10F.
31421         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
31422         * m4/log10-ieee.m4: New file.
31423         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
31424         whether log10 works with a negative argument. Replace it if not.
31425         * lib/log10.c (log10): For negative arguments, return NaN.
31426         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
31427         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
31428         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
31430         Tests for module 'log10l-ieee'.
31431         * modules/log10l-ieee-tests: New file.
31432         * tests/test-log10l-ieee.c: New file.
31434         New module 'log10l-ieee'.
31435         * modules/log10l-ieee: New file.
31437         Tests for module 'log10-ieee'.
31438         * modules/log10-ieee-tests: New file.
31439         * tests/test-log10-ieee.c: New file.
31441         New module 'log10-ieee'.
31442         * modules/log10-ieee: New file.
31444         Tests for module 'log10f-ieee'.
31445         * modules/log10f-ieee-tests: New file.
31446         * tests/test-log10f-ieee.c: New file.
31447         * tests/test-log10-ieee.h: New file.
31449         New module 'log10f-ieee'.
31450         * modules/log10f-ieee: New file.
31452 2012-04-01  Bruno Haible  <bruno@clisp.org>
31454         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
31455         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
31456         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
31457         workaround.
31458         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
31459         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
31460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
31461         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
31462         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
31463         (Depends-on): Update conditions.
31464         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
31465         IRIX 6.5, OSF/1 5.1 problems.
31467 2012-04-01  Bruno Haible  <bruno@clisp.org>
31469         log10f: Work around OSF/1 5.1 bug.
31470         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
31471         * lib/log10f.c (log10f): If logf exists, use it and provide just the
31472         workaround.
31473         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
31474         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
31475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
31476         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
31477         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
31478         (Depends-on): Update conditions.
31479         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
31481 2012-04-01  Bruno Haible  <bruno@clisp.org>
31483         log10: Work around OSF/1 5.1 bug.
31484         * lib/math.in.h (log10): New declaration.
31485         * lib/log10.c: New file.
31486         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
31487         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
31488         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
31489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
31490         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
31491         * modules/log10 (Files): Add lib/log10.c.
31492         (Depends-on): Add math.
31493         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
31494         * tests/test-math-c++.cc: Check the declaration of log10.
31495         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
31497 2012-03-31  Bruno Haible  <bruno@clisp.org>
31499         log10l tests: More tests.
31500         * modules/log10l-tests (Files): Add tests/test-log10l.h,
31501         tests/minus-zero.h, tests/randoml.c.
31502         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
31503         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
31504         (main): Invoke test_function.
31506         log10f tests: More tests.
31507         * modules/log10f-tests (Files): Add tests/test-log10.h,
31508         tests/minus-zero.h, tests/randomf.c.
31509         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
31510         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
31511         (main): Invoke test_function.
31513         log10 tests: More tests.
31514         * tests/test-log10.h: New file.
31515         * modules/log10-tests (Files): Add tests/test-log10.h,
31516         tests/minus-zero.h, tests/randomd.c.
31517         (Makefile.am): Add randomd.c to test_log10_SOURCES.
31518         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
31519         (main): Invoke test_function.
31521 2012-03-31  Simon Josefsson  <simon@josefsson.org>
31523         fflush: Fix syntax error.
31524         * lib/fflush.c: Include unused-parameter.h, needed for
31525         _GL_UNUSED_PARAMETER.
31526         * modules/fflush (Depends-on): Add snippet/unused-parameter.
31528 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31530         regex: pacify GCC when compiling GRUB
31531         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
31532         a diagnostic.  Reported by Vladimir Serbinenko in
31533         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
31535 2012-03-29  Eric Blake  <eblake@redhat.com>
31537         stdio: don't assume gets any more
31538         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
31539         support.
31540         * modules/stdio (Makefile.am): Likewise.
31541         * lib/stdio-read.c (gets): Likewise.
31542         * tests/test-stdio-c++.cc: Likewise.
31543         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
31544         * lib/stdio.in.h (gets): Make warning occur in more places.
31545         * doc/posix-functions/gets.texi (gets): Update documentation.
31546         Reported by Christer Solskogen.
31548         maint.mk: fix syntax checks without exclusions
31549         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
31550         Reported by Daniel P. Berrange.
31552         strerror_r: avoid compiler warning
31553         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
31554         level.
31556         fflush: avoid compiler warning
31557         * lib/fflush.c (update_fpos_cache): Mark variables that are
31558         potentially unused.
31560 2012-03-25  Bruno Haible  <bruno@clisp.org>
31562         Tests for module 'localeconv'.
31563         * modules/localeconv-tests: New file.
31564         * tests/test-localeconv.c: New file.
31566         New module 'localeconv'.
31567         * lib/locale.in.h (localeconv): New declaration.
31568         * lib/localeconv.c: New file.
31569         * m4/localeconv.m4: New file.
31570         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
31571         REPLACE_LOCALECONV.
31572         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
31573         REPLACE_LOCALECONV.
31574         * modules/localeconv: New file.
31575         * modules/nl_langinfo (Depends-on): Add localeconv.
31576         * modules/human (Depends-on): Likewise.
31577         * doc/posix-functions/localeconv.texi: Mention the new module.
31579 2012-03-25  Bruno Haible  <bruno@clisp.org>
31581         locale: Provide a complete 'struct lconv'.
31582         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
31583         'struct lconv' does not contain int_p_cs_precedes.
31584         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
31585         * doc/posix-headers/locale.texi: Update.
31587         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
31588         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
31589         * doc/posix-headers/locale.texi: Update.
31591         locale: Provide a working 'struct lconv'.
31592         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
31593         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
31594         'struct lconv' does not even contain decimal_point.
31595         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
31596         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
31597         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
31598         * doc/posix-headers/locale.texi: Mention the problems with
31599         'struct lconv'.
31600         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
31602 2012-03-24  Bruno Haible  <bruno@clisp.org>
31604         Enable common subexpression optimization in GCC.
31605         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
31606         macros.
31607         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
31608         GCC attribute 'const'.
31609         (uc_locale_language): Declare with GCC attribute 'pure'.
31610         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
31611         with GCC attribute 'const'.
31612         * lib/unictype.in.h (uc_is_general_category_withtable,
31613         uc_combining_class, uc_combining_class_name,
31614         uc_combining_class_long_name, uc_bidi_class_name,
31615         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
31616         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
31617         uc_decimal_value, uc_digit_value, uc_numeric_value,
31618         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
31619         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
31620         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
31621         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
31622         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
31623         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
31624         Declare with GCC attribute 'const'.
31625         (uc_general_category_name, uc_general_category_long_name,
31626         uc_general_category_byname, uc_general_category,
31627         uc_is_general_category, uc_combining_class_byname,
31628         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
31629         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
31630         Declare with GCC attribute 'pure'.
31631         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
31632         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
31633         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
31634         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
31635         with GCC attribute 'pure'.
31636         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
31637         'const'.
31638         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
31639         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
31640         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
31641         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
31642         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
31643         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
31644         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
31645         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
31646         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
31647         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
31648         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
31649         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
31650         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
31651         GCC attribute 'pure'.
31652         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
31653         'const'.
31654         * lib/uniwidth.in.h (uc_width): Simplify declaration.
31655         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
31656         u32_strwidth): Declare with GCC attribute 'pure'.
31658         Enable common subexpression optimization in GCC.
31659         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
31660         (alphasort): Declare with GCC attribute 'pure'.
31661         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
31662         (atoll): Declare with GCC attribute 'pure'.
31663         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31664         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31665         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
31666         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
31667         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
31668         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
31669         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
31671 2012-03-24  Bruno Haible  <bruno@clisp.org>
31673         gnulib-tool: Avoid unintended error output from 'cmp'.
31674         * gnulib-tool (func_add_file, func_update_file, func_import): Use
31675         "cmp -s", not "cmp > /dev/null".
31677 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
31679         gnulib-tool: fix imprecise comments w.r.t. an automake bug
31681         It's not just Automake versions < 1.9b that creates an empty
31682         pkgdatadir at installation time if pkgdata_DATA is specified
31683         to empty; modern automake versions do this as well, at least
31684         until automake 1.11.4 (not yet released at the moment of writing,
31685         but soon to appear).  That behaviour was generally considered a
31686         feature rather than a bug, at least until this discussion:
31687         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
31689         See also automake bugs #10997 and #11030.
31691         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
31692         reference to relevant automake bug numbers.
31693         (func_emit_tests_Makefile_am): Likewise.
31695 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
31697         announce-gen: use Digest::SHA when possible
31698         * build-aux/announce-gen: Use Digest::SHA when possible, falling
31699         back to Digest::SHA1 if necessary.
31701 2012-03-20  Jim Meyering  <meyering@redhat.com>
31703         tests: avoid gcc warnings about argv vs. const initializers
31704         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
31705         warnings about discarding 'const' qualifier from pointer target type.
31706         * tests/test-posix_spawn2.c (main): Likewise.
31708 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
31710         README-release: simplify slightly
31711         * top/README-release: Run "git checkout master" only once.
31713 2012-03-15  Mark Wielaard  <mark@klomp.org>
31715         git-merge-changelog: add specific example on how to use with hg.
31716         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
31718 2012-03-18  Mark Wielaard  <mark@klomp.org>
31720         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
31722 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
31724         git-version-gen: don't let "prefix" envvar cause trouble
31725         * build-aux/git-version-gen (prefix): Initialize properly,
31726         so as not to use a value specified via the environment.
31727         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
31729 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
31731         regex: diagnose too-large repeat counts in EREs
31732         Previously, the code did not diagnose the too-large repeat count
31733         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
31734         as if it were 'b\{1000000000}', which is unexpected.
31735         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
31736         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
31737         is a reasonable one for this problem.  Another option would be to
31738         create a new REG_OVERFLOW error for repeat counts that are too large.
31739         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
31740         count is too large, so that the caller can distinguish the two cases.
31741         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
31742         "Too large" return code, and that repeat counts are one example of this.
31744 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
31746         doc: some glibc x32 integer width issues
31747         * doc/posix-headers/sys_types.texi (sys/types.h):
31748         * doc/posix-headers/time.texi (time.h):
31749         Mention that glibc x32 does not conform to POSIX in a couple of
31750         areas related to integer widths.
31752 2012-03-15  Bruno Haible  <bruno@clisp.org>
31754         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
31755         * lib/fma.c (VOLATILE): New macro.
31756         (FUNC): Use it to work around a GCC compiler bug.
31758 2012-03-13  Bruno Haible  <bruno@clisp.org>
31760         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
31761         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
31762         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
31763         REPLACE_HYPOTL to 1.
31764         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
31766 2012-03-13  Bruno Haible  <bruno@clisp.org>
31768         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
31769         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
31770         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
31771         REPLACE_REMAINDERL to 1.
31772         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
31773         bug.
31775 2012-03-13  Bruno Haible  <bruno@clisp.org>
31777         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
31778         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
31779         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
31780         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
31781         too big rounding errors.
31782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
31783         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
31784         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
31785         (Depends-on): Update conditions.
31786         * tests/test-sqrtl.c (my_ldexpl): New function.
31787         (main): Add test of a particular value.
31788         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
31790 2012-03-13  Pádraig Brady  <P@draigBrady.com>
31792         doc: Update timer_* platform portability notes.
31793         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
31794         that always return ENOSYS.
31795         * doc/posix-functions/timer_delete.texi: Likewise.
31796         * doc/posix-functions/timer_gettime.texi: Likewise.
31797         * doc/posix-functions/timer_settime.texi: Likewise.
31799 2012-03-13  Bruno Haible  <bruno@clisp.org>
31801         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
31802         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
31803         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
31804         REPLACE_CBRTL to 1.
31805         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
31807 2012-03-13  Bruno Haible  <bruno@clisp.org>
31809         remainderl: Avoid compilation error on AIX >= 5.2.
31810         * lib/math.in.h (remainderl): Undefine macro from the system header.
31812 2012-03-13  Bruno Haible  <bruno@clisp.org>
31814         Avoid compilation errors with MSVC option -fp:strict.
31815         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
31816         * lib/cbrtf.c: Likewise.
31817         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31819 2012-03-12  Bruno Haible  <bruno@clisp.org>
31821         uninorm: Don't crash in out-of-memory conditions.
31822         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
31823         gracefully.
31824         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
31825         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
31827 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
31829         quote: fix syntax-check
31830         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
31831         also exports quote_quoting_options.
31833 2012-03-12  Simon Josefsson  <simon@josefsson.org>
31835         Collapse list of copyright years to ranges.  See
31836         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
31837         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
31838         build-aux/csharpexec.sh.in, build-aux/gnupload,
31839         build-aux/install-reloc, build-aux/javacomp.sh.in,
31840         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
31841         build-aux/move-if-change, build-aux/reloc-ldflags,
31842         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
31844 2012-03-11  Bruno Haible  <bruno@clisp.org>
31846         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
31847         * m4/log2f-ieee.m4: New file.
31848         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
31849         whether log2f works with a minus zero argument. Replace it if not.
31850         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
31851         (Depends-on): Add log2-ieee.
31852         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
31853         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
31855         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
31856         * m4/log2-ieee.m4: New file.
31857         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
31858         whether log2 works with a minus zero argument. Replace it if not.
31859         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
31860         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
31861         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
31863         Tests for module 'log2l-ieee'.
31864         * modules/log2l-ieee-tests: New file.
31865         * tests/test-log2l-ieee.c: New file.
31867         New module 'log2l-ieee'.
31868         * modules/log2l-ieee: New file.
31870         Tests for module 'log2-ieee'.
31871         * modules/log2-ieee-tests: New file.
31872         * tests/test-log2-ieee.c: New file.
31874         New module 'log2-ieee'.
31875         * modules/log2-ieee: New file.
31877         Tests for module 'log2f-ieee'.
31878         * modules/log2f-ieee-tests: New file.
31879         * tests/test-log2f-ieee.c: New file.
31880         * tests/test-log2-ieee.h: New file.
31882         New module 'log2f-ieee'.
31883         * modules/log2f-ieee: New file.
31885 2012-03-11  Bruno Haible  <bruno@clisp.org>
31887         Tests for module 'log2l'.
31888         * modules/log2l-tests: New file.
31889         * tests/test-log2l.c: New file.
31891         New module 'log2l'.
31892         * lib/math.in.h (log2l): New declaration.
31893         * lib/log2l.c: New file.
31894         * m4/log2l.m4: New file.
31895         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
31896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
31897         REPLACE_LOG2L.
31898         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
31899         REPLACE_LOG2L.
31900         * modules/log2l: New file.
31901         * tests/test-math-c++.cc: Check the declaration of log2l.
31902         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
31903         and OSF/1 problems.
31905 2012-03-11  Bruno Haible  <bruno@clisp.org>
31907         Tests for module 'log2f'.
31908         * modules/log2f-tests: New file.
31909         * tests/test-log2f.c: New file.
31911         New module 'log2f'.
31912         * lib/math.in.h (log2f): New declaration.
31913         * lib/log2f.c: New file.
31914         * m4/log2f.m4: New file.
31915         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
31916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
31917         REPLACE_LOG2F.
31918         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
31919         REPLACE_LOG2F.
31920         * modules/log2f: New file.
31921         * tests/test-math-c++.cc: Check the declaration of log2f.
31922         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
31923         and OSF/1 and Cygwin problems.
31925 2012-03-11  Bruno Haible  <bruno@clisp.org>
31927         Tests for module 'log2'.
31928         * modules/log2-tests: New file.
31929         * tests/test-log2.c: New file.
31930         * tests/test-log2.h: New file.
31932         New module 'log2'.
31933         * lib/math.in.h (log2): New declaration.
31934         * lib/log2.c: New file.
31935         * m4/log2.m4: New file.
31936         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
31937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
31938         REPLACE_LOG2.
31939         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
31940         REPLACE_LOG2.
31941         * modules/log2: New file.
31942         * tests/test-math-c++.cc: Check the declaration of log2.
31943         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
31944         and OSF/1 and Cygwin problems.
31946 2012-03-11  Bruno Haible  <bruno@clisp.org>
31948         exp2* tests: More tests.
31949         * tests/test-exp2.h (test_function): Test all integral arguments that
31950         don't need to overflow or denormalized numbers.
31951         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
31952         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
31953         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
31955 2012-03-10  Bruno Haible  <bruno@clisp.org>
31957         log1pl-ieee: Work around test failure on AIX 7.1.
31958         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
31960         log1pl-ieee: Work around test failure on IRIX 6.5.
31961         * m4/log1pl-ieee.m4: New file.
31962         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
31963         test whether log1pl works with a minus zero argument. Replace it if
31964         not.
31965         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
31966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
31967         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
31968         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
31969         (Depends-on): Update conditions.
31970         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
31971         m4/signbit.m4.
31972         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
31973         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
31975         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
31976         * m4/log1pf-ieee.m4: New file.
31977         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
31978         test whether log1pf works with a minus zero argument. Replace it if
31979         not.
31980         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
31981         m4/signbit.m4.
31982         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
31983         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
31985         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
31986         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
31987         (configure.ac): Require gl_FUNC_LOG1PF.
31989         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
31990         * m4/log1p-ieee.m4: New file.
31991         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
31992         whether log1p works with a minus zero argument. Replace it if not.
31993         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
31994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
31995         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
31996         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
31997         (Depends-on): Update conditions.
31998         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
31999         m4/signbit.m4.
32000         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
32001         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
32003         Tests for module 'log1pl-ieee'.
32004         * modules/log1pl-ieee-tests: New file.
32005         * tests/test-log1pl-ieee.c: New file.
32007         New module 'log1pl-ieee'.
32008         * modules/log1pl-ieee: New file.
32010         Tests for module 'log1p-ieee'.
32011         * modules/log1p-ieee-tests: New file.
32012         * tests/test-log1p-ieee.c: New file.
32014         New module 'log1p-ieee'.
32015         * modules/log1p-ieee: New file.
32017         Tests for module 'log1pf-ieee'.
32018         * modules/log1pf-ieee-tests: New file.
32019         * tests/test-log1pf-ieee.c: New file.
32020         * tests/test-log1p-ieee.h: New file.
32022         New module 'log1pf-ieee'.
32023         * modules/log1pf-ieee: New file.
32025 2012-03-10  Bruno Haible  <bruno@clisp.org>
32027         Tests for module 'log1pl'.
32028         * modules/log1pl-tests: New file.
32029         * tests/test-log1pl.c: New file.
32031         New module 'log1pl'.
32032         * lib/math.in.h (log1pl): New declaration.
32033         * lib/log1pl.c: New file.
32034         * m4/log1pl.m4: New file.
32035         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
32036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
32037         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
32038         * modules/log1pl: New file.
32039         * tests/test-math-c++.cc: Check the declaration of log1pl.
32040         * doc/posix-functions/log1pl.texi: Mention the new module.
32042 2012-03-10  Bruno Haible  <bruno@clisp.org>
32044         Tests for module 'log1pf'.
32045         * modules/log1pf-tests: New file.
32046         * tests/test-log1pf.c: New file.
32048         New module 'log1pf'.
32049         * lib/math.in.h (log1pf): New declaration.
32050         * lib/log1pf.c: New file.
32051         * m4/log1pf.m4: New file.
32052         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
32053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
32054         REPLACE_LOG1PF.
32055         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
32056         REPLACE_LOG1PF.
32057         * modules/log1pf: New file.
32058         * tests/test-math-c++.cc: Check the declaration of log1pf.
32059         * doc/posix-functions/log1pf.texi: Mention the new module.
32061 2012-03-10  Bruno Haible  <bruno@clisp.org>
32063         log1p tests: More tests.
32064         * tests/test-log1p.h: New file.
32065         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
32066         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
32067         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
32068         (main): Invoke test_function.
32070         log1p: Provide replacement for Minix and MSVC.
32071         * lib/math.in.h (log1p): New declaration.
32072         * lib/log1p.c: New file.
32073         * m4/log1p.m4: New file.
32074         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
32075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
32076         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
32077         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
32078         (Depends-on): Add math, isnand, log, round.
32079         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
32080         HAVE_LOG1P is 0.
32081         * tests/test-math-c++.cc: Check the declaration of log1p.
32082         * doc/posix-functions/log1p.texi: Mention the replacement.
32084 2012-03-10  Bruno Haible  <bruno@clisp.org>
32086         math tests: Small simplification.
32087         * tests/test-exp.h (test_function): Use the same err_bound for
32088         'double' on platforms with sizeof (long double) == sizeof (double)
32089         than on platforms with sizeof (long double) > sizeof (double).
32090         * tests/test-exp2.h (test_function): Likewise.
32091         * tests/test-expm1.h (test_function): Likewise.
32092         * tests/test-log.h (test_function): Likewise.
32094 2012-03-10  Bruno Haible  <bruno@clisp.org>
32096         Fix some comments.
32097         * lib/expl.c: Fix an ambiguous comment.
32098         * lib/expm1.c: Likewise.
32099         * lib/expm1l.c: Likewise.
32100         * lib/exp2.c: Likewise.
32101         * lib/exp2l.c: Likewise.
32103 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
32105         regex: allow inclusion of <regex.h> before <limits.h>
32106         Without this patch, portable programs had to include <limits.h> before
32107         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
32108         I ran into this problem with a test version of GNU grep on Solaris 8.
32109         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
32110         This is done conditionally so that this change can be merged
32111         back to glibc.
32112         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
32113         using the included regex.
32115         fts: depend on fdopendir
32116         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
32117         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
32118         problem was introduced when fdopendir was split out.
32120 2012-03-10  Bruno Haible  <bruno@clisp.org>
32122         Remove unused variables.
32123         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
32124         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
32126 2012-03-10  Bruno Haible  <bruno@clisp.org>
32128         isnanf-nolibm: Fix last commit.
32129         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
32131         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
32132         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
32134 2012-03-10  Bruno Haible  <bruno@clisp.org>
32136         logf-ieee: Work around test failure on NetBSD 5.1.
32137         * m4/logf-ieee.m4: New file.
32138         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
32139         whether logf works with a negative argument. Replace it if not.
32140         * lib/logf.c (logf): For negative arguments, return NaN.
32141         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
32142         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
32143         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
32145         logf-ieee: Work around test failure on Solaris 9.
32146         * modules/logf-ieee (Depends-on): Add log-ieee.
32147         (configure.ac): Require gl_FUNC_LOGF.
32149         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
32150         * m4/log-ieee.m4: New file.
32151         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
32152         log works with a negative argument. Replace it if not.
32153         * lib/log.c (log): For negative arguments, return NaN.
32154         * modules/log-ieee (Files): Add m4/log-ieee.m4.
32155         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
32156         * doc/posix-functions/log.texi: Mention the log-ieee module.
32158         Tests for module 'logl-ieee'.
32159         * modules/logl-ieee-tests: New file.
32160         * tests/test-logl-ieee.c: New file.
32162         New module 'logl-ieee'.
32163         * modules/logl-ieee: New file.
32165         Tests for module 'log-ieee'.
32166         * modules/log-ieee-tests: New file.
32167         * tests/test-log-ieee.c: New file.
32169         New module 'log-ieee'.
32170         * modules/log-ieee: New file.
32172         Tests for module 'logf-ieee'.
32173         * modules/logf-ieee-tests: New file.
32174         * tests/test-logf-ieee.c: New file.
32175         * tests/test-log-ieee.h: New file.
32177         New module 'logf-ieee'.
32178         * modules/logf-ieee: New file.
32180 2012-03-10  Bruno Haible  <bruno@clisp.org>
32182         log: Fix bug introduced on 2012-03-09.
32183         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
32185 2012-03-10  Pádraig Brady  <P@draigBrady.com>
32187         timer-time: link explicitly with pthreads on glibc
32188         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
32189         to support static linking, when newer glibc is
32190         detected, as that contains pthread emulation of
32191         POSIX timer functions where required.
32192         * modules/timer-time: Depend on threadlib to
32193         pull in the appropriate library to link.
32195 2012-03-10  Bruno Haible  <bruno@clisp.org>
32197         log* tests: More tests.
32198         * tests/test-log.h: New file.
32199         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
32200         (main): Invoke test_function.
32201         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
32202         (main): Invoke test_function.
32203         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
32204         (main): Invoke test_function.
32205         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32206         tests/randomd.c.
32207         (Makefile.am): Add randomd.c to test_log_SOURCES.
32208         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32209         tests/randomf.c.
32210         (Makefile.am): Add randomf.c to test_logf_SOURCES.
32211         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32212         tests/randoml.c.
32213         (Depends-on): Add 'float'.
32214         (Makefile.am): Add randoml.c to test_logl_SOURCES.
32216 2012-03-09  Bruno Haible  <bruno@clisp.org>
32218         logl: Work around OSF/1 5.1 bug.
32219         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
32220         * lib/logl.c (logl): If logl exists, use it and provide just the
32221         workaround.
32222         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
32223         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
32224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
32225         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
32226         * modules/logl (configure.ac): Consider REPLACE_LOGL.
32227         (Depends-on): Update conditions.
32228         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
32230 2012-03-09  Bruno Haible  <bruno@clisp.org>
32232         logf: Work around OSF/1 5.1 bug.
32233         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
32234         * lib/logf.c (logf): If logf exists, use it and provide just the
32235         workaround.
32236         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
32237         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
32238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
32239         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
32240         * modules/logf (configure.ac): Consider REPLACE_LOGF.
32241         (Depends-on): Update conditions.
32242         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
32244 2012-03-09  Bruno Haible  <bruno@clisp.org>
32246         log: Work around OSF/1 5.1 bug.
32247         * lib/math.in.h (log): New declaration.
32248         * lib/log.c: New file.
32249         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
32250         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
32251         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
32252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
32253         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
32254         * modules/log (Files): Add lib/log.c.
32255         (Depends-on): Add math.
32256         (configure.ac): If REPLACE_LOG is 1, compile an override.
32257         * tests/test-math-c++.cc: Check the declaration of log.
32258         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
32260 2012-03-09  Jim Meyering  <meyering@redhat.com>
32262         readtokens.c: adjust wording in a comment
32263         * lib/readtokens.c: Insert omitted "that" in a comment.
32265 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32267         modechange: add notations +40, 00440, etc.
32268         * lib/modechange.c (mode_compile): Support new notations
32269         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
32271 2012-03-08  Bruno Haible  <bruno@clisp.org>
32273         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
32274         * m4/exp2l-ieee.m4: New file.
32275         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
32276         test whether exp2l works with a NaN argument and with a negative
32277         infinity argument. Replace it if not.
32278         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
32279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
32280         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
32281         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
32282         (Depends-on): Update conditions.
32283         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
32284         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
32285         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
32287         Tests for module 'exp2l-ieee'.
32288         * modules/exp2l-ieee-tests: New file.
32289         * tests/test-exp2l-ieee.c: New file.
32291         New module 'exp2l-ieee'.
32292         * modules/exp2l-ieee: New file.
32294         Tests for module 'exp2-ieee'.
32295         * modules/exp2-ieee-tests: New file.
32296         * tests/test-exp2-ieee.c: New file.
32298         New module 'exp2-ieee'.
32299         * modules/exp2-ieee: New file.
32301         Tests for module 'exp2f-ieee'.
32302         * modules/exp2f-ieee-tests: New file.
32303         * tests/test-exp2f-ieee.c: New file.
32304         * tests/test-exp2-ieee.h: New file.
32306         New module 'exp2f-ieee'.
32307         * modules/exp2f-ieee: New file.
32309 2012-03-08  Bruno Haible  <bruno@clisp.org>
32311         Tests for module 'exp2l'.
32312         * modules/exp2l-tests: New file.
32313         * tests/test-exp2l.c: New file.
32315         New module 'exp2l'.
32316         * lib/math.in.h (exp2l): New declaration.
32317         * lib/exp2l.c: New file.
32318         * lib/expl-table.c: New file, extracted from lib/expl.c.
32319         * lib/expl.c (gl_expl_table): New declaration.
32320         (expl): Remove expl_table. Update reference.
32321         * m4/exp2l.m4: New file.
32322         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
32323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
32324         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
32325         * modules/exp2l: New file.
32326         * modules/expl (Files): Add lib/expl-table.c.
32327         (configure.ac): Compile also expl-table.c.
32328         * tests/test-math-c++.cc: Check the declaration of exp2l.
32329         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
32330         problem.
32332 2012-03-08  Bruno Haible  <bruno@clisp.org>
32334         Tests for module 'exp2f'.
32335         * modules/exp2f-tests: New file.
32336         * tests/test-exp2f.c: New file.
32338         New module 'exp2f'.
32339         * lib/math.in.h (exp2f): New declaration.
32340         * lib/exp2f.c: New file.
32341         * m4/exp2f.m4: New file.
32342         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
32343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
32344         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
32345         * modules/exp2f: New file.
32346         * tests/test-math-c++.cc: Check the declaration of exp2f.
32347         * doc/posix-functions/exp2f.texi: Mention the new module and the
32348         IRIX problem.
32350 2012-03-08  Bruno Haible  <bruno@clisp.org>
32352         Tests for module 'exp2'.
32353         * modules/exp2-tests: New file.
32354         * tests/test-exp2.c: New file.
32355         * tests/test-exp2.h: New file.
32357         New module 'exp2'.
32358         * lib/math.in.h (exp2): New declaration.
32359         * lib/exp2.c: New file.
32360         * m4/exp2.m4: New file.
32361         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
32362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
32363         REPLACE_EXP2.
32364         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
32365         REPLACE_EXP2.
32366         * modules/exp2: New file.
32367         * tests/test-math-c++.cc: Check the declaration of exp2.
32368         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
32369         and OpenBSD problems.
32371 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32373         savedir: fix comment typo
32374         * lib/savedir.c (savedirstream): Fix typo in comment.
32376 2012-03-08  Bruno Haible  <bruno@clisp.org>
32378         test-readtokens.c: use const; remove unwarranted cast
32379         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
32381 2012-03-08  Bruno Haible  <bruno@clisp.org>
32383         fmal: Avoid compilation error on AIX.
32384         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
32385         AIX 5.2..7.1.
32387 2012-03-08  Bruno Haible  <bruno@clisp.org>
32389         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
32390         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
32391         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
32392         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
32393         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
32394         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
32395         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
32397 2012-03-08  Bruno Haible  <bruno@clisp.org>
32399         remainderf: Override buggy system function on IRIX 6.5.
32400         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
32401         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
32402         when it exists.
32403         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
32405 2012-03-08  Jim Meyering  <meyering@redhat.com>
32407         test-readtokens.c: avoid const-related compilation warnings
32408         * tests/test-readtokens.c: Avoid const-related compilation warnings.
32410 2012-03-07  Jim Meyering  <meyering@redhat.com>
32411             Bruno Haible  <bruno@clisp.org>
32413         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
32414         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
32415         tests/randomd.c.
32416         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
32417         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
32418         tests/randoml.c.
32419         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
32421 2012-03-07  Bruno Haible  <bruno@clisp.org>
32423         expm1l: Avoid compilation error on AIX.
32424         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
32425         AIX 5.2..7.1.
32427 2012-03-07  Bruno Haible  <bruno@clisp.org>
32429         expm1l: Don't override undeclared system function on IRIX 6.5.
32430         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
32431         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
32432         it exists. Set HAVE_DECL_EXPM1L.
32433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
32434         HAVE_EXPM1L.
32435         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
32436         HAVE_EXPM1L.
32437         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
32439 2012-03-07  Bruno Haible  <bruno@clisp.org>
32441         remainderl: Don't override undeclared system function on IRIX 6.5.
32442         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
32443         HAVE_REMAINDERL.
32444         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
32445         declared when it exists. Set HAVE_DECL_REMAINDERL.
32446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
32447         not HAVE_REMAINDERL.
32448         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
32449         HAVE_REMAINDERL.
32450         * doc/posix-functions/remainderl.texi: Mention missing declaration
32451         problem.
32453 2012-03-07  Bruno Haible  <bruno@clisp.org>
32455         rintf: Don't override undeclared system function on IRIX 6.5.
32456         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
32457         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
32458         exists. Set HAVE_DECL_RINTF.
32459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
32460         HAVE_RINTF.
32461         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
32462         HAVE_RINTF.
32463         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
32465 2012-03-07  Bruno Haible  <bruno@clisp.org>
32467         roundl: Avoid compilation error on AIX.
32468         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
32469         AIX 5.2..7.1.
32471 2012-03-07  Bruno Haible  <bruno@clisp.org>
32473         roundl: Don't override undeclared system function on IRIX 6.5.
32474         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
32475         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
32476         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
32477         * modules/roundl (configure.ac): For replacement code, test
32478         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
32479         (Depends-on): Update conditions.
32480         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
32482 2012-03-07  Bruno Haible  <bruno@clisp.org>
32484         roundf: Don't override undeclared system function on IRIX 6.5.
32485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
32486         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
32487         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
32488         * modules/roundf (configure.ac): For replacement code, test
32489         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
32490         (Depends-on): Update conditions.
32491         * modules/roundf-ieee (Depends-on): Update conditions.
32492         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
32494 2012-03-07  Bruno Haible  <bruno@clisp.org>
32496         round: Don't override undeclared system function on IRIX 6.5.
32497         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
32498         argument.
32499         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
32500         also when it is not declared. Set HAVE_ROUND. For replacement code,
32501         test HAVE_ROUND, not HAVE_DECL_ROUND.
32502         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
32503         not HAVE_DECL_ROUND.
32504         (Depends-on): Update conditions.
32505         * modules/round-ieee (Depends-on): Update conditions.
32506         * doc/posix-functions/round.texi: Mention the IRIX problem.
32508 2012-03-07  Bruno Haible  <bruno@clisp.org>
32510         copysignf: Don't override undeclared system function on IRIX 6.5.
32511         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
32512         HAVE_COPYSIGNF.
32513         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
32514         declared when it exists. Set HAVE_DECL_COPYSIGNF.
32515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
32516         not HAVE_COPYSIGNF.
32517         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
32518         HAVE_COPYSIGNF.
32519         * doc/posix-functions/copysignf.texi: Mention missing declaration
32520         problem.
32522 2012-03-07  Jim Meyering  <meyering@redhat.com>
32524         readtokens: add tests
32525         * modules/readtokens-tests: New file.
32526         * tests/test-readtokens.c: New file.
32528 2012-03-07  Jim Meyering  <meyering@redhat.com>
32530         quotearg: the module must now include quote.h
32531         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
32532         So must the module.
32533         * modules/quotearg (Files): Add quote.h.
32535 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32537         readtokens: avoid core dumps with unusual calling patterns
32538         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
32539         * lib/readtokens.c: Include limits.h.
32540         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
32541         (readtoken): Don't cache the delimiters; the cache code was buggy
32542         if !delim && saved_delim, or if the new n_delim differs from the old.
32543         Also, it wasn't thread-safe.
32545 2012-03-07  Bruno Haible  <bruno@clisp.org>
32547         quote: Adhere to common module description layout.
32548         * modules/quote (Makefile.am): Add back empty section.
32550 2012-03-06  Akim Demaille  <demaille@gostai.com>
32552         quote: fuse into quotearg
32553         This patch is made for the benefit of Bison.
32554         quote does not leave the choice of the quoting style to the user.
32555         quoting_style provides poor customizability, yet quoting_options,
32556         which is very rich, is hidden inside quotearg.c.  So in order to
32557         allow quote customization, move its implementation to quotearg.c.
32558         * lib/quote.c: Remove.
32559         * modules/quote: Adjust.
32560         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
32561         warning: provide all the members of literal structs.
32562         (quote_quoting_options): New.
32563         (quote, quote_n): Import implementation from quote.c.
32564         * lib/quote.h: Import the comments from quote.c.
32565         (quote_quoting_options): New.
32567 2012-03-06  Bruno Haible  <bruno@clisp.org>
32569         Tests for module 'expm1l-ieee'.
32570         * modules/expm1l-ieee-tests: New file.
32571         * tests/test-expm1l-ieee.c: New file.
32573         New module 'expm1l-ieee'.
32574         * modules/expm1l-ieee: New file.
32576         Tests for module 'expm1f-ieee'.
32577         * modules/expm1f-ieee-tests: New file.
32578         * tests/test-expm1f-ieee.c: New file.
32580         New module 'expm1f-ieee'.
32581         * modules/expm1f-ieee: New file.
32583         Tests for module 'expm1-ieee'.
32584         * modules/expm1-ieee-tests: New file.
32585         * tests/test-expm1-ieee.c: New file.
32586         * tests/test-expm1-ieee.h: New file.
32588         New module 'expm1-ieee'.
32589         * modules/expm1-ieee: New file.
32590         * m4/expm1-ieee.m4: New file.
32591         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
32592         whether expm1 works with a minus zero argument. Replace it if not.
32593         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
32594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
32595         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
32596         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
32597         (Depends-on): Update conditions.
32598         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
32599         AIX problem.
32601 2012-03-06  Bruno Haible  <bruno@clisp.org>
32603         Work around expm1f bug on IRIX 6.5.
32604         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
32605         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
32606         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
32607         not work.
32608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
32609         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
32610         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
32611         (Depends-on): Update conditions.
32612         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
32614 2012-03-06  Bruno Haible  <bruno@clisp.org>
32616         Tests for module 'expm1l'.
32617         * modules/expm1l-tests: New file.
32618         * tests/test-expm1l.c: New file.
32620         New module 'expm1l'.
32621         * lib/math.in.h (expm1l): New declaration.
32622         * lib/expm1l.c: New file.
32623         * m4/expm1l.m4: New file.
32624         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
32625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
32626         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
32627         * modules/expm1l: New file.
32628         * tests/test-math-c++.cc: Check the declaration of expm1l.
32629         * doc/posix-functions/expm1l.texi: Mention the new module.
32631 2012-03-06  Bruno Haible  <bruno@clisp.org>
32633         Tests for module 'expm1f'.
32634         * modules/expm1f-tests: New file.
32635         * tests/test-expm1f.c: New file.
32637         New module 'expm1f'.
32638         * lib/math.in.h (expm1f): New declaration.
32639         * lib/expm1f.c: New file.
32640         * m4/expm1f.m4: New file.
32641         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
32642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
32643         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
32644         * modules/expm1f: New file.
32645         * tests/test-math-c++.cc: Check the declaration of expm1f.
32646         * doc/posix-functions/expm1f.texi: Mention the new module.
32648 2012-03-06  Bruno Haible  <bruno@clisp.org>
32650         Tests for module 'expm1'.
32651         * modules/expm1-tests: New file.
32652         * tests/test-expm1.c: New file.
32653         * tests/test-expm1.h: New file.
32655         New module 'expm1'.
32656         * lib/math.in.h (expm1): New declaration.
32657         * lib/expm1.c: New file.
32658         * m4/expm1.m4: New file.
32659         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
32660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
32661         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
32662         * modules/expm1: New file.
32663         * tests/test-math-c++.cc: Check the declaration of expm1.
32664         * doc/posix-functions/expm1.texi: Mention the new module.
32666 2012-03-06  Bruno Haible  <bruno@clisp.org>
32668         math: Ensure declarations of math functions.
32669         * modules/acosf (Depends-on): Add 'extensions'.
32670         * modules/asinf (Depends-on): Likewise.
32671         * modules/atan2f (Depends-on): Likewise.
32672         * modules/atanf (Depends-on): Likewise.
32673         * modules/cbrt (Depends-on): Likewise.
32674         * modules/cbrtf (Depends-on): Likewise.
32675         * modules/cbrtl (Depends-on): Likewise.
32676         * modules/copysignf (Depends-on): Likewise.
32677         * modules/copysignl (Depends-on): Likewise.
32678         * modules/cosf (Depends-on): Likewise.
32679         * modules/coshf (Depends-on): Likewise.
32680         * modules/expf (Depends-on): Likewise.
32681         * modules/fabsf (Depends-on): Likewise.
32682         * modules/fabsl (Depends-on): Likewise.
32683         * modules/fmaf (Depends-on): Likewise.
32684         * modules/fmal (Depends-on): Likewise.
32685         * modules/fmodf (Depends-on): Likewise.
32686         * modules/fmodl (Depends-on): Likewise.
32687         * modules/frexpf (Depends-on): Likewise.
32688         * modules/frexpl (Depends-on): Likewise.
32689         * modules/hypot (Depends-on): Likewise.
32690         * modules/hypotf (Depends-on): Likewise.
32691         * modules/hypotl (Depends-on): Likewise.
32692         * modules/ldexpf (Depends-on): Likewise.
32693         * modules/ldexpl (Depends-on): Likewise.
32694         * modules/log10f (Depends-on): Likewise.
32695         * modules/log10l (Depends-on): Likewise.
32696         * modules/log1p (Depends-on): Likewise.
32697         * modules/logb (Depends-on): Likewise.
32698         * modules/logf (Depends-on): Likewise.
32699         * modules/modff (Depends-on): Likewise.
32700         * modules/modfl (Depends-on): Likewise.
32701         * modules/powf (Depends-on): Likewise.
32702         * modules/remainderf (Depends-on): Likewise.
32703         * modules/remainderl (Depends-on): Likewise.
32704         * modules/rintf (Depends-on): Likewise.
32705         * modules/rintl (Depends-on): Likewise.
32706         * modules/sinf (Depends-on): Likewise.
32707         * modules/sinhf (Depends-on): Likewise.
32708         * modules/sqrtf (Depends-on): Likewise.
32709         * modules/tanf (Depends-on): Likewise.
32710         * modules/tanhf (Depends-on): Likewise.
32711         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
32712         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
32713         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
32714         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
32715         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
32716         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
32717         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
32718         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
32719         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
32720         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
32721         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
32722         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
32723         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
32724         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
32725         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
32726         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
32727         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
32728         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
32729         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
32730         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
32731         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
32732         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
32733         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
32734         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
32735         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32736         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
32737         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
32738         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32739         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
32740         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
32741         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
32742         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
32743         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
32744         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
32745         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
32746         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
32747         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
32748         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
32749         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
32750         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
32751         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
32753 2012-03-06  Bruno Haible  <bruno@clisp.org>
32755         math: Update module names in warnings.
32756         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32757         tanl): Use specific module name in warn-on-use warning.
32759 2012-03-06  Bruno Haible  <bruno@clisp.org>
32761         expl: Simplify computation.
32762         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
32764 2012-03-05  Bruno Haible  <bruno@clisp.org>
32766         exp* tests: More tests.
32767         * tests/test-exp.h: New file.
32768         * tests/test-exp.c: Include <float.h> and test-exp.h.
32769         (main): Invoke test_function.
32770         * tests/test-expf.c: Include <float.h> and test-exp.h.
32771         (main): Invoke test_function.
32772         * tests/test-expl.c: Include <float.h> and test-exp.h.
32773         (main): Invoke test_function.
32774         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
32775         (Makefile.am): Add randomd.c to test_exp_SOURCES.
32776         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
32777         (Makefile.am): Add randomf.c to test_expf_SOURCES.
32778         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
32779         (Depends-on): Add 'float'.
32780         (Makefile.am): Add randoml.c to test_expl_SOURCES.
32782         expl: Fix precision of computed result.
32783         * lib/expl.c: Completely rewritten.
32784         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
32785         (Maintainer): Add me.
32786         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
32788 2012-03-05  Bruno Haible  <bruno@clisp.org>
32790         cbrt* tests: More tests.
32791         * tests/test-cbrt.h: New file.
32792         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
32793         (main): Invoke test_function.
32794         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
32795         (main): Invoke test_function.
32796         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
32797         (main): Invoke test_function.
32798         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
32799         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
32800         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
32801         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
32802         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
32803         (Depends-on): Add 'float'.
32804         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
32806 2012-03-05  Bruno Haible  <bruno@clisp.org>
32808         hypot* tests: More tests.
32809         * tests/test-hypot.h: New file, partially extracted from
32810         tests/test-hypotl.c.
32811         * tests/test-hypot.c: Include test-hypot.h.
32812         (main): Invoke test_function.
32813         * tests/test-hypotf.c: Include test-hypot.h.
32814         (main): Invoke test_function.
32815         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
32816         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
32817         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
32818         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
32819         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
32820         tests/randomf.c.
32821         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
32822         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
32823         tests/randoml.c.
32824         (Depends-on): Add 'fpucw', 'float'.
32825         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
32827 2012-03-05  Bruno Haible  <bruno@clisp.org>
32829         fpucw: Doc about FreeBSD.
32830         * lib/fpucw.h: Mention FreeBSD in comments.
32832 2012-03-04  Bruno Haible  <bruno@clisp.org>
32834         sqrt* tests: More tests.
32835         * tests/test-sqrt.h: New file.
32836         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
32837         (main): Invoke test_function.
32838         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
32839         (main): Invoke test_function.
32840         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
32841         (main): Invoke test_function.
32842         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
32843         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
32844         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
32845         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
32846         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
32847         (Depends-on): Add 'float'.
32848         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
32850 2012-03-04  Bruno Haible  <bruno@clisp.org>
32852         remainder* tests: More tests.
32853         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
32854         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
32855         (main): Invoke test_function.
32856         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
32857         (main): Invoke test_function.
32858         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
32859         (main): Invoke test_function.
32860         * modules/remainder-tests (Files): Add tests/test-remainder.h,
32861         tests/randomd.c.
32862         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
32863         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
32864         tests/randomf.c.
32865         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
32866         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
32867         tests/randoml.c.
32868         (Depends-on): Add 'float'.
32869         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
32871 2012-03-04  Bruno Haible  <bruno@clisp.org>
32873         remainder, remainderf, remainderl: Fix computation for large quotients.
32874         * lib/remainder.c: Completely rewritten.
32875         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
32876         USE_FLOAT.
32877         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
32878         USE_LONG_DOUBLE.
32879         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
32880         isnand, isinf. Remove round, fma.
32881         * modules/remainderf (Files): Add lib/remainder.c.
32882         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
32883         Remove roundf, fmaf.
32884         * modules/remainderl (Files): Add lib/remainder.c.
32885         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
32886         isinf. Remove roundl, fmal.
32887         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
32888         REMAINDER_LIBM.
32889         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
32890         REMAINDERF_LIBM.
32891         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
32892         REMAINDERL_LIBM.
32894 2012-03-04  Bruno Haible  <bruno@clisp.org>
32896         fmod* tests: More tests.
32897         * tests/test-fmod.h (my_ldexp): New function.
32898         (test_function): Reduce amount of random numbers to test. Add tests
32899         of very large quotients x / y.
32900         * tests/test-fmod.c (MAX_EXP): New macro.
32901         * tests/test-fmodf.c (MAX_EXP): Likewise.
32902         * tests/test-fmodl.c (MAX_EXP): Likewise.
32904 2012-03-04  Bruno Haible  <bruno@clisp.org>
32906         fmod, fmodl: Fix computation for large quotients x / y.
32907         * lib/fmod.c: Completely rewritten.
32908         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
32909         USE_LONG_DOUBLE.
32910         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
32911         isnand. Remove fma.
32912         * modules/fmodl (Files): Add lib/fmod.c.
32913         (Depends-on): Add float, isfinite, signbit, fabsl,
32914         frexpl, ldexpl, isnanl. Remove fma.
32915         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
32916         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
32918 2012-03-03  Bruno Haible  <bruno@clisp.org>
32920         fmod* tests: More tests.
32921         * tests/test-fmod.h: New file.
32922         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
32923         (main): Invoke test_function.
32924         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
32925         (main): Invoke test_function.
32926         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
32927         (main): Invoke test_function.
32928         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
32929         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
32930         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
32931         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
32932         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
32933         (Depends-on): Add 'float'.
32934         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
32936 2012-03-03  Bruno Haible  <bruno@clisp.org>
32938         rint* tests: More tests.
32939         * tests/test-rint.h: New file, partially extracted from
32940         tests/test-rintl.c.
32941         * tests/test-rint.c: Include test-rint.h.
32942         (main): Invoke test_function.
32943         * tests/test-rintf.c: Include test-rint.h.
32944         (main): Invoke test_function.
32945         * tests/test-rintl.c: Include test-rint.h.
32946         (main): Invoke test_function.
32947         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
32948         (Makefile.am): Add randomd.c to test_rint_SOURCES.
32949         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
32950         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
32951         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
32952         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
32954 2012-03-03  Bruno Haible  <bruno@clisp.org>
32956         modf* tests: More tests.
32957         * tests/test-modf.h: New file.
32958         * tests/test-modf.c: Include <float.h> and test-modf.h.
32959         (main): Invoke test_function.
32960         * tests/test-modff.c: Include <float.h> and test-modf.h.
32961         (main): Invoke test_function.
32962         * tests/test-modfl.c: Include <float.h> and test-modf.h.
32963         (main): Invoke test_function.
32964         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
32965         (Makefile.am): Add randomd.c to test_modf_SOURCES.
32966         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
32967         (Makefile.am): Add randomf.c to test_modff_SOURCES.
32968         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
32969         (Depends-on): Add 'float'.
32970         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
32972 2012-03-03  Bruno Haible  <bruno@clisp.org>
32974         fabs* tests: More tests.
32975         * tests/test-fabs.h: New file, partially extracted from
32976         tests/test-fabsl.c.
32977         * tests/test-fabs.c (RANDOM): New macro.
32978         * tests/test-fabsf.c (RANDOM): New macro.
32979         * tests/test-fabsl.c (RANDOM): New macro.
32980         * modules/fabs-tests (Files): Add tests/randomd.c.
32981         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
32982         * modules/fabsf-tests (Files): Add tests/randomf.c.
32983         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
32984         * modules/fabsl-tests (Files): Add tests/randoml.c.
32985         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
32987 2012-03-03  Bruno Haible  <bruno@clisp.org>
32989         ldexp* tests: More tests.
32990         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
32991         * tests/test-ldexp.c (RANDOM): New macro.
32992         * tests/test-ldexpf.c (RANDOM): New macro.
32993         * tests/test-ldexpl.c (RANDOM): New macro.
32994         * modules/ldexp-tests (Files): Add tests/randomd.c.
32995         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
32996         * modules/ldexpf-tests (Files): Add tests/randomf.c.
32997         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
32998         * modules/ldexpl-tests (Files): Add tests/randoml.c.
32999         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
33001 2012-03-03  Bruno Haible  <bruno@clisp.org>
33003         frexp* tests: More tests.
33004         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
33005         * tests/test-frexp.c (RANDOM): New macro.
33006         * tests/test-frexpf.c (RANDOM): New macro.
33007         * tests/test-frexpl.c (RANDOM): New macro.
33008         * modules/frexp-tests (Files): Add tests/randomd.c.
33009         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
33010         * modules/frexpf-tests (Files): Add tests/randomf.c.
33011         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
33012         * modules/frexpl-tests (Files): Add tests/randoml.c.
33013         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
33015 2012-03-03  Bruno Haible  <bruno@clisp.org>
33017         Support for pseudo-random numbers in tests.
33018         * tests/randomf.c: New file.
33019         * tests/randomd.c: New file.
33020         * tests/randoml.c: New file.
33021         * tests/macros.h (randomf, randomd, randoml): New declarations.
33023 2012-03-03  Bruno Haible  <bruno@clisp.org>
33025         frexp* tests: Refactor.
33026         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
33027         * tests/test-frexp.c: Include and use it.
33028         * tests/test-frexpf.c: Likewise.
33029         * tests/test-frexpl.c: Likewise.
33030         * modules/frexp-tests (Files): Add tests/test-frexp.h.
33031         * modules/frexpf-tests (Files): Likewise.
33032         * modules/frexpl-tests (Files): Likewise.
33034 2012-03-02  Jim Meyering  <meyering@redhat.com>
33036         maint: don't specify XZ_OPT=-9ev in dist-related rule
33037         Using xz's -9 option is warranted only if you have a very large
33038         tarball (see xz's documentation for the sizes vs. presets), and
33039         requires 64MiB of memory at decompression time.
33040         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
33041         Automake's default of just "-e" is fine.  Override on a
33042         per-package basis by setting XZ_OPT e.g., in cfg.mk.
33044 2012-03-01  Eric Blake  <eblake@redhat.com>
33046         maint.mk: allow announcement for non-gnulib project
33047         * maint.mk (announcement): Skip gnulib version if not used.
33049 2012-03-01  Jim Meyering  <meyering@redhat.com>
33051         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
33052         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
33053         envvar settings cannot interfere.  Otherwise, setting envvars like
33054         prohibit=foo require=bar, etc. would cause spurious test failures.
33056 2012-03-01  Eric Blake  <eblake@redhat.com>
33058         maint.mk: add per-line exclusions to prohibitions
33059         * maint.mk (_sc_search_regexp): Add $exclude parameter.
33060         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33061         (sc_const_long_option): Use it.
33063 2012-03-01  Bruno Haible  <bruno@clisp.org>
33065         Tests for module 'expl-ieee'.
33066         * modules/expl-ieee-tests: New file.
33067         * tests/test-expl-ieee.c: New file.
33069         New module 'expl-ieee'.
33070         * modules/expl-ieee: New file.
33072         Tests for module 'exp-ieee'.
33073         * modules/exp-ieee-tests: New file.
33074         * tests/test-exp-ieee.c: New file.
33076         New module 'exp-ieee'.
33077         * modules/exp-ieee: New file.
33079         Tests for module 'expf-ieee'.
33080         * modules/expf-ieee-tests: New file.
33081         * tests/test-expf-ieee.c: New file.
33082         * tests/test-exp-ieee.h: New file.
33084         New module 'expf-ieee'.
33085         * modules/expf-ieee: New file.
33087 2012-02-29  Bruno Haible  <bruno@clisp.org>
33089         cbrtl-ieee: Work around test failure on IRIX 6.5.
33090         * m4/cbrtl-ieee.m4: New file.
33091         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
33092         test whether cbrtl works with a minus zero argument. Replace it if not.
33093         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
33094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
33095         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
33096         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
33097         (Depends-on): Update conditions.
33098         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
33099         m4/signbit.m4.
33100         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
33101         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
33102         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
33104         Tests for module 'cbrtl-ieee'.
33105         * modules/cbrtl-ieee-tests: New file.
33106         * tests/test-cbrtl-ieee.c: New file.
33108         New module 'cbrtl-ieee'.
33109         * modules/cbrtl-ieee: New file.
33111         Tests for module 'cbrt-ieee'.
33112         * modules/cbrt-ieee-tests: New file.
33113         * tests/test-cbrt-ieee.c: New file.
33115         New module 'cbrt-ieee'.
33116         * modules/cbrt-ieee: New file.
33118         Tests for module 'cbrtf-ieee'.
33119         * modules/cbrtf-ieee-tests: New file.
33120         * tests/test-cbrtf-ieee.c: New file.
33121         * tests/test-cbrt-ieee.h: New file.
33123         New module 'cbrtf-ieee'.
33124         * modules/cbrtf-ieee: New file.
33126 2012-02-29  Bruno Haible  <bruno@clisp.org>
33128         cbrtf: Work around bug in IRIX 6.5 system function.
33129         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
33130         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
33131         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
33132         work.
33133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
33134         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
33135         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
33136         (Depends-on): Update conditions.
33137         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
33139 2012-02-29  Bruno Haible  <bruno@clisp.org>
33141         Tests for module 'cbrtl'.
33142         * modules/cbrtl-tests: New file.
33143         * tests/test-cbrtl.c: New file.
33145         New module 'cbrtl'.
33146         * lib/math.in.h (cbrtl): New declaration.
33147         * lib/cbrtl.c: New file.
33148         * m4/cbrtl.m4: New file.
33149         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
33150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
33151         HAVE_DECL_CBRTL.
33152         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
33153         HAVE_DECL_CBRTL.
33154         * modules/cbrtl: New file.
33155         * tests/test-math-c++.cc: Check the declaration of cbrtl.
33156         * doc/posix-functions/cbrtl.texi: Mention the new module.
33158 2012-02-29  Bruno Haible  <bruno@clisp.org>
33160         Tests for module 'cbrtf'.
33161         * modules/cbrtf-tests: New file.
33162         * tests/test-cbrtf.c: New file.
33164         New module 'cbrtf'.
33165         * lib/math.in.h (cbrtf): New declaration.
33166         * lib/cbrtf.c: New file.
33167         * m4/cbrtf.m4: New file.
33168         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
33169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
33170         HAVE_DECL_CBRTF.
33171         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
33172         HAVE_DECL_CBRTF.
33173         * modules/cbrtf: New file.
33174         * tests/test-math-c++.cc: Check the declaration of cbrtf.
33175         * doc/posix-functions/cbrtf.texi: Mention the new module.
33177 2012-02-29  Bruno Haible  <bruno@clisp.org>
33179         cbrt: Provide replacement on MSVC and Minix.
33180         * lib/math.in.h (cbrt): New declaration.
33181         * lib/cbrt.c: New file.
33182         * m4/cbrt.m4: New file.
33183         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
33184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
33185         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
33186         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
33187         (Depends-on): Add dependencies.
33188         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
33189         * tests/test-math-c++.cc: Check the declaration of cbrt.
33190         * doc/posix-functions/cbrt.texi: Mention that the module provides a
33191         replacement.
33193 2012-02-29  Bruno Haible  <bruno@clisp.org>
33195         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
33196         * m4/hypotl-ieee.m4: New file.
33197         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
33198         test whether hypotl works with mixed NaN and Infinity arguments.
33199         Replace it if not.
33200         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
33201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
33202         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
33203         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
33204         (Depends-on): Update conditions.
33205         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
33206         (Depends-on): Add hypot-ieee.
33207         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
33208         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
33210         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
33211         * m4/hypotf-ieee.m4: New file.
33212         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
33213         test whether hypotf works with mixed NaN and Infinity arguments.
33214         Replace it if not.
33215         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
33216         (Depends-on): Add hypot-ieee.
33217         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
33218         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
33220         hypot-ieee: Work around test failure on OSF/1 and native Windows.
33221         * lib/math.in.h (hypot): New declaration.
33222         * lib/hypot.c: New file.
33223         * m4/hypot-ieee.m4: New file.
33224         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
33225         whether hypot works with mixed NaN and Infinity arguments. Replace it
33226         if not.
33227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
33228         REPLACE_HYPOT.
33229         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
33230         * modules/hypot (Files): Add lib/hypot.c.
33231         (Depends-on): Add dependencies.
33232         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
33233         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
33234         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
33235         * tests/test-math-c++.cc: Check the declaration of hypot.
33236         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
33238         Tests for module 'hypotl-ieee'.
33239         * modules/hypotl-ieee-tests: New file.
33240         * tests/test-hypotl-ieee.c: New file.
33242         New module 'hypotl-ieee'.
33243         * modules/hypotl-ieee: New file.
33245         Tests for module 'hypot-ieee'.
33246         * modules/hypot-ieee-tests: New file.
33247         * tests/test-hypot-ieee.c: New file.
33249         New module 'hypot-ieee'.
33250         * modules/hypot-ieee: New file.
33252         Tests for module 'hypotf-ieee'.
33253         * modules/hypotf-ieee-tests: New file.
33254         * tests/test-hypotf-ieee.c: New file.
33255         * tests/test-hypot-ieee.h: New file.
33257         New module 'hypotf-ieee'.
33258         * modules/hypotf-ieee: New file.
33260 2012-02-29  Bruno Haible  <bruno@clisp.org>
33262         Remove unused variables.
33263         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
33264         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
33265         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
33266         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
33268 2012-02-29  Eric Blake  <eblake@redhat.com>
33270         termios: fix pid_t always, not just for tcgetsid
33271         * doc/posix-headers/termios.texi (termios.h): Mention problem.
33272         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
33273         just when building tcgetsid.
33275 2012-02-29  Bruno Haible  <bruno@clisp.org>
33277         Tests for module 'hypotl'.
33278         * modules/hypotl-tests: New file.
33279         * tests/test-hypotl.c: New file.
33281         New module 'hypotl'.
33282         * lib/math.in.h (hypotl): New declaration.
33283         * lib/hypotl.c: New file.
33284         * m4/hypotl.m4: New file.
33285         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
33287         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
33288         * modules/hypotl: New file.
33289         * tests/test-math-c++.cc: Check the hypotl declaration.
33290         * doc/posix-functions/hypotl.texi: Mention the new module.
33292 2012-02-29  Eric Blake  <eblake@redhat.com>
33294         tcgetsid: fix cygwin header bug
33295         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
33297         docs: update cygwin progress
33298         * doc/posix-functions/llround.texi (llround): Added in cygwin
33299         1.7.8.
33300         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
33301         * doc/glibc-functions/program_invocation_name.texi
33302         (program_invocation_name): Likewise.
33303         * doc/glibc-functions/program_invocation_short_name.texi
33304         (program_invocation_short_name): Likewise.
33305         * doc/glibc-functions/madvise.texi (madvise): Likewise.
33306         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
33307         Likewise.
33308         * doc/posix-functions/pthread_spin_destroy.texi
33309         (pthread_spin_destroy): Added in cygwin 1.7.10.
33310         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
33311         Likewise.
33312         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
33313         Likewise.
33314         * doc/posix-functions/pthread_spin_trylock.texi
33315         (pthread_spin_trylock): Likewise.
33316         * doc/posix-functions/pthread_spin_unlock.texi
33317         (pthread_spin_unlock): Likewise.
33318         * doc/posix-functions/pthread_setschedprio.texi
33319         (pthread_setschedprio): Likewise.
33320         * doc/posix-functions/pthread_attr_getstack.texi
33321         (pthread_attr_getstack): Likewise.
33322         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
33323         (pthread_attr_getstackaddr): Likewise.
33324         * doc/glibc-functions/pthread_getattr_np.texi
33325         (pthread_getattr_np): Likewise.
33326         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
33327         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
33328         * doc/posix-functions/clock_settime.texi (clock_settime):
33329         Likewise.
33330         * doc/posix-functions/pthread_attr_getguardsize.texi
33331         (pthread_attr_getguardsize): Likewise.
33332         * doc/posix-functions/pthread_attr_setguardsize.texi
33333         (pthread_attr_setguardsize): Likewise.
33334         * doc/posix-functions/pthread_attr_setstack.texi
33335         (pthread_attr_setstack): Likewise.
33336         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
33337         (pthread_attr_setstackaddr): Likewise.
33338         * doc/posix-functions/clock_getcpuclockid.texi
33339         (clock_getcpuclockid): Likewise.
33340         * doc/posix-functions/pthread_getcpuclockid.texi
33341         (pthread_getcpuclockid): Likewise.
33342         * doc/glibc-functions/error.texi (error): Likewise.
33343         * doc/glibc-functions/error_at_line.texi (error_at_line):
33344         Likewise.
33345         * doc/glibc-functions/error_message_count.texi
33346         (error_message_count): Likewise.
33347         * doc/glibc-functions/error_one_per_line.texi
33348         (error_one_per_line): Likewise.
33349         * doc/glibc-functions/error_print_progname.texi
33350         (error_print_progname): Likewise.
33351         * doc/posix-functions/pthread_condattr_getclock.texi
33352         (pthread_condattr_getclock): Likewise.
33353         * doc/posix-functions/pthread_condattr_setclock.texi
33354         (pthread_condattr_setclock): Likewise.
33355         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
33356         Likewise.
33357         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
33358         * doc/glibc-functions/getpt.texi (getpt): Likewise.
33359         * doc/glibc-functions/get_current_dir_name.texi
33360         (get_current_dir_name): Likewise.
33361         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
33362         Likewise.
33363         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
33364         wrong return type.
33365         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
33366         1.7.11.
33368 2012-02-29  Bruno Haible  <bruno@clisp.org>
33370         Tests for module 'hypotf'.
33371         * modules/hypotf-tests: New file.
33372         * tests/test-hypotf.c: New file.
33374         New module 'hypotf'.
33375         * lib/math.in.h (hypotf): New declaration.
33376         * lib/hypotf.c: New file.
33377         * m4/hypotf.m4: New file.
33378         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
33379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
33380         REPLACE_HYPOTF.
33381         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
33382         REPLACE_HYPOTF.
33383         * modules/hypotf: New file.
33384         * tests/test-math-c++.cc: Check the hypotf declaration.
33385         * doc/posix-functions/hypotf.texi: Mention the new module.
33387         hypot: Prepare for hypotf module.
33388         * m4/hypot.m4: New file.
33389         * modules/hypot (Files): Add m4/hypot.m4.
33390         (configure.ac): Invoke gl_FUNC_HYPOT.
33392 2012-02-29  Bruno Haible  <bruno@clisp.org>
33394         hypot tests: More tests.
33395         * tests/test-hypot.c: Include <float.h>.
33396         (main): Add tests about overflow and underflow.
33398 2012-02-29  Bruno Haible  <bruno@clisp.org>
33400         math code: Add comments.
33401         * lib/acosl.c: Add comment about related glibc source files.
33402         * lib/asinl.c: Likewise.
33403         * lib/atanl.c: Likewise.
33404         * lib/expl.c: Likewise.
33405         * lib/logl.c: Likewise.
33406         * lib/sincosl.c: Likewise.
33407         * lib/sinl.c: Likewise.
33408         * lib/tanl.c: Likewise.
33409         * lib/trigl.c: Likewise.
33410         * lib/cosl.c: Likewise. Fix comments.
33412 2012-02-28  Bruno Haible  <bruno@clisp.org>
33414         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
33415         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
33416         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
33417         HUGE_VALL are defined.
33418         (numeric_equald): Renamed from numeric_equal.
33419         (numeric_equalf, numeric_equall): New functions.
33420         (main): Check also HUGE_VALF, HUGE_VALL.
33421         * modules/math-tests (Files): Add tests/macros.h.
33422         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
33423         HUGE_VALL.
33425 2012-02-28  Bruno Haible  <bruno@clisp.org>
33427         doc: Move ISO C11 feature notes into POSIX chapters.
33428         * doc/posix-functions/aligned_alloc.texi: Renamed from
33429         doc/glibc-functions/aligned_alloc.texi.
33430         * doc/posix-functions/quick_exit.texi: Renamed from
33431         doc/glibc-functions/quick_exit.texi.
33432         * doc/posix-headers/uchar.texi: Renamed from
33433         doc/glibc-headers/uchar.texi.
33434         * doc/posix-functions/c16rtomb.texi: Renamed from
33435         doc/glibc-functions/c16rtomb.texi.
33436         * doc/posix-functions/c32rtomb.texi: Renamed from
33437         doc/glibc-functions/c32rtomb.texi.
33438         * doc/posix-functions/mbrtoc16.texi: Renamed from
33439         doc/glibc-functions/mbrtoc16.texi.
33440         * doc/posix-functions/mbrtoc32.texi: Renamed from
33441         doc/glibc-functions/mbrtoc32.texi.
33442         * doc/gnulib.texi: Update.
33443         (Glibc uchar.h): Remove section.
33444         Suggested by Eric Blake.
33446 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
33448         stdnoreturn: port to MSVC better
33449         MSVC standard headers use __declspec(noreturn), so #define noreturn
33450         to empty on that platform.  Reported by Bruno Haible in
33451         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
33452         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
33453         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
33455 2012-02-28  Bruno Haible  <bruno@clisp.org>
33457         doc: Mention new glibc headers and functions.
33458         * doc/glibc-headers/uchar.texi: New file.
33459         * doc/glibc-functions/aligned_alloc.texi: New file.
33460         * doc/glibc-functions/c16rtomb.texi: New file.
33461         * doc/glibc-functions/c32rtomb.texi: New file.
33462         * doc/glibc-functions/clock_adjtime.texi: New file.
33463         * doc/glibc-functions/fanotify_init.texi: New file.
33464         * doc/glibc-functions/fanotify_mark.texi: New file.
33465         * doc/glibc-functions/inet6_opt_append.texi: New file.
33466         * doc/glibc-functions/inet6_opt_find.texi: New file.
33467         * doc/glibc-functions/inet6_opt_finish.texi: New file.
33468         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
33469         * doc/glibc-functions/inet6_opt_init.texi: New file.
33470         * doc/glibc-functions/inet6_opt_next.texi: New file.
33471         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
33472         * doc/glibc-functions/inet6_rth_add.texi: New file.
33473         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
33474         * doc/glibc-functions/inet6_rth_init.texi: New file.
33475         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
33476         * doc/glibc-functions/inet6_rth_segments.texi: New file.
33477         * doc/glibc-functions/inet6_rth_space.texi: New file.
33478         * doc/glibc-functions/login.texi: New file.
33479         * doc/glibc-functions/mbrtoc16.texi: New file.
33480         * doc/glibc-functions/mbrtoc32.texi: New file.
33481         * doc/glibc-functions/name_to_handle_at.texi: New file.
33482         * doc/glibc-functions/ntp_gettimex.texi: New file.
33483         * doc/glibc-functions/open_by_handle_at.texi: New file.
33484         * doc/glibc-functions/prlimit.texi: New file.
33485         * doc/glibc-functions/process_vm_readv.texi: New file.
33486         * doc/glibc-functions/process_vm_writev.texi: New file.
33487         * doc/glibc-functions/recvmmsg.texi: New file.
33488         * doc/glibc-functions/scandirat.texi: New file.
33489         * doc/glibc-functions/sendmmsg.texi: New file.
33490         * doc/glibc-functions/setns.texi: New file.
33491         * doc/glibc-functions/timespec_get.texi: New file.
33492         * doc/gnulib.texi: Include them.
33493         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
33494         sections.
33495         Reported by Eric Blake.
33497 2012-02-28  Bruno Haible  <bruno@clisp.org>
33499         Avoid compilation errors with MSVC option -fp:strict.
33500         * lib/floor.c: Use MSVC specific pragma fenv_access.
33501         * lib/ceil.c: Likewise.
33502         * lib/trunc.c: Likewise.
33503         * lib/round.c: Likewise.
33504         * lib/rint.c: Likewise.
33505         * lib/fma.c: Likewise.
33506         * lib/integer_length.c: Likewise.
33507         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33509         * tests/test-floor2.c: Likewise.
33510         * tests/test-floorf2.c: Likewise.
33511         * tests/test-ceil2.c: Likewise.
33512         * tests/test-ceilf2.c: Likewise.
33513         * tests/test-trunc2.c: Likewise.
33514         * tests/test-truncf2.c: Likewise.
33515         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33517 2012-02-27  Bruno Haible  <bruno@clisp.org>
33519         Tests for module 'sqrtl-ieee'.
33520         * modules/sqrtl-ieee-tests: New file.
33521         * tests/test-sqrtl-ieee.c: New file.
33523         New module 'sqrtl-ieee'.
33524         * modules/sqrtl-ieee: New file.
33526         Tests for module 'sqrt-ieee'.
33527         * modules/sqrt-ieee-tests: New file.
33528         * tests/test-sqrt-ieee.c: New file.
33530         New module 'sqrt-ieee'.
33531         * modules/sqrt-ieee: New file.
33533         Tests for module 'sqrtf-ieee'.
33534         * modules/sqrtf-ieee-tests: New file.
33535         * tests/test-sqrtf-ieee.c: New file.
33536         * tests/test-sqrt-ieee.h: New file.
33538         New module 'sqrtf-ieee'.
33539         * modules/sqrtf-ieee: New file.
33541 2012-02-27  Bruno Haible  <bruno@clisp.org>
33543         remainderl-ieee: Work around test failure on OSF/1.
33544         * m4/remainderl-ieee.m4: New file.
33545         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
33546         present, test whether remainderl works with a zero second argument.
33547         Replace it if not.
33548         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
33549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
33550         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
33551         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
33552         (Depends-on): Update conditions.
33553         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
33554         (Depends-on): Add remainder-ieee.
33555         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
33556         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
33557         module.
33559         remainderf-ieee: Work around test failure on OSF/1.
33560         * m4/remainderf-ieee.m4: New file.
33561         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
33562         present, test whether remainderf works with a zero second argument.
33563         Replace it if not.
33564         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
33565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
33566         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
33567         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
33568         (Depends-on): Update conditions.
33569         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
33570         (Depends-on): Add remainder-ieee.
33571         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
33572         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
33573         module.
33575         remainder-ieee: Work around test failure on OSF/1.
33576         * m4/remainder-ieee.m4: New file.
33577         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
33578         present, test whether remainder works with a zero second argument.
33579         Replace it if not.
33580         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
33581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
33582         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
33583         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
33584         (Depends-on): Update dependencies.
33585         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
33586         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
33587         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
33589         Tests for module 'remainderl-ieee'.
33590         * modules/remainderl-ieee-tests: New file.
33591         * tests/test-remainderl-ieee.c: New file.
33593         New module 'remainderl-ieee'.
33594         * modules/remainderl-ieee: New file.
33596         Tests for module 'remainder-ieee'.
33597         * modules/remainder-ieee-tests: New file.
33598         * tests/test-remainder-ieee.c: New file.
33600         New module 'remainder-ieee'.
33601         * modules/remainder-ieee: New file.
33603         Tests for module 'remainderf-ieee'.
33604         * modules/remainderf-ieee-tests: New file.
33605         * tests/test-remainderf-ieee.c: New file.
33606         * tests/test-remainder-ieee.h: New file.
33608         New module 'remainderf-ieee'.
33609         * modules/remainderf-ieee: New file.
33611 2012-02-27  Bruno Haible  <bruno@clisp.org>
33613         modff, modfl: Fix configure syntax error.
33614         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
33615         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
33617 2012-02-27  Bruno Haible  <bruno@clisp.org>
33619         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
33620         * m4/fmodl-ieee.m4: New file.
33621         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
33622         whether fmodl works with zero arguments. Replace it if not.
33623         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
33624         (Depends-on): Add fmod-ieee.
33625         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
33626         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
33628         fmodf-ieee: Work around test failure on OSF/1.
33629         * m4/fmodf-ieee.m4: New file.
33630         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
33631         whether fmodf works with zero arguments. Replace it if not.
33632         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
33633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
33634         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
33635         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
33636         (Depends-on): Update dependencies.
33637         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
33638         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
33639         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
33641         fmodf-ieee: Work around test failure on MSVC 9.
33642         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
33643         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
33645         fmod-ieee: Work around test failures on OSF/1, mingw.
33646         * m4/fmod-ieee.m4: New file.
33647         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
33648         whether fmod works with zero arguments. Replace it if not.
33649         * lib/math.in.h (fmod): New declaration.
33650         * lib/fmod.c: New file.
33651         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
33652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
33653         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
33654         * modules/fmod (Files): Add lib/fmod.c.
33655         (Depends-on): Add math, isinf, trunc, fma.
33656         (configure.ac): Arrange to compile lib/fmod.c if needed.
33657         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
33658         m4/signbit.m4.
33659         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
33660         * tests/test-math-c++.cc: Check the declaration of fmod.
33661         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
33663         fmodl-ieee: Fix test failures.
33664         * lib/fmodl.c (fmodl): Treat Inf specially.
33665         * modules/fmodl (Depends-on): Add isinf.
33667         Tests for module 'fmodl-ieee'.
33668         * modules/fmodl-ieee-tests: New file.
33669         * tests/test-fmodl-ieee.c: New file.
33671         New module 'fmodl-ieee'.
33672         * modules/fmodl-ieee: New file.
33674         Tests for module 'fmod-ieee'.
33675         * modules/fmod-ieee-tests: New file.
33676         * tests/test-fmod-ieee.c: New file.
33678         New module 'fmod-ieee'.
33679         * modules/fmod-ieee: New file.
33681         Tests for module 'fmodf-ieee'.
33682         * modules/fmodf-ieee-tests: New file.
33683         * tests/test-fmodf-ieee.c: New file.
33684         * tests/test-fmod-ieee.h: New file.
33686         New module 'fmodf-ieee'.
33687         * modules/fmodf-ieee: New file.
33689 2012-02-27  Bruno Haible  <bruno@clisp.org>
33691         Tests for module 'rintl-ieee'.
33692         * modules/rintl-ieee-tests: New file.
33693         * tests/test-rintl-ieee.c: New file.
33695         New module 'rintl-ieee'.
33696         * modules/rintl-ieee: New file.
33698         Tests for module 'rint-ieee'.
33699         * modules/rint-ieee-tests: New file.
33700         * tests/test-rint-ieee.c: New file.
33702         New module 'rint-ieee'.
33703         * modules/rint-ieee: New file.
33705         Tests for module 'rintf-ieee'.
33706         * modules/rintf-ieee-tests: New file.
33707         * tests/test-rintf-ieee.c: New file.
33708         * tests/test-rint-ieee.h: New file.
33710         New module 'rintf-ieee'.
33711         * modules/rintf-ieee: New file.
33713 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33715         regex: re_search etc. should return -2 when memory exhausted
33716         This bug was uncovered when testing 'grep'.  Without the fix,
33717         re_search and friends return -1 when memory is exhausted, but -1
33718         means no match, and this causes grep to falsely report no-match
33719         instead of memory-exhaustion.  See
33720         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
33721         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
33722         trouble; this can occur if re_search_internal ran out of memory.
33724 2012-02-26  Bruno Haible  <bruno@clisp.org>
33726         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
33727         * m4/modfl-ieee.m4: New file.
33728         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
33729         whether modfl works with Inf. Replace it if not.
33730         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
33731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
33732         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
33733         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
33734         (Depends-on): Update dependencies.
33735         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
33736         m4/signbit.m4.
33737         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
33738         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
33740         modfl-ieee: Fix dependencies.
33741         * modules/modfl-ieee (Depends-on): Add modf-ieee.
33743         modfl-ieee: Fix test failures.
33744         * lib/modfl.c (modfl): Treat NaN and Inf specially.
33745         * modules/modfl (Depends-on): Add isfinite, isinf.
33747         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
33748         * m4/modff-ieee.m4: New file.
33749         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
33750         whether modff works with NaN and Inf. Replace it if not.
33751         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
33752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
33753         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
33754         * modules/modff (configure.ac): Consider REPLACE_MODFF.
33755         (Depends-on): Update dependencies.
33756         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
33757         m4/signbit.m4.
33758         (Depends-on): Add modf-ieee.
33759         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
33760         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
33762         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
33763         * m4/modf-ieee.m4: New file.
33764         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
33765         whether modf works with NaN and Inf. Replace it if not.
33766         * lib/math.in.h (modf): New declaration.
33767         * lib/modf.c: New file.
33768         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
33769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
33770         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
33771         * modules/modf (Files): Add lib/modf.c.
33772         (Depends-on): Add math, isfinite, trunc, isinf.
33773         (configure.ac): Addrange to compile lib/modf.c if needed.
33774         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
33775         m4/signbit.m4.
33776         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
33777         * tests/test-math-c++.cc: Check the declaration of modf.
33778         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
33780         Tests for module 'modfl-ieee'.
33781         * modules/modfl-ieee-tests: New file.
33782         * tests/test-modfl-ieee.c: New file.
33784         New module 'modfl-ieee'.
33785         * modules/modfl-ieee: New file.
33787         Tests for module 'modf-ieee'.
33788         * modules/modf-ieee-tests: New file.
33789         * tests/test-modf-ieee.c: New file.
33791         New module 'modf-ieee'.
33792         * modules/modf-ieee: New file.
33794         Tests for module 'modff-ieee'.
33795         * modules/modff-ieee-tests: New file.
33796         * tests/test-modff-ieee.c: New file.
33797         * tests/test-modf-ieee.h: New file.
33799         New module 'modff-ieee'.
33800         * modules/modff-ieee: New file.
33802 2012-02-26  Bruno Haible  <bruno@clisp.org>
33804         Tests for module 'fabsl-ieee'.
33805         * modules/fabsl-ieee-tests: New file.
33806         * tests/test-fabsl-ieee.c: New file.
33808         New module 'fabsl-ieee'.
33809         * modules/fabsl-ieee: New file.
33811         Tests for module 'fabs-ieee'.
33812         * modules/fabs-ieee-tests: New file.
33813         * tests/test-fabs-ieee.c: New file.
33815         New module 'fabs-ieee'.
33816         * modules/fabs-ieee: New file.
33818         Tests for module 'fabsf-ieee'.
33819         * modules/fabsf-ieee-tests: New file.
33820         * tests/test-fabsf-ieee.c: New file.
33821         * tests/test-fabs-ieee.h: New file.
33823         New module 'fabsf-ieee'.
33824         * modules/fabsf-ieee: New file.
33826 2012-02-26  Bruno Haible  <bruno@clisp.org>
33828         Tests for module 'fmal-ieee'.
33829         * modules/fmal-ieee-tests: New file.
33830         * tests/test-fmal-ieee.c: New file.
33832         New module 'fmal-ieee'.
33833         * modules/fmal-ieee: New file.
33835         Tests for module 'fma-ieee'.
33836         * modules/fma-ieee-tests: New file.
33837         * tests/test-fma-ieee.c: New file.
33839         New module 'fma-ieee'.
33840         * modules/fma-ieee: New file.
33842         Tests for module 'fmaf-ieee'.
33843         * modules/fmaf-ieee-tests: New file.
33844         * tests/test-fmaf-ieee.c: New file.
33845         * tests/test-fma-ieee.h: New file.
33847         New module 'fmaf-ieee'.
33848         * modules/fmaf-ieee: New file.
33850 2012-02-26  Bruno Haible  <bruno@clisp.org>
33852         Tests for module 'ldexpl-ieee'.
33853         * modules/ldexpl-ieee-tests: New file.
33854         * tests/test-ldexpl-ieee.c: New file.
33856         New module 'ldexpl-ieee'.
33857         * modules/ldexpl-ieee: New file.
33859         Tests for module 'ldexp-ieee'.
33860         * modules/ldexp-ieee-tests: New file.
33861         * tests/test-ldexp-ieee.c: New file.
33863         New module 'ldexp-ieee'.
33864         * modules/ldexp-ieee: New file.
33866         Tests for module 'ldexpf-ieee'.
33867         * modules/ldexpf-ieee-tests: New file.
33868         * tests/test-ldexpf-ieee.c: New file.
33869         * tests/test-ldexp-ieee.h: New file.
33871         New module 'ldexpf-ieee'.
33872         * modules/ldexpf-ieee: New file.
33874 2012-02-26  Bruno Haible  <bruno@clisp.org>
33876         Refactor frexp*-ieee tests.
33877         * tests/test-frexp-ieee.h: New file.
33878         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
33879         (main): Just call test_function.
33880         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
33881         (main): Just call test_function.
33882         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
33883         (main): Just call test_function.
33884         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
33885         * modules/frexp-ieee-tests (Files): Likewise.
33886         * modules/frexpl-ieee-tests (Files): Likewise.
33888         Tests for module 'frexpl-ieee'.
33889         * modules/frexpl-ieee-tests: New file.
33890         * tests/test-frexpl-ieee.c: New file.
33892         New module 'frexpl-ieee'.
33893         * modules/frexpl-ieee: New file.
33895         Tests for module 'frexp-ieee'.
33896         * modules/frexp-ieee-tests: New file.
33897         * tests/test-frexp-ieee.c: New file.
33899         New module 'frexp-ieee'.
33900         * modules/frexp-ieee: New file.
33902         Tests for module 'frexpf-ieee'.
33903         * modules/frexpf-ieee-tests: New file.
33904         * tests/test-frexpf-ieee.c: New file.
33906         New module 'frexpf-ieee'.
33907         * modules/frexpf-ieee: New file.
33909 2012-02-26  Bruno Haible  <bruno@clisp.org>
33911         roundl-ieee tests: More tests.
33912         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
33913         (main): Add tests for [MX] shaded specification in POSIX.
33914         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33915         (Depends-on): Add isnanl-nolibm.
33917         round-ieee tests: More tests.
33918         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
33919         (main): Add tests for [MX] shaded specification in POSIX.
33920         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33921         (Depends-on): Add isnand-nolibm.
33923         roundf-ieee tests: More tests.
33924         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
33925         (main): Add tests for [MX] shaded specification in POSIX.
33926         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33927         (Depends-on): Add isnanf-nolibm.
33929         truncl-ieee tests: More tests.
33930         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
33931         (main): Add tests for [MX] shaded specification in POSIX.
33932         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33933         (Depends-on): Add isnanl-nolibm.
33935         trunc-ieee tests: More tests.
33936         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
33937         (main): Add tests for [MX] shaded specification in POSIX.
33938         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33939         (Depends-on): Add isnand-nolibm.
33941         truncf-ieee tests: More tests.
33942         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
33943         (main): Add tests for [MX] shaded specification in POSIX.
33944         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33945         (Depends-on): Add isnanf-nolibm.
33947         ceill-ieee tests: More tests.
33948         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
33949         (main): Add tests for [MX] shaded specification in POSIX.
33950         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33951         (Depends-on): Add isnanl-nolibm.
33953         ceil-ieee tests: More tests.
33954         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
33955         (main): Add tests for [MX] shaded specification in POSIX.
33956         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33957         (Depends-on): Add isnand-nolibm.
33959         ceilf-ieee tests: More tests.
33960         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
33961         (main): Add tests for [MX] shaded specification in POSIX.
33962         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33963         (Depends-on): Add isnanf-nolibm.
33965         floorl-ieee tests: More tests.
33966         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
33967         (main): Add tests for [MX] shaded specification in POSIX.
33968         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33969         (Depends-on): Add isnanl-nolibm.
33971         floor-ieee tests: More tests.
33972         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
33973         (main): Add tests for [MX] shaded specification in POSIX.
33974         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33975         (Depends-on): Add isnand-nolibm.
33977         floorf-ieee tests: More tests.
33978         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
33979         (main): Add tests for [MX] shaded specification in POSIX.
33980         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
33981         (Depends-on): Add isnanf-nolibm.
33983 2012-02-26  Bruno Haible  <bruno@clisp.org>
33985         fpieee: More comments.
33986         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
33988 2012-02-25  Bruno Haible  <bruno@clisp.org>
33990         Tests for module 'log10l'.
33991         * modules/log10l-tests: New file.
33992         * tests/test-log10l.c: New file.
33993         * tests/test-math-c++.cc: Check the declaration of log10l.
33995         New module 'log10l'.
33996         * lib/math.in.h (log10l): New declaration.
33997         * lib/log10l.c: New file.
33998         * m4/log10l.m4: New file.
33999         * modules/log10l: New file.
34000         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
34001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
34002         HAVE_DECL_LOG10L.
34003         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
34004         HAVE_DECL_LOG10L.
34005         * doc/posix-functions/log10l.texi: Mention the new module.
34007 2012-02-25  Bruno Haible  <bruno@clisp.org>
34009         fmodl, remainder*: Avoid wrong results due to rounding errors.
34010         * lib/fmodl.c (fmodl): Correct the result if it is not within the
34011         expected bounds.
34012         * lib/remainderf.c (remainderf): Likewise.
34013         * lib/remainder.c (remainder): Likewise.
34014         * lib/remainderl.c (remainderl): Likewise.
34016 2012-02-25  Bruno Haible  <bruno@clisp.org>
34018         Tests for module 'remainderl'.
34019         * modules/remainderl-tests: New file.
34020         * tests/test-remainderl.c: New file.
34021         * tests/test-math-c++.cc: Check the declaration of remainderl.
34023         New module 'remainderl'.
34024         * lib/math.in.h (remainderl): New declaration.
34025         * lib/remainderl.c: New file.
34026         * m4/remainderl.m4: New file.
34027         * modules/remainderl: New file.
34028         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
34029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
34030         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
34031         HAVE_REMAINDERL.
34032         * doc/posix-functions/remainderl.texi: Mention the new module.
34034 2012-02-25  Bruno Haible  <bruno@clisp.org>
34036         Tests for module 'remainderf'.
34037         * modules/remainderf-tests: New file.
34038         * tests/test-remainderf.c: New file.
34039         * tests/test-math-c++.cc: Check the declaration of remainderf.
34041         New module 'remainderf'.
34042         * lib/math.in.h (remainderf): New declaration.
34043         * lib/remainderf.c: New file.
34044         * m4/remainderf.m4: New file.
34045         * modules/remainderf: New file.
34046         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
34047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
34048         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
34049         HAVE_REMAINDERF.
34050         * doc/posix-functions/remainderf.texi: Mention the new module.
34052 2012-02-25  Bruno Haible  <bruno@clisp.org>
34054         remainder: Support for MSVC.
34055         * lib/math.in.h (remainder): New declaration.
34056         * lib/remainder.c: New file.
34057         * m4/remainder.m4: New file.
34058         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
34059         (Depends-on): Add math, round, fma.
34060         (configure.ac): Use results of gl_FUNC_REMAINDER.
34061         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
34062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
34063         HAVE_DECL_REMAINDER.
34064         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
34065         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
34066         * tests/test-math-c++.cc: Check the declaration of remainder.
34067         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
34068         problems are fixed.
34070 2012-02-25  Bruno Haible  <bruno@clisp.org>
34072         Tests for module 'fmodl'.
34073         * modules/fmodl-tests: New file.
34074         * tests/test-fmodl.c: New file.
34075         * tests/test-math-c++.cc: Check the declaration of fmodl.
34077         New module 'fmodl'.
34078         * lib/math.in.h (fmodl): New declaration.
34079         * lib/fmodl.c: New file.
34080         * m4/fmodl.m4: New file.
34081         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
34082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
34083         REPLACE_FMODL.
34084         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
34085         REPLACE_FMODL.
34086         * modules/fmodl: New file.
34087         * doc/posix-functions/fmodl.texi: Mention the new module.
34089 2012-02-25  Bruno Haible  <bruno@clisp.org>
34091         Tests for module 'modfl'.
34092         * modules/modfl-tests: New file.
34093         * tests/test-modfl.c: New file.
34094         * tests/test-math-c++.cc: Check the declaration of modfl.
34096         New module 'modfl'.
34097         * lib/math.in.h (modfl): New declaration.
34098         * lib/modfl.c: New file.
34099         * m4/modfl.m4: New file.
34100         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
34101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
34102         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
34103         * modules/modfl: New file.
34104         * doc/posix-functions/modfl.texi: Mention the new module.
34106 2012-02-25  Bruno Haible  <bruno@clisp.org>
34108         Tests for module 'fabsl'.
34109         * modules/fabsl-tests: New file.
34110         * tests/test-fabsl.c: New file.
34111         * tests/test-math-c++.cc: Check the declaration of fabsl.
34113         New module 'fabsl'.
34114         * lib/math.in.h (fabsl): New declaration.
34115         * lib/fabsl.c: New file.
34116         * m4/fabsl.m4: New file.
34117         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
34118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
34119         REPLACE_FABSL.
34120         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
34121         REPLACE_FABSL.
34122         * modules/fabsl: New file.
34123         * doc/posix-functions/fabsl.texi: Mention the new module.
34125 2012-02-25  Bruno Haible  <bruno@clisp.org>
34127         fabs tests: More tests.
34128         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
34129         (zero): New variable.
34130         (main): Add tests for signed zero.
34131         * modules/fabs-tests (Files): Add tests/minus-zero.h.
34133         fabsf tests: More tests.
34134         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
34135         (zero): New variable.
34136         (main): Add tests for signed zero.
34137         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
34139 2012-02-24  Bruno Haible  <bruno@clisp.org>
34141         atanl: Provide function definition on MSVC.
34142         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
34143         function pointer.
34144         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
34146 2012-02-24  Bruno Haible  <bruno@clisp.org>
34148         acosl: Provide function definition on MSVC.
34149         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
34150         function pointer.
34151         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
34153 2012-02-24  Bruno Haible  <bruno@clisp.org>
34155         asinl: Provide function definition on MSVC.
34156         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
34157         function pointer.
34158         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
34160 2012-02-24  Bruno Haible  <bruno@clisp.org>
34162         tanl: Provide function definition on MSVC.
34163         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
34164         function pointer.
34165         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
34167 2012-02-24  Bruno Haible  <bruno@clisp.org>
34169         cosl: Provide function definition on MSVC.
34170         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
34171         function pointer.
34172         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
34174 2012-02-24  Bruno Haible  <bruno@clisp.org>
34176         sinl: Provide function definition on MSVC.
34177         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
34178         function pointer.
34179         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
34181 2012-02-24  Bruno Haible  <bruno@clisp.org>
34183         logl: Provide function definition on MSVC.
34184         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
34185         function pointer.
34186         * lib/math.in.h (logl): Undefine if it does not exist as a function.
34188 2012-02-24  Bruno Haible  <bruno@clisp.org>
34190         expl: Provide function definition on MSVC.
34191         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
34192         function pointer.
34193         * lib/math.in.h (expl): Undefine if it does not exist as a function.
34195 2012-02-24  Bruno Haible  <bruno@clisp.org>
34197         sqrtl: Provide function definition on MSVC.
34198         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
34199         a function pointer.
34200         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
34202 2012-02-24  Bruno Haible  <bruno@clisp.org>
34204         ceill: Provide function definition on MSVC.
34205         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
34206         used as a function pointer.
34207         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
34209 2012-02-24  Bruno Haible  <bruno@clisp.org>
34211         floorl: Provide function definition on MSVC.
34212         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
34213         used as a function pointer.
34214         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
34216 2012-02-24  Bruno Haible  <bruno@clisp.org>
34218         ceilf: Provide function definition on MSVC.
34219         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
34220         used as a function pointer.
34221         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
34223 2012-02-24  Bruno Haible  <bruno@clisp.org>
34225         floorf: Provide function definition on MSVC.
34226         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
34227         used as a function pointer.
34228         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
34230 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34232         stdnoreturn: new module
34233         This implements a replacement for C11's <stdnoreturn.h>.
34234         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
34235         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
34236         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34237         * tests/test-stdnoreturn.c: New files.
34239 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
34241         regex: fix false multibyte matches in some regular expressions
34242         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
34243         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
34244         * lib/regex_internal.c (re_string_skip_chars):
34245         Fix miscomputation of remain_len that may cause incomplete
34246         multi-byte character and false match.
34248 2012-02-24  Jim Meyering  <meyering@redhat.com>
34250         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
34251         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
34252         uses with "==" *before* the call, e.g., 0 == strcmp (...)
34253         Remove now-unnecessary str''cmp obfuscation.
34254         Suggested by Akim Demaille.
34256 2012-02-24  Bruno Haible  <bruno@clisp.org>
34258         streq: Rename macro.
34259         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
34260         * NEWS: Mention the change.
34261         * lib/mbrtowc.c (mbrtowc): Update.
34262         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
34263         * lib/wcwidth.c (wcwidth): Update.
34264         Suggested by Akim Demaille and Jim Meyering.
34266 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34268         regex: fix typo in definition of MIN
34269         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
34270         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
34272 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34273             Bruno Haible  <bruno@clisp.org>
34275         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
34276         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
34277         entries into a stack-allocated buffer directly.
34278         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
34280 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34281             Bruno Haible  <bruno@clisp.org>
34283         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
34285          - There were several instances of this pattern:
34287              for (;;) {
34288                n = acl (f, GETACLCNT, 0, NULL);
34289                [ allocate an array A of size N ]
34290                if (acl (f, GETACL, n, a) == n)
34291                  break;
34292              }
34294            This loop might never terminate if some other process is constantly
34295            manipulating the file's ACL.  The loop should be rewritten to
34296            terminate.
34298          - The acl (... GETACLNT ...) call is merely an optimization; its value
34299            is merely a hint as to how big to make the array.  A better
34300            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
34301            and just guess a reasonably-big size, growing the size and trying
34302            again if it's not large enough.  This guarantees termination, and
34303            saves a system call.
34305         * lib/acl-internal.h: Include <limits.h>.
34306         (MIN, SIZE_MAX): New macros.
34307         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
34308         a stack-allocated buffer, and use malloc if it does not fit. Don't
34309         use GETACLCNT.
34310         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34312 2012-02-19  Bruno Haible  <bruno@clisp.org>
34314         acl: Fix endless loop on Solaris with vxfs.
34315         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
34316         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
34317         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
34318         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
34319         * tests/test-sameacls.c (main)[Solaris]: Likewise.
34320         Reported by Bill Jones in
34321         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
34323 2012-02-19  Bruno Haible  <bruno@clisp.org>
34325         acl: Fix copy-acl test failure on Solaris 11.0.
34326         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
34327         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
34328         that this function returns 0 in some more cases.
34330 2012-02-19  Bruno Haible  <bruno@clisp.org>
34332         acl: Update doc references.
34333         * doc/acl-resources.txt: Update links to Solaris documentation.
34335 2012-02-19  Bruno Haible  <bruno@clisp.org>
34337         Fix test failure in many locales on Solaris 11.
34338         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
34339         'tr' arguments.
34340         * tests/test-pipe-filter-ii1.c (main): Likewise.
34341         * build-aux/bootstrap (check_versions): Run 'tr' command with range
34342         expressions in the C locale.
34343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
34344         * m4/host-os.m4 (gl_HOST_OS): Likewise.
34346 2012-02-19  Bruno Haible  <bruno@clisp.org>
34348         gnulib-tool: Improve usage message.
34349         * gnulib-tool (func_usage): Move doc of --help and --version to the
34350         section "Operation modes".
34352 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
34354         README-release: make it easier to execute commands
34355         * top/README-release: break commands out on to separate lines.
34357 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
34359         GNUmakefile: simplify detection of unconfigured trees
34360         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
34361         whether the tree make is being run from is already configured or
34362         not.  Related simplifications.
34364 2012-02-13  Simon Josefsson  <simon@josefsson.org>
34366         * gnulib-tool (func_usage): Document --help and --version.
34368 2012-02-11  Jim Meyering  <meyering@redhat.com>
34370         bootstrap: don't exit 0 upon gnulib-tool failure
34371         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
34372         its exit status, not 0.
34374 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
34376         README-release: various improvements
34377         * top/README-release: Give a command to push changes for the
34378         release.  Add "distcheck" to list of other pre-release checks.
34379         Fix instance of "make stable" which should be "make TYPE".
34381 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34383         maint: replace FSF snail-mail addresses with URLs
34384         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
34385         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
34386         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
34387         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
34388         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
34389         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
34390         * lib/check-version.c, lib/check-version.h, lib/config.charset:
34391         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
34392         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
34393         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
34394         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
34395         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
34396         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
34397         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
34398         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
34399         * lib/glthread/thread.c, lib/glthread/thread.h:
34400         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
34401         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
34402         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
34403         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
34404         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
34405         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
34406         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
34407         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
34408         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
34409         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
34410         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
34411         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
34412         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
34413         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
34414         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
34415         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
34416         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
34417         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
34418         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
34419         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
34420         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
34421         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
34422         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
34423         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
34424         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
34425         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
34426         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
34427         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
34428         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
34429         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
34430         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
34431         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
34432         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
34433         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
34434         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
34435         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
34436         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
34437         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
34438         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
34439         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
34440         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
34441         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
34442         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
34443         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
34444         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
34445         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
34446         * tests/test-poll.c, tests/test-quotearg-simple.c:
34447         * tests/test-quotearg.c, tests/test-quotearg.h:
34448         * tests/test-round-ieee.c, tests/test-round1.c:
34449         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
34450         * tests/test-roundl-ieee.c, tests/test-roundl.c:
34451         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
34452         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
34453         * tests/test-strerror.c, tests/test-strerror_r.c:
34454         * tests/test-strsignal.c, tests/test-strverscmp.c:
34455         * tests/test-xmemdup0.c:
34456         Replace FSF snail mail addresses with URLs, as per GNU coding
34457         standards.  See glibc bug
34458         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
34460 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
34462         README-release: capitalize a word and split a line
34463         * top/README-release: Fix punctuation and spacing.
34465 2012-02-08  Akim Demaille  <demaille@gostai.com>
34467         fatal-signal: use C prototypes (with explicit void).
34468         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34469         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
34471 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34473         regex: spelling fix
34474         * lib/regexec.c: spelling fix
34476         regex: rely on stdint.h for SIZE_MAX
34477         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
34479 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34481         regex: merge glibc changes
34483         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
34484         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
34485         (init_word_char): Work even if bitset words are not exactly 32 or
34486         64 bits wide.  Don't assume there are no padding bits.
34487         * lib/regex.c [_LIBC]: Do not include <config.h>.
34488         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
34489         and -Wtype-limits.
34490         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
34491         needless disagreement with glibc.  All uses changed.  Define it to
34492         1 only if _GNU_SOURCE, to match glibc.
34493         (_REG_RM_NAME): Remove; no longer needed, since the names in
34494         question are now all protected by __USE_GNU.
34495         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
34496         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
34497         * lib/regex_internal.h (MIN): New macro.
34499         2012-01-03 Ulrich Drepper <drepper@gmail.com>
34500         * lib/regcomp.c (init_word_char): Optimize regex a bit.
34502         2011-12-30 Jakub Jelinek <jakub@redhat.com>
34503         * lib/regex_internal.c (re_string_fetch_byte_case):
34504         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
34505         is miscompiled, and it turns out it is because of an incorrect
34506         attribute on re_string_fetch_byte_case.  Unlike
34507         re_string_peek_byte_case, this one is really not pure, it modifies
34508         memory (increments pstr->cur_idx), and with the pure attribute GCC
34509         assumed it doesn't and it cached the presumed value of
34510         regexp->cur_idx in a variable across the
34511          for (;; ++i)
34512            {
34513              if (i >= BRACKET_NAME_BUF_SIZE)
34514                return REG_EBRACK;
34515              if (token->type == OP_OPEN_CHAR_CLASS)
34516                ch = re_string_fetch_byte_case (regexp);
34517              else
34518                ch = re_string_fetch_byte (regexp);
34519              if (re_string_eoi(regexp))
34520                return REG_EBRACK;
34521              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
34522                break;
34523              elem->opr.name[i] = ch;
34524            }
34526         2011-11-29 Andreas Schwab <schwab@redhat.com>
34527         * lib/regcomp.c (build_equiv_class):
34528         Fix access after end of search string in regex matcher.
34530         2011-11-12 Ulrich Drepper <drepper@redhat.com>
34531         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
34533         2011-10-12 Ulrich Drepper <drepper@redhat.com>
34534         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
34536         2011-10-11 Ulrich Drepper <drepper@redhat.com>
34537         * lib/regcomp.c (parse_branch, parse_sub_exp):
34538         More regex memory leak fixes and tests.
34539         (parse_sub_exp, parse_bracket_exp):
34540         Fix memory leak for some invalid regular expressions.
34542         2011-05-28 Ulrich Drepper <drepper@gmail.com>
34543         * lib/regex_internal.c, lib/regexec.c:
34544         Fix unnecessary overallocation due to incomplete character.  When
34545         incomplete characters are found at the end of a string the code
34546         ran amok and allocated lots of memory.  Stricter limits are now in
34547         place.
34549         2011-05-20 Reuben Thomas <rrt@sc3d.org>
34550         * lib/regex.h: Update documentation.
34552         2011-05-16 Aharon Robbins <arnold@skeeve.com>
34553         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
34555         2010-05-05 Andreas Schwab <schwab@redhat.com>
34556         * lib/regexec.c (find_collation_sequence_value):
34557         Fix lookup of collation sequence value during regexp matching.
34559         2010-01-22 Ulrich Drepper <drepper@redhat.com>
34560         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
34562         2008-01-16 Ulrich Drepper <drepper@redhat.com>
34563         * lib/regex.h: Cleanup namespace.
34565         2007-11-26 Ulrich Drepper <drepper@redhat.com>
34566         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
34568         2007-08-26 Ulrich Drepper <drepper@redhat.com>
34569         * lib/regex_internal.h: Prevent some declarations and definitions
34570         to be seen when used in tests.
34572         2005-05-06 Ulrich Drepper <drepper@redhat.com>
34573         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
34574         __libc_lock_* macros if not _LIBC.
34575         (struct re_dfa_t): Add lock.
34577 2012-02-07  Eric Blake  <eblake@redhat.com>
34579         maint.mk: also prohibit lower-case @var@
34580         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
34581         lower case, like @top_srcdir@.
34583 2012-02-04  Eric Blake  <eblake@redhat.com>
34585         canonicalize: avoid uninitialized memory use
34586         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
34587         random '/' left in dest.
34588         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
34590 2012-02-04  Bruno Haible  <bruno@clisp.org>
34592         isatty: Fix test failure of ptsname_r on native Windows.
34593         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
34594         and don't set errno.
34595         (isatty): Test first whether fd is valid. Set errno when returning 0.
34597 2012-02-04  Bruno Haible  <bruno@clisp.org>
34599         spawn-pipe tests: Fix a NULL program name in a diagnostic.
34600         * tests/test-spawn-pipe-main.c: Include progname.h.
34601         (main): Invoke set_program_name.
34602         * modules/spawn-pipe-tests (Depends-on): Add progname.
34604         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
34605         * tests/test-nonblocking-socket-main.c: Include progname.h.
34606         (main): Invoke set_program_name.
34607         * modules/nonblocking-socket-tests (Depends-on): Add progname.
34609         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
34610         * tests/test-nonblocking-pipe-main.c: Include progname.h.
34611         (main): Invoke set_program_name.
34612         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
34614 2012-02-04  Eric Blake  <eblake@redhat.com>
34616         canonicalize-lgpl: fix // handling
34617         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
34619         canonicalize: fix // handling
34620         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
34621         /// to //, since only // is special.
34623 2012-02-04  Bruno Haible  <bruno@clisp.org>
34625         ioctl: Fix test failure on native Windows.
34626         * lib/ioctl.c: Include msvc-nothrow.h.
34627         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
34629 2012-02-04  Bruno Haible  <bruno@clisp.org>
34631         fsync: Avoid test failure on native Windows.
34632         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
34633         read-only.
34635 2012-02-04  Bruno Haible  <bruno@clisp.org>
34637         sys_select: Avoid syntax error on OpenBSD 5.0.
34638         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
34639         currently being included, just include the system's <sys/select.h>.
34641 2012-02-04  Bruno Haible  <bruno@clisp.org>
34643         sys_select: Avoid syntax error on OpenBSD 5.0.
34644         * lib/sys_select.in.h: Include <signal.h> only after the include_next
34645         <sys/select.h>, not before.
34646         Reported by Jiri B <jirib@devio.us>.
34648 2012-02-04  Bruno Haible  <bruno@clisp.org>
34650         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
34651         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
34652         global variables.
34653         * tests/test-get-rusage-data.c (main): Likewise.
34654         Reported by Jim Meyering.
34656 2012-02-04  Bruno Haible  <bruno@clisp.org>
34658         stdioext: Fix last commit.
34659         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
34661 2012-02-03  Bruno Haible  <bruno@clisp.org>
34663         stdioext: Add tentative support for Plan9.
34664         * lib/stdio-impl.h: Include <errno.h>.
34665         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
34666         * lib/freadable.c (freadable): Likewise.
34667         * lib/fwritable.c (fwritable): Likewise.
34668         * lib/fbufmode.c (fbufmode): Likewise.
34669         * lib/freading.c (freading): Likewise.
34670         * lib/fwriting.c (fwriting): Likewise.
34671         * lib/freadptr.c (freadptr): Likewise.
34672         * lib/freadseek.c (freadptrinc): Likewise.
34673         * lib/freadahead.c (freadahead): Likewise.
34674         * lib/fpurge.c (fpurge): Likewise.
34675         * lib/fseeko.c (rpl_fseeko): Likewise.
34676         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
34677         Reported by Jens Staal <staal1978@gmail.com>.
34679 2012-02-02  Jim Meyering  <meyering@redhat.com>
34681         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
34682         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
34683         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
34684         not even to try to add the attribute.  Instead, add a pragma to suppress
34685         the suggestion/warning.
34687 2012-01-31  Karl Berry  <karl@gnu.org>
34689         setstate doc: typo.
34690         * doc/posix-functions/setstate.texi (setstate): { not (.
34692 2012-01-31  Bruno Haible  <bruno@clisp.org>
34694         popen: Make more robust on Windows.
34695         * lib/popen.c: On native Windows, use the _popen based code even if
34696         HAVE_POPEN is set.
34697         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
34698         environment variable on native Windows.
34700 2012-01-30  Bruno Haible  <bruno@clisp.org>
34702         pclose: Fix typo.
34703         * lib/stdio.in.h (pclose): Fix typo in warning message.
34705 2012-01-30  Bruno Haible  <bruno@clisp.org>
34707         doc about getlogin_r, setstate.
34708         * doc/posix-functions/getlogin_r.texi: List the incompatible
34709         declaration problem under "not fixed by gnulib".
34710         * doc/posix-functions/setstate.texi: Mention incompatible declaration
34711         problem on Solaris 11 and other platforms.
34713 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
34714             Bruno Haible  <bruno@clisp.org>
34716         poll tests: Make test more robust.
34717         * tests/test-poll.c: Include macros.h.
34718         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
34719         return value of various I/O operations.
34720         * modules/poll-tests (Files): Add tests/macros.h.
34722 2012-01-30  Bruno Haible  <bruno@clisp.org>
34724         sys_stat: Fix support for mingw64 and MSVC.
34725         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
34726         header files already do it.
34727         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
34728         stat itself.
34729         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
34731 2012-01-30  Bruno Haible  <bruno@clisp.org>
34733         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
34734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
34735         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
34737 2012-01-29  Bruno Haible  <bruno@clisp.org>
34739         quotearg: Fix test failure on MacOS X 10.5.
34740         * tests/test-quotearg-simple.c: Include localcharset.h.
34741         (main): If the locale encoding is not ASCII, bypass the tests of
34742         locale_quoting_style and clocale_quoting_style.
34743         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
34745 2012-01-29  Jim Meyering  <meyering@redhat.com>
34747         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
34748         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
34749         detect uses of canonicalize_file_name.
34751 2012-01-28  Bruno Haible  <bruno@clisp.org>
34753         test-framework-sh: Fix test failure with AIX 7.1 diff.
34754         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
34755         in column 1, like 'diff -c' does.
34756         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
34757         whether 'diff -u' is used. Instead, test whether the output contains
34758         some '@' character.
34760 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34762         strtoimax: eliminate need for stdint.h, inttypes.h checks
34763         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
34764         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
34765         the prerequisites for a recently-introduced strtoimax test.
34766         I guess this might cause strtoimax to be replaced when not
34767         strictly necessary on older hosts, but this shouldn't introduce
34768         any bugs and it should make Emacs 'configure' faster on typical
34769         modern hosts.  Problem discovered when importing the latest gnulib
34770         to an Emacs test version.
34771         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
34773 2012-01-28  Bruno Haible  <bruno@clisp.org>
34775         sys_time: Override 'struct timeval' on some native Windows platforms.
34776         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
34777         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
34778         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
34779         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
34780         needs to be overridden.
34781         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
34782         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
34783         * tests/test-sys_select.c: Check that the tv_sec member has the same
34784         size as a 'time_t'.
34785         * tests/test-sys_time.c: Likewise.
34786         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
34787         is set, set also REPLACE_GETTIMEOFDAY.
34788         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
34789         convert the resulting 'struct timeval' before returning.
34790         * lib/select.c: Include <sys/time.h>.
34791         (select, timeval): Undefine at the right place.
34792         * modules/select (Depends-on): Add sys_time.
34793         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
34794         some Windows platforms.
34795         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
34797 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
34799         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
34800         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
34801         an integer.
34802         * lib/fcntl.c (dupfd): Likewise.
34803         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
34805 2012-01-28  Bruno Haible  <bruno@clisp.org>
34807         fcntl: Avoid compilation error on native Windows.
34808         * modules/fcntl (Depends-on): Add 'close'.
34810 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
34812         select, poll, isatty: Avoid warnings on x86_64 mingw64.
34813         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
34814         pointer to an integer.
34815         * lib/poll.c (IsConsoleHandle): Likewise.
34816         * lib/isatty.c (IsConsoleHandle): Likewise.
34818 2012-01-28  Jim Meyering  <meyering@redhat.com>
34820         doc: clarify README-release
34821         * top/README-release: Clarify: you should make a point to have
34822         the latest stable versions of build tools in your PATH, and the
34823         reference to buildreq is solely for its list of tool names, not
34824         for its minimal-functional version numbers.
34825         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
34827         maint.mk: use more readable (yet functionally equivalent) quoting
34828         It is common to quote a single quote in a single quoted string like
34829         this:  '...'\''...'.  Unless you know the idiom, that looks like
34830         gibberish, so prefer to double-quote the string when possible.
34831         Then you can use a more readable, lone single quote: "...'..."
34832         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
34833         "don't" is more readable than the equivalent 'don'\''t'.
34834         (sc_cast_of_x_alloc_return_value): Likewise.
34835         (sc_cast_of_alloca_return_value): Likewise.
34836         (sc_makefile_path_separator_check): Similar: use ":" in '...',
34837         rather than '\'':'\''.
34839 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34841         stdalign: relax _Alignof and tighten _Alignas test
34842         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
34843         as it was too strict: alignof must divide offsetof, but it need
34844         not equal offsetof.  Inspired by Joseph S. Myers's comment
34845         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
34846         Conversely, tighten the _Alignas test a bit, as the resulting
34847         alignment must be exactly 8.
34849 2012-01-27  Bruno Haible  <bruno@clisp.org>
34851         stdalign: Document the last change.
34852         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
34854 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34856         stdalign: check that alignof and offsetof are consistent
34857         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
34858         Problem reported for gnulib by Richard W.M. Jones in
34859         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
34861 2012-01-27  Jim Meyering  <meyering@redhat.com>
34863         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
34864         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
34865         convert a sequence with gaps to the minimal containing range.
34866         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
34867         * tests/test-update-copyright.sh: Test for this.
34868         The FSF confirmed it is ok to do this, assuming there is at
34869         least one significant change per year in the affected range:
34870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
34872 2012-01-26  Bruno Haible  <bruno@clisp.org>
34874         pipe2: refine doc about thread-safety
34875         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
34876         multithread-safety problem.
34877         * doc/glibc-functions/accept4.texi: Likewise.
34879 2012-01-26  Bruno Haible  <bruno@clisp.org>
34881         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
34882         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
34883         In the test program, include <fcntl.h>, for O_RDONLY.
34885 2012-01-26  Eric Blake  <eblake@redhat.com>
34887         pipe2: document lack of thread-safety in replacement
34888         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
34889         issue in replacement.
34890         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34891         Based on a report by Eric Wong.
34893 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
34894             Bruno Haible  <bruno@clisp.org>
34896         malloca: Avoid warnings on x86_64 mingw64.
34897         * lib/malloca.c: Include <stdint.h>.
34898         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
34899         * modules/malloca (Depends-on): Add stdint.
34900         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
34902 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
34904         obstack: remove __STDC__ conditionals
34905         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
34906         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
34907         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
34908         m4/include_next.m4 as the only gnulib-maintained places that still
34909         refer to __STDC__.
34911 2012-01-24  Bruno Haible  <bruno@clisp.org>
34913         havelib: Modern quoting.
34914         * build-aux/config.rpath: Quote 'like this', not `like this', as per
34915         the recent change to the GNU coding standards.
34917 2012-01-24  Bruno Haible  <bruno@clisp.org>
34919         stdint: Improve support for Android.
34920         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
34921         Reported by Simon Josefsson <simon@josefsson.org>.
34923 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34925         doc: omit trailing empty lines from INSTALL etc.
34926         * doc/Makefile (INSTALL): Omit trailing empty lines.
34927         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
34928         omit trailing empty lines.  This simplifies the build procedure.
34930 2012-01-23  Jim Meyering  <meyering@redhat.com>
34932         tests: avoid spurious warnings about gl_sockets_startup
34933         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
34934         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
34935         reporting a "statement with no effect".
34936         * tests/test-accept.c (main): Mark as "(void)".
34937         * tests/test-accept4.c (main): Likewise.
34938         * tests/test-bind.c (main): Likewise.
34939         * tests/test-connect.c (main): Likewise.
34940         * tests/test-getpeername.c (main): Likewise.
34941         * tests/test-getsockname.c (main): Likewise.
34942         * tests/test-getsockopt.c (main): Likewise.
34943         * tests/test-listen.c (main): Likewise.
34944         * tests/test-recv.c (main): Likewise.
34945         * tests/test-recvfrom.c (main): Likewise.
34946         * tests/test-send.c (main): Likewise.
34947         * tests/test-sendto.c (main): Likewise.
34948         * tests/test-setsockopt.c (main): Likewise.
34949         * tests/test-shutdown.c (main): Likewise.
34951 2012-01-21  Bruno Haible  <bruno@clisp.org>
34953         locale-fr.m4: Fix for Android.
34954         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
34955         failure of the test program on Bionic libc.
34957 2012-01-21  Jim Meyering  <meyering@redhat.com>
34959         bootstrap: fail when bootstrap_post_import_hook fails
34960         Otherwise, it's far too easy to miss diagnostics emitted
34961         between gnulib-tool's output and that of running configure.
34962         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
34964 2012-01-17  Jim Meyering  <meyering@redhat.com>
34966         maint: enable sc_trailing_blank
34967         * build-aux/pmccabe.css: Remove trailing blanks.
34968         * doc/acl-cygwin.txt: Likewise.
34969         * doc/gnu-oids.texi: Likewise
34970         * cfg.mk: Enable sc_trailing_blank.
34971         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
34973 2012-01-17  Jim Meyering  <meyering@redhat.com>
34975         maint: enable sc_prohibit_openat_without_use
34976         * cfg.mk: Enable sc_prohibit_openat_without_use.
34977         Exempt lib/selinux-at.c.
34979 2012-01-17  Jim Meyering  <meyering@redhat.com>
34981         maint: enable sc_prohibit_cloexec_without_use
34982         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
34983         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
34985 2012-01-17  Jim Meyering  <meyering@redhat.com>
34987         maint: enable sc_prohibit_intprops_without_use
34988         * cfg.mk: Enable sc_prohibit_intprops_without_use
34989         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
34991 2012-01-17  Jim Meyering  <meyering@redhat.com>
34993         maint: enable sc_prohibit_hash_pjw_without_use
34994         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
34995         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
34996         to match any use of \<hash_pjw\>, i.e., not necessarily with a
34997         following " (".
34999 2012-01-17  Jim Meyering  <meyering@redhat.com>
35001         maint: enable double-word-prohibiting rule
35002         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
35003         Exempt three files.
35005 2012-01-17  Jim Meyering  <meyering@redhat.com>
35007         maint: remove empty lines at EOF, but excluding modules/*
35008         Apply syntax rules at home as well as abroad.  Most changes
35009         were induced by running this:
35010           make srcdir=. _build-aux=build-aux -f top/maint.mk \
35011             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
35012             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
35013         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
35014         Exempt modules/* and two binary files.
35015         Also exempt doc/INSTALL*, per request from Bruno Haible.
35016         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
35017         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
35018         * doc/Copyright/request-assign.future: Likewise.
35019         * doc/Copyright/request-disclaim.changes: Likewise.
35020         * doc/INSTALL: Likewise.
35021         * doc/INSTALL.ISO: Likewise.
35022         * doc/INSTALL.UTF-8: Likewise.
35023         * doc/acl-cygwin.txt: Likewise.
35024         * doc/acl-resources.txt: Likewise.
35025         * doc/fdl-1.2.texi: Likewise.
35026         * doc/fdl-1.3.texi: Likewise.
35027         * doc/fdl.texi: Likewise.
35028         * lib/argp-pin.c: Likewise.
35029         * lib/round.c: Likewise.
35030         * lib/unicase/u16-totitle.c: Likewise.
35031         * lib/unictype/block_test.c: Likewise.
35032         * lib/uninorm/canonical-decomposition.c: Likewise.
35033         * m4/README: Likewise.
35034         * m4/relocatable-lib.m4: Likewise.
35035         * tests/test-isnand-nolibm.c: Likewise.
35036         * tests/test-isnand.c: Likewise.
35037         * tests/uninorm/NormalizationTest.txt: Likewise.
35039 2012-01-17  Jim Meyering  <meyering@redhat.com>
35041         maint: add framework to run syntax-check rules against gnulib sources
35042         * cfg.mk: New file, to disable all currently-failing tests.
35043         We'll enable them one by one, as they are made to pass.
35044         * Makefile (sc_maint): New rule.
35046 2012-01-21  Bruno Haible  <bruno@clisp.org>
35048         stdint: Add support for Android.
35049         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
35050         include the system's <stdint.h>.
35051         Reported by Simon Josefsson <simon@josefsson.org>.
35053 2012-01-19  Jim Meyering  <meyering@redhat.com>
35055         bootstrap: add bootstrap_post_import_hook
35056         Bison does still need something like the gnulib_mk_hook whose
35057         invocation I had to remove along with slurp in commit 767ccd40.
35058         Technically, we could get along without it, but doing so would
35059         have required living with a warning and a mandatory post-bootstrap
35060         automake rerun.
35061         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
35062         (bootstrap_post_import_hook): New function.
35063         Invoke it after gnulib-tool --import and before autoreconf.
35065 2012-01-18  Jim Meyering  <meyering@redhat.com>
35067         gitlog-to-changelog: don't use "no_"-prefixed variable name
35068         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
35069         to enable both --cluster and --no-cluster.  Change variable name,
35070         s/\$no_cluster/$cluster/, and reverse usage to match.
35072         gitlog-to-changelog: use "||", not "or" in expressions
35073         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
35074         expressions.
35076 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
35078         gitlog-to-changelog: new option --no-cluster
35079         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
35080         clustering of adjacent commit messages.
35082 2012-01-17  Jim Meyering  <meyering@redhat.com>
35084         maint: spell file systems with two words, not one
35085         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
35086         two words, not one.
35088 2012-01-16  Jim Meyering  <meyering@redhat.com>
35090         bootstrap: add a FIXME comment to ensure we eventually remove the hack
35091         * build-aux/bootstrap (gnulib_tool_options): Add comment.
35093 2012-01-16  Eric Blake  <eblake@redhat.com>
35095         bootstrap: cater to autoconf 2.59
35096         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
35097         is not available.
35099         bootstrap: properly check for libtool
35100         * build-aux/bootstrap (libtoolize): Also run libtool when older
35101         usage is detected.
35103 2012-01-15  Bruno Haible  <bruno@clisp.org>
35105         Improve support for MSVC 9.
35106         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
35107         clashes on MSVC.
35108         * lib/fcntl.in.h: Likewise.
35109         * lib/stdlib.in.h: Likewise.
35110         * lib/sys_stat.in.h: Likewise.
35112 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
35114         gnupload: we hold the master copy of this script now
35115         For motivation and more information, see:
35116         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
35117         * build-aux/gnupload: Make it clear in the heading comments that the
35118         master copy of this file is maintained by gnulib.  Since we are at
35119         it, bump its copyright year and ...
35120         ($scriptversion): ... the date in its version.
35121         ($usage): Patches and bug reports should be sent to the gnulib list,
35122         not the automake one.
35123         * config/srclist.txt: Don't try to sync 'gnupload' from automake
35124         anymore.
35126 2012-01-15  Bruno Haible  <bruno@clisp.org>
35128         Fix module 'random'.
35129         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
35130         initstate, setstate are declared.
35132 2012-01-14  Bruno Haible  <bruno@clisp.org>
35134         Tests for module 'random'.
35135         * modules/random-tests: New file.
35136         * tests/test-random.c: New file, based on tests/test-random_r.c.
35138         New module 'random'.
35139         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
35140         declarations.
35141         * lib/random.c: New file, based on glibc/stdlib/random.c.
35142         * m4/random.m4: New file.
35143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
35144         HAVE_RANDOM.
35145         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
35146         * modules/random: New file.
35147         * config/srclist.txt: Add an entry for random.c.
35148         * doc/posix-functions/random.texi: Mention the 'random' module.
35149         * doc/posix-functions/initstate.texi: Likewise.
35150         * doc/posix-functions/setstate.texi: Likewise.
35151         * doc/posix-functions/srandom.texi: Likewise.
35153 2012-01-12  Bruno Haible  <bruno@clisp.org>
35155         random_r: Use common idioms.
35156         * lib/random_r.c: Include <stdlib.h> first.
35158         random_r: Override incompatible API on AIX, OSF/1.
35159         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
35160         Override the system function if REPLACE_RANDOM_R is 1.
35161         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
35162         and OSF/1, set REPLACE_RANDOM_R.
35163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
35164         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
35165         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
35166         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
35167         * doc/glibc-functions/random_r.texi: Likewise.
35168         * doc/glibc-functions/setstate_r.texi: Likewise.
35170         random_r: Support for MSVC 9.
35171         * lib/random_r.c: Include stdint.h, not inttypes.h.
35173 2012-01-12  Eric Blake  <eblake@redhat.com>
35175         inet_ntop: guard extra work by IF_LINT
35176         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
35177         better code generation when not checking for warnings.
35178         Suggested by Paul Eggert and Jim Meyering.
35180         strptime: fix regression on mingw
35181         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
35182         Fix regression.  Reported by Bruno Haible.
35184 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
35185             Bruno Haible  <bruno@clisp.org>
35187         copy-file: add error-code-returning variant.
35188         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
35189         (qcopy_file_preserving): New declaration.
35190         * lib/copy-file.c (qcopy_file_preserving): Renamed from
35191         copy_file_preserving. Change return type to 'int'. Don't emit an error
35192         message here.
35193         (copy_file_preserving): New function.
35194         * tests/test-copy-file.c: Include <stdlib.h>.
35195         (main): Test qcopy_file_preserving if the environment variable
35196         NO_STDERR_OUTPUT is set.
35197         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
35198         with NO_STDERR_OUTPUT
35199         * tests/test-copy-file-2.sh: Likewise.
35201 2012-01-10  Bruno Haible  <bruno@clisp.org>
35203         copy-file: Use 'quote' module consistently.
35204         * lib/copy-file.c (copy_file_preserving): Use quote().
35206         copy-file: Refactor.
35207         * lib/copy-file.c: Include quote.h.
35208         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
35209         message here.
35210         * modules/copy-file (Depends-on): Add quote.
35212         acl: Export qcopy_acl.
35213         * lib/acl.h (qcopy_acl): New declaration.
35214         * lib/copy-acl.c (qcopy_acl): Make non-static.
35216         acl: Rename a local variable.
35217         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
35219         acl: Align return values of copy_acl and qcopy_acl.
35220         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
35221         maybe < -1.
35223 2012-01-11  Eric Blake  <eblake@redhat.com>
35225         strptime: silence gcc warnings
35226         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
35227         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
35228         Reported by Daniel P. Berrange.
35230         inet_ntop: silence gcc warning
35231         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
35232         Reported by Daniel P. Berrange.
35234 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
35236         getloadavg test: skip the test on GNU/Linux without /proc mounted
35237         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
35238         file.  When /proc is not mounted, it always fails with ENOENT.
35239         * tests/test-getloadavg.c (main): Treat ENOENT return code from
35240         getloadavg(3) the same way as ENOSYS and ENOTSUP.
35242 2012-01-10  Bruno Haible  <bruno@clisp.org>
35244         regex: Avoid link error on MSVC 9.
35245         * modules/regex (Depends-on): Add wctype.
35247 2012-01-10  Bruno Haible  <bruno@clisp.org>
35249         doc: Mention --with-tests option.
35250         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
35251         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
35252         --with-tests.
35253         Reported by Reuben Thomas.
35255 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
35257         users.txt: order package names lexicographically.
35258         * users.txt: Order package names lexicographically.
35260 2012-01-10  Jim Meyering  <meyering@redhat.com>
35262         maint.mk: fix description in comment
35263         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
35265         ignore-value: remove deprecated ignore_ptr function
35266         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
35267         * NEWS: Note this.
35269 2012-01-09  Jim Meyering  <meyering@redhat.com>
35271         test-init.sh: avoid a subshell
35272         * tests/test-init.sh: Remove protective subshell.
35273         Suggested by Bernhard Voelker.  While a subshell is normally
35274         required to protect against older shells (Solaris, FreeBSD) that
35275         warn about a missing program before performing redirection, the
35276         shell-selection tests performed by init.sh probably exclude any
35277         offending shell.
35279 2012-01-08  Bruno Haible  <bruno@clisp.org>
35281         setlocale tests: Avoid test failure on Solaris 11.0.
35282         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
35283         variable.
35285 2012-01-08  Bruno Haible  <bruno@clisp.org>
35287         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
35288         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35289         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35290         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
35291         macro.
35292         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
35293         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35294         * lib/spawn_faction_addopen.c: Add workaround implementation if
35295         HAVE_WORKING_POSIX_SPAWN.
35296         * modules/spawn (Makefile): Substitute
35297         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
35298         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
35299         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
35300         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
35301         (Depends-on): Update conditions.
35302         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35303         the Solaris 11 bug.
35305 2012-01-08  Bruno Haible  <bruno@clisp.org>
35307         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
35308         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35309         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35310         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
35311         macro.
35312         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
35313         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35314         * lib/spawn_faction_adddup2.c: Add workaround implementation if
35315         HAVE_WORKING_POSIX_SPAWN.
35316         * modules/spawn (Makefile): Substitute
35317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
35318         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
35319         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
35320         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
35321         (Depends-on): Update conditions.
35322         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35323         the Solaris 11 bug.
35325 2012-01-08  Bruno Haible  <bruno@clisp.org>
35327         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
35328         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
35329         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
35331         HAVE_WORKING_POSIX_SPAWN.
35332         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
35333         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
35334         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35335         * lib/spawn_faction_addclose.c: Add workaround implementation if
35336         HAVE_WORKING_POSIX_SPAWN.
35337         * modules/spawn (Makefile): Substitute
35338         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
35339         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
35340         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
35341         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
35342         (Depends-on): Update conditions.
35343         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35344         the Solaris 11 bug.
35346 2012-01-08  Bruno Haible  <bruno@clisp.org>
35348         doc: Update for Solaris 11.0.
35349         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
35350         * m4/printf.m4: Update comments.
35352 2012-01-08  Bruno Haible  <bruno@clisp.org>
35354         mktime: Avoid compilation error on Solaris 11.
35355         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
35357 2012-01-08  Bruno Haible  <bruno@clisp.org>
35359         doc: Small fix.
35360         * doc/posix-headers/nl_types.texi: Correct platforms list.
35362 2012-01-08  Simon Josefsson  <simon@josefsson.org>
35364         Add lgpl-3.0 module.
35365         * MODULES.html.sh (Support for building documentation): Add
35366         lgpl-3.0.
35367         * modules/lgpl-3.0: New file.
35369 2012-01-08  Jim Meyering  <meyering@redhat.com>
35371         select.c: indent with spaces, not TABs
35372         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
35374 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35376         quotearg: do not use grave accent for left quote
35377         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
35378         locale_quoting_style.
35379         (quotearg_buffer_restyled): Fix example.
35380         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
35382 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35384         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
35385         Most programs do not have translation catalogs for English and much
35386         less separate catalogs for British and American English.  Drop the
35387         suggestion to translators about these two, and provide it
35388         automatically for Unicode locales.  Like most programs, even those
35389         using American English, we use single quotation marks.  This conflicts
35390         with the American typographic convention, but works better when you
35391         cite the entire error message within double quotes.  It also tries not
35392         to clash with established practice and with what non-gnulib programs
35393         will usually do.
35394         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
35395         using an UTF-8 or GB-18030 locale.  The list of other locales with
35396         quotes was provided by Bruno Haible.
35397         (quotearg_buffer_restyled): Adjust instructions to translators.
35398         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
35399         text, since this would be wrong when using Unicode.
35400         * modules/quotearg: Depend on c-strcaseeq.
35402 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
35404         quotearg: fix Wikipedia link
35405         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
35407 2012-01-07  Simon Josefsson  <simon@josefsson.org>
35409         Fix for mingw with MSVC9.
35410         * m4/ld-version-script.m4: Check that compiler rejects version
35411         scripts with syntax errors.  Reported by Bruno Haible
35412         <bruno@clisp.org>.
35414 2012-01-06  Bruno Haible  <bruno@clisp.org>
35416         Talk about "native Windows API", not "Woe32".
35417         * lib/accept4.c: Update comments to mention native Windows.
35418         * lib/execute.c: Likewise.
35419         * lib/fatal-signal.c: Likewise.
35420         * lib/localcharset.c: Likewise.
35421         * lib/nanosleep.c: Likewise.
35422         * lib/nl_langinfo.c: Likewise.
35423         * lib/pclose.c: Likewise.
35424         * lib/pipe-filter-gi.c: Likewise.
35425         * lib/pipe-filter-ii.c: Likewise.
35426         * lib/pipe.c: Likewise.
35427         * lib/pipe2.c: Likewise.
35428         * lib/popen.c: Likewise.
35429         * lib/progreloc.c: Likewise.
35430         * lib/relocatable.c: Likewise.
35431         * lib/sigaction.c: Likewise.
35432         * lib/sigprocmask.c: Likewise.
35433         * lib/spawn-pipe.h: Likewise.
35434         * lib/spawn-pipe.c: Likewise.
35435         * lib/spawni.c: Likewise.
35436         * lib/stat-time.h: Likewise.
35437         * lib/w32spawn.h: Likewise.
35438         * tests/test-isatty.c: Likewise.
35439         * lib/config.charset: More comments.
35440         * doc/gnulib-intro.texi: Mention native Windows.
35441         * doc/posix-functions/_Exit_C99.texi: Likewise.
35442         * doc/posix-headers/fcntl.texi: Likewise.
35444 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
35446         argp: Avoid crash if translator uses % characters in a translation.
35447         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
35448         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
35450 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35452         doc: C11 and C++11 are now official
35453         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
35454         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
35455         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
35456         * modules/stdalign:
35457         Replace references to draft C1X to C11, and to draft C++0X to C++11.
35459 2012-01-06  Bruno Haible  <bruno@clisp.org>
35461         uc-is-grapheme-break tests: Tweak.
35462         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
35463         message.
35465 2012-01-06  Bruno Haible  <bruno@clisp.org>
35467         test-init.sh: correct the test for diff -u
35468         * tests/test-init.sh: Also redirect stdout to /dev/null.
35470 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35472         Use ', not `, for quoting output.
35473         * build-aux/announce-gen (usage, sizes, print_news_deltas)
35474         (print_changelog_deltas, get_tool_versions, main program):
35475         * build-aux/git-version-gen:
35476         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
35477         * build-aux/move-if-change (help):
35478         * build-aux/useless-if-before-free (usage, main program):
35479         * check-module (parse_module_file, usage)
35480         (find_included_lib_files, check_module):
35481         * lib/argmatch.c (main) [TEST]:
35482         * lib/argp-help.c (_help):
35483         * lib/getopt1.c (main) [TEST]:
35484         * lib/git-merge-changelog.c (usage):
35485         * lib/xstrtol-error.c (xstrtol_error):
35486         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
35487         * m4/argz.m4 (gl_FUNC_ARGZ):
35488         * m4/bison.m4 (gl_BISON):
35489         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
35490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35491         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
35492         * m4/fpending.m4 (gl_PREREQ_FPENDING):
35493         * m4/gc-random.m4 (gl_GC_RANDOM):
35494         * m4/intl.m4 (gt_CHECK_DECL):
35495         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
35496         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
35497         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
35498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
35499         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
35500         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
35501         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
35502         * tests/test-dirname.c (main):
35503         * tests/test-getpass.c (main):
35504         * tests/test-iconvme.c (main):
35505         * tests/test-parse-datetime.c (LOG):
35506         * tests/test-xstrtoimax.sh:
35507         * tests/test-xstrtol.sh:
35508         * tests/test-xstrtoll.sh:
35509         * tests/test-xstrtoumax.sh:
35510         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
35511         * top/GNUmakefile (abort-due-to-no-makefile):
35512         Quote 'like this', not `like this', as per the recent change to
35513         the GNU coding standards.
35515 2012-01-05  Bruno Haible  <bruno@clisp.org>
35517         strtoimax: Don't force a replacement on systems where intmax_t is int.
35518         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
35519         'intmax_t' is not larger than 'int'.
35520         Reported by Pádraig Brady <P@draigBrady.com>.
35522 2012-01-05  Bruno Haible  <bruno@clisp.org>
35524         doc: Mention NetBSD bugs.
35525         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
35526         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
35528 2012-01-05  Bruno Haible  <bruno@clisp.org>
35530         strtoumax tests: Enhance tests.
35531         * tests/test-strtoumax.c (main): Add tests for large values.
35533 2012-01-05  Bruno Haible  <bruno@clisp.org>
35535         strtoimax: Work around AIX 5.1 bug.
35536         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
35537         definition.
35538         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
35539         Set HAVE_STRTOIMAX.
35540         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
35541         REPLACE_STRTOIMAX.
35542         * modules/inttypes-incomplete (Makefile.am): Substitute
35543         REPLACE_STRTOIMAX.
35544         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35545         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
35546         (Depends-on): Update conditions.
35547         * tests/test-strtoimax.c (main): Add tests for large values.
35548         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
35550 2012-01-05  Bruno Haible  <bruno@clisp.org>
35552         inttypes: Modernize.
35553         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
35554         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
35555         (Makefile.am): Update inttypes.h rule.
35557 2012-01-05  Jim Meyering  <meyering@redhat.com>
35559         init.sh: don't waste a subshell just to redirect stderr
35560         * tests/init.sh: In testing for diff -u and diff -c, use a
35561         stderr-redirecting exec inside `...` rather than a subshell.
35563         test-init.sh: avoid failure on HP-UX 11.00
35564         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
35565         resolves to diff -c or cmp.  Reported by Bruno Haible.
35567 2012-01-05  Bruno Haible  <bruno@clisp.org>
35569         Tests for module 'strtoull'.
35570         * modules/strtoull-tests: New file.
35571         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
35573 2012-01-05  Bruno Haible  <bruno@clisp.org>
35575         Tests for module 'strtoll'.
35576         * modules/strtoll-tests: New file.
35577         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
35579 2012-01-05  Bruno Haible  <bruno@clisp.org>
35581         Tests for module 'strtoul'.
35582         * modules/strtoul-tests: New file.
35583         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
35585 2012-01-05  Bruno Haible  <bruno@clisp.org>
35587         Tests for module 'strtol'.
35588         * modules/strtol-tests: New file.
35589         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
35591 2012-01-04  Jim Meyering  <meyering@redhat.com>
35593         test-init.sh: accommodate Solaris 5.10's different diff -u output
35594         * tests/test-init.sh: Also exempt @@ lines from the comparison
35595         of diff output, since Solaris 5.10 and GNU diff formats differ.
35596         Reported by Stefano Lattarini.
35598 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35600         test-posixtm: don't assume signed integer wraparound
35601         * tests/test-posixtm.c (main): Don't assume wraparound semantics
35602         after signed integer overflow.  Inspired by (though it may not
35603         fix) Bruno Haible's bug report in
35604         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
35606         Spell out "Windows 9x" and "Windows XP".
35607         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
35608         "Windows 9x" and "WinXP" with "Windows XP".
35610 2012-01-04  Jim Meyering  <meyering@redhat.com>
35612         test-vc-list-files-cvs.sh: remove obsolete comment
35613         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
35614         double exit.  Now that's all encapsulated via skip_ and Exit.
35616 2012-01-04  Bruno Haible  <bruno@clisp.org>
35618         Talk about "native Windows API", not "Win32".
35619         * lib/classpath.c: Update comments to mention native Windows.
35620         * lib/csharpexec.c: Likewise.
35621         * lib/dup2.c: Likewise.
35622         * lib/error.c: Likewise.
35623         * lib/fcntl.c: Likewise.
35624         * lib/filename.h: Likewise.
35625         * lib/findprog.c: Likewise.
35626         * lib/get-rusage-as.c: Likewise.
35627         * lib/get-rusage-data.c: Likewise.
35628         * lib/getpagesize.c: Likewise.
35629         * lib/javaexec.c: Likewise.
35630         * lib/msvc-inval.c: Likewise.
35631         * lib/msvc-nothrow.c: Likewise.
35632         * lib/nanosleep.c: Likewise.
35633         * lib/nonblocking.c: Likewise.
35634         * lib/printf-parse.c: Likewise.
35635         * lib/setlocale.c: Likewise.
35636         * lib/sigaction.c: Likewise.
35637         * lib/strerror_r.c: Likewise.
35638         * lib/tmpdir.c: Likewise.
35639         * lib/vasnprintf.c: Likewise.
35640         * lib/w32spawn.h: Likewise.
35641         * lib/waitpid.c: Likewise.
35642         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
35643         * m4/locale-ar.m4: Likewise.
35644         * m4/locale-fr.m4: Likewise.
35645         * m4/locale-ja.m4: Likewise.
35646         * m4/locale-tr.m4: Likewise.
35647         * m4/locale-zh.m4: Likewise.
35648         * m4/printf.m4: Likewise.
35649         * tests/test-cloexec.c: Likewise.
35650         * tests/test-copy-acl.sh: Likewise.
35651         * tests/test-copy-file.sh: Likewise.
35652         * tests/test-file-has-acl.sh: Likewise.
35653         * tests/test-set-mode-acl.sh: Likewise.
35654         * tests/test-dup-safer.c: Likewise.
35655         * tests/test-dup2.c: Likewise.
35656         * tests/test-dup3.c: Likewise.
35657         * tests/test-fcntl.c: Likewise.
35658         * tests/test-nonblocking-pipe.h: Likewise.
35659         * tests/test-nonblocking-socket.h: Likewise.
35660         * tests/test-pipe.c: Likewise.
35661         * tests/test-pipe2.c: Likewise.
35662         * tests/test-spawn-pipe-child.c: Likewise.
35663         * doc/acl-resources.txt: Likewise.
35664         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
35665         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
35666         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
35667         * lib/localcharset.c: Update comments to mention native Windows.
35668         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
35669         * lib/localename.c: Likewise.
35670         * lib/progreloc.c: Likewise.
35671         * lib/relocatable.c: Likewise.
35672         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
35673         (windows_compute_revents): Renamed from win32_compute_revents.
35674         (windows_compute_revents_socket): Renamed from
35675         win32_compute_revents_socket.
35676         * lib/select.c: Update comments to mention native Windows.
35677         (windows_poll_handle): Renamed from win32_poll_handle.
35678         * m4/threadlib.m4: Update comments to mention native Windows.
35679         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
35680         --enable-threads=windows instead of --enable-threads=win32. Set
35681         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
35682         * lib/glthread/lock.h: Update comments to mention native Windows.
35683         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
35684         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
35685         USE_WIN32_THREADS.
35686         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
35687         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
35688         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
35689         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
35690         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
35691         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
35692         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
35693         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
35694         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
35695         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
35696         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
35697         * tests/test-tls.c: Likewise.
35698         Rationale:
35699         Microsoft renamed the "Win32 API" to "Windows API", as it is available
35700         on both 32-bit and 64-bit Windows systems.
35701         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
35702         line of distinction is between "native Windows" on one side and Unix/
35703         POSIX systems on the other side. More details in
35704         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
35705         Suggested by Paul Eggert.
35707 2012-01-03  Bruno Haible  <bruno@clisp.org>
35709         isatty: Support for MSVC 9.
35710         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
35711         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
35712         (_isatty_nothrow): New function.
35713         (isatty): Use it instead of _isatty.
35714         (IsConsoleHandle): Add comment, from Paolo Bonzini.
35715         * lib/poll.c (IsConsoleHandle): Likewise.
35716         * lib/select.c (IsConsoleHandle): Likewise.
35717         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
35718         (gl_PREREQ_ISATTY): New macro.
35719         * modules/isatty (Depends-on): Add msvc-inval.
35720         (configure.ac): Invoke gl_PREREQ_ISATTY.
35722 2012-01-03  Jim Meyering  <meyering@redhat.com>
35724         maint.mk: remove temporary transition aid from over 1.5 years ago
35725         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
35726         purpose was to aid in the transition (avoiding silent malfunction)
35727         from that old name to the new _sc_search_regexp.  This shim was
35728         added by commit 219c504b.
35730         init.sh: do not try to accommodate compare arguments starting with "-"
35731         * tests/init.sh (compare_dev_null_): Do not try to accommodate
35732         compare arguments that start with "-".  Besides, we do not worry
35733         about this when invoking diff or cmp; why start now with sed?
35734         Using "--" to separate options from argument would trigger sed
35735         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
35736         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
35738 2012-01-02  Bruno Haible  <bruno@clisp.org>
35740         Enhance tests for module 'isatty'.
35741         * modules/isatty-tests (Depends-on): Add pipe-posix.
35742         * tests/test-isatty.c: Include <fcntl.h>.
35743         (DEV_NULL): New macro.
35744         (main): Test the resut of isatty() also on regular files, pipes, and
35745         /dev/null.
35747         New module 'isatty'.
35748         * lib/unistd.in.h (isatty): New declaration.
35749         * lib/isatty.c: New file, based on an idea of
35750         Bastien Roucariès <roucaries.bastien@gmail.com>.
35751         * m4/isatty.m4: New file.
35752         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
35753         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
35754         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
35755         REPLACE_ISATTY.
35756         * modules/isatty: New file.
35757         * doc/posix-functions/isatty.texi: Mention the new module.
35758         Suggested by Paolo Bonzini.
35760 2012-01-02  Bruno Haible  <bruno@clisp.org>
35762         canonicalize: Tweak 2011-12-29 commit.
35763         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
35764         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
35766 2012-01-02  Jim Meyering  <meyering@redhat.com>
35768         gitlog-to-changelog: describe input syntax in --help output
35769         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
35771         gitlog-to-changelog: fix typo in --help: show backslash before email @
35772         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
35773         in sources, but not in actual output.
35775 2011-12-30  Jim Meyering  <meyering@redhat.com>
35777         gitlog-to-changelog: don't malfunction when name contains %-directive
35778         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
35779         in a name string cause trouble.  E.g., with a user name of "%s",
35780         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
35782 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
35784         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
35785         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
35786         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
35787         the "  (tiny change)" notation that is appended to the standard
35788         ChangeLog "date  name  email" header line.
35790 2012-01-01  Jim Meyering  <meyering@redhat.com>
35792         test-framework-sh: init.sh: fix "make dist" failure
35793         When using gnulib-tool's --with-tests option and any module that
35794         depends on test-framework-sh, "make dist" would fail due to the
35795         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
35796         in the gltests directory, and not in the gllib/ directory.
35797         One way to work around that is to move the EXTRA_DIST += init.sh
35798         from the primary module to the -tests one:
35799         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
35800         * modules/test-framework-sh (Makefile.am): ...not here.
35801         Reported by Tom G. Christensen in
35802         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
35804         version-etc: update copyright year reported by --version
35805         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
35807 2011-12-31  Pádraig Brady  <P@draigBrady.com>
35809         canonicalize: only stat() if required
35810         * lib/canonicalize.c (canonicalize_filename_mode):
35811         Avoid calling l?stat() when both CAN_MISSING,
35812         and CAN_NOLINKS are set, as we neither need
35813         to resolve symlinks or test component existence.
35815 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
35817         doc: cover st_ino issues once; add OpenVMS etc.
35818         * doc/posix-functions/stat.texi (stat):
35819         * doc/posix-functions/lstat.texi (lstat):
35820         * doc/posix-functions/fstatat.texi (fstatat):
35821         * doc/posix-functions/fstat.texi (fstat):
35822         Move general 'struct stat' stuff to sys_stat.texi,
35823         leaving behind a pointer.
35824         * doc/posix-headers/sys_stat.texi (sys/stat.h):
35825         Merge duplicate info about 'struct stat' problems into here.
35826         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
35827         and suggest partial workarounds.
35829         same-inode: port to OpenVMS
35830         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
35831         three st_ino values.
35833 2011-12-30  Pádraig Brady  <P@draigBrady.com>
35835         canonicalize: fix references to stat() and lstat()
35836         * lib/canonicalize.c (canonicalize_filename_mode):
35837         Ensure references always resolve to a replacement
35838         function if required (even via a macro).
35840 2011-12-30  Jim Meyering  <meyering@redhat.com>
35842         gitlog-to-changelog: remove a little duplication
35843         * build-aux/gitlog-to-changelog (main): Grep @lines once,
35844         rather than twice.
35846 2011-12-29  Pádraig Brady  <P@draigBrady.com>
35848         canonicalize: add support for not resolving symlinks
35849         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
35850         indicate we don't want to follow symlinks.  Also
35851         provide CAN_MODE_MASK to aid setting these existing
35852         mutually exclusive values.
35853         * lib/canonicalize.c (canonicalize_filename_mode):
35854         Extract the flags from can_mode parameter, which
35855         are currently just used to select between stat()
35856         and lstat().  Also ensure that mutually exclusive
35857         values are flagged immediately as invalid.
35858         * tests/test-canonicalize.c: Verify symlinks are
35859         not followed, and that invalid flag combinations
35860         are diagnosed.
35862 2011-12-25  Jim Meyering  <meyering@redhat.com>
35864         gitlog-to-changelog: do not clump multi-paragraph entries
35865         Identical header lines (date,name,email+coauthors) are suppressed,
35866         thus putting all entries with those same characteristics under
35867         a single header.  However, when a log entry consists of two or
35868         more paragraphs, it may not be clear where it starts and ends.
35869         This change makes it so that such an entry is always separated
35870         from others by a header line, even when that header would
35871         otherwise be suppressed.
35872         * build-aux/gitlog-to-changelog: Implement the above.
35873         Inspired by a related request from Stefano Lattarini in
35874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
35876 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35878         announce-gen: fix `cmd' typo in diagnostic
35879         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
35880         diagnostic: a missing '$' meant that the command was not output.
35882 2011-12-23  Jim Meyering  <meyering@redhat.com>
35884         test-framework-sh: distribute init.sh
35885         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
35886         Otherwise, "make -C gnulib-tests check" (at least in grep) would
35887         fail due to the lack of init.sh.
35889         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
35890         * modules/atexit-tests: Rather than listing tests/init.sh,
35891         now that there's a module for it, simply depend on that new module.
35892         * modules/closein-tests: Likewise.
35893         * modules/exclude-tests: Likewise.
35894         * modules/getcwd-tests: Likewise.
35895         * modules/perror-tests: Likewise.
35896         * modules/pread-tests: Likewise.
35897         * modules/pwrite-tests: Likewise.
35898         * modules/vc-list-files-tests: Likewise.
35899         * modules/verify-tests: Likewise.
35900         * modules/xalloc-die-tests: Likewise.
35901         * modules/xstrtoimax-tests: Likewise.
35902         * modules/xstrtol-tests: Likewise.
35903         * modules/xstrtoll-tests: Likewise.
35904         * modules/xstrtoumax-tests: Likewise.
35905         * modules/yesno-tests: Likewise.
35907 2011-12-22  Jim Meyering  <meyering@redhat.com>
35909         test-framework-sh: add minimal tests of init.sh's compare function
35910         * modules/test-framework-sh-tests: New file.
35911         * tests/test-init.sh: New file.
35913         test-framework-sh: new module
35914         * modules/test-framework-sh: New file.
35915         * MODULES.html.sh (Support for maintaining and releasing projects):
35916         List it.
35918         init.sh: do not emit simulated diff output to stderr
35919         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
35921 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
35923         .gitignore: ignore gnulib.dvi and regex.info
35924         * doc/.gitignore:add gnulib.dvi and regex.info
35926 2011-12-22  Jim Meyering  <meyering@redhat.com>
35928         init.sh: correct previous change
35929         * tests/init.sh (compare): My previous change was wrong.
35930         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
35932         init.sh: avoid unwarranted test failure when using "set -e"
35933         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
35934         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
35935         a use like "compare exp out" would get evoke an unconditional failure.
35937 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
35939         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
35940         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
35941         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
35942         autoreconf that did not.
35943         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
35944         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
35946 2011-12-17  Jim Meyering  <meyering@redhat.com>
35948         bootstrap: remove some now-unneeded code
35949         This script arose back when gnulib-tool was young.
35950         Since then, it has seen improvements that render much of this
35951         script unnecessary.  In particular, it can now make symlinks
35952         to the files it uses.  Also, I no longer see as much value in
35953         marking files as read-only via comments.
35954         If you relied on the symlink-creation feature of the preceding
35955         version of this script, you can get most of that functionality
35956         by adding the --symlink option to the definition of
35957         gnulib_tool_option_extras in your bootstrap.conf file.
35958         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
35959         Run autopoint and libtoolize *before* gnulib-tool.
35960         After it, run an abbreviated autoreconf, rather than a loop around
35961         all tools.
35962         (slirp, bt_mark_as_generated): Remove functions.
35964 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35966         ftoastr: fix typo
35967         * lib/ftoastr.h: Fix misspelling in comment.
35969 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
35971         * top/README-release: fix punctuation.
35973 2011-12-17  Jim Meyering  <meyering@redhat.com>
35975         bootstrap: correct the recent buildreq change
35976         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
35977         had no effect.
35978         * build-aux/bootstrap (buildreq): Bracket each search term with
35979         "*...*", so that the shell "case" statement works as intended.
35980         Add comments.
35982 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
35984         build: let bootstrap resort to wget when downloading .po files
35985         * build-aux/bootstrap (download_po_files): Fallback to wget when
35986         downloading the .po files via rsync fails.  This is necessary to
35987         bootstrap from behind a strict firewall.
35989 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
35991         stdint: don't assume C++11 when compiling with g++
35992         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
35993         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
35994         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
35995         work also in C++ before C++11, as that improperly inhibits
35996         generating a substitute stdint.h for that case.
35998 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
36000         alloca: protect comment from gnulib-tool
36001         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
36002         that gnulib-tool doesn't think it's a license, and munge it to
36003         say "GCC version 3".
36005 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
36007         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
36008         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
36009         $(abs_top_builddir) instead of $(top_builddir).
36011 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
36013         strftime-tests: also test nanoseconds
36014         * tests/test-strftime.c (T): Add a test of %N.
36016 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
36018         inttypes, stdint: add C++11 support
36019         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
36020         when including inttypes.h and stdint.h.  Support this change to
36021         the standard.
36022         * doc/posix-headers/inttypes.texi (inttypes.h):
36023         * doc/posix-headers/stdint.texi (stdint.h): Document this.
36024         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
36025         Define if not defined already, for the benefit of pre-C++11 hosts.
36026         Define the standard format macros (e.g., PRId8) always.
36027         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
36028         Likewise, if __cpluspus.  Define the standard constant and limit
36029         macros (e.g., INT8_C, INT8_MAX) always.
36030         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
36031         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
36032         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
36033         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
36034         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
36035         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
36036         Likewise.
36038 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
36040         nonblocking tests: Fix test failure on Linux/PPC.
36041         Suggested by Prerna Saxena in
36042         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
36043         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
36044         Set to 1100000.
36046 2011-12-12  Jim Meyering  <meyering@redhat.com>
36048         argmatch: don't hard-code `' when listing valid option arguments
36049         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
36050         use the quote function to add quotes.  Use fputs rather than
36051         fprintf for the format string with no format directive.
36053 2011-12-07  Eric Blake  <eblake@redhat.com>
36055         bootstrap: detect tools required by gnulib-tool
36056         * build-aux/bootstrap (buildreq): Provide minimum implicit
36057         dependencies.
36058         * DEPENDENCIES: Mention patch as a prereq.
36060 2011-12-04  Bruno Haible  <bruno@clisp.org>
36062         sethostname: Port to Windows platforms.
36063         * lib/sethostname.c: Provide an alternate implementation for Windows
36064         platforms.
36065         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
36066         (main): Skip the test if sethostname() fails with EPERM. On Windows
36067         platforms, don't check the result of gethostname().
36069 2011-12-04  Bruno Haible  <bruno@clisp.org>
36070             Jim Meyering  <meyering@redhat.com>
36072         tests: Avoid spurious error message on platforms without mktemp program.
36073         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
36075 2011-12-04  Bruno Haible  <bruno@clisp.org>
36077         sethostname: Fix documentation.
36078         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
36079         "not fixed" section.
36081 2011-12-03  Bruno Haible  <bruno@clisp.org>
36083         gnulib-tool: Verify that the License field is present and non-empty.
36084         * gnulib-tool (func_get_license_raw): New function, extracted from
36085         func_get_license.
36086         (func_get_license): Use it. Warn if the module is not a test module and
36087         has no license.
36088         Suggested by Jim Meyering.
36090 2011-12-03  Bruno Haible  <bruno@clisp.org>
36092         sethostname tests: Fix link error on mingw.
36093         * tests/test-sethostname1.c: New file, extracted from
36094         tests/test-sethostname.c.
36095         * tests/test-sethostname2.c: New file, extracted from
36096         tests/test-sethostname.c.
36097         * tests/test-sethostname.c: Remove file.
36098         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
36099         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
36100         (Depends-on): Add gethostname.
36101         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
36102         Link the latter with $(GETHOSTNAME_LIB).
36104         sethostname tests: Fix compilation error on mingw.
36105         * tests/test-sethostname.c: Don't include <sys/types.h>.
36106         (geteuid): Use a dummy value without uid_t.
36107         * modules/sethostname-tests (Depends-on): Remove sys_types.
36109         sethostname tests: Avoid a gcc warning.
36110         * tests/test-sethostname.c (main): Remove an unused variable.
36112         Tweak last commit.
36113         * modules/sethostname-tests (Files): Sort by decreasing importance.
36114         (configure.ac): Check for geteuid.
36115         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
36116         the test when there's nothing to test. Drop an unnecessary cast.
36117         Improve an error message. Verify that the final sethostname() call
36118         succeeds.
36120 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36122         Add a test suite for the sethostname module.
36123         * modules/sethostname-tests: New file.  A test program
36124         for the sethostname module.
36125         * tests/test-sethostname.c: Likewise.
36127 2011-12-03  Bruno Haible  <bruno@clisp.org>
36129         Tweak last commit.
36130         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
36131         Fix preprocessor directives indentation. Fix typos.
36132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
36133         * modules/unistd (Makefile): Likewise.
36135 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36137         Integrate the sethostname module into unistd.
36138         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
36139         into the unistd.h header.
36140         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
36141         preprocessor directives.
36142         * modules/unistd: Setup the Makefile substitutions of the
36143         SETHOSTNAME preprocessor directives.
36145 2011-12-03  Bruno Haible  <bruno@clisp.org>
36147         Tweak last commit.
36148         * lib/sethostname.c: Don't include <string.h>.
36149         (sethostname): No need to copy the argument string to the stack. Don't
36150         call clearerr. Preserve errno when fprintf failed.
36151         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
36152         Don't invoke AC_REPLACE_FUNCS.
36153         * modules/sethostname (Link): Remove empty section.
36154         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
36155         failure problem.
36157 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36159         New module 'sethostname'.
36160         * lib/sethostname.c (sethostname): New file.  Provide sethostname
36161         for systems that lack it.
36162         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
36163         sethostname declaration and function.
36164         * modules/sethostname: New file.  Define the sethostname module.
36166 2011-12-03  Bruno Haible  <bruno@clisp.org>
36168         Tweak last commit.
36169         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
36171 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
36173         Split the HOST_NAME_MAX detection into a separate m4 macro.
36174         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
36175         macro so it can be used by the pending sethostname module.
36177 2011-12-03  Bruno Haible  <bruno@clisp.org>
36179         Fix module descriptions syntax.
36180         * modules/argv-iter (License): Fix syntax.
36181         * modules/di-set (License): Likewise.
36182         * modules/ino-map (License): Likewise.
36183         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
36185 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36187         stdalign: port to Clang 3.0
36188         Problem reported by Simon Josefsson in
36189         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
36190         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
36191         which has <stdalign.h> but which does not define alignof.
36192         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
36194 2011-12-01  Eric Blake  <eblake@redhat.com>
36196         mktempd: silence dd usage
36197         * build-aux/mktempd (rand_bytes): Silence dd.
36199 2011-11-30  Simon Josefsson  <simon@josefsson.org>
36201         manywarnings: Don't mention gcc version in docstring.
36202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
36203         Jim Meyering <meyering@redhat.com>.
36205 2011-11-30  Jim Meyering  <meyering@redhat.com>
36207         hash: mark a few floating point constants with "f" suffix
36208         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
36209         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
36210         floating point constants with "f", since they're destined to be
36211         saved/used as "float"s.
36213 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
36215         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
36216         * tests/test-float.c (test_long_double): Correct and re-enable the
36217         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
36219 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
36221         Avoid subtracting two pointers that don't point into the same block.
36222         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
36223         only pointers into the same memory block are subtracted. We cannot
36224         assume that sizeof (ptrdiff_t) == sizeof (void *).
36226 2011-11-29  Eric Blake  <eblake@redhat.com>
36228         maint.mk: add syntax check for use of compare from init.sh
36229         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
36230         moved here from coreutils.
36232         manywarnings: drop -Wunsuffixed-float-constants
36233         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
36234         '1.0D', which is the only way to silence this warning for 'double'.
36236 2011-11-29  Jim Meyering  <meyering@redhat.com>
36238         hash: mark compute_bucket_size with the pure attribute
36239         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
36241         quotearg, propername: correct pragma guard expression
36242         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
36243         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
36245 2011-11-28  Jim Meyering  <meyering@redhat.com>
36247         propername: do not mark proper_name with the const attribute
36248         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
36249         since it examines data pointed to by its parameter.
36250         * lib/propername.c (proper_name): Instead, add a pragma to suppress
36251         the suggestion from -Wsuggest-attribute=const.
36253         propername: mark one more function as const
36254         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
36256 2011-11-27  Jim Meyering  <meyering@redhat.com>
36258         mark functions with const and pure attributes
36260         Mark functions per suggestions from gcc-4.6 when using these options:
36261         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
36262         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
36263         Follow these guidelines: when possible, apply the attribute to
36264         an extern declaration, not to its definition.  Apply it to the
36265         definition only when the definition is static.
36266         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
36267         * lib/argv-iter.h (argv_iter_n_args): Likewise.
36268         * lib/base64.h (isbase64): Likewise.
36269         * lib/basename-lgpl.c (last_component, base_len): Likewise.
36270         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
36271         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
36272         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
36273         (c_tolower, c_toupper): Likewise.
36274         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
36275         * lib/chdir-long.c (find_non_slash): Likewise.
36276         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
36277         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
36278         * lib/file-type.h (file_type): Likewise.
36279         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
36280         * lib/filevercmp.c (verrevcmp): Likewise.
36281         * lib/freadahead.h (freadahead): Likewise.
36282         * lib/fts.c (fts_maxarglen): Likewise.
36283         * lib/hash-pjw.h (hash_pjw): Likewise.
36284         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
36285         * lib/hash.c (is_prime, next_prime): Likewise.
36286         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
36287         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
36288         (hash_table_ok, hash_get_first, hash_string): Likewise.
36289         (compute_bucket_size): Likewise.
36290         * lib/i-ring.h (i_ring_empty): Likewise.
36291         * lib/isnan.c (isnanl): Likewise.
36292         * lib/math.h (isnanl, rpl_isnanl): Likewise.
36293         * lib/memcasecmp.h (memcasecmp): Likewise.
36294         * lib/memchr2.h (memchr2): Likewise.
36295         * lib/memcmp2.h (memcmp2): Likewise.
36296         * lib/parse-datetime.y (lookup_zone): Likewise.
36297         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
36298         [!WINDOWS_SOCKETS]: Likewise.
36299         * lib/strnlen1.h (strnlen1): Likewise.
36300         * lib/uniwidth.in.h (uc_width): Likewise.
36301         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
36302         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
36303         (quoting_options_from_style): Add a comment.
36304         * lib/propername.h (proper_name): Add a comment.
36306 2011-11-27  Bruno Haible  <bruno@clisp.org>
36308         Remove unused macros from !_LIBC code in glibc-borrowed files.
36309         * lib/fnmatch.c (STRCOLL): Remove macro.
36310         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
36311         * lib/glob.c (__stat, __readdir64): Remove macros.
36312         * lib/tempname.c (__open64, __xstat64): Remove macros.
36313         Suggested by Paul Eggert.
36315 2011-11-27  Bruno Haible  <bruno@clisp.org>
36317         getcwd: Fix link error on MSVC 9.
36318         * modules/getcwd (Depends-on): Add readdir, rewinddir.
36320 2011-11-27  Bruno Haible  <bruno@clisp.org>
36322         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
36323         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
36324         HAVE_OPENDIR is 0.
36325         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
36326         HAVE_CLOSEDIR is 0.
36327         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
36328         is 0.
36329         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
36331 2011-11-27  Bruno Haible  <bruno@clisp.org>
36333         getcwd: Fix bug from 2011-08-17.
36334         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
36335         platforms that need it.
36336         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
36337         code of 4 to be a failure, not a success. This ensures that
36338         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
36340 2011-11-27  Bruno Haible  <bruno@clisp.org>
36342         binary-io tests: Avoid test failure on mingw when libtool is used.
36343         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
36344         Don't verify the size of t-bin-out1.tmp here.
36345         * tests/test-binary-io.sh: Verify it here.
36346         Reported by Simon Josefsson.
36348 2011-11-26  Bruno Haible  <bruno@clisp.org>
36350         Fix conflict between two instantiations of module 'unistd'.
36351         * gnulib-tool (func_emit_autoconf_snippet): Substitute
36352         ${include_guard_prefix} also in the autoconf snippet.
36353         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
36354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
36355         GNULIB_UNISTD_H_GETOPT.
36356         * modules/getopt-posix (configure.ac): Set the
36357         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
36358         * modules/getopt-gnu (configure.ac): Likewise.
36359         * modules/unistd (Makefile.am): Change the substitution value of
36360         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
36361         Reported by Simon Josefsson.
36363 2011-11-25  Bruno Haible  <bruno@clisp.org>
36365         pagealign_alloc: Doc and comments.
36366         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
36367         module.
36368         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
36370 2011-11-25  Jim Meyering  <meyering@redhat.com>
36372         test-update-copyright.sh: avoid false-positive failure
36373         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
36374         around false positive failure on Cygwin/Windows.  The latter was
36375         matching erroneously-created files with names like
36376         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
36378 2011-11-25  Simon Josefsson  <simon@josefsson.org>
36380         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
36381         * m4/valgrind-tests.m4: Check that the parameters that will be
36382         used works, not just a subset of them.  Reported by Bruno Haible
36383         <bruno@clisp.org>.
36385 2011-11-24  Jim Meyering  <meyering@redhat.com>
36387         test-stdalign.c: comment out long double tests
36388         * tests/test-stdalign.c: Don't try to reduce alignment of long double
36389         variables.  That provokes errors like this from gcc-4.7.0 20111124:
36390         error: '_Alignas' specifiers cannot reduce alignment of \
36391         'static_longdouble_alignas'.
36393 2011-11-22  Jim Meyering  <meyering@redhat.com>
36395         init.sh: make "compare /dev/null FILE" output more readable
36396         * tests/init.sh (compare_): Document the preferred order of arguments.
36397         (emit_diff_u_header_): New function.
36398         (compare_dev_null_): Emit a simulated diff, rather than just the
36399         contents of the unexpected file.  Suggestion from Bruno Haible.
36401 2011-11-21  Jim Meyering  <meyering@redhat.com>
36402             Eric Blake  <eblake@redhat.com>
36404         init.sh: work around OSF/1 5.1's mishandling of /dev/null
36405         * tests/init.sh: Make our compare function slightly more portable.
36406         Reported by Bruno Haible in
36407         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
36409 2011-11-21  Simon Josefsson  <simon@josefsson.org>
36411         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
36412         before using it, in code that ends up in config.h.
36414 2011-11-20  Bruno Haible  <bruno@clisp.org>
36416         getcwd: Work around getcwd bug on AIX 5..7.
36417         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
36418         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
36419         Use a different value for gl_cv_func_getcwd_path_max. Move the
36420         definition of HAVE_PARTLY_WORKING_GETCWD from here...
36421         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
36422         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
36423         Define HAVE_MINIMALLY_WORKING_GETCWD.
36424         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
36425         where it is not even minimally working, that is, on AIX.
36426         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
36427         m4/getcwd-path-max.m4.
36428         (main): Update exit code computation.
36429         * doc/posix-functions/getcwd.texi: Mention list of platforms where
36430         getcwd does not handle long file names.
36432 2011-11-20  Bruno Haible  <bruno@clisp.org>
36434         getcwd: Fix bug from 2009-09-10.
36435         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
36436         like "no".
36438 2011-11-20  Simon Josefsson  <simon@josefsson.org>
36440         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
36442 2011-11-20  Bruno Haible  <bruno@clisp.org>
36444         fma tests: Avoid shadowing local variables.
36445         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
36446         expected.
36448 2011-11-20  Bruno Haible  <bruno@clisp.org>
36450         copysignf tests: Fix.
36451         * tests/test-copysignf.c: Fix signature check.
36453 2011-11-20  Bruno Haible  <bruno@clisp.org>
36455         fma: Remove unused code.
36456         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
36457         unused macros.
36459 2011-11-20  Bruno Haible  <bruno@clisp.org>
36461         sethostname: Fix doc about AIX.
36462         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
36463         sethostname; it has it.
36465         sethostname: Mention more portability problems.
36466         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
36467         problem.
36468         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36470 2011-11-19  Bruno Haible  <bruno@clisp.org>
36472         Depend on module fcntl-h when AT_FDCWD is used.
36473         * modules/utimens (Depends-on): Add fcntl-h.
36474         * modules/areadlinkat (Depends-on): Likewise.
36475         * modules/areadlinkat-with-size (Depends-on): Likewise.
36476         * modules/faccessat (Depends-on): Likewise.
36477         * modules/fchmodat (Depends-on): Likewise.
36478         * modules/fchownat (Depends-on): Likewise.
36479         * modules/getcwd (Depends-on): Likewise.
36480         * modules/mkdirat (Depends-on): Likewise.
36481         * modules/mkfifoat (Depends-on): Likewise.
36482         * modules/readlinkat (Depends-on): Likewise.
36483         * modules/symlinkat (Depends-on): Likewise.
36484         * modules/dup2-tests (Depends-on): Likewise.
36485         * modules/fdutimensat-tests (Depends-on): Likewise.
36486         * modules/futimens-tests (Depends-on): Likewise.
36488 2011-11-19  Bruno Haible  <bruno@clisp.org>
36490         euidaccess: Update a comment.
36491         * lib/euidaccess.c: Update comment about platforms with faccessat.
36493 2011-11-19  Bruno Haible  <bruno@clisp.org>
36495         openat: Fix file list.
36496         * modules/openat (Files): Remove lib/at-func.c.
36498 2011-11-19  Bruno Haible  <bruno@clisp.org>
36500         fstatat: Simplify.
36501         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
36502         gnulib should define rpl_fstatat, there is a
36503         "#define fstatat rpl_fstatat" in <sys/stat.h>.
36505 2011-11-19  Bruno Haible  <bruno@clisp.org>
36507         Ensure 'inline' can be used in tests/test-utimens-common.h.
36508         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
36509         * modules/futimens-tests (configure.ac): Likewise.
36510         * modules/utimens-tests (configure.ac): Likewise.
36511         * modules/utimensat-tests (configure.ac): Likewise.
36513 2011-11-19  Simon Josefsson  <simon@josefsson.org>
36515         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
36516         not hash_insert0.
36517         (hash_insert_if_absent): Doc fix.
36519 2011-11-19  Simon Josefsson  <simon@josefsson.org>
36521         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
36523 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
36525         test-getcwd: disambiguate exit status
36526         * tests/test-getcwd.c (test_long_name): Return 0..7.
36527         (main): Exit with an unambiguous exit status.  The old
36528         code yielded a mysterious mixture of two failure codes.
36530         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
36531         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
36532         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
36533         rpl_fstatat or fstatat.  This should fix the other problem
36534         reported by Kai Habel in
36535         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
36536         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
36537         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
36538         and I reproduced it on a Solaris 8 host we still have in production.
36540 2011-11-18  Jim Meyering  <meyering@redhat.com>
36542         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
36543         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
36544         Add a sentence to the comment.
36545         (hash_insert0): New function that simply calls hash_insert_if_absent.
36546         * lib/hash.h (hash_insert_if_absent): Declare it.
36547         (hash_insert0): Add deprecation attribute.
36548         (_GL_ATTRIBUTE_DEPRECATED): Define.
36549         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
36550         not hash_insert0.
36551         * NEWS: Mention it, even though it's not really an incompatible change.
36553 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
36555         openat: avoid compilation failure due to lack of <errno.h> inclusion
36556         * lib/openat.c: Include <errno.h>.
36558 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
36560         * modules/getcwd (Depends-on): Add fdopendir.
36561         This fixes one of the two problems reported by Kai Habel in
36562         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
36564         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
36565         stdalign problem reported by Ian Beckwith in
36566         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
36567         * modules/crypto/gc-arcfour (Depends-on):
36568         Depend conditionally on crypto/arcfour.
36569         * modules/crypto/gc-arctwo (Depends-on):
36570         Depend conditionally on crypto/arctwo.
36571         * modules/crypto/gc-des (Depends-on):
36572         Depend conditionally on crypto/des.
36573         * modules/crypto/gc-hmac-md5 (Depends-on):
36574         Depend conditionally on crypto/hmac-md5.
36575         * modules/crypto/gc-hmac-sha1 (Depends-on):
36576         Depend conditionally on crypto/hmac-sha1.
36577         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
36578         * modules/crypto/gc-md4 (Depends-on):
36579         Depend conditionally on crypto/md4.
36580         * modules/crypto/gc-md5 (Depends-on):
36581         Depend conditionally on crypto/md5.
36582         * modules/crypto/gc-rijndael (Depends-on):
36583         Depend conditionally on crypto/rijndael.
36584         * modules/crypto/gc-sha1 (Depends-on):
36585         Depend conditionally on crypto/sha1.
36586         * modules/crypto/gc-arcfour:
36587         * modules/crypto/gc-arctwo:
36588         * modules/crypto/gc-des:
36589         * modules/crypto/gc-hmac-md5:
36590         * modules/crypto/gc-hmac-sha1:
36591         * modules/crypto/gc-md2:
36592         * modules/crypto/gc-md4:
36593         * modules/crypto/gc-md5:
36594         * modules/crypto/gc-rijndael:
36595         * modules/crypto/gc-sha1:
36596         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
36597         now that the conditional dependencies do the work for us.
36599 2011-11-17  Jim Meyering  <meyering@redhat.com>
36601         tests: factor st_ctime-comparison out of two headers
36602         * tests/test-utimens-common.h (ctime_compare): Define.
36603         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
36604         * tests/test-lutimens.h (test_lutimens): Likewise.
36605         * tests/test-utimens.h (test_utimens): Likewise.
36607         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
36608         Invoke the test program via an init.sh-using wrapper.
36609         * tests/test-getcwd.sh: New file.
36610         * modules/getcwd-tests (Files): Add it.
36611         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
36613 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
36615         gitlog-to-changelog: support multi-author commits.
36616         The FSF cares about keeping track of all authors of patches to its
36617         projects, but Git doesn't provide obvious support for multi-author
36618         changesets. Consensus seems to be forming around the use of extra
36619         Signed-off-by inspired lines in the log message formatted as
36620         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
36621         multi-author commits between version control systems.
36622         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
36623         log message and output in standard ChangeLog multi-author format.
36624         Reported by Peter Rosin <peda@lysator.liu.se>
36626 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36627             Bruno Haible  <bruno@clisp.org>
36629         Fix some modules' file list.
36630         * modules/fstatat (Files): Add m4/lstat.m4.
36631         * modules/openat (Files): Likewise.
36632         * modules/unlinkat (Files): Likewise.
36634 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
36636         maint.mk: fix tight-scope.mk generation in VPATH builds.
36637         * top/maint.mk (tight-scope.mk): Make sure to prefix file
36638         reference with $(srcdir) so that the file is found correctly even
36639         when running `make syntax-check' in a VPATH build.
36641 2011-11-13  Bruno Haible  <bruno@clisp.org>
36642             Jim Meyering  <meyering@redhat.com>
36644         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
36645         * tests/init.sh (compare): Remove "No differences encountered" or
36646         synonymous output from the 'diff' program.
36648 2011-11-13  Bruno Haible  <bruno@clisp.org>
36650         Makefile: Tweak indentation.
36651         * Makefile: Use tab as first character in every line that contains rule
36652         commands.
36654 2011-11-13  Bruno Haible  <bruno@clisp.org>
36656         Syntax check for copyright statements.
36657         * check-copyright: New file.
36658         * Makefile (sc_check_copyright): New rule.
36660 2011-11-13  Simon Josefsson  <simon@josefsson.org>
36662         * build-aux/git-version-gen: Add --prefix to configure the tag
36663         match string.
36665 2011-11-13  Simon Josefsson  <simon@josefsson.org>
36667         * build-aux/git-version-gen: Add --help and --version.
36669 2011-11-12  Jim Meyering  <meyering@redhat.com>
36671         revamp the other test-exclude?.sh scripts to use init.sh, too
36672         * tests/test-exclude1.sh: Use init.sh.
36673         * tests/test-exclude2.sh: Likewise.
36674         * tests/test-exclude3.sh: Likewise.
36675         * tests/test-exclude4.sh: Likewise.
36676         * tests/test-exclude5.sh: Likewise.
36677         * tests/test-exclude6.sh: Likewise.
36678         * tests/test-exclude7.sh: Likewise.
36679         * tests/test-exclude8.sh: Likewise.
36680         * modules/exclude-tests (Files): List init.sh.
36682         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
36683         These shell scripts ignored failure of the binary test-exclude,
36684         so making the latter return 77 didn't cause them to be skipped.
36685         * tests/test-exclude5.sh: Exit with test-exclude's error status
36686         when that program fails.  Revamp to use init.sh.
36687         * tests/test-exclude2.sh: Likewise.
36689         test-exclude: fix a typo
36690         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
36692 2011-11-11  Bruno Haible  <bruno@clisp.org>
36694         obstack: Fix compilation error on MSVC 9.
36695         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
36697 2011-11-11  Jim Meyering  <meyering@redhat.com>
36699         test-exclude: skip tests rather than failing on deficient systems
36700         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
36701         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
36702         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
36703         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
36705 2011-11-10  Bruno Haible  <bruno@clisp.org>
36707         ptsname_r test: Avoid gcc warning on glibc systems.
36708         * tests/test-ptsname_r.c (null_ptr): New function.
36709         (test_errors): Use it.
36711 2011-11-10  Bruno Haible  <bruno@clisp.org>
36713         ptsname_r: Avoid compilation error on OSF/1 5.1.
36714         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
36715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
36716         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
36717         function is not declared or incompatibly declared.
36718         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
36719         * modules/ptsname_r (Depends-on, configure.ac): Update.
36720         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
36722 2011-11-10  Bruno Haible  <bruno@clisp.org>
36724         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
36725         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
36726         When cross-compiling, guess yes on all platforms except AIX.
36727         Reported by Ludovic Courtès <ludo@gnu.org>.
36729 2011-11-09  Bruno Haible  <bruno@clisp.org>
36731         ptsname_r tests: Fix bugs.
36732         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
36733         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
36735 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36737         fstatat: work with cross-compilation
36738         Problem reported by Ludovic Courtès in
36739         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
36740         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
36741         "cross-compiling" and assume the bug is present.  Replace
36742         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
36743         an inverted sense, to be more conservative about our assumptions.
36744         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
36746 2011-11-09  Bruno Haible  <bruno@clisp.org>
36748         Improve MODULES.html output.
36749         * modules/mkfifoat (Description): Use the word "function".
36750         * modules/readlinkat (Description): Likewise.
36751         * modules/symlinkat (Description): Likewise.
36753 2011-11-09  Eric Blake  <eblake@redhat.com>
36755         ptsname_r-tests: new test module
36756         * modules/ptsname_r-tests: New module.
36757         * tests/test-ptsname_r.c: New file.
36759         ptsname_r: new module
36760         * modules/ptsname_r: New module.
36761         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
36762         * lib/ptsname.c (__ptsname_r): Split...
36763         * lib/ptsname_r.c: ...into new file.
36764         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
36765         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
36766         * modules/stdlib (Makefile.am): Substitute witnesses.
36767         * lib/stdlib.in.h (ptsname_r): Declare it.
36768         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
36769         * MODULES.html.sh (Misc): Likewise.
36770         * modules/ptsname (Depends-on): Alter dependency.
36771         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
36773 2011-11-09  Jim Meyering  <meyering@redhat.com>
36775         announce-gen: be more concise when there's only one URL+tarball
36776         * build-aux/announce-gen (get_tool_versions): When you distribute
36777         only one type of tarball, combine the first two "Here are..."
36778         sections and make the key-checking grammar independent of
36779         how many tarballs there are.
36781 2011-11-09  Eric Blake  <eblake@redhat.com>
36783         openpty: provide a stub on mingw
36784         * lib/pty.in.h (includes): Provide forward declarations.
36785         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
36787         raise: fix mingw handling of SIGPIPE
36788         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
36790 2011-11-08  Bruno Haible  <bruno@clisp.org>
36792         More conditional dependencies.
36793         * modules/faccessat (Depends-on): Add conditions.
36794         * modules/fchmodat (Depends-on): Likewise.
36795         * modules/fchownat (Depends-on): Likewise.
36796         * modules/fstatat (Depends-on): Likewise.
36797         * modules/mkfifoat (Depends-on): Likewise.
36798         * modules/readlinkat (Depends-on): Likewise.
36799         * modules/symlinkat (Depends-on): Likewise.
36800         * modules/unlinkat (Depends-on): Likewise.
36801         * modules/utimensat (Depends-on): Likewise.
36802         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
36803         * modules/linkat (Depends-on): Refine the conditions.
36804         * modules/renameat (Depends-on): Likewise.
36806 2011-11-08  Bruno Haible  <bruno@clisp.org>
36808         faccessat: Move AC_LIBOBJ invocation to module description.
36809         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
36810         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
36811         invocation from here...
36812         * modules/faccessat (configure.ac): ... to here. Invoke
36813         gl_PREREQ_FACCESSAT.
36815 2011-11-08  Bruno Haible  <bruno@clisp.org>
36817         faccessat: Simplify autoconf macro.
36818         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
36819         gl_FUNC_EUIDACCESS.
36821 2011-11-08  Bruno Haible  <bruno@clisp.org>
36823         renameat: Fix dependencies.
36824         * modules/renameat (Depends-on): Add stdbool.
36826 2011-11-08  Bruno Haible  <bruno@clisp.org>
36828         mkfifoat: Fix module description.
36829         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
36830         not gl_UNISTD_MODULE_INDICATOR.
36832 2011-11-08  Bruno Haible  <bruno@clisp.org>
36834         fstatat: Remove unused dependency.
36835         * modules/fstatat (Depends-on): Remove fstat.
36837 2011-11-08  Simon Josefsson  <simon@josefsson.org>
36839         GNUmakefile: behave when Makefile is missing.
36840         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
36842 2011-11-08  Bruno Haible  <bruno@clisp.org>
36844         openat: Conditionalize dependencies.
36845         * lib/openat.c: Reduce the scope of some #includes.
36846         * modules/openat (Depends-on): Add conditions.
36848 2011-11-07  Jim Meyering  <meyering@redhat.com>
36850         maint.mk: extract GPG key ID without using a temporary file
36851         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
36852         without using a temporary file.  Based on a suggestion from Werner Koch
36853         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
36855 2011-11-07  Eric Blake  <eblake@redhat.com>
36857         grantpt: fix typo
36858         * lib/stdlib.in.h (grantpt): Check correct function.
36860         maint.mk: silence new syntax check
36861         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
36863 2011-11-06  Bruno Haible  <bruno@clisp.org>
36865         Doc about floating-point and math API.
36866         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
36867         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
36869 2011-11-06  Bruno Haible  <bruno@clisp.org>
36871         stdalign tests: Skip the test when compiled by Sun C.
36872         * tests/test-stdalign.c (main): Skip the test on Sun C.
36874 2011-11-06  Bruno Haible  <bruno@clisp.org>
36876         ansi-c++-opt: Complete the 2011-06-05 change.
36877         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
36878         does not support namespaces, set the variable to "no", not to ":".
36880 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
36882         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
36884 2011-11-06  Bruno Haible  <bruno@clisp.org>
36886         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
36887         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
36888         (minus_zerol) [HP-UX]: New macro.
36889         (unary_minus) [HP-UX]: New function.
36890         (copysignl) [HP-UX]: Use unary_minus function.
36892 2011-11-06  Bruno Haible  <bruno@clisp.org>
36894         ldexp, ldexpf, ldexpl: Enhance tests.
36895         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
36896         and tests/test-ldexpl.c.
36897         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
36898         LDEXP, MIN_EXP, MAX_EXP): New macros.
36899         Include test-ldexp.h.
36900         (main): Just call test_function.
36901         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
36902         infinity.h, nan.h.
36903         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
36904         MAX_EXP): New macros.
36905         Include test-ldexp.h.
36906         (x, y): Remove variables.
36907         (main): Just call test_function.
36908         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
36909         infinity.h, nan.h.
36910         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
36911         MAX_EXP): New macros.
36912         Include test-ldexp.h.
36913         (x, y): Remove variables.
36914         (main): Just call test_function.
36915         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
36916         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
36917         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
36918         (Depends-on): Add isnand-nolibm, signbit, float.
36919         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
36920         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
36921         (Depends-on): Add isnanf-nolibm, signbit, float.
36923 2011-11-06  Bruno Haible  <bruno@clisp.org>
36925         math tests: Cosmetics.
36926         * tests/test-math-c++.cc: Reorder declarations.
36928 2011-11-05  Bruno Haible  <bruno@clisp.org>
36930         fma*: Simplify test.
36931         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
36932         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
36934         Tests for module 'fmal'.
36935         * modules/fmal-tests: New file.
36936         * tests/test-fmal1.c: New file.
36937         * tests/test-fmal2.c: New file.
36939         New module 'fmal'.
36940         * lib/math.in.h (fmal): New declaration.
36941         * lib/fmal.c: New file.
36942         * m4/fmal.m4: New file.
36943         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
36944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
36945         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
36946         REPLACE_FMAL.
36947         * modules/fmal: New file.
36948         * doc/posix-functions/fmal.texi: Mention the new module and the various
36949         bugs.
36951         Tests for module 'fmaf'.
36952         * modules/fmaf-tests: New file.
36953         * tests/test-fmaf1.c: New file.
36954         * tests/test-fmaf2.c: New file.
36956         New module 'fmaf'.
36957         * lib/math.in.h (fmaf): New declaration.
36958         * lib/fmaf.c: New file.
36959         * m4/fmaf.m4: New file.
36960         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
36961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
36962         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
36963         REPLACE_FMAF.
36964         * modules/fmaf: New file.
36965         * doc/posix-functions/fmaf.texi: Mention the new module and the various
36966         bugs.
36968         Tests for module 'fma'.
36969         * modules/fma-tests: New file.
36970         * tests/test-fma1.c: New file.
36971         * tests/test-fma1.h: New file.
36972         * tests/test-fma2.c: New file.
36973         * tests/test-fma2.h: New file.
36975         New module 'fma'.
36976         * lib/math.in.h (fma): New declaration.
36977         * lib/fma.c: New file.
36978         * m4/fma.m4: New file.
36979         * m4/fegetround.m4: New file.
36980         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
36981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
36982         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
36983         REPLACE_FMA.
36984         * modules/fma: New file.
36985         * doc/posix-functions/fma.texi: Mention the new module and the various
36986         bugs.
36988         Extend gl_MATHFUNC.
36989         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
36990         Support 'void' as argument type.
36991         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
36993 2011-11-05  Jim Meyering  <meyering@redhat.com>
36995         maint.mk: also prohibit inclusion of dirent.h without use
36996         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
36998 2011-11-05  Bruno Haible  <bruno@clisp.org>
37000         ldexpl tests: Avoid test failure on MSVC 9.
37001         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
37002         value. Needed in order to enforce the conversion from a value greater
37003         than LDBL_MAX to Infinity.
37005 2011-11-05  Bruno Haible  <bruno@clisp.org>
37007         New modules 'at-internal', 'openat-h', split off from module 'openat'.
37008         * modules/at-internal: New file, extracted from modules/openat.
37009         * modules/openat-h: New file.
37010         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
37011         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
37012         * modules/openat (Description): Add reference to POSIX function.
37013         (Files): Remove lib/openat.h, lib/openat-proc.c.
37014         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
37015         intprops, unistd.
37016         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
37017         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
37018         gl_FCNTL_MODULE_INDICATOR.
37019         (Include): Remove unistd.h, openat.h.
37020         * modules/areadlinkat (Files): Add lib/at-func.c.
37021         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37022         openat-die, openat-h, save-cwd.
37023         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
37024         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37025         openat-die, openat-h, save-cwd, unistd.
37026         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
37027         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37028         openat-h, save-cwd. Remove fcntl-h, openat.
37029         * modules/fchmodat (Files): Remove lib/openat.h.
37030         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37031         openat, stdbool, unistd.
37032         * modules/fchownat (Files): Remove lib/openat.h.
37033         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37034         openat, stdbool, sys_stat.
37035         * modules/fdopendir (Files): Remove lib/openat-priv.h,
37036         lib/openat-proc.c.
37037         (Depends-on): Add at-internal.
37038         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
37039         * modules/fstatat (Files): Remove lib/openat.h.
37040         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37041         stdbool, unistd.
37042         * modules/fts (Depends-on): Add openat-h.
37043         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
37044         openat.
37045         * modules/mkdirat (Files): Remove lib/openat.h.
37046         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
37047         openat, stdbool, sys_stat.
37048         * modules/mkfifoat (Files): Add lib/at-func.c.
37049         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37050         openat-h, save-cwd. Remove fcntl-h, openat.
37051         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
37052         * modules/readlinkat (Files): Add lib/at-func.c.
37053         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37054         openat-h, save-cwd. Remove fcntl-h, openat.
37055         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
37056         openat.
37057         * modules/selinux-at (Files): Add lib/at-func.c.
37058         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
37059         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
37060         * modules/symlinkat (Files): Add lib/at-func.c.
37061         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
37062         openat-h, save-cwd. Remove fcntl-h, openat.
37063         * modules/unlinkat (Files): Remove lib/openat.h.
37064         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
37065         stdbool.
37066         * modules/utimensat (Files): Add lib/at-func.c.
37067         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
37068         openat-die, openat-h, save-cwd.
37069         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
37070         * modules/fdutimensat-tests (Depends-on): Add openat.
37071         * modules/fstatat-tests (Depends-on): Add openat-h.
37072         * modules/readlinkat-tests (Depends-on): Add openat.
37073         * modules/symlinkat-tests (Depends-on): Add openat.
37075 2011-11-05  Bruno Haible  <bruno@clisp.org>
37077         openat: Include <stdbool.h>.
37078         * lib/openat.c: Include <stdbool.h>.
37080 2011-11-04  Bruno Haible  <bruno@clisp.org>
37082         fchownat, renameat, unlinkat: Fix dependencies.
37083         * modules/fchownat (Depends-on): Add fstatat.
37084         * modules/renameat (Depends-on): Likewise.
37085         * modules/unlinkat (Depends-on): Likewise.
37087 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
37089         openat: remove direct dependency on dirent
37090         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
37091         and hasn't been needed ever since fdopendir was split into its own
37092         module on 2009-08-31.
37093         * modules/openat (Depends-on): Remove dirent.
37095 2011-11-04  Bruno Haible  <bruno@clisp.org>
37097         renameat: Optimize code size.
37098         * modules/renameat (configure.ac): Don't compile at-func2.c if
37099         REPLACE_RENAMEAT is 1.
37101 2011-11-04  Bruno Haible  <bruno@clisp.org>
37103         openat tests: Fix file list.
37104         * modules/openat-tests (Files): Add tests/test-open.h.
37106 2011-11-04  Bruno Haible  <bruno@clisp.org>
37108         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
37109         * modules/fchmodat (Depends-on): Add openat-die.
37110         * modules/fchownat (Depends-on): Likewise.
37111         * modules/linkat (Depends-on): Likewise.
37112         * modules/renameat (Depends-on): Likewise.
37113         * modules/openat (Depends-on): Add dirent.
37115 2011-11-04  Jim Meyering  <meyering@redhat.com>
37117         at-func*.c: fix comments
37118         * lib/at-func2.c: Correct/improve first-line comment.
37119         * lib/at-func.c: Correct grammar in first-line comment.
37121 2011-11-04  Bruno Haible  <bruno@clisp.org>
37123         New module 'mkdirat', split off from module 'openat'.
37124         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
37125         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
37126         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
37127         * modules/mkdirat: New file, extracted from modules/openat.
37128         * modules/openat (Files): Remove lib/mkdirat.c.
37129         (Depends-on): Remove mkdir.
37130         (configure.ac): Remove AC_LIBOBJ of mkdirat.
37131         (Include): Remove <sys/stat.h>.
37132         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
37133         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
37134         tests/test-mkdir.h.
37135         (Depends-on): Remove ignore-value.
37136         (Makefile.am): Remove rules for test-mkdirat.
37137         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
37138         of module 'openat'.
37139         * NEWS: Mention the change.
37141 2011-11-04  Bruno Haible  <bruno@clisp.org>
37143         closedir: Avoid warning on mingw.
37144         * lib/closedir.c: Include <unistd.h>.
37146 2011-11-04  Bruno Haible  <bruno@clisp.org>
37148         New module 'fstatat', split off from module 'openat'.
37149         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
37150         defined.
37151         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
37152         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
37153         gl_FUNC_FSTATAT.
37154         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
37155         * modules/fstatat: New file, extracted from modules/openat.
37156         * modules/openat (Files): Remove lib/fstatat.c.
37157         (Depends-on): Remove lstat.
37158         (configure.ac): Remove AC_LIBOBJ of fstatat.
37159         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
37160         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
37161         tests/test-lstat.h, tests/test-stat.h.
37162         (Depends-on): Remove getcwd-lgpl.
37163         (Makefile.am): Remove rules for test-fstatat.
37164         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
37165         of module 'openat'.
37166         * NEWS: Mention the change.
37167         * modules/getcwd (Depends-on): Add fstatat.
37168         * modules/linkat (Depends-on): Likewise.
37169         * modules/mkfifoat-tests (Depends-on): Likewise.
37170         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
37172 2011-11-03  Bruno Haible  <bruno@clisp.org>
37174         New module 'unlinkat', split off from module 'openat'.
37175         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
37176         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
37177         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
37178         * modules/unlinkat: New file, extracted from modules/openat. Correct
37179         the dependency conditions.
37180         * modules/openat (Files): Remove lib/unlinkat.c.
37181         (Depends-on): Remove rmdir, unlink.
37182         (configure.ac): Remove AC_LIBOBJ of unlinkat.
37183         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
37184         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
37185         tests/test-rmdir.h, tests/test-unlink.h.
37186         (Depends-on): Remove unlinkdir.
37187         (Makefile.am): Remove rules for test-unlinkat.
37188         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
37189         of module 'openat'.
37190         * NEWS: Mention the change.
37191         * modules/linkat-tests (Depends-on): Add unlinkat.
37192         * modules/mkfifoat-tests (Depends-on): Likewise.
37193         * modules/readlinkat-tests (Depends-on): Likewise.
37195 2011-11-02  Bruno Haible  <bruno@clisp.org>
37197         New module 'fchmodat', split off from module 'openat'.
37198         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
37199         defined.
37200         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
37201         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
37202         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
37203         * modules/fchmodat: New file, extracted from modules/openat.
37204         * modules/openat (Files): Remove lib/fchmodat.c.
37205         (configure.ac): Remove AC_LIBOBJ of fchmodat.
37206         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
37207         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
37208         (Makefile.am): Remove rules for test-fchmodat.
37209         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
37210         of module 'openat'.
37211         * NEWS: Mention the change.
37213 2011-11-02  Jim Meyering  <meyering@redhat.com>
37215         putenv: indent #definition of "environ" to placate cppi
37216         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
37218         gitlog-to-changelog: provide a ChangeLog-repair mechanism
37219         Git logs are often treated as immutable, because editing them
37220         changes the SHA1 checksums of all descendants.  Thus, errors in
37221         git logs tend to stay there forever.  However, when we generate
37222         a ChangeLog file -- typically for distribution -- from that git log,
37223         we can actually make corrections in the generated file.  The key
37224         lies in recording in machine-readable/applicable form the desired
37225         corrections.  See --help for description and an example.
37226         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
37227         (usage): Describe it; alphabetize option descriptions.
37228         (main): Honor the new option, carefully.
37230 2011-11-01  Jim Meyering  <meyering@redhat.com>
37232         gitlog-to-changelog: avoid an infloop
37233         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
37234         that ends up being empty.
37236 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37238         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
37239         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
37240         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
37241         contains (possibly-quoted) backslashes.  This should avoid
37242         all-too-common shell bugs if COMPLICATED contains backslashes in
37243         the "wrong" places.  Reported by David Evans in
37244         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
37245         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
37246         because we want ASCII ranges.  Is there some reason we don't use
37247         the C locale everywhere in this script?
37248         (func_module, top level): Avoid unwanted pathname expansion when
37249         $repo_url_prefix or $repo_url_suffix_repl contain shell
37250         metacharacters like '?' and '*'.
37252 2011-11-01  Bruno Haible  <bruno@clisp.org>
37254         fchownat: Improve description.
37255         * modules/fchownat (Description): Add link to function.
37257 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37259         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
37260         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
37261         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
37262         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
37264 2011-11-01  Bruno Haible  <bruno@clisp.org>
37266         alignof: Avoid collision with stdalign module.
37267         * lib/alignof.h (alignof): Remove macro.
37268         * NEWS: Mention the change.
37269         Reported by Paul Eggert.
37271 2011-11-01  Bruno Haible  <bruno@clisp.org>
37273         New module 'fchownat', split off from module 'openat'.
37274         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
37275         defined.
37276         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
37277         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
37278         invoke gl_FUNC_FCHOWNAT.
37279         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
37280         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
37281         * modules/fchownat: New file, extracted from modules/openat.
37282         * modules/openat (Files): Remove lib/fchownat.c.
37283         (Depends-on): Remove lchown.
37284         (configure.ac): Remove AC_LIBOBJ of fchownat.
37285         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
37286         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
37287         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
37288         (Depends-on): Remove mgetgroups, usleep, stat-time.
37289         (configure.ac): Remove test for getegid.
37290         (Makefile.am): Remove rules for test-fchownat.
37291         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
37292         of module 'openat'.
37293         * NEWS: Mention the change.
37295 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37297         stdalign: port better to MSVC and to Sun C 5.11
37298         This fixes some of the problems reported by Bruno Haible in
37299         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
37300         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
37301         shortcomings of MSVC and of Sun C 5.11.
37302         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
37303         around __declspec arg.
37304         * modules/stdalign-tests (Files): Add tests/macros.h.
37305         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
37306         Include macros.h, for ASSERT.
37307         (DECLARE_ALIGNED): Remove.
37308         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
37309         to catch bug), and to 1 if not (simplifies the rest of the code).
37310         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
37311         (CHECK_AUTO): Remove.
37312         (CHECK_ALIGNED): Check only the alignment of the static vars,
37313         since auto var alignment isn't supported by Sun C 5.11.
37314         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
37315         ASSERT failures are easier to diagnose.
37317 2011-10-31  Bruno Haible  <bruno@clisp.org>
37319         doc about some IRIX 5.3 problems.
37320         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
37321         on IRIX 5.3.
37322         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
37323         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
37324         5.3.
37325         * doc/posix-functions/grantpt.texi: Likewise.
37326         * doc/posix-functions/unlockpt.texi: Likewise.
37327         * doc/posix-functions/lgamma.texi: Likewise.
37328         * doc/posix-functions/nextafter.texi: Likewise.
37329         * doc/posix-functions/remainder.texi: Likewise.
37330         * doc/posix-functions/select.texi: Mention misplaced declaration on
37331         IRIX 5.3.
37332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37334 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
37336         gitlog-to-changelog: fix git-log invocation.
37337         git-log mishandles date strings before 1970-01-01 UTC, and there is
37338         no use to specify --since=1970-01-01 by default anyway.
37339         * build-aux/gitlog-to-changelog: By default, when no --since option
37340         was given, do not specify explicit --since option to git-log.
37342 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
37344         gitlog-to-changelog: new option --append-dot.
37345         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
37346         first non-blank line of each commit message terminated with a dot.
37348 2011-10-30  Bruno Haible  <bruno@clisp.org>
37350         ffsl, ffsll: Avoid compilation error due to 'restrict'.
37351         * lib/ffsl.h: Include <config.h>.
37352         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
37354 2011-10-30  Jim Meyering  <meyering@redhat.com>
37356         GNUmakefile: reenable "make syntax-check" for most projects
37357         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
37358         build-aux variable", "syntax-check" would do nothing but succeed with
37359         the "No version control files detected..." diagnostic (unless you
37360         happened to override _build-aux via cfg.mk).
37361         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
37362         to precede inclusion of maint.mk.  Otherwise, these variables would
37363         be used undefined in any project that does not override the default.
37365 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
37367         gitlog-to-changelog: treat a message with only blank lines as empty.
37368         * build-aux/gitlog-to-changelog: Move the code that removes leading and
37369         trailing blank lines before the code that issues a warning about an
37370         empty commit message.
37372 2011-10-30  Jim Meyering  <meyering@redhat.com>
37374         test-parse-datetime.c: avoid new DST-related false positive test failure
37375         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
37376         based on the time/date we'll convert, not the current time.
37377         Otherwise, the moment we cross a DST boundary like today's in
37378         Europe, (CEST to CET), that offset ends up being one hour off.
37380 2011-10-27  Bruno Haible  <bruno@clisp.org>
37382         fstat: Tweak documentation.
37383         * modules/fstat (Description): More precise description.
37385 2011-10-27  Bruno Haible  <bruno@clisp.org>
37387         Update documentation regarding 'largefile' module.
37388         * doc/posix-functions/fstat.texi: Tweak wording.
37389         * doc/posix-functions/opendir.texi: Mention that the module fixes the
37390         problems with huge directories and/or small ino_t types.
37391         * doc/posix-functions/readdir.texi: Likewise.
37392         * doc/posix-functions/rewinddir.texi: Likewise.
37394 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
37396         maint.mk: don't maintain a second build-aux variable.
37397         * maint.mk (build_aux): Removed.  The maintainer-makefile module
37398         depends on GNUmakefile, which already maintains a cfg.mk
37399         overridable $(_build-aux) for projects with a non-standard
37400         build-aux directory location, although without the $(srcdir)
37401         prefix.  Use that variable consistently instead of introducing a
37402         second one.  Adjust all call sites.
37404 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37406         Add stdalign module and use it in other modules.
37407         This is based on a previous proposal by Bruno Haible
37408         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
37410         stdalign: new module
37411         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
37412         * modules/stdalign: New files.
37413         * MODULES.html.sh (c1x_core_properties): Add stdalign.
37414         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
37416         stdalign-tests: new module
37417         * modules/stdalign-tests, tests/test-stdalign.c: New files.
37419         argp: use stdalign
37420         * lib/argp-parse.c: Include <stdalign.h>.
37421         (alignof): Remove.
37422         * modules/argp (Depends-on): Add stdalign.
37424         crypto libraries: use stdalign
37425         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
37426         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
37427         Do not include <stdlib.h> twice, in md4.c.
37428         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
37429         because we are accessing a pointer's bit-pattern, not a size.
37430         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
37431         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
37432         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
37433         * modules/crypto/sha512: Likewise.
37435         sys_socket: use stdalign, not alignof
37436         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
37437         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
37439 2011-10-27  Bruno Haible  <bruno@clisp.org>
37441         raise test: Avoid a test failure on Linux/MIPS.
37442         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
37443         because 99 is a valid signal on Linux/MIPS.
37445 2011-10-27  Bruno Haible  <bruno@clisp.org>
37447         nonblocking tests: Fix test failure on Linux/MIPS.
37448         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
37449         Set to 270000.
37451 2011-10-27  Bruno Haible  <bruno@clisp.org>
37453         utimensat: Work around problem on Linux/hppa.
37454         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
37455         values.
37456         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
37458 2011-10-25  Jim Meyering  <meyering@redhat.com>
37460         maint.mk: fix a bug in sc_prohibit_stddef_without_use
37461         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
37462         after symbols like NULL, size_t, etc.
37463         Reported by Alfred M. Szmidt.
37465         maint.mk: exempt ENODATA from a syntax-check rule
37466         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
37467         from the sc_prohibit_always-defined_macros syntax-check rule.
37468         Add a comment.  See this for more details:
37469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
37471 2011-10-23  Jim Meyering  <meyering@redhat.com>
37473         fts: close parent dir FD before returning from post-traversal fts_read
37474         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
37475         unlink A, even though an FD open on A remained.  This is suboptimal
37476         (holding a file descriptor open longer than needed), but otherwise not
37477         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
37478         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
37479         that represents a real problem: it causes the removal of A to fail
37480         with e.g., "rm: cannot remove `A': Device or resource busy"
37482         fts visits each directory twice and keeps a cache (fts_fd_ring) of
37483         directory file descriptors.  After completing the final, FTS_DP,
37484         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
37485         cache, but then proceeded to add a new FD to it via the subsequent
37486         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
37487         final file descriptor would be closed only via fts_close's call to
37488         fd_ring_clear.  Now, it is usually closed earlier, via the final
37489         FTS_DP-returning fts_read call.
37490         * lib/fts.c (restore_initial_cwd): New function, converted from
37491         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
37492         Update callers.
37493         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
37494         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
37496 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
37497             Bruno Haible  <bruno@clisp.org>
37498             Jim Meyering  <jim@meyering.net>
37500         readme-release: improve safety of release prep instructions.
37501         * README-release: Don't git pull all branches when only master
37502         is needed for the release process.
37503         Run make maintainer-clean before changing trees and merging.
37504         Don't try to run ./configure right after git pull in case files
37505         that influence the bootstrap process have changed, move the
37506         ./configure step to after running ./bootstrap.
37507         Don't bootstrap "one last time"... it's the first time!
37509 2011-10-22  Bruno Haible  <bruno@clisp.org>
37511         errno, strerror-override: Support for MSVC 10.
37512         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
37513         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
37514         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
37515         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
37516         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
37517         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
37518         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
37519         Assign values compatible with MSVC 10.
37520         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
37521         New macros.
37522         (GNULIB_defined_EWINSOCK): New macro.
37523         * lib/strerror-override.c (strerror_override): Update accordingly.
37524         * lib/strerror-override.h: Likewise.
37525         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
37526         longer equal to the corresponding errno value.
37527         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37529 2011-10-22  Bruno Haible  <bruno@clisp.org>
37531         perror: Recognize when test program crashes.
37532         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
37533         strerror, set gl_cv_func_perror_works to no.
37534         Reported by Daniel Richard G. <skunk@iskunk.org>.
37536         perror: Fix indentation.
37537         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
37539 2011-10-22  Bruno Haible  <bruno@clisp.org>
37541         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
37542         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
37543         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
37544         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
37545         functions, not as a macro.
37546         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
37547         macros.
37548         (isfinite, isinf, isnan, signbit): Check overloaded functions and
37549         absence of macro.
37550         Suggested by Eric Blake.
37551         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37553 2011-10-21  Bruno Haible  <bruno@clisp.org>
37555         relocatable-prog-wrapper: Don't leave object files behind.
37556         * build-aux/install-reloc: Re-synchronize list of .o files to be
37557         removed with list of compilation units.
37559 2011-10-20  Bruno Haible  <bruno@clisp.org>
37561         openpty, posix_openpt: Remove code duplication.
37562         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
37563         * lib/openpty.c: Include <stdlib.h>.
37564         (openpty): Use posix_openpt on all platforms except IRIX.
37565         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
37567 2011-10-20  Bruno Haible  <bruno@clisp.org>
37569         unlockpt: Detect invalid argument.
37570         * lib/unlockpt.c: Include <fcntl.h>.
37571         (unlockpt): Check whether fd is valid, using fcntl().
37572         * modules/unlockpt (Depends-on): Add fcntl-h.
37574 2011-10-20  Bruno Haible  <bruno@clisp.org>
37576         openpty: Avoid compilation error on AIX 6.1.
37577         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
37579 2011-10-20  Bruno Haible  <bruno@clisp.org>
37581         posix_openpt: Support for OpenBSD.
37582         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
37583         (posix_openpt) [OpenBSD]: New code.
37584         * lib/grantpt.c: Include <fcntl.h>.
37585         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
37586         * modules/grantpt (Depends-on): Add fcntl-h.
37588 2011-10-20  Bruno Haible  <bruno@clisp.org>
37590         posix_openpt test: Coding style.
37591         * tests/test-posix_openpt.c: Use GNU coding style.
37593 2011-10-20  Bruno Haible  <bruno@clisp.org>
37595         grantpt: Support --avoid=pt_chown.
37596         * modules/grantpt (Files): Add lib/pty-private.h.
37598 2011-10-20  Bruno Haible  <bruno@clisp.org>
37600         posix_openpt: Fix autoconf macro.
37601         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
37602         unneeded check for _getpty.
37604 2011-10-20  Bruno Haible  <bruno@clisp.org>
37606         openpty: Update comments.
37607         * lib/openpty.c: Add comments about Minix.
37609 2011-10-19  Eric Blake  <eblake@redhat.com>
37611         openpty: relax license
37612         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
37614         pt_chown: use configmake to simplify build
37615         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
37617         ptsname and others: relax license
37618         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
37619         * modules/unlockpt (License): Likewise.
37620         * modules/pt_chown (License): Likewise.
37621         * modules/ptsname (License): Likewise.
37622         * modules/ttyname_r (License): Likewise.
37624 2011-10-19  Jim Meyering  <meyering@redhat.com>
37626         posix_openpt: remove spurious #endif
37627         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
37629 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
37631         maint.mk: Respect $(build_aux) in web-manual rule.
37632         * top/maint.mk (web-manual): Find gen-announce script in user's
37633         $(build_aux) directory instead of hard-coding 'build-aux'.
37635 2011-10-19  Bruno Haible  <bruno@clisp.org>
37637         posix_openpt: Fix compilation error.
37638         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
37639         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
37640         Mention the openpty module as an alternative.
37642 2011-10-19  Bruno Haible  <bruno@clisp.org>
37644         Support for old NeXTstep 3.3 frexp().
37645         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
37646         execution time of the test to 5 seconds.
37647         Reported by Daniel Richard G. <skunk@iskunk.org>.
37649 2011-10-19  Bruno Haible  <bruno@clisp.org>
37651         Support for old NeXTstep 3.3 sed.
37652         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
37653         part, use /.../, not \|...|. Escape periods in the header file name.
37654         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
37655         Reported by Daniel Richard G. <skunk@iskunk.org>.
37657 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
37659         Support for old NeXTstep 3.3 gcc.
37660         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
37661         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
37662         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
37663         * lib/spawn.in.h (_Restrict_arr_): Likewise.
37664         * lib/regex.h (_Restrict_arr_): Likewise.
37665         * lib/regex_internal.h (re_token_t): Likewise.
37666         * lib/regexec.c (check_node_accept_bytes): Likewise.
37667         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
37669 2011-10-18  Eric Blake  <eblake@redhat.com>
37671         posix_openpt: new module
37672         * modules/posix_openpt: New module.
37673         * m4/posix_openpt.m4: New file.
37674         * lib/posix_openpt.c: Likewise.
37675         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
37676         (gl_STDLIB_H_DEFAULTS): Set defaults.
37677         * modules/stdlib (Makefile.am): Substitute macros.
37678         * lib/stdlib.in.h (posix_openpt): Declare.
37679         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
37680         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
37681         * modules/posix_openpt-tests: New test module.
37682         * tests/test-posix_openpt.c: New test.
37684 2011-10-15  Bruno Haible  <bruno@clisp.org>
37686         xstrtoll: Fix compilation failure.
37687         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
37688         from lib/strtol.c.
37689         * doc/posix-headers/limits.texi: Mention missing numerical limits on
37690         some platforms.
37691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37693 2011-10-15  Bruno Haible  <bruno@clisp.org>
37695         vasnprintf: Optimize bit search operation.
37696         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
37697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
37698         gl_DOUBLE_EXPONENT_LOCATION.
37699         * modules/vasnprintf (Files): Add m4/exponentd.m4.
37700         * modules/unistdio/u8-vasnprintf (Files): Likewise.
37701         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
37702         * modules/unistdio/u16-vasnprintf (Files): Likewise.
37703         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
37704         * modules/unistdio/u32-vasnprintf (Files): Likewise.
37705         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
37706         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
37707         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
37709 2011-10-15  Bruno Haible  <bruno@clisp.org>
37711         vasnprintf: Fix comments.
37712         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
37714 2011-10-14  Bruno Haible  <bruno@clisp.org>
37716         Tests for module 'integer_length_ll'.
37717         * modules/integer_length_ll-tests: New file.
37718         * tests/test-integer_length_ll.c: New file.
37720         New module 'integer_length_ll'.
37721         * lib/integer_length_ll.c: New file.
37722         * modules/integer_length_ll: New file.
37724 2011-10-14  Bruno Haible  <bruno@clisp.org>
37726         Tests for module 'integer_length_l'.
37727         * modules/integer_length_l-tests: New file.
37728         * tests/test-integer_length_l.c: New file.
37730         New module 'integer_length_l'.
37731         * lib/integer_length_l.c: New file.
37732         * modules/integer_length_l: New file.
37734 2011-10-14  Bruno Haible  <bruno@clisp.org>
37736         Tests for module 'integer_length'.
37737         * modules/integer_length-tests: New file.
37738         * tests/test-integer_length.c: New file.
37740         New module 'integer_length'.
37741         * lib/integer_length.h: New file.
37742         * lib/integer_length.c: New file.
37743         * modules/integer_length: New file.
37745 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
37747         popen: Fix dependency conditions.
37748         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
37750 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
37752         perror: Fix autoconf test.
37753         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
37754         <stdlib.h> and <string.h>.
37756 2011-10-14  Bruno Haible  <bruno@clisp.org>
37758         ffsl: Optimize on 64-bit platforms.
37759         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
37760         unrolling.
37762 2011-10-13  Bruno Haible  <bruno@clisp.org>
37764         ffsl: Optimize on 32-bit platforms.
37765         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
37766         use ffs() without a loop.
37768         ffsl, ffsll: Optimize for GCC.
37769         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
37770         * lib/ffsl.c (GCC_BUILTIN): New macro.
37771         * lib/ffsll.c (GCC_BUILTIN): Likewise.
37773 2011-10-13  Bruno Haible  <bruno@clisp.org>
37775         ffs, bcopy, memset: Support symbol renaming via config.h.
37776         * lib/ffs.c: Include <config.h>.
37777         * lib/bcopy.c: Likewise.
37778         * lib/memset.c: Likewise.
37780 2011-10-10  Bruno Haible  <bruno@clisp.org>
37782         atanl: Simplify for platforms where 'long double' == 'double'.
37783         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37784         alternative implementation.
37785         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37786         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37787         * modules/atanl (Depends-on): Add atan. Update conditions.
37789 2011-10-10  Bruno Haible  <bruno@clisp.org>
37791         acosl: Simplify for platforms where 'long double' == 'double'.
37792         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37793         alternative implementation.
37794         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37795         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37796         * modules/acosl (Depends-on): Add acos. Update conditions.
37798 2011-10-10  Bruno Haible  <bruno@clisp.org>
37800         asinl: Simplify for platforms where 'long double' == 'double'.
37801         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37802         alternative implementation.
37803         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37804         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37805         * modules/asinl (Depends-on): Add asin. Update conditions.
37807 2011-10-10  Bruno Haible  <bruno@clisp.org>
37809         tanl: Simplify for platforms where 'long double' == 'double'.
37810         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
37811         implementation.
37812         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37813         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37814         * modules/tanl (Depends-on): Add tan. Update conditions.
37815         (configure.ac): Don't compile trigl.c if
37816         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37818 2011-10-10  Bruno Haible  <bruno@clisp.org>
37820         cosl: Simplify for platforms where 'long double' == 'double'.
37821         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
37822         implementation.
37823         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37824         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37825         * modules/cosl (Depends-on): Add cos. Update conditions.
37826         (configure.ac): Don't compile sincosl.c and trigl.c if
37827         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37829 2011-10-10  Bruno Haible  <bruno@clisp.org>
37831         sinl: Simplify for platforms where 'long double' == 'double'.
37832         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
37833         implementation.
37834         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37835         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37836         * modules/sinl (Depends-on): Add sin. Update conditions.
37837         (configure.ac): Don't compile sincosl.c and trigl.c if
37838         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37840 2011-10-10  Bruno Haible  <bruno@clisp.org>
37842         logl: Simplify for platforms where 'long double' == 'double'.
37843         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
37844         implementation.
37845         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37846         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37847         * modules/logl (Depends-on): Add log. Update conditions.
37849 2011-10-10  Bruno Haible  <bruno@clisp.org>
37851         expl: Simplify for platforms where 'long double' == 'double'.
37852         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
37853         implementation.
37854         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37855         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37856         * modules/expl (Depends-on): Add exp. Update conditions.
37858 2011-10-10  Bruno Haible  <bruno@clisp.org>
37860         sqrtl: Simplify for platforms where 'long double' == 'double'.
37861         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37862         alternative implementation.
37863         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37864         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37865         * modules/sqrtl (Depends-on): Update conditions.
37867 2011-10-10  Bruno Haible  <bruno@clisp.org>
37869         ldexpl: Simplify for platforms where 'long double' == 'double'.
37870         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37871         alternative implementation.
37872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37873         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37874         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
37876 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
37878         ffsll: set correct witness
37879         * modules/ffsll (configure.ac): Fix typo.
37881 2011-10-10  Bruno Haible  <bruno@clisp.org>
37883         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
37884         * lib/printf-frexpl.c: Include <config.h>.
37885         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37886         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
37887         second time.
37888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
37889         gl_LONG_DOUBLE_VS_DOUBLE.
37890         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
37891         conditions.
37893 2011-10-10  Bruno Haible  <bruno@clisp.org>
37895         frexpl: Simplify for platforms where 'long double' == 'double'.
37896         * lib/frexpl.c: Include <config.h>.
37897         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37898         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37899         time.
37900         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37901         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37902         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
37903         * modules/frexpl (Depends-on): Add frexp. Update conditions.
37904         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
37905         conditions.
37907 2011-10-10  Jim Meyering  <meyering@redhat.com>
37909         test-renameat: don't leave behind a temporary file
37910         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
37911           ERROR: files left in build directory after distclean:
37912           ./gltests/test-renameat.too
37913           make[1]: *** [distcleancheck] Error 1
37914         Reported by Tom G. Christensen.
37916 2011-10-09  Bruno Haible  <bruno@clisp.org>
37918         rint: Determine RINT_LIBM correctly on AIX 7.
37919         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
37920         directly, not only through a function pointer. Also accept an optional
37921         4th argument with extra code.
37922         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
37923         rintf() call by gcc when optimizing.
37925         mathfunc.m4: Refactor.
37926         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
37927         m4 variable.
37929 2011-10-09  Bruno Haible  <bruno@clisp.org>
37931         rintl: Simplify for platforms where 'long double' == 'double'.
37932         * lib/rintl.c: Include <config.h>.
37933         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37934         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37935         time.
37936         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37937         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37938         * modules/rintl (Depends-on): Add rint. Update conditions.
37940 2011-10-09  Bruno Haible  <bruno@clisp.org>
37942         roundl: Simplify for platforms where 'long double' == 'double'.
37943         * lib/roundl.c: Include <config.h>.
37944         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37945         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37946         time.
37947         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37948         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37949         * modules/roundl (Depends-on): Add round. Update conditions.
37951 2011-10-09  Bruno Haible  <bruno@clisp.org>
37953         truncl: Simplify for platforms where 'long double' == 'double'.
37954         * lib/truncl.c: Include <config.h>.
37955         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37956         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37957         time.
37958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37959         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37960         * modules/truncl (Depends-on): Add trunc. Update conditions.
37962 2011-10-09  Bruno Haible  <bruno@clisp.org>
37964         ceill: Simplify for platforms where 'long double' == 'double'.
37965         * lib/ceill.c: Include <config.h>.
37966         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37967         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37968         time.
37969         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37970         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37971         * modules/ceill (Depends-on): Add ceil. Update conditions.
37973 2011-10-09  Bruno Haible  <bruno@clisp.org>
37975         floorl: Simplify for platforms where 'long double' == 'double'.
37976         * lib/floorl.c: Include <config.h>.
37977         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
37978         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
37979         time.
37980         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37981         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37982         * modules/floorl (Depends-on): Add floor. Update conditions.
37984 2011-10-09  Bruno Haible  <bruno@clisp.org>
37986         rint: Fix ordering constraints.
37987         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
37988         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37989         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37991 2011-10-09  Bruno Haible  <bruno@clisp.org>
37993         copysignl: Simplify for platforms where 'long double' == 'double'.
37994         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
37995         alternative.
37996         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37997         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
37998         * modules/copysignl (Depends-on): Add copysign. Update conditions.
38000 2011-10-09  Bruno Haible  <bruno@clisp.org>
38002         Tests for module 'rintl'.
38003         * modules/rintl-tests: New file.
38004         * tests/test-rintl.c: New file.
38006         New module 'rintl'.
38007         * lib/math.in.h (rintl): New declaration.
38008         * lib/rintl.c: New file.
38009         * m4/rintl.m4: New file.
38010         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
38011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
38012         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
38013         * modules/rintl: New file.
38014         * tests/test-math-c++.cc: Check the declaration of rintl.
38015         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38016         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
38017         * doc/posix-functions/rintl.texi: Mention the new module.
38019 2011-10-09  Bruno Haible  <bruno@clisp.org>
38021         Tests for module 'rintf'.
38022         * modules/rintf-tests: New file.
38023         * tests/test-rintf.c: New file.
38025         New module 'rintf'.
38026         * lib/math.in.h (rintf): New declaration.
38027         * lib/rintf.c: New file.
38028         * m4/rintf.m4: New file.
38029         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
38030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
38031         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
38032         * modules/rintf: New file.
38033         * tests/test-math-c++.cc: Check the declaration of rintf.
38034         * doc/posix-functions/rintf.texi: Mention the new module.
38036 2011-10-09  Bruno Haible  <bruno@clisp.org>
38038         rint: Support for MSVC.
38039         * lib/math.in.h (rint): New declaration.
38040         * lib/rint.c: New file.
38041         * m4/rint.m4: New file.
38042         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
38043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
38044         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
38045         * modules/rint (Description): Fix.
38046         (Files): Add lib/rint.c, m4/rint.m4.
38047         (Depends-on): Add math.
38048         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
38049         gl_MATH_MODULE_INDICATOR.
38050         * tests/test-math-c++.cc: Check the declaration of rint.
38051         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38052         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
38053         * doc/posix-functions/rint.texi: Mention the replacement provided by
38054         the module.
38056         rint tests: More tests.
38057         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
38058         minus-zero.h, infinity.h, nan.h.
38059         (main): Skip the test if the current rounding mode is not standard. Add
38060         tests for negative numbers, minus zero, infinity, NaN.
38061         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
38062         tests/nan.h.
38063         (Depends-on): Add isnand-nolibm.
38065 2011-10-09  Bruno Haible  <bruno@clisp.org>
38067         Tests for module 'copysignl'.
38068         * modules/copysignl-tests: New file.
38069         * tests/test-copysignl.c: New file.
38071         New module 'copysignl'.
38072         * lib/math.in.h (copysignl): New declaration.
38073         * lib/copysignl.c: New file.
38074         * m4/copysignl.m4: New file.
38075         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
38076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
38077         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
38078         HAVE_COPYSIGNL.
38079         * modules/copysignl: New file.
38080         * tests/test-math-c++.cc: Check the declaration of copysignl.
38081         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
38082         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
38083         * doc/posix-functions/copysignl.texi: Mention the new module.
38085 2011-10-09  Bruno Haible  <bruno@clisp.org>
38087         Tests for module 'copysignf'.
38088         * modules/copysignf-tests: New file.
38089         * tests/test-copysignf.c: New file.
38091         New module 'copysignf'.
38092         * lib/math.in.h (copysignf): New declaration.
38093         * lib/copysignf.c: New file.
38094         * m4/copysignf.m4: New file.
38095         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
38096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
38097         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
38098         HAVE_COPYSIGNF.
38099         * modules/copysignf: New file.
38100         * tests/test-math-c++.cc: Check the declaration of copysignf.
38101         * doc/posix-functions/copysignf.texi: Mention the new module.
38103 2011-10-09  Bruno Haible  <bruno@clisp.org>
38105         Ensure that HAVE_* variables are set to 1 before they are set to 0.
38106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
38107         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
38108         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38109         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
38110         gl_SIGNAL_H_DEFAULTS.
38112 2011-10-09  Bruno Haible  <bruno@clisp.org>
38114         poll: Make macro safer.
38115         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
38116         ac_cv_header_poll_h is not set.
38118 2011-10-09  Bruno Haible  <bruno@clisp.org>
38120         copysign: Provide replacement.
38121         * lib/math.in.h (copysign): New declaration.
38122         * lib/copysign.c: New file.
38123         * m4/copysign.m4: New file.
38124         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
38125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
38126         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
38127         HAVE_COPYSIGN.
38128         * modules/copysign (Description): Clarify.
38129         (Files): Add lib/copysign.c, m4/copysign.m4.
38130         (Depends-on): Add math, signbit.
38131         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
38132         gl_MATH_MODULE_INDICATOR.
38133         * tests/test-math-c++.cc: Check the declaration of copysign.
38134         * doc/posix-functions/copysign.texi: Mention the effects of the module
38135         on Minix and MSVC.
38137 2011-10-09  Bruno Haible  <bruno@clisp.org>
38139         isinf: Ensure macro on AIX 5.1.
38140         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
38141         macro.
38142         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
38144 2011-10-09  Bruno Haible  <bruno@clisp.org>
38146         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
38147         * modules/snprintf-posix-tests (configure.ac): Require
38148         gl_LONG_DOUBLE_VS_DOUBLE.
38149         * modules/sprintf-posix-tests (configure.ac): Likewise.
38150         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
38151         * modules/vasprintf-posix-tests (configure.ac): Likewise.
38152         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
38153         * modules/vsprintf-posix-tests (configure.ac): Likewise.
38154         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
38155         tests on platforms where 'long double' is the same as 'double'.
38156         * tests/test-sprintf-posix.h (test_function): Likewise.
38157         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38158         * tests/test-vasprintf-posix.c (test_function): Likewise.
38160         *printf: Fix for platforms where 'long double' == 'double'.
38161         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
38162         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
38163         * modules/dprintf-posix (Files): Add m4/math_h.m4.
38164         * modules/fprintf-posix (Files): Likewise.
38165         * modules/obstack-printf-posix (Files): Likewise.
38166         * modules/snprintf-posix (Files): Likewise.
38167         * modules/sprintf-posix (Files): Likewise.
38168         * modules/vasnprintf (Files): Likewise.
38169         * modules/vasnprintf-posix (Files): Likewise.
38170         * modules/vasprintf-posix (Files): Likewise.
38171         * modules/vdprintf-posix (Files): Likewise.
38172         * modules/vfprintf-posix (Files): Likewise.
38173         * modules/vsnprintf-posix (Files): Likewise.
38174         * modules/vsprintf-posix (Files): Likewise.
38175         * modules/unistdio/u8-vasnprintf (Files): Likewise.
38176         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
38177         * modules/unistdio/u16-vasnprintf (Files): Likewise.
38178         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
38179         * modules/unistdio/u32-vasnprintf (Files): Likewise.
38180         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
38181         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
38183         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
38184         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
38185         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
38186         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
38187         'long double'.
38188         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
38190         isinf: Fix for platforms where 'long double' == 'double'.
38191         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38192         Don't blindly assume 80-bit 'long double'.
38194         isfinite: Fix for platforms where 'long double' == 'double'.
38195         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
38196         Don't blindly assume 80-bit 'long double'.
38198         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
38199         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
38200         * modules/isfinite-tests (configure.ac): Require
38201         gl_LONG_DOUBLE_VS_DOUBLE.
38202         * modules/isinf-tests (configure.ac): Likewise.
38203         * modules/isnan-tests (configure.ac): Likewise.
38204         * modules/isnanl-tests (configure.ac): Likewise.
38205         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
38206         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
38207         tests on platforms where 'long double' is the same as 'double'.
38208         * tests/test-isinf.c (test_isinfl): Likewise.
38209         * tests/test-isnan.c (test_long_double): Likewise.
38210         * tests/test-isnanl.h (main): Likewise.
38212 2011-10-08  Bruno Haible  <bruno@clisp.org>
38214         Tests for module 'tanhf'.
38215         * modules/tanhf-tests: New file.
38216         * tests/test-tanhf.c: New file.
38218         New module 'tanhf'.
38219         * lib/math.in.h (tanhf): New declaration.
38220         * lib/tanhf.c: New file.
38221         * m4/tanhf.m4: New file.
38222         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
38223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
38224         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
38225         * modules/tanhf: New file.
38226         * tests/test-math-c++.cc: Check the declaration of tanhf.
38227         * doc/posix-functions/tanhf.texi: Mention the new module.
38229         tanh: Use a .m4 file.
38230         * m4/tanh.m4: New file.
38231         * modules/tanh (Files): Add it.
38232         (configure.ac): Just invoke gl_FUNC_TANH.
38234 2011-10-08  Bruno Haible  <bruno@clisp.org>
38236         Tests for module 'coshf'.
38237         * modules/coshf-tests: New file.
38238         * tests/test-coshf.c: New file.
38240         New module 'coshf'.
38241         * lib/math.in.h (coshf): New declaration.
38242         * lib/coshf.c: New file.
38243         * m4/coshf.m4: New file.
38244         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
38245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
38246         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
38247         * modules/coshf: New file.
38248         * tests/test-math-c++.cc: Check the declaration of coshf.
38249         * doc/posix-functions/coshf.texi: Mention the new module.
38251         cosh: Use a .m4 file.
38252         * m4/cosh.m4: New file.
38253         * modules/cosh (Files): Add it.
38254         (configure.ac): Just invoke gl_FUNC_COSH.
38256 2011-10-08  Bruno Haible  <bruno@clisp.org>
38258         Tests for module 'sinhf'.
38259         * modules/sinhf-tests: New file.
38260         * tests/test-sinhf.c: New file.
38262         New module 'sinhf'.
38263         * lib/math.in.h (sinhf): New declaration.
38264         * lib/sinhf.c: New file.
38265         * m4/sinhf.m4: New file.
38266         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
38267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
38268         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
38269         * modules/sinhf: New file.
38270         * tests/test-math-c++.cc: Check the declaration of sinhf.
38271         * doc/posix-functions/sinhf.texi: Mention the new module.
38273         sinh: Use a .m4 file.
38274         * m4/sinh.m4: New file.
38275         * modules/sinh (Files): Add it.
38276         (configure.ac): Just invoke gl_FUNC_SINH.
38278 2011-10-08  Bruno Haible  <bruno@clisp.org>
38280         Tests for module 'atan2f'.
38281         * modules/atan2f-tests: New file.
38282         * tests/test-atan2f.c: New file.
38284         New module 'atan2f'.
38285         * lib/math.in.h (atan2f): New declaration.
38286         * lib/atan2f.c: New file.
38287         * m4/atan2f.m4: New file.
38288         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
38289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
38290         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
38291         * modules/atan2f: New file.
38292         * tests/test-math-c++.cc: Check the declaration of atan2f.
38293         * doc/posix-functions/atan2f.texi: Mention the new module.
38295         atan2: Use a .m4 file.
38296         * m4/atan2.m4: New file.
38297         * modules/atan2 (Files): Add it.
38298         (configure.ac): Just invoke gl_FUNC_ATAN2.
38300 2011-10-08  Bruno Haible  <bruno@clisp.org>
38302         Tests for module 'atanf'.
38303         * modules/atanf-tests: New file.
38304         * tests/test-atanf.c: New file.
38306         New module 'atanf'.
38307         * lib/math.in.h (atanf): New declaration.
38308         * lib/atanf.c: New file.
38309         * m4/atanf.m4: New file.
38310         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
38311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
38312         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
38313         * modules/atanf: New file.
38314         * tests/test-math-c++.cc: Check the declaration of atanf.
38315         * doc/posix-functions/atanf.texi: Mention the new module.
38317         atan: Use a .m4 file.
38318         * m4/atan.m4: New file.
38319         * modules/atan (Files): Add it.
38320         (configure.ac): Just invoke gl_FUNC_ATAN.
38322 2011-10-08  Bruno Haible  <bruno@clisp.org>
38324         Tests for module 'acosf'.
38325         * modules/acosf-tests: New file.
38326         * tests/test-acosf.c: New file.
38328         New module 'acosf'.
38329         * lib/math.in.h (acosf): New declaration.
38330         * lib/acosf.c: New file.
38331         * m4/acosf.m4: New file.
38332         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
38333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
38334         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
38335         * modules/acosf: New file.
38336         * tests/test-math-c++.cc: Check the declaration of acosf.
38337         * doc/posix-functions/acosf.texi: Mention the new module.
38339         acos: Use a .m4 file.
38340         * m4/acos.m4: New file.
38341         * modules/acos (Files): Add it.
38342         (configure.ac): Just invoke gl_FUNC_ACOS.
38344 2011-10-08  Bruno Haible  <bruno@clisp.org>
38346         Tests for module 'asinf'.
38347         * modules/asinf-tests: New file.
38348         * tests/test-asinf.c: New file.
38350         New module 'asinf'.
38351         * lib/math.in.h (asinf): New declaration.
38352         * lib/asinf.c: New file.
38353         * m4/asinf.m4: New file.
38354         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
38355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
38356         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
38357         * modules/asinf: New file.
38358         * tests/test-math-c++.cc: Check the declaration of asinf.
38359         * doc/posix-functions/asinf.texi: Mention the new module.
38361         asin: Use a .m4 file.
38362         * m4/asin.m4: New file.
38363         * modules/asin (Files): Add it.
38364         (configure.ac): Just invoke gl_FUNC_ASIN.
38366 2011-10-08  Bruno Haible  <bruno@clisp.org>
38368         Tests for module 'tanf'.
38369         * modules/tanf-tests: New file.
38370         * tests/test-tanf.c: New file.
38372         New module 'tanf'.
38373         * lib/math.in.h (tanf): New declaration.
38374         * lib/tanf.c: New file.
38375         * m4/tanf.m4: New file.
38376         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
38377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
38378         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
38379         * modules/tanf: New file.
38380         * tests/test-math-c++.cc: Check the declaration of tanf.
38381         * doc/posix-functions/tanf.texi: Mention the new module.
38383         tan: Use a .m4 file.
38384         * m4/tan.m4: New file.
38385         * modules/tan (Files): Add it.
38386         (configure.ac): Just invoke gl_FUNC_TAN.
38388 2011-10-08  Bruno Haible  <bruno@clisp.org>
38390         Tests for module 'cosf'.
38391         * modules/cosf-tests: New file.
38392         * tests/test-cosf.c: New file.
38394         New module 'cosf'.
38395         * lib/math.in.h (cosf): New declaration.
38396         * lib/cosf.c: New file.
38397         * m4/cosf.m4: New file.
38398         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
38399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
38400         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
38401         * modules/cosf: New file.
38402         * tests/test-math-c++.cc: Check the declaration of cosf.
38403         * doc/posix-functions/cosf.texi: Mention the new module.
38405         cos: Use a .m4 file.
38406         * m4/cos.m4: New file.
38407         * modules/cos (Files): Add it.
38408         (configure.ac): Just invoke gl_FUNC_COS.
38410 2011-10-08  Bruno Haible  <bruno@clisp.org>
38412         Tests for module 'sinf'.
38413         * modules/sinf-tests: New file.
38414         * tests/test-sinf.c: New file.
38416         New module 'sinf'.
38417         * lib/math.in.h (sinf): New declaration.
38418         * lib/sinf.c: New file.
38419         * m4/sinf.m4: New file.
38420         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
38421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
38422         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
38423         * modules/sinf: New file.
38424         * tests/test-math-c++.cc: Check the declaration of sinf.
38425         * doc/posix-functions/sinf.texi: Mention the new module.
38427         sin: Use a .m4 file.
38428         * m4/sin.m4: New file.
38429         * modules/sin (Files): Add it.
38430         (configure.ac): Just invoke gl_FUNC_SIN.
38432 2011-10-08  Bruno Haible  <bruno@clisp.org>
38434         Tests for module 'powf'.
38435         * modules/powf-tests: New file.
38436         * tests/test-powf.c: New file.
38438         New module 'powf'.
38439         * lib/math.in.h (powf): New declaration.
38440         * lib/powf.c: New file.
38441         * m4/powf.m4: New file.
38442         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
38443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
38444         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
38445         * modules/powf: New file.
38446         * tests/test-math-c++.cc: Check the declaration of powf.
38447         * doc/posix-functions/powf.texi: Mention the new module.
38449         pow: Use a .m4 file.
38450         * m4/pow.m4: New file.
38451         * modules/pow (Files): Add it.
38452         (configure.ac): Just invoke gl_FUNC_POW.
38454 2011-10-08  Bruno Haible  <bruno@clisp.org>
38456         Tests for module 'log10f'.
38457         * modules/log10f-tests: New file.
38458         * tests/test-log10f.c: New file.
38460         New module 'log10f'.
38461         * lib/math.in.h (log10f): New declaration.
38462         * lib/log10f.c: New file.
38463         * m4/log10f.m4: New file.
38464         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
38465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
38466         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
38467         * modules/log10f: New file.
38468         * tests/test-math-c++.cc: Check the declaration of log10f.
38469         * doc/posix-functions/log10f.texi: Mention the new module.
38471         log10: Use a .m4 file.
38472         * m4/log10.m4: New file.
38473         * modules/log10 (Files): Add it.
38474         (configure.ac): Just invoke gl_FUNC_LOG10.
38476 2011-10-08  Bruno Haible  <bruno@clisp.org>
38478         Tests for module 'logf'.
38479         * modules/logf-tests: New file.
38480         * tests/test-logf.c: New file.
38482         New module 'logf'.
38483         * lib/math.in.h (logf): New declaration.
38484         * lib/logf.c: New file.
38485         * m4/logf.m4: New file.
38486         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
38487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
38488         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
38489         * modules/logf: New file.
38490         * tests/test-math-c++.cc: Check the declaration of logf.
38491         * doc/posix-functions/logf.texi: Mention the new module.
38493         log: Use a .m4 file.
38494         * m4/log.m4: New file.
38495         * modules/log (Files): Add it.
38496         (configure.ac): Just invoke gl_FUNC_LOG.
38498 2011-10-08  Bruno Haible  <bruno@clisp.org>
38500         Tests for module 'expf'.
38501         * modules/expf-tests: New file.
38502         * tests/test-expf.c: New file.
38504         New module 'expf'.
38505         * lib/math.in.h (expf): New declaration.
38506         * lib/expf.c: New file.
38507         * m4/expf.m4: New file.
38508         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
38509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
38510         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
38511         * modules/expf: New file.
38512         * tests/test-math-c++.cc: Check the declaration of expf.
38513         * doc/posix-functions/expf.texi: Mention the new module.
38515         exp: Use a .m4 file.
38516         * m4/exp.m4: New file.
38517         * modules/exp (Files): Add it.
38518         (configure.ac): Just invoke gl_FUNC_EXP.
38520 2011-10-08  Bruno Haible  <bruno@clisp.org>
38522         Tests for module 'sqrtf'.
38523         * modules/sqrtf-tests: New file.
38524         * tests/test-sqrtf.c: New file.
38526         New module 'sqrtf'.
38527         * lib/math.in.h (sqrtf): New declaration.
38528         * lib/sqrtf.c: New file.
38529         * m4/sqrtf.m4: New file.
38530         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
38531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
38532         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
38533         * modules/sqrtf: New file.
38534         * tests/test-math-c++.cc: Check the declaration of sqrtf.
38535         * doc/posix-functions/sqrtf.texi: Mention the new module.
38537 2011-10-08  Bruno Haible  <bruno@clisp.org>
38539         Tests: Avoid link failures w.r.t. libintl.
38540         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
38541         $(LIBINTL).
38542         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
38543         $(LIBINTL).
38544         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
38545         against $(LIBINTL).
38546         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
38547         $(LIBINTL).
38548         * modules/openat-tests (Makefile.am): Link test-fchmodat against
38549         $(LIBINTL).
38550         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
38552 2011-10-08  Bruno Haible  <bruno@clisp.org>
38554         pow tests: Defeat compiler optimizations.
38555         * tests/test-pow.c (main): Assign arguments to x and y before use.
38557 2011-10-08  Bruno Haible  <bruno@clisp.org>
38559         gnulib-tool: Improve last commit.
38560         * gnulib-tool (func_modules_transitive_closure): Simplify code.
38561         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
38562         ignore dependencies that are not among the modules list.
38564 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
38566         gnulib-tool: don't follow dependencies to avoided modules
38567         This fixes a bug that is related to the previous one.
38568         * gnulib-tool (func_modules_transitive_closure)
38569         (func_emit_autoconf_snippets):
38570         Check whether a dependency is acceptable before using it.
38571         (--extract-dependencies): Report an error if --avoid is also used,
38572         since this combination of options is not yet supported.
38574         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
38575         Problem reported by Peter Dyballa in
38576         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
38577         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
38578         when echoing "$condition".
38580 2011-10-07  Bruno Haible  <bruno@clisp.org>
38582         Fix documentation about math functions on MacOS X.
38583         * doc/posix-functions/exp2.texi: Don't say the function is missing on
38584         MacOS X 10.5.
38585         * doc/posix-functions/fdim.texi: Likewise.
38586         * doc/posix-functions/feclearexcept.texi: Likewise.
38587         * doc/posix-functions/fegetenv.texi: Likewise.
38588         * doc/posix-functions/fegetround.texi: Likewise.
38589         * doc/posix-functions/feholdexcept.texi: Likewise.
38590         * doc/posix-functions/feraiseexcept.texi: Likewise.
38591         * doc/posix-functions/fesetenv.texi: Likewise.
38592         * doc/posix-functions/fesetround.texi: Likewise.
38593         * doc/posix-functions/fetestexcept.texi: Likewise.
38594         * doc/posix-functions/feupdateenv.texi: Likewise.
38595         * doc/posix-functions/fmax.texi: Likewise.
38596         * doc/posix-functions/fmin.texi: Likewise.
38597         * doc/posix-functions/log2.texi: Likewise.
38598         * doc/posix-functions/modff.texi: Likewise.
38599         * doc/posix-functions/nan.texi: Likewise.
38600         * doc/posix-functions/nanf.texi: Likewise.
38601         * doc/posix-functions/nextafterf.texi: Likewise.
38602         * doc/posix-functions/remquo.texi: Likewise.
38604 2011-10-07  Bruno Haible  <bruno@clisp.org>
38606         modff: Drop assumption about library that defines modff.
38607         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
38608         AC_CHECK_FUNCS.
38609         * modules/modff (Files): Add m4/mathfunc.m4.
38611 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
38613         raise tests: Avoid a GCC warning.
38614         * tests/test-raise.c (handler): Use _Noreturn.
38616 2011-10-07  Bruno Haible  <bruno@clisp.org>
38618         Tests for module 'ldexpf'.
38619         * modules/ldexpf-tests: New file.
38620         * tests/test-ldexpf.c: New file.
38622         New module 'ldexpf'.
38623         * lib/math.in.h (ldexpf): New declaration.
38624         * lib/ldexpf.c: New file.
38625         * m4/ldexpf.m4: New file.
38626         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
38627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
38628         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
38629         * modules/ldexpf: New file.
38630         * tests/test-math-c++.cc: Check the declaration of ldexpf.
38631         * doc/posix-functions/ldexpf.texi: Mention the new module.
38633 2011-10-06  Bruno Haible  <bruno@clisp.org>
38635         frexpf: Work around problems on IRIX and mingw.
38636         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
38637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
38638         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
38639         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
38640         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
38641         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
38642         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
38644 2011-10-06  Bruno Haible  <bruno@clisp.org>
38646         fabsf: Drop assumption about library that defines fabsf.
38647         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
38648         AC_CHECK_FUNCS.
38649         * modules/fabsf (Files): Add m4/mathfunc.m4.
38651 2011-10-06  Bruno Haible  <bruno@clisp.org>
38653         frexpf: Drop assumption about library that defines frexpf.
38654         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
38655         'int *', 'float *', 'long double *', 'float', 'long double'.
38656         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
38657         AC_CHECK_FUNCS.
38658         * modules/frexpf (Files): Add m4/mathfunc.m4.
38660         Tests for module 'frexpf'.
38661         * modules/frexpf-tests: New file.
38662         * tests/test-frexpf.c: New file.
38664         New module 'frexpf'.
38665         * lib/math.in.h (frexpf): New declaration.
38666         * lib/frexpf.c: New file.
38667         * m4/frexpf.m4: New file.
38668         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
38669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
38670         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
38671         * modules/frexpf: New file.
38672         * tests/test-math-c++.cc: Check the declaration of frexpf.
38673         * doc/posix-functions/frexpf.texi: Mention the new module.
38675 2011-10-06  Bruno Haible  <bruno@clisp.org>
38677         math: Sort function declarations of math.in.h.
38678         * lib/math.in.h (frexp, logb): Move declarations.
38680 2011-10-05  Bruno Haible  <bruno@clisp.org>
38682         Tests for module 'modff'.
38683         * modules/modff-tests: New file.
38684         * tests/test-modff.c: New file.
38686         New module 'modff'.
38687         * lib/math.in.h (modff): New declaration.
38688         * lib/modff.c: New file.
38689         * m4/modff.m4: New file.
38690         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
38691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
38692         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
38693         * modules/modff: New file.
38694         * tests/test-math-c++.cc: Check the declaration of modff.
38695         * doc/posix-functions/modff.texi: Mention the new module.
38697         modf tests: Make test sharper.
38698         * tests/test-modf.c (main): Strengthen upper bound.
38700         modf: Use a .m4 file.
38701         * m4/modf.m4: New file.
38702         * modules/modf (Files): Add it.
38703         (configure.ac): Just invoke gl_FUNC_MODF.
38705 2011-10-05  Bruno Haible  <bruno@clisp.org>
38707         Tests for module 'fmodf'.
38708         * modules/fmodf-tests: New file.
38709         * tests/test-fmodf.c: New file.
38711         New module 'fmodf'.
38712         * lib/math.in.h (fmodf): New declaration.
38713         * lib/fmodf.c: New file.
38714         * m4/fmodf.m4: New file.
38715         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
38716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
38717         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
38718         * modules/fmodf: New file.
38719         * tests/test-math-c++.cc: Check the declaration of fmodf.
38720         * doc/posix-functions/fmodf.texi: Mention the new module.
38722         fmod: Use a .m4 file.
38723         * m4/fmod.m4: New file.
38724         * modules/fmod (Files): Add it.
38725         (configure.ac): Just invoke gl_FUNC_FMOD.
38727 2011-10-05  Bruno Haible  <bruno@clisp.org>
38729         Tests for module 'fabsf'.
38730         * modules/fabsf-tests: New file.
38731         * tests/test-fabsf.c: New file.
38733         New module 'fabsf'.
38734         * lib/math.in.h (fabsf): New declaration.
38735         * lib/fabsf.c: New file.
38736         * m4/fabsf.m4: New file.
38737         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
38738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
38739         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
38740         * modules/fabsf: New file.
38741         * tests/test-math-c++.cc: Check the declaration of fabsf.
38742         * doc/posix-functions/fabsf.texi: Mention the new module.
38744         fabs: Use a .m4 file.
38745         * m4/fabs.m4: New file.
38746         * modules/fabs (Files): Add it.
38747         (configure.ac): Just invoke gl_FUNC_FABS.
38749 2011-10-05  Jim Meyering  <meyering@redhat.com>
38751         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
38752         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
38753         ls -lL regression introduced in coreutils-8.12, it does so at the
38754         cost of an additional stat call in the common case.  Besides, now
38755         that the kernel change that prompted commit 95f7c57f has been reverted
38756         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
38757         we have no use for commit 95f7c57f, "file-has-acl: use
38758         acl_extended_file_nofollow if available".
38760 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
38762         file-has-acl: revert unintended change in behavior of ls -L
38763         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
38764         derived from...
38765         (file_has_acl): ...code here.  Call it.
38766         This problem was introduced with 2011-07-22 commit 95f7c57f,
38767         "file-has-acl: use acl_extended_file_nofollow if available".
38768         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
38770 2011-10-03  Bruno Haible  <bruno@clisp.org>
38772         poll: Avoid link errors on MSVC.
38773         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
38774         * modules/poll (Depends-on): Add sockets.
38775         (Link): New section.
38776         * NEWS: Mention the change.
38777         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
38778         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
38779         $(LIB_POLL) instead of $(LIBSOCKET).
38781 2011-10-03  Bruno Haible  <bruno@clisp.org>
38783         sys_select tests: Fix link error on MSVC 9.
38784         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
38785         with $(LIB_SELECT) instead of $(LIBSOCKET).
38787 2011-10-03  Bruno Haible  <bruno@clisp.org>
38789         sys_select: Fix compilation error on mingw.
38790         * lib/sys_select.in.h: On native Windows, include <io.h>.
38792 2011-10-03  Bruno Haible  <bruno@clisp.org>
38794         wmemset: Support for MSVC.
38795         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
38796         whether wmemset() exists.
38798 2011-10-03  Bruno Haible  <bruno@clisp.org>
38800         wmemmove: Support for MSVC.
38801         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
38802         whether wmemmove() exists.
38804 2011-10-03  Bruno Haible  <bruno@clisp.org>
38806         wmemcpy: Support for MSVC.
38807         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
38808         whether wmemcpy() exists.
38810 2011-10-03  Bruno Haible  <bruno@clisp.org>
38812         wmemcmp: Support for MSVC.
38813         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
38814         whether wmemcmp() exists.
38816 2011-10-03  Bruno Haible  <bruno@clisp.org>
38818         wmemchr: Support for MSVC.
38819         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
38820         whether wmemchr() exists.
38822 2011-10-03  Bruno Haible  <bruno@clisp.org>
38824         glthread/*, strsignal: Support for MSVC.
38825         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
38826         including <winsock.h> on MSVC 9.
38827         * lib/glthread/lock.h: Likewise.
38828         * lib/glthread/thread.h: Likewise.
38829         * lib/glthread/tls.h: Likewise.
38830         * lib/glthread/yield.h: Likewise.
38831         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
38832         if HAVE_UNISTD_H is false.
38833         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
38835 2011-10-03  Bruno Haible  <bruno@clisp.org>
38837         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
38838         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
38839         Set to 100000.
38841 2011-10-03  Bruno Haible  <bruno@clisp.org>
38843         acl: Fix specification.
38844         * lib/file-has-acl.c (file_has_acl): Fix specification.
38846 2011-10-03  Bruno Haible  <bruno@clisp.org>
38848         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
38849         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
38850         (compute_curr_prefix, shared_library_fullname,
38851         find_shared_library_fullname, get_shared_library_fullname, relocate):
38852         Use it together with PIC && INSTALLDIR.
38853         Reported by <jojelino@gmail.com>
38854         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
38856 2011-10-01  Jim Meyering  <meyering@redhat.com>
38858         maint.mk: adjust a release-related rule not to require use of gzip
38859         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
38860         Instead, check each file in $(DIST_ARCHIVES).  This is better for
38861         projects that build only .tar.xz files.  Also fix an erroneous test.
38863         test-linkat: don't leave behind a temporary file
38864         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
38865         Otherwise, coreutils' "make distcheck" would fail with this:
38866           Only in /c/cu/tests/torture/coreutils/test/\
38867             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
38868           make[2]: *** [my-distcheck] Error 1
38870         float, math: add omitted file
38871         * lib/itold.c: Add file, required for yesterday's float change.
38873 2011-10-01  Bruno Haible  <bruno@clisp.org>
38875         isinf: Fix for OpenBSD/x86.
38876         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
38877         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
38878         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
38880 2011-10-01  Bruno Haible  <bruno@clisp.org>
38882         isfinite: Fix syntax error in configure test.
38883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
38885         isfinite: Fix typo.
38886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
38887         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
38889 2011-10-01  Bruno Haible  <bruno@clisp.org>
38891         nonblocking tests: Fix test failure on Linux/IA-64.
38892         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
38893         Set to 270000.
38895 2011-10-01  Bruno Haible  <bruno@clisp.org>
38897         mkfifoat tests: Fix a test failure on mingw.
38898         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
38899         with error ENOSYS.
38901 2011-09-30  Bruno Haible  <bruno@clisp.org>
38903         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
38904         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
38905         'long double'. Set REPLACE_ITOLD.
38906         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
38907         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
38908         * lib/itold.c: New file.
38909         * modules/float (Files): Add lib/itold.c.
38910         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
38911         (Makefile.am): Substitute REPLACE_ITOLD.
38912         * modules/math (Depends-on): Add float.
38913         (Makefile.am): Substitute REPLACE_ITOLD.
38914         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
38915         * doc/posix-headers/math.texi: Likewise.
38916         * doc/posix-functions/logl.texi: Likewise.
38918 2011-09-30  Bruno Haible  <bruno@clisp.org>
38920         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
38921         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
38922         Set to 140000.
38924 2011-09-30  Bruno Haible  <bruno@clisp.org>
38926         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
38927         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
38928         invocation, say "right after AC_PROG_CC_STDC", not "right after
38929         AC_PROG_CC".
38930         Reported by Gary V. Vaughan <gary@gnu.org>.
38932 2011-09-30  Bruno Haible  <bruno@clisp.org>
38934         Centralize C99 requirement.
38935         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
38936         * modules/stdarg (configure.ac-early): Invoke it instead of
38937         AC_PROG_CC_STDC.
38938         Reported by Gary V. Vaughan and Paul Eggert.
38940 2011-09-29  Bruno Haible  <bruno@clisp.org>
38942         float: Fix LDBL_MAX value on Linux/PowerPC.
38943         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
38944         on Linux/PowerPC.
38945         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
38946         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
38947         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
38948         platform.
38949         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
38951 2011-09-29  Bruno Haible  <bruno@clisp.org>
38953         doc: Improve doc about gl_EARLY.
38954         * doc/gnulib-tool.texi (Initial import): Mention where to place an
38955         AC_PROG_CC_STDC invocation.
38956         Reported by Gary V. Vaughan <gary@gnu.org>.
38958 2011-09-28  Bruno Haible  <bruno@clisp.org>
38960         fgetc, fputc, fread, fwrite tests: Fix link error.
38961         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
38962         on non-MSVC platforms.
38963         * tests/test-fputc.c (main): Likewise.
38964         * tests/test-fread.c (main): Likewise.
38965         * tests/test-fwrite.c (main): Likewise.
38966         Reported by Jim Meyering.
38968 2011-09-27  Bruno Haible  <bruno@clisp.org>
38970         fputc, fwrite tests: Avoid test failure on MSVC.
38971         * tests/test-fgetc.c: Include msvc-inval.h.
38972         (main): Invoke gl_msvc_inval_ensure_handler.
38973         * tests/test-fputc.c: Include msvc-inval.h.
38974         (main): Invoke gl_msvc_inval_ensure_handler.
38975         * tests/test-fread.c: Include msvc-inval.h.
38976         (main): Invoke gl_msvc_inval_ensure_handler.
38977         * tests/test-fwrite.c: Include msvc-inval.h.
38978         (main): Invoke gl_msvc_inval_ensure_handler.
38979         * modules/fgetc-tests (Depends-on): Add msvc-inval.
38980         * modules/fputc-tests (Depends-on): Likewise.
38981         * modules/fread-tests (Depends-on): Likewise.
38982         * modules/fwrite-tests (Depends-on): Likewise.
38984 2011-09-27  Bruno Haible  <bruno@clisp.org>
38986         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
38987         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
38988         (raise): Remove older, duplicated declaration.
38989         (_gl_raise_SIGPIPE): New declaration.
38990         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
38991         (rpl_raise): Remove function.
38992         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
38993         a gnulib-defined SIGPIPE here.
38994         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
38995         'sigprocmask' has detected missing signal-blocking and the module
38996         'sigpipe' is enabled.
38997         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
38999 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
39001         base64-tests: avoid memory leak
39002         * tests/test-base64.c (main): Plug memory leak.
39004         base32: new module
39005         * modules/base32: New module.
39006         * lib/base32.c: New file.
39007         * lib/base32.h: Likewise.
39008         * m4/base32.m4: Likewise.
39009         * modules/base32-tests: New test.
39010         * tests/test-base32.c: Likewise.
39011         * MODULES.html.sh (Misc): Mention it.
39013 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39015         gnulib: use more-standard license notice wording
39016         * gnulib-tool (func_emit_copyright_notice): When emitting a
39017         license notice into a file, use the standard wording as suggested
39018         by the current information for GNU maintainers, except say "file"
39019         rather than "program".  The new wording gives a license version
39020         number, which addresses an issue raised by Glenn Morris in
39021         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
39022         * m4/onceonly.m4: Use that same wording here, too.
39024         dup2: minor simplification
39025         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
39026         as lib/dup2.c no longer uses 'inline'.
39028 2011-09-25  Bruno Haible  <bruno@clisp.org>
39030         strings: Fix compilation error on MSVC.
39031         * lib/strings.in.h: Include <stddef.h> for size_t.
39033 2011-09-25  Bruno Haible  <bruno@clisp.org>
39035         fflush et al.: Document limitation on MSVC.
39036         * doc/posix-functions/fflush.texi: Document possible crash in handling
39037         mode other than DEFAULT_HANDLING.
39038         * doc/posix-functions/fgetc.texi: Likewise.
39039         * doc/posix-functions/fputc.texi: Likewise.
39040         * doc/posix-functions/fread.texi: Likewise.
39041         * doc/posix-functions/fwrite.texi: Likewise.
39043 2011-09-25  Bruno Haible  <bruno@clisp.org>
39045         msvc-inval: Allow three invalid parameter handling modes.
39046         * lib/msvc-inval.h: Don't include <stdlib.h> here.
39047         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
39048         macros.
39049         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
39050         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
39051         SANE_LIBRARY_HANDLING as a no-op.
39052         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
39053         <stdlib.h>.
39054         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
39056 2011-09-25  Bruno Haible  <bruno@clisp.org>
39058         msvc-inval: Make handler multithread-safe.
39059         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
39060         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
39061         declarations.
39062         (gl_msvc_inval_current): New declaration.
39063         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39064         Operate on the structure returned by gl_msvc_inval_current().
39065         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
39066         Remove varaiables.
39067         (tls_index, tls_initialized): New variables.
39068         (not_per_thread): New variable.
39069         (gl_msvc_inval_current): New function.
39070         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
39071         returned by gl_msvc_inval_current().
39073 2011-09-25  Bruno Haible  <bruno@clisp.org>
39075         msvc-inval: Install handler globally.
39076         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
39077         !_MSC_VER.
39078         (gl_msvc_invalid_parameter_handler): Remove declaration.
39079         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
39080         declarations.
39081         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
39082         Install the handler globally, don't uninstall it.
39083         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
39084         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
39085         currently valid, call RaiseException instead.
39086         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
39087         for !_MSC_VER.
39089 2011-09-25  Bruno Haible  <bruno@clisp.org>
39091         strerror_r-posix: Fix for MSVC 9.
39092         * lib/strerror_r.c (local_snprintf): New function.
39093         (snprintf): Define to local_snprintf, not to _snprintf.
39095 2011-09-25  Bruno Haible  <bruno@clisp.org>
39097         ftruncate: Support for MSVC 9.
39098         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
39099         (chsize_nothrow): New function.
39100         (chsize): Redefine as a macro.
39101         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
39102         * modules/ftruncate (Depends-on): Add msvc-inval.
39104 2011-09-25  Bruno Haible  <bruno@clisp.org>
39106         New module 'fstat'.
39107         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
39108         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
39109         * lib/fchdir.c (rpl_fstat): Remove function.
39110         * m4/fstat.m4: New file.
39111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
39112         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
39113         declared.
39114         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
39115         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
39116         * modules/fstat: New file.
39117         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
39118         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
39119         is set.
39120         * doc/posix-functions/fstat.texi: Mention the new module and the
39121         problem on MSVC.
39122         * NEWS: Mention the change.
39123         * modules/acl (Depends-on): Add fstat.
39124         * modules/chdir-safer (Depends-on): Likewise.
39125         * modules/chown (Depends-on): Likewise.
39126         * modules/copy-file (Depends-on): Likewise.
39127         * modules/fchdir (Depends-on): Likewise.
39128         * modules/fdopendir (Depends-on): Likewise.
39129         * modules/fopen (Depends-on): Likewise.
39130         * modules/fts (Depends-on): Likewise.
39131         * modules/getcwd (Depends-on): Likewise.
39132         * modules/isapipe (Depends-on): Likewise.
39133         * modules/linkat (Depends-on): Likewise.
39134         * modules/lseek (Depends-on): Likewise.
39135         * modules/mkdir-p (Depends-on): Likewise.
39136         * modules/open (Depends-on): Likewise.
39137         * modules/openat (Depends-on): Likewise.
39138         * modules/read-file (Depends-on): Likewise.
39139         * modules/renameat (Depends-on): Likewise.
39140         * modules/utimens (Depends-on): Likewise.
39142 2011-09-25  Bruno Haible  <bruno@clisp.org>
39144         linkat: Fix compilation on MSVC 9.
39145         * lib/linkat.c: Don't include <stdint.h>.
39147 2011-09-25  Bruno Haible  <bruno@clisp.org>
39149         fclose: Support for MSVC 9.
39150         * lib/fclose.c: Include msvc-inval.h.
39151         (fclose_nothrow): New function.
39152         (rpl_fclose): Use it.
39153         * modules/fclose (Depends-on): Add msvc-inval.
39154         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
39156 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
39158         dup2: minor simplifications
39159         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
39160         that it's a performance win.
39161         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
39162         ! defined __CYGWIN__)" to "ifdef F_GETFL".
39164 2011-09-24  Jim Meyering  <meyering@redhat.com>
39166         test-futimens: avoid a warning from gcc -Wshadow
39167         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
39168         to avoid a shadowing warning.
39170 2011-09-24  Bruno Haible  <bruno@clisp.org>
39172         fdopen: Support for MSVC 9.
39173         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
39174         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
39175         * lib/fdopen.c: Include msvc-inval.h.
39176         (fdopen_nothrow): New function.
39177         (rpl_fdopen): Use it.
39178         * modules/fdopen (Depends-on): Add msvc-inval.
39179         * modules/fclose-tests (Depends-on): Add fdopen.
39180         * modules/fflush-tests (Depends-on): Likewise.
39181         * modules/fgetc-tests (Depends-on): Likewise.
39182         * modules/fputc-tests (Depends-on): Likewise.
39183         * modules/fread-tests (Depends-on): Likewise.
39184         * modules/freopen-tests (Depends-on): Likewise.
39185         * modules/fseeko-tests (Depends-on): Likewise.
39186         * modules/ftello-tests (Depends-on): Likewise.
39187         * modules/fwrite-tests  (Depends-on): Likewise.
39188         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
39190 2011-09-24  Bruno Haible  <bruno@clisp.org>
39192         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
39193         * modules/fgetc-tests (Depends-on): Add unistd.
39194         * modules/fputc-tests (Depends-on): Likewise.
39195         * modules/fread-tests (Depends-on): Likewise.
39196         * modules/fwrite-tests (Depends-on): Likewise.
39198 2011-09-24  Bruno Haible  <bruno@clisp.org>
39200         dup: Simplify autoconf test.
39201         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
39202         on gl_MSVC_INVAL's result.
39204 2011-09-24  Bruno Haible  <bruno@clisp.org>
39206         Tests for function fwrite().
39207         * modules/fwrite-tests: New file.
39208         * tests/test-fwrite.c: New file.
39209         * modules/stdio-tests (Depends-on): Add fwrite-tests.
39211         Tests for function fread().
39212         * modules/fread-tests: New file.
39213         * tests/test-fread.c: New file.
39214         * modules/stdio-tests (Depends-on): Add fread-tests.
39216         Activate fputc tests.
39217         * modules/stdio-tests (Depends-on): Add fputc-tests.
39219         Enhance fgetc, fputc tests.
39220         * tests/test-fgetc.c (main): Also test the stream's error indicator.
39221         * tests/test-fputc.c (main): Likewise.
39223 2011-09-24  Bruno Haible  <bruno@clisp.org>
39225         write: Support for MSVC 9.
39226         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39227         is not 1.
39228         * lib/write.c (write_nothrow): New function.
39229         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
39230         not 1. Use write_nothrow.
39231         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
39232         invalid parameter handler.
39233         (gl_PREREQ_WRITE): New macro.
39234         * modules/write (Depends-on): Add msvc-inval.
39235         (configure.ac): Invoke gl_PREREQ_WRITE.
39236         * doc/posix-functions/write.texi: Mention the problem on MSVC.
39238 2011-09-24  Bruno Haible  <bruno@clisp.org>
39240         read: Fix last commit.
39241         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
39243 2011-09-24  Bruno Haible  <bruno@clisp.org>
39245         dup2: Fix last commit.
39246         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
39247         (rpl_dup2): Disable fcntl workaround on native Windows.
39249         sigprocmask: Make code safer.
39250         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
39251         section that changes macro definitions for this compilation unit.
39253 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
39255         dup2: clarify by coalescing Windows-specific material
39256         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
39257         "msvc-nothrow.h"' to the Windows-specific section, so that the
39258         Emacs source need not contain these include files.
39259         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
39260         Windows-specific fixes into this function rather than just the
39261         nothrow fix, as this shortens and clarifies the code.  Always
39262         define as a function, as that's a bit cleaner than having it be
39263         sometimes a function and sometimes a macro.
39264         (rpl_dup2): Move the Windows-specific stuff out of here and into
39265         ms_windows_dup2.  Don't protect the Haiku-related fix with
39266         "#if !defined __linux__", as the same code also works around
39267         a Linux kernel bug, and it doesn't add any system calls on any
39268         platform.  Add comment about FreeBSD 6.1.
39270         sigprocmask: move #include directive
39271         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
39272         Windows-specific section, so that the Emacs source need not
39273         contain msvc-inval.h.
39275 2011-09-23  Bruno Haible  <bruno@clisp.org>
39277         read: Support for MSVC 9.
39278         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
39279         is not 1.
39280         * lib/read.c (read_nothrow): New function.
39281         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
39282         read_nothrow.
39283         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
39284         invalid parameter handler.
39285         (gl_PREREQ_READ): New macro.
39286         * modules/read (Depends-on): Add msvc-inval.
39287         (configure.ac): Invoke gl_PREREQ_READ.
39288         * doc/posix-functions/read.texi: Mention the problem on MSVC.
39290 2011-09-23  Bruno Haible  <bruno@clisp.org>
39292         close: Support for MSVC 9.
39293         * lib/close.c: Include <errno.h>, msvc-inval.h.
39294         (close_nothrow): New function.
39295         (rpl_close): Use it.
39296         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
39297         invalid parameter handler.
39298         * modules/close (Depends-on): Add msvc-inval.
39299         * modules/dup2-tests (Depends-on): Add close.
39300         * modules/dup3-tests (Depends-on): Likewise.
39301         * modules/fcntl-tests (Depends-on): Likewise.
39302         * modules/spawn-pipe-tests (Depends-on): Likewise.
39303         * modules/unistd-safer-tests (Depends-on): Likewise.
39304         * doc/posix-functions/close.texi: Mention the problem on MSVC.
39306 2011-09-23  Bruno Haible  <bruno@clisp.org>
39308         New module 'dup'.
39309         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
39310         Allow replacement.
39311         * lib/dup.c: New file.
39312         * lib/fchdir.c (rpl_dup): Remove function.
39313         * m4/dup.m4: New file.
39314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
39315         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
39316         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
39317         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
39318         * modules/dup: New file.
39319         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
39320         'dup' module is in use.
39321         * modules/fdopendir (Depends-on): Add dup.
39322         * modules/fdutimensat-tests (Depends-on): Likewise.
39323         * modules/fts (Depends-on): Likewise.
39324         * modules/futimens-tests (Depends-on): Likewise.
39325         * modules/posix_spawnp-tests (Depends-on): Likewise.
39326         * modules/unistd-safer-tests (Depends-on): Likewise.
39327         * modules/utimens-tests (Depends-on): Likewise.
39328         * doc/posix-functions/dup.texi: Mention the new module and the problem
39329         on MSVC.
39331 2011-09-23  Bruno Haible  <bruno@clisp.org>
39333         getdtablesize: Support for MSVC 9.
39334         * lib/getdtablesize.c: Include msvc-inval.h.
39335         (_setmaxstdio_nothrow): New function.
39336         (_setmaxstdio): Redefine it.
39337         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
39338         * modules/getdtablesize (Depends-on): Add msvc-inval.
39339         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
39341 2011-09-23  Bruno Haible  <bruno@clisp.org>
39343         signal-h: Rename from signal.
39344         * modules/signal-h: Renamed from modules/signal.
39345         * modules/pthread_sigmask (Depends-on): Update.
39346         * modules/raise (Depends-on): Likewise.
39347         * modules/sigaction (Depends-on): Likewise.
39348         * modules/sigpipe (Depends-on): Likewise.
39349         * modules/sigprocmask (Depends-on): Likewise.
39350         * modules/sys_select (Depends-on): Likewise.
39351         * modules/signal-h-tests: Renamed from modules/signal-tests.
39352         (Files, Depends-on, Makefile.am): Update.
39353         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
39354         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
39355         (Files, Makefile.am): Update.
39356         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
39357         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
39358         * modules/signal: New placeholder file.
39359         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
39360         * doc/posix-headers/signal.texi: Update.
39361         * NEWS: Mention the change.
39363 2011-09-23  Bruno Haible  <bruno@clisp.org>
39365         sigprocmask: Avoid crashes through signal() on MSVC 9.
39366         * lib/sigprocmask.c: Include msvc-inval.h.
39367         (signal_nothrow): New function.
39368         (signal): Redefine it.
39369         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
39370         * modules/sigprocmask (Depends-on): Add msvc-inval.
39371         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
39373 2011-09-23  Bruno Haible  <bruno@clisp.org>
39375         Tests for module 'raise'.
39376         * modules/raise-tests: New file.
39377         * tests/test-raise.c: New file.
39379         raise: Support for MSVC.
39380         * lib/signal.in.h (raise): New declaration.
39381         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
39382         for native Windows platforms.
39383         * m4/raise.m4: New file.
39384         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
39385         HAVE_RAISE, REPLACE_RAISE.
39386         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
39387         REPLACE_RAISE.
39388         * modules/raise (Status, Notice): Remove fields.
39389         (Files): Add m4/raise.m4.
39390         (Depends-on): Add signal, msvc-inval.
39391         (configure.ac): Use the common idioms.
39392         (Maintainer): Add me.
39393         * tests/test-signal-c++.cc: Check the signature of raise.
39394         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
39396 2011-09-23  Bruno Haible  <bruno@clisp.org>
39398         pipe2: Fix compilation on pre-C99 compilers.
39399         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
39401 2011-09-23  Bruno Haible  <bruno@clisp.org>
39403         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
39404         * lib/msvc-nothrow.h: New file.
39405         * lib/msvc-nothrow.c: New file.
39406         * m4/msvc-nothrow.m4: New file.
39407         * modules/msvc-nothrow: New file.
39408         * lib/dup2.c: Include msvc-nothrow.h.
39409         (rpl_dup2): No need to protect _get_osfhandle call here.
39410         * lib/accept4.c: Include msvc-nothrow.h.
39411         * lib/error.c: Likewise.
39412         * lib/fcntl.c: Likewise.
39413         * lib/lseek.c: Likewise.
39414         * lib/nonblocking.c: Likewise.
39415         * lib/poll.c: Likewise.
39416         * lib/read.c: Likewise.
39417         * lib/select.c: Likewise.
39418         * lib/sockets.h: Likewise.
39419         * lib/sockets.c: Likewise.
39420         * lib/stdio-read.c: Likewise.
39421         * lib/stdio-write.c: Likewise.
39422         * lib/write.c: Likewise.
39423         * lib/w32sock.h: Likewise.
39424         * lib/w32spawn.h: Likewise.
39425         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
39426         * lib/fsync.c: Likewise.
39427         * lib/isapipe.c: Likewise.
39428         * modules/dup2 (Depends-on): Add msvc-nothrow.
39429         * modules/accept4 (Depends-on): Likewise.
39430         * modules/error (Depends-on): Likewise.
39431         * modules/fcntl (Depends-on): Likewise.
39432         * modules/lseek (Depends-on): Likewise.
39433         * modules/nonblocking (Depends-on): Likewise.
39434         * modules/poll (Depends-on): Likewise.
39435         * modules/read (Depends-on): Likewise.
39436         * modules/select (Depends-on): Likewise.
39437         * modules/sockets (Depends-on): Likewise.
39438         * modules/sigpipe (Depends-on): Likewise.
39439         * modules/write (Depends-on): Likewise.
39440         * modules/accept (Depends-on): Likewise.
39441         * modules/bind (Depends-on): Likewise.
39442         * modules/connect (Depends-on): Likewise.
39443         * modules/gethostname (Depends-on): Likewise.
39444         * modules/getpeername (Depends-on): Likewise.
39445         * modules/getsockname (Depends-on): Likewise.
39446         * modules/getsockopt (Depends-on): Likewise.
39447         * modules/ioctl (Depends-on): Likewise.
39448         * modules/listen (Depends-on): Likewise.
39449         * modules/recv (Depends-on): Likewise.
39450         * modules/recvfrom (Depends-on): Likewise.
39451         * modules/send (Depends-on): Likewise.
39452         * modules/sendto (Depends-on): Likewise.
39453         * modules/setsockopt (Depends-on): Likewise.
39454         * modules/shutdown (Depends-on): Likewise.
39455         * modules/socket (Depends-on): Likewise.
39456         * modules/execute (Depends-on): Likewise.
39457         * modules/spawn-pipe (Depends-on): Likewise.
39458         * modules/flock (Depends-on): Likewise.
39459         * modules/fsync (Depends-on): Likewise.
39460         * modules/isapipe (Depends-on): Likewise.
39461         * tests/test-cloexec.c: Include msvc-nothrow.h.
39462         * tests/test-dup-safer.c: Likewise.
39463         * tests/test-dup2.c: Likewise.
39464         * tests/test-dup3.c: Likewise.
39465         * tests/test-fcntl.c: Likewise.
39466         * tests/test-pipe.c: Likewise.
39467         * tests/test-pipe2.c: Likewise.
39468         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
39469         * modules/unistd-safer-tests (Depends-on): Likewise.
39470         * modules/dup2-tests (Depends-on): Likewise.
39471         * modules/dup3-tests (Depends-on): Likewise.
39472         * modules/fcntl-tests (Depends-on): Likewise.
39473         * modules/pipe-posix-tests (Depends-on): Likewise.
39474         * modules/pipe2-tests (Depends-on): Likewise.
39476 2011-09-23  Bruno Haible  <bruno@clisp.org>
39478         dup2: Make code more maintainable.
39479         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
39480         (rpl_dup2): Use it.
39481         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
39482         * modules/dup2 (configure.ac): Invoke it.
39483         Reported by Paul Eggert.
39485 2011-09-23  Bruno Haible  <bruno@clisp.org>
39487         msvc-inval: Fix compilation error.
39488         * lib/msvc-inval.h: Include <excpt.h>.
39490 2011-09-23  Bruno Haible  <bruno@clisp.org>
39492         mkdir: Tweak for MSVC 9.
39493         * lib/sys_stat.in.h: Update comments.
39494         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
39496         Tests for module 'chdir'.
39497         * modules/chdir-tests: New file.
39498         * tests/test-chdir.c: New file.
39500         New module 'chdir'.
39501         * modules/chdir: New file.
39502         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
39503         (chdir): New declaration.
39504         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
39505         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
39506         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
39507         * tests/test-unistd-c++.cc: Check signature of chdir.
39508         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
39509         * modules/chdir-long (Depends-on): Add chdir.
39510         * modules/fchdir (Depends-on): Likewise.
39511         * modules/rename (Depends-on): Likewise.
39512         * modules/savewd (Depends-on): Likewise.
39514         rmdir: Support for mingw, MSVC 9.
39515         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
39516         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
39518         getcwd: Tweak for MSVC 9.
39519         * lib/unistd.in.h: Update comments.
39520         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
39522 2011-09-22  Bruno Haible  <bruno@clisp.org>
39524         strerror_r-posix: Avoid a link error on MSVC.
39525         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
39526         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
39528 2011-09-22  Bruno Haible  <bruno@clisp.org>
39530         select: Avoid link errors on MSVC.
39531         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
39532         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
39533         * modules/pselect (Link): Likewise.
39534         * NEWS: Mention the change.
39535         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
39536         test-select-stdin against $(LIB_SELECT).
39537         * modules/pselect-tests (Makefile.am): Link test-pselect against
39538         $(LIB_SELECT).
39540 2011-09-22  Bruno Haible  <bruno@clisp.org>
39542         select: Avoid compilation error on MSVC.
39543         * lib/select.c: Don't include <stdbool.h>.
39545 2011-09-21  Bruno Haible  <bruno@clisp.org>
39547         Consolidate all uses of PATH_MAX in *.m4 files.
39548         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
39549         macros.
39550         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
39551         and gl_PATHMAX_SNIPPET.
39552         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
39553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
39554         * modules/chdir-long (Files): Add m4/pathmax.m4.
39555         * modules/getcwd (Files): Likewise.
39557 2011-09-21  Bruno Haible  <bruno@clisp.org>
39559         ftruncate: Un-deprecate, concentrate on Win32 support.
39560         * modules/ftruncate (Status, Notice): Remove sections.
39561         (Depends-on): Add largefile.
39562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
39563         non-mingw platforms.
39564         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
39565         include <io.h>.
39566         * modules/perror-tests (Depends-on): Add ftruncate.
39567         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
39568         'ftruncate' module.
39570 2011-09-21  Bruno Haible  <bruno@clisp.org>
39572         Add dependencies to new dirent related modules.
39573         * modules/opendir (Depends-on): Add closedir.
39574         * modules/getcwd (Depends-on): Add opendir, closedir.
39575         * modules/dirent-safer-tests (Depends-on): Likewise.
39576         * modules/fdopendir-tests (Depends-on): Likewise.
39577         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
39578         * modules/renameat-tests (Depends-on): Likewise.
39580 2011-09-21  Bruno Haible  <bruno@clisp.org>
39582         opendir: Avoid compilation error on mingw.
39583         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
39584         * modules/opendir (Depends-on): Add unistd.
39586 2011-09-21  Bruno Haible  <bruno@clisp.org>
39588         ftruncate tests: Avoid a test failure on mingw.
39589         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
39591 2011-09-21  Bruno Haible  <bruno@clisp.org>
39593         select tests: Avoid test failures on OSF/1 5.1 and mingw.
39594         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
39595         native Windows.
39597 2011-09-21  Bruno Haible  <bruno@clisp.org>
39599         New module 'fdopen'.
39600         * lib/stdio.in.h (fdopen): New declaration.
39601         * lib/fdopen.c: New file.
39602         * m4/fdopen.m4: New file.
39603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
39604         REPLACE_FDOPEN.
39605         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
39606         REPLACE_FDOPEN.
39607         * modules/fdopen: New file.
39608         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
39609         * tests/test-stdio-c++.cc: Check signature of fdopen.
39610         * doc/posix-functions/fdopen.texi: Mention the new module.
39612 2011-09-21  Bruno Haible  <bruno@clisp.org>
39614         unlockpt tests: Avoid test failure on NetBSD 5.1.
39615         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
39616         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
39618 2011-09-21  Bruno Haible  <bruno@clisp.org>
39620         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
39621         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
39622         * tests/test-getlogin_r.c (main): Likewise.
39624 2011-09-20  Bruno Haible  <bruno@clisp.org>
39626         time tests: Don't require pid_t.
39627         * doc/posix-headers/time.texi: Revert last change.
39628         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
39629         * tests/test-time.c: Comment out the check for pid_t.
39631 2011-09-20  Bruno Haible  <bruno@clisp.org>
39633         fsync tests: Avoid a test failure on mingw.
39634         * tests/test-fsync.c (main): Allow a failure with EIO.
39636 2011-09-20  Bruno Haible  <bruno@clisp.org>
39638         euidaccess: Update comments.
39639         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
39641 2011-09-20  Bruno Haible  <bruno@clisp.org>
39643         Ensure EBADF returns for socket functions on mingw.
39644         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
39645         descriptor is invalid.
39646         * lib/bind.c (rpl_bind): Likewise.
39647         * lib/connect.c (rpl_connect): Likewise.
39648         * lib/getpeername.c (rpl_getpeername): Likewise.
39649         * lib/getsockname.c (rpl_getsockname): Likewise.
39650         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39651         * lib/listen.c (rpl_listen): Likewise.
39652         * lib/recv.c (rpl_recv): Likewise.
39653         * lib/recvfrom.c (rpl_recvfrom): Likewise.
39654         * lib/send.c (rpl_send): Likewise.
39655         * lib/sendto.c (rpl_sendto): Likewise.
39656         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39657         * lib/shutdown.c (rpl_shutdown): Likewise.
39659 2011-09-20  Bruno Haible  <bruno@clisp.org>
39661         select tests: EBADF tests.
39662         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
39663         test_bad_fd): New functions.
39664         (test_function): Invoke also test_bad_fd.
39666 2011-09-20  Bruno Haible  <bruno@clisp.org>
39668         Tests for module 'posix_spawn_file_actions_addopen.
39669         * modules/posix_spawn_file_actions_addopen-tests: New file.
39670         * tests/test-posix_spawn_file_actions_addopen.c: New file.
39672         Tests for module 'posix_spawn_file_actions_adddup2'.
39673         * modules/posix_spawn_file_actions_adddup2-tests: New file.
39674         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
39676         Tests for module 'posix_spawn_file_actions_addclose'.
39677         * modules/posix_spawn_file_actions_addclose-tests: New file.
39678         * tests/test-posix_spawn_file_actions_addclose.c: New file.
39680 2011-09-20  Bruno Haible  <bruno@clisp.org>
39682         Tests for module 'unlockpt'.
39683         * modules/unlockpt-tests: New file.
39684         * tests/test-unlockpt.c: New file.
39685         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
39687         Tests for module 'grantpt'.
39688         * modules/grantpt-tests: New file.
39689         * tests/test-grantpt.c: New file.
39690         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
39692 2011-09-20  Bruno Haible  <bruno@clisp.org>
39694         freopen tests: EBADF tests.
39695         * tests/test-freopen.c: Include errno.h, unistd.h.
39696         (main): Add tests for EBADF, commented out for the moment.
39698         fclose tests: EBADF tests.
39699         * tests/test-fclose.c (main): Add tests for EBADF.
39701         fflush tests: EBADF tests.
39702         * tests/test-fflush.c: Include errno.h, macros.h.
39703         (main): Add tests for EBADF.
39705         ftello tests: EBADF tests.
39706         * tests/test-ftello4.sh: New file.
39707         * tests/test-ftello4.c: New file.
39708         * modules/ftello-tests (Files): Add them.
39709         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
39711         fseeko tests: EBADF tests.
39712         * tests/test-fseeko4.sh: New file.
39713         * tests/test-fseeko4.c: New file.
39714         * modules/fseeko-tests (Files): Add them.
39715         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
39717         Tests for function fputc().
39718         * modules/fputc-tests: New file.
39719         * tests/test-fputc.c: New file.
39720         * modules/stdio-tests (Depends-on): Add fputc-tests.
39722         Tests for function fgetc().
39723         * modules/fgetc-tests: New file.
39724         * tests/test-fgetc.c: New file.
39725         * modules/stdio-tests (Depends-on): Add fgetc-tests.
39727         Tests for function fdopen().
39728         * modules/fdopen-tests: New file.
39729         * tests/test-fdopen.c: New file.
39730         * modules/stdio-tests (Depends-on): Add fdopen-tests.
39732         Tests for module 'vdprintf'.
39733         * modules/vdprintf-tests: New file.
39734         * tests/test-vdprintf.c: New file.
39736         Tests for module 'dprintf'.
39737         * modules/dprintf-tests: New file.
39738         * tests/test-dprintf.c: New file.
39740 2011-09-20  Bruno Haible  <bruno@clisp.org>
39742         Tests for module 'ioctl'.
39743         * modules/ioctl-tests: New file.
39744         * tests/test-ioctl.c: New file.
39746 2011-09-20  Bruno Haible  <bruno@clisp.org>
39748         fcntl tests: EBADF tests.
39749         * tests/test-fcntl.c (main): Add more tests for EBADF.
39751 2011-09-20  Bruno Haible  <bruno@clisp.org>
39753         utimensat tests: EBADF tests.
39754         * tests/test-utimensat.c (main): Add tests for EBADF.
39756         renameat tests: EBADF tests.
39757         * tests/test-renameat.c (main): Add tests for EBADF.
39759         mkfifoat tests: EBADF tests.
39760         * tests/test-mkfifoat.c (main): Add tests for EBADF.
39762         readlinkat tests: EBADF tests.
39763         * tests/test-readlinkat.c (main): Add tests for EBADF.
39765         symlinkat tests: EBADF tests.
39766         * tests/test-symlinkat.c (main): Add tests for EBADF.
39768         linkat tests: EBADF tests.
39769         * tests/test-linkat.c (main): Add tests for EBADF.
39771         Tests for module 'faccessat'.
39772         * modules/faccessat-tests: New file.
39773         * tests/test-faccessat.c: New file.
39775         fdopendir tests: EBADF tests.
39776         * tests/test-fdopendir.c (main): Add more tests for EBADF.
39778         openat tests: EBADF tests.
39779         * tests/test-fchownat.c (main): Add tests for EBADF.
39780         * tests/test-fstatat.c (main): Likewise.
39781         * tests/test-mkdirat.c (main): Likewise.
39782         * tests/test-openat.c (main): Likewise.
39783         * tests/test-unlinkat.c (main): Likewise.
39784         * tests/test-fchmodat.c: New file.
39785         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
39786         (Makefile.am): Also run 'test-fchmodat'.
39788 2011-09-20  Bruno Haible  <bruno@clisp.org>
39790         utimens, futimens, fdutimensat tests: EBADF tests.
39791         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
39793         Tests for function fstat().
39794         * modules/fstat-tests: New file.
39795         * tests/test-fstat.c: New file.
39796         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
39798 2011-09-20  Bruno Haible  <bruno@clisp.org>
39800         test-ttyname_r tests: EBADF tests.
39801         * tests/test-ttyname_r.c (main): Add tests for EBADF.
39803         Tests for module 'isatty'.
39804         * modules/isatty-tests: New file.
39805         * tests/test-isatty.c: New file.
39807         Tests for module 'write'.
39808         * modules/write-tests: New file.
39809         * tests/test-write.c: New file.
39811         Tests for module 'read'.
39812         * modules/read-tests: New file.
39813         * tests/test-read.c: New file.
39815         pwrite tests: EBADF tests.
39816         * tests/test-pwrite.c (main): Add tests for EBADF.
39818         pread tests: EBADF tests.
39819         * tests/test-pread.c (main): Add tests for EBADF.
39821         lseek tests: EBADF tests.
39822         * tests/test-lseek.c (main): Add more tests for EBADF.
39824         Tests for module 'ftruncate'.
39825         * modules/ftruncate-tests: New file.
39826         * tests/test-ftruncate.sh: New file.
39827         * tests/test-ftruncate.c: New file.
39829         fsync tests: EBADF tests.
39830         * tests/test-fsync.c (main): Add more tests for EBADF.
39832         fdatasync tests: EBADF tests.
39833         * tests/test-fdatasync.c (main): Add more tests for EBADF.
39835         Tests for module 'fchown'.
39836         * modules/fchown-tests: New file.
39837         * tests/test-fchown.c: New file.
39839         Tests for module 'fchmod'.
39840         * modules/fchmod-tests: New file.
39841         * tests/test-fchmod.c: New file.
39843         fchdir tests: EBADF tests.
39844         * tests/test-fchdir.c (main): Add more tests for EBADF.
39846         dup2 tests: EBADF tests.
39847         * tests/test-dup2.c (main): Add more tests for EBADF.
39849         Tests for module 'dup'.
39850         * modules/dup-tests: New file.
39851         * tests/test-dup.c: New file.
39853         Tests for module 'close'.
39854         * modules/close-tests: New file.
39855         * tests/test-close.c: New file.
39857 2011-09-20  Bruno Haible  <bruno@clisp.org>
39859         Tests for module 'shutdown'.
39860         * modules/shutdown-tests: New file.
39861         * tests/test-shutdown.c: New file.
39863         Tests for module 'setsockopt'.
39864         * modules/setsockopt-tests: New file.
39865         * tests/test-setsockopt.c: New file.
39867         Tests for module 'sendto'.
39868         * modules/sendto-tests: New file.
39869         * tests/test-sendto.c: New file.
39871         Tests for module 'send'.
39872         * modules/send-tests: New file.
39873         * tests/test-send.c: New file.
39875         Tests for module 'recvfrom'.
39876         * modules/recvfrom-tests: New file.
39877         * tests/test-recvfrom.c: New file.
39879         Tests for module 'recv'.
39880         * modules/recv-tests: New file.
39881         * tests/test-recv.c: New file.
39883         Tests for module 'listen'.
39884         * modules/listen-tests: New file.
39885         * tests/test-listen.c: New file.
39887         Tests for module 'getsockopt'.
39888         * modules/getsockopt-tests: New file.
39889         * tests/test-getsockopt.c: New file.
39891         Tests for module 'getsockname'.
39892         * modules/getsockname-tests: New file.
39893         * tests/test-getsockname.c: New file.
39895         Tests for module 'getpeername'.
39896         * modules/getpeername-tests: New file.
39897         * tests/test-getpeername.c: New file.
39899         Tests for module 'connect'.
39900         * modules/connect-tests: New file.
39901         * tests/test-connect.c: New file.
39903         Tests for module 'bind'.
39904         * modules/bind-tests: New file.
39905         * tests/test-bind.c: New file.
39907         accept4 tests: Fix for native Windows.
39908         * tests/test-accept4.c: Include sockets.h.
39909         (main): Invoke gl_sockets_startup.
39910         * modules/accept4-tests (Depends-on): Add sockets.
39912         accept tests: Fix for native Windows.
39913         * tests/test-accept.c: Include sockets.h.
39914         (main): Invoke gl_sockets_startup.
39915         * modules/accept-tests (Depends-on): Add sockets.
39917 2011-09-19  Bruno Haible  <bruno@clisp.org>
39919         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
39920         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
39921         do...while(0).
39922         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
39923         Suggested by Paul Eggert.
39925 2011-09-19  Bruno Haible  <bruno@clisp.org>
39927         sched: Ensure pid_t is defined.
39928         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
39929         not define pid_t.
39930         * lib/sched.in.h: Include <sys/types.h>.
39931         * doc/posix-headers/sched.texi: Mention the pid_t problem.
39932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39934 2011-09-19  Bruno Haible  <bruno@clisp.org>
39936         msvc-inval: Ensure the entire expansion is a single statement.
39937         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
39938         of braces.
39940 2011-09-19  Jim Meyering  <meyering@redhat.com>
39942         tests: use printf, not echo in init.sh's warn_ function
39943         * tests/init.sh (warn_): Use printf, not echo.  The latter would
39944         misbehave when given strings containing a backslash or starting
39945         with e.g., -n.  James Youngman suggested setting IFS.
39947 2011-09-19  Eric Blake  <eblake@redhat.com>
39949         futimens: enhance test
39950         * tests/test-futimens.h (test_futimens): Also check for EBADF on
39951         closed non-negative fd.
39953         date: accept 'hence' as opposite of 'ago'
39954         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
39955         * tests/test-parse-datetime.c (main): Enhance test.
39956         Suggested by Jesse Wilson.
39958 2011-09-19  Jim Meyering  <meyering@redhat.com>
39960         getcwd: don't fail in a deep directory on a system without openat
39961         Before this change, getcwd would fail when called from a directory
39962         of depth PATH_MAX / 3 or greater.  That was due to the fact that
39963         the non-openat implementation used "..", "../..", "../../..", etc.
39964         to access ancestor directories.  With too many, that string would
39965         be longer than PATH_MAX.
39966         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
39967         using gnulib's openat replacement.
39968         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
39969         we're using the replacement function.
39971 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
39973         maint.mk: avoid warnings from perl about missing files
39974         * top/maint.mk (def_sym_regex): Ignore files listed in
39975         $(gl_other_headers_) that do not exist, say because a project
39976         does not use a corresponding module.
39978 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39980         stat: use pathmax.h only if needed
39981         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
39982         This is better for Emacs, which does not have a mingw port and
39983         therefore can avoid the pathmax module.
39985         utimens: remove dependency on dup2
39986         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
39987         to work around the Linux kernel bug.
39988         * modules/utimens (Depends-on): Remove dup2.
39990 2011-09-18  Bruno Haible  <bruno@clisp.org>
39992         inet_ntop, inet_pton: Look for it also in libresolv.
39993         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
39994         libnsl, search for it in libresolv.
39995         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
39996         Needed on Solaris 7.
39998 2011-09-18  Bruno Haible  <bruno@clisp.org>
40000         accept, accept4 tests: Avoid link error on Solaris.
40001         * modules/accept-tests (Makefile.am): Link test-accept against
40002         $(LIBSOCKET).
40003         * modules/accept4-tests (Makefile.am): Link test-accept4 against
40004         $(LIBSOCKET).
40006         accept4: Avoid link error on Solaris.
40007         * modules/accept4 (Link): New section.
40009         socket functions: Avoid link errors on Solaris.
40010         * modules/accept (Depends-on): Add socketlib.
40011         (Link): New section.
40012         * modules/bind (Depends-on): Add socketlib.
40013         (Link): New section.
40014         * modules/connect (Depends-on): Add socketlib.
40015         (Link): New section.
40016         * modules/getpeername (Depends-on): Add socketlib.
40017         (Link): New section.
40018         * modules/getsockname (Depends-on): Add socketlib.
40019         (Link): New section.
40020         * modules/getsockopt (Depends-on): Add socketlib.
40021         (Link): New section.
40022         * modules/listen (Depends-on): Add socketlib.
40023         (Link): New section.
40024         * modules/recv (Depends-on): Add socketlib.
40025         (Link): New section.
40026         * modules/recvfrom (Depends-on): Add socketlib.
40027         (Link): New section.
40028         * modules/send (Depends-on): Add socketlib.
40029         (Link): New section.
40030         * modules/sendto (Depends-on): Add socketlib.
40031         (Link): New section.
40032         * modules/setsockopt (Depends-on): Add socketlib.
40033         (Link): New section.
40034         * modules/shutdown (Depends-on): Add socketlib.
40035         (Link): New section.
40036         * modules/socket (Depends-on): Add socketlib.
40037         (Link): New section.
40039 2011-09-18  Bruno Haible  <bruno@clisp.org>
40041         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
40042         * tests/test-ptsname.c (main): Terminate the test if it takes longer
40043         than 5 seconds.
40044         * modules/ptsname-tests (configure.ac): Test for alarm.
40046 2011-09-18  Bruno Haible  <bruno@clisp.org>
40048         posix_spawn_file_actions_add*: Fix module dependencies.
40049         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
40050         posix_spawn_file_actions_init.
40051         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
40052         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
40054 2011-09-18  Bruno Haible  <bruno@clisp.org>
40056         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
40057         * tests/test-rename.h (test_rename): Allow error code EEXIST.
40058         * tests/test-renameat.c (main): Likewise.
40060 2011-09-18  Bruno Haible  <bruno@clisp.org>
40062         Tests for module 'accept4'.
40063         * modules/accept4-tests: New file.
40064         * tests/test-accept4.c: New file.
40066 2011-09-18  Bruno Haible  <bruno@clisp.org>
40068         Tests for module 'accept'.
40069         * modules/accept-tests: New file.
40070         * tests/test-accept.c: New file.
40072 2011-09-18  Bruno Haible  <bruno@clisp.org>
40074         dup2: Support for MSVC.
40075         * lib/dup2.c: Include msvc-inval.h.
40076         (rpl_dup2): Handle invalid parameter notifications during dup2 and
40077         _get_osfhandle calls.
40078         * modules/dup2 (Depends-on): Add msvc-inval.
40079         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
40081         New module 'msvc-inval'.
40082         * lib/msvc-inval.h: New file.
40083         * lib/msvc-inval.c: New file.
40084         * m4/msvc-inval.m4: New file.
40085         * modules/msvc-inval: New file.
40087 2011-09-17  Bruno Haible  <bruno@clisp.org>
40089         Tests for module 'pclose'.
40090         * modules/pclose-tests: New file.
40092         New module 'pclose'.
40093         * lib/stdio.in.h (pclose): New declaration.
40094         * lib/pclose.c: New file.
40095         * m4/pclose.m4: New file.
40096         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
40097         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
40098         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
40099         * modules/pclose: New file.
40100         * modules/popen-tests (Depends-on): Add pclose.
40101         * modules/popen-safer-tests (Depends-on): Likewise.
40102         * doc/posix-functions/pclose.texi: Mention the new module.
40104 2011-09-17  Bruno Haible  <bruno@clisp.org>
40106         popen: Support for MSVC.
40107         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
40108         * lib/popen.c (popen): Provide alternate definition for native Windows.
40109         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
40110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
40111         * modules/popen (Depends-on, configure.ac): Update condition.
40112         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
40113         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
40114         fixed.
40116 2011-09-17  Bruno Haible  <bruno@clisp.org>
40118         isnanl, isnand, isnanf: Work around MSVC bug.
40119         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
40121 2011-09-17  Bruno Haible  <bruno@clisp.org>
40123         sys_socket tests: Fix recent mistake.
40124         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
40126 2011-09-17  Bruno Haible  <bruno@clisp.org>
40128         putenv: Support for MSVC.
40129         * modules/putenv (Depends-on): Add environ.
40130         * lib/putenv.c (environ): Disable declaration.
40131         * lib/unistd.in.h: Update comment.
40133 2011-09-17  Bruno Haible  <bruno@clisp.org>
40135         math: Avoid macro redefinition warnings on MSVC.
40136         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
40137         Undefine before redefining.
40139 2011-09-17  Bruno Haible  <bruno@clisp.org>
40141         doc: Mention functions which are declared as macros.
40142         * doc/posix-functions/*[fl].texi: Mention that some functions are
40143         defined as macros with arguments only.
40145 2011-09-17  Bruno Haible  <bruno@clisp.org>
40147         Add dependencies to new dirent related modules.
40148         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
40149         * modules/fts (Depends-on): Likewise.
40150         * modules/glob (Depends-on): Likewise.
40151         * modules/savedir (Depends-on): Likewise.
40152         * modules/scandir (Depends-on): Likewise.
40153         * modules/dirent-safer (Depends-on): Add opendir, closedir.
40154         * modules/fdopendir (Depends-on): Add opendir.
40156 2011-09-17  Bruno Haible  <bruno@clisp.org>
40158         inet_pton: Support for MSVC on Windows Vista or newer.
40159         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
40160         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
40161         HAVE_DECL_INET_PTON is defined.
40162         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40163         On platforms with <winsock2.h>, test whether inet_pton is declared in
40164         <ws2tcpip.h>. If so, arrange to replace it.
40165         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40166         REPLACE_INET_PTON.
40167         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
40168         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
40169         (Depends-on, configure.ac): Update condition.
40170         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
40172 2011-09-17  Bruno Haible  <bruno@clisp.org>
40174         inet_ntop: Support for MSVC on Windows Vista or newer.
40175         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
40176         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
40177         HAVE_DECL_INET_NTOP is defined.
40178         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
40179         On platforms with <winsock2.h>, test whether inet_ntop is declared in
40180         <ws2tcpip.h>. If so, arrange to replace it.
40181         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
40182         REPLACE_INET_NTOP.
40183         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
40184         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
40185         (Depends-on, configure.ac): Update condition.
40186         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
40188 2011-09-16  Eric Blake  <eblake@redhat.com>
40190         test-fsync: yet another enhancement
40191         * tests/test-fsync.c (main): Also test behavior on read-only text
40192         file.
40194 2011-09-16  Bruno Haible  <bruno@clisp.org>
40196         Enhance fsync, fdatasync tests.
40197         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
40198         * tests/test-fdatasync.c (main): Likewise.
40200 2011-09-16  Bruno Haible  <bruno@clisp.org>
40202         Support for MSVC compiler: Ensure mode_t gets defined.
40203         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
40204         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40205         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40206         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
40207         * tests/test-fcntl-h.c: Check that mode_t is defined.
40208         * tests/test-sys_stat.c: Likewise.
40209         * tests/test-sys_types.c: Likewise.
40210         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
40211         * doc/posix-headers/sys_stat.texi: Likewise.
40212         * doc/posix-headers/sys_types.texi: Likewise.
40214 2011-09-16  Bruno Haible  <bruno@clisp.org>
40216         sys_stat: Support for MSVC.
40217         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
40218         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
40219         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
40220         MSVC.
40222 2011-09-16  Bruno Haible  <bruno@clisp.org>
40224         Support for MSVC compiler: Ensure off_t gets defined.
40225         * lib/unistd.in.h: Include <sys/types.h>.
40226         * tests/test-fcntl-h.c: Check that off_t is defined.
40227         * tests/test-sys_stat.c: Likewise.
40228         * tests/test-sys_types.c: Likewise.
40230 2011-09-16  Eric Blake  <eblake@redhat.com>
40232         fdatasync: port to Solaris
40233         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
40234         * modules/fdatasync (Link): Document it.
40235         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
40237         fdatasync: port to MacOS X 10.7
40238         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
40239         declared.
40240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
40241         * modules/unistd (Makefile.am): Substitute it.
40242         * lib/unistd.in.h (fdatasync): Declare on MacOS.
40243         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
40245         fdatasync: minor improvements
40246         * modules/fdatasync (Depends-on): Add condition for fsync.
40247         * lib/fdatasync.c (fdatasync): Add comment.
40248         * tests/test-unistd-c++.cc: Test fdatasync.
40250         unistd: update refs to newer POSIX
40251         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
40252         Suggested by Bruno Haible.
40254         fdatasync: new module
40255         * modules/fsync (Description): Document difference to fdatasync.
40256         * modules/fdatasync: New module.
40257         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
40258         * lib/fdatasync.c (fdatasync): Likewise.
40259         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
40260         defaults.
40261         * modules/unistd (Makefile.am): Set witnesses.
40262         * lib/unistd.in.h (fdatasync): Declare.
40263         * MODULES.html.sh: Document it.
40264         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
40265         * modules/fdatasync-tests: New test.
40266         * tests/test-fdatasync.c: Likewise.
40268 2011-09-16  Eric Blake  <eblake@redhat.com>
40270         test-fsync: enhance tests
40271         * modules/fsync-tests (Depends-on): Add errno, for mingw.
40272         * tests/test-fsync.c (main): Enhance test.
40274 2011-09-15  Bruno Haible  <bruno@clisp.org>
40276         Support for MSVC compiler: Ensure ssize_t gets defined.
40277         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
40278         * doc/posix-headers/stdio.texi: Likewise.
40279         * modules/stdio (Depends-on): Add ssize_t.
40280         * modules/sys_socket (Depends-on): Likewise.
40281         * modules/sys_types (Depends-on): Likewise.
40282         * modules/sys_uio (Depends-on): Likewise.
40283         * modules/unistd (Depends-on): Likewise.
40284         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
40285         * tests/test-sys_types.c: Check that ssize_t is defined.
40287 2011-09-14  Bruno Haible  <bruno@clisp.org>
40289         Avoid using #, the m4 comment starter character, near brackets.
40290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
40291         delimiter character in sed expressions.
40292         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
40293         Suggested by Eric Blake.
40295         Properly quote AC_CHECK_DECLS' 4th argument.
40296         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
40297         argument.
40298         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40299         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
40300         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40301         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
40302         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40303         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
40304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
40305         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
40306         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
40307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40308         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
40309         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40310         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40311         * m4/isinf.m4 (gl_ISINF): Likewise.
40312         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40313         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40314         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40315         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40317         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
40318         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
40319         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
40320         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
40321         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
40322         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
40323         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
40324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
40325         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40327         Reported by Eric Blake.
40329         Properly quote AC_CHECK_DECL's 4th argument.
40330         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
40331         argument.
40332         * m4/argp.m4 (gl_ARGP): Likewise.
40333         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
40334         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
40335         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
40336         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
40337         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
40338         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
40339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40340         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
40341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40342         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
40343         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
40344         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
40345         Reported by Eric Blake.
40347 2011-09-14  Eric Blake  <eblake@redhat.com>
40349         opendir: avoid compile warning
40350         * lib/opendir.c (includes): Always include errno.h.
40351         Reported by Tatsuro MATSUOKA.
40353 2011-09-14  Jim Meyering  <meyering@redhat.com>
40355         maint.mk: sc_tight_scope: propagate failure from sub-make
40356         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
40357         Reported by Martin von Gagern.
40359 2011-09-13  Bruno Haible  <bruno@clisp.org>
40361         tempname: Support for MSVC.
40362         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
40363         MSVC.
40364         * modules/tempname (Depends-on): Add fcntl-h.
40366 2011-09-13  Bruno Haible  <bruno@clisp.org>
40368         sys_time: Support for MSVC.
40369         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
40370         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
40371         include <winsock2.h>.
40372         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
40373         function declarations that collide with POSIX.
40374         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
40375         (Makefile.am): Substitute HAVE_WINSOCK2_H.
40377 2011-09-13  Bruno Haible  <bruno@clisp.org>
40379         stat: Support for MSVC.
40380         * lib/stat.c: Include pathmax.h.
40381         * modules/stat (Depends-on): Add pathmax.
40383         pathmax: Support for native Windows.
40384         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
40386 2011-09-12  Bruno Haible  <bruno@clisp.org>
40388         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
40389         * lib/dirent.in.h (struct dirent): New type.
40390         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
40391         DT_WHT): New macros.
40392         (DIR): New type.
40393         (opendir, closedir): Declare only if the module 'opendir' is enabled.
40394         (readdir, rewinddir): New declarations.
40395         * lib/dirent-private.h: New file.
40396         * lib/opendir.c: New file.
40397         * lib/readdir.c: New file.
40398         * lib/rewinddir.c: New file.
40399         * lib/closedir.c: New file.
40400         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
40401         * m4/opendir.m4: New file.
40402         * m4/readdir.m4: New file.
40403         * m4/rewinddir.m4: New file.
40404         * m4/closedir.m4: New file.
40405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
40406         REPLACE_CLOSEDIR here.
40407         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
40408         readdir, rewinddir are declared.
40409         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
40410         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
40411         HAVE_REWINDDIR, HAVE_CLOSEDIR.
40412         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
40413         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
40414         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
40415         * modules/opendir: New file.
40416         * modules/readdir: New file.
40417         * modules/rewinddir: New file.
40418         * modules/closedir: New file.
40419         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
40420         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
40421         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
40422         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
40423         * NEWS: Mention the 'fchdir' change.
40425 2011-09-11  Bruno Haible  <bruno@clisp.org>
40427         asm-underscore.m4: Support for MSVC.
40428         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
40429         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
40431 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
40433         Doc about crypt functions.
40434         * doc/posix-functions/crypt.texi: Expand range of glibc versions
40435         needing for _GNU_SOURCE to get crypt.
40436         * doc/posix-functions/encrypt.texi: Likewise.
40437         * doc/posix-functions/setkey.texi: Likewise.
40439 2011-09-11  Bruno Haible  <bruno@clisp.org>
40441         doc: Update regarding MSVC 9.
40442         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
40443         tested".
40444         * doc/posix-functions/*.texi: Update with info about MSVC 9.
40445         * doc/posix-headers/*.texi: Likewise.
40446         * doc/pastposix-functions/*.texi: Likewise.
40447         * doc/glibc-functions/*.texi: Likewise.
40448         * doc/glibc-headers/*.texi: Likewise.
40450 2011-09-11  Bruno Haible  <bruno@clisp.org>
40452         unistd et al.: Don't assume <unistd.h> exists.
40453         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
40454         does not exist.
40455         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
40456         exist. But include <stdlib.h>.
40457         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
40458         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
40459         symlink() does not exist.
40460         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
40461         include <io.h> instead.
40462         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
40463         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
40464         include <direct.h> instead.
40465         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
40466         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40467         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
40468         <io.h> instead.
40469         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
40470         correctly if the system does not have hard links.
40471         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
40472         <direct.h> instead.
40473         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
40474         it when looking for function declarations.
40475         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
40476         <direct.h> and <io.h> instead.
40477         * doc/posix-headers/unistd.texi: More details about MSVC problem.
40479 2011-09-11  Bruno Haible  <bruno@clisp.org>
40481         strcase: Support for MSVC.
40482         * modules/strcase (Status, Notice): Remove obsoletion mark.
40483         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
40484         * doc/posix-functions/strncasecmp.texi: Likewise.
40486         strings: Don't assume <strings.h> exists.
40487         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
40488         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
40489         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
40490         * doc/posix-headers/strings.texi: Mention the MSVC problem.
40492 2011-09-11  Bruno Haible  <bruno@clisp.org>
40494         dirent: Don't assume <dirent.h> exists.
40495         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
40496         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
40497         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
40498         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
40500 2011-09-11  Bruno Haible  <bruno@clisp.org>
40502         Fix wint_t on MSVC.
40503         * lib/wchar.in.h (wint_t): On MSVC, override it.
40504         * lib/wctype.in.h (wint_t): Likewise.
40505         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
40506         MSVC.
40507         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
40508         * doc/posix-headers/wctype.texi: Likewise.
40510 2011-09-11  Bruno Haible  <bruno@clisp.org>
40512         sys_types: Fix typo.
40513         * lib/sys_types.in.h: Fix typo in comment.
40514         Reported by Paul Eggert.
40516         Support for MSVC compiler: Ensure size_t gets defined.
40517         * modules/strings (Depends-on): Add 'sys_types'.
40518         * modules/sys_uio (Depends-on): Likewise.
40519         * lib/sys_uio.in.h: Update comment.
40521         C++ tests for module 'sys_types'.
40522         * modules/sys_types-c++-tests: New file.
40523         * tests/test-sys_types-c++.cc: New file.
40525         Tests for module 'sys_types'.
40526         * modules/sys_types-tests: New file.
40527         * tests/test-sys_types.c: New file.
40529         New module 'sys_types'.
40530         * lib/sys_types.in.h: New file.
40531         * m4/sys_types_h.m4: New file.
40532         * modules/sys_types: New file.
40533         * doc/posix-headers/sys_types.texi: Mention the new module and the
40534         size_t problem on MSVC 9.
40536 2011-09-11  Bruno Haible  <bruno@clisp.org>
40538         Support for MSVC compiler: Avoid division by a literal 0.
40539         * lib/math.in.h (NAN): Define through a function call also on MSVC.
40540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
40541         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
40542         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
40543         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
40544         * tests/infinity.h: New file.
40545         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
40546         on MSVC.
40547         * tests/test-ceilf1.c: Include infinity.h.
40548         (main): Use Infinityf.
40549         * tests/test-ceil1.c: Include infinity.h.
40550         (main): Use Infinityd.
40551         * tests/test-ceill.c: Include infinity.h.
40552         (main): Use Infinityl.
40553         * tests/test-dprintf-posix.c: Include infinity.h.
40554         (test_function): Use Infinityd.
40555         * tests/test-floorf1.c: Include infinity.h.
40556         (main): Use Infinityf.
40557         * tests/test-floor1.c: Include infinity.h.
40558         (main): Use Infinityd.
40559         * tests/test-floorl.c: Include infinity.h.
40560         (main): Use Infinityl.
40561         * tests/test-fprintf-posix.c: Include infinity.h.
40562         (test_function): Use Infinityd.
40563         * tests/test-frexp.c: Include infinity.h.
40564         (main): Use Infinityd.
40565         * tests/test-frexpl.c: Include infinity.h.
40566         (main): Use Infinityl.
40567         * tests/test-isfinite.c: Include infinity.h.
40568         (test_isfinitef): Use Infinityf.
40569         (test_isfinited): Use Infinityd.
40570         (test_isfinitel): Use Infinityl.
40571         * tests/test-isinf.c: Include infinity.h.
40572         (test_isinff): Use Infinityf.
40573         (test_isinfd): Use Infinityd.
40574         (test_isinfl): Use Infinityl.
40575         * tests/test-isnan.c: Include infinity.h.
40576         (test_float): Use Infinityf.
40577         (test_double): Use Infinityd.
40578         (test_long_double): Use Infinityl.
40579         * tests/test-isnanf.h: Include infinity.h.
40580         (main): Use Infinityf.
40581         * tests/test-isnand.h: Include infinity.h.
40582         (main): Use Infinityd.
40583         * tests/test-isnanl.h: Include infinity.h.
40584         (main): Use Infinityl.
40585         * tests/test-ldexpl.c: Include infinity.h.
40586         (main): Use Infinityl.
40587         * tests/test-printf-posix.h: Include infinity.h.
40588         (test_function): Use Infinityd.
40589         * tests/test-roundf1.c: Include infinity.h.
40590         (main): Use Infinityf.
40591         * tests/test-round1.c: Include infinity.h.
40592         (main): Use Infinityd.
40593         * tests/test-roundl.c: Include infinity.h.
40594         (main): Use Infinityl.
40595         * tests/test-signbit.c: Include infinity.h.
40596         (test_signbitf): Use Infinityf.
40597         (test_signbitd): Use Infinityd.
40598         (test_signbitl): Use Infinityl.
40599         * tests/test-snprintf-posix.h: Include infinity.h.
40600         (test_function): Use Infinityd, Infinityl.
40601         * tests/test-sprintf-posix.h: Include infinity.h.
40602         (test_function): Use Infinityd, Infinityl.
40603         * tests/test-truncf1.c: Include infinity.h.
40604         (main): Use Infinityf.
40605         * tests/test-trunc1.c: Include infinity.h.
40606         (main): Use Infinityd.
40607         * tests/test-truncl.c: Include infinity.h.
40608         (main): Use Infinityl.
40609         * tests/test-vasnprintf-posix.c: Include infinity.h.
40610         (test_function): Use Infinityd, Infinityl.
40611         * tests/test-vasprintf-posix.c: Include infinity.h.
40612         (test_function): Use Infinityd, Infinityl.
40613         * modules/ceilf-tests (Files): Add tests/infinity.h.
40614         * modules/ceil-tests (Files): Likewise.
40615         * modules/ceill-tests (Files): Likewise.
40616         * modules/dprintf-posix-tests (Files): Likewise.
40617         * modules/floorf-tests (Files): Likewise.
40618         * modules/floor-tests (Files): Likewise.
40619         * modules/floorl-tests (Files): Likewise.
40620         * modules/fprintf-posix-tests (Files): Likewise.
40621         * modules/frexp-tests (Files): Likewise.
40622         * modules/frexp-nolibm-tests (Files): Likewise.
40623         * modules/frexpl-tests (Files): Likewise.
40624         * modules/frexpl-nolibm-tests (Files): Likewise.
40625         * modules/isfinite-tests (Files): Likewise.
40626         * modules/isinf-tests (Files): Likewise.
40627         * modules/isnan-tests (Files): Likewise.
40628         * modules/isnanf-tests (Files): Likewise.
40629         * modules/isnanf-nolibm-tests (Files): Likewise.
40630         * modules/isnand-tests (Files): Likewise.
40631         * modules/isnand-nolibm-tests (Files): Likewise.
40632         * modules/isnanl-tests (Files): Likewise.
40633         * modules/isnanl-nolibm-tests (Files): Likewise.
40634         * modules/ldexpl-tests (Files): Likewise.
40635         * modules/printf-posix-tests (Files): Likewise.
40636         * modules/roundf-tests (Files): Likewise.
40637         * modules/round-tests (Files): Likewise.
40638         * modules/roundl-tests (Files): Likewise.
40639         * modules/signbit-tests (Files): Likewise.
40640         * modules/snprintf-posix-tests (Files): Likewise.
40641         * modules/sprintf-posix-tests (Files): Likewise.
40642         * modules/truncf-tests (Files): Likewise.
40643         * modules/trunc-tests (Files): Likewise.
40644         * modules/truncl-tests (Files): Likewise.
40645         * modules/vasnprintf-posix-tests (Files): Likewise.
40646         * modules/vasprintf-posix-tests (Files): Likewise.
40647         * modules/vdprintf-posix-tests (Files): Likewise.
40648         * modules/vfprintf-posix-tests (Files): Likewise.
40649         * modules/vprintf-posix-tests (Files): Likewise.
40650         * modules/vsnprintf-posix-tests (Files): Likewise.
40651         * modules/vsprintf-posix-tests (Files): Likewise.
40652         * modules/xprintf-posix-tests (Files): Likewise.
40654 2011-09-11  Bruno Haible  <bruno@clisp.org>
40656         Ensure pid_t gets defined.
40657         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
40658         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
40659         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40660         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40661         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
40662         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
40663         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40664         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40665         * tests/test-fcntl-h.c: Check that pid_t is defined.
40666         * tests/test-sched.c: Likewise.
40667         * tests/test-termios.c: Likewise.
40668         * tests/test-time.c: Likewise.
40669         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
40670         * doc/posix-headers/signal.texi: Likewise.
40671         * doc/posix-headers/sys_types.texi: Likewise.
40672         * doc/posix-headers/time.texi: Likewise.
40674 2011-09-11  Bruno Haible  <bruno@clisp.org>
40676         acl: Fix compilation on Solaris 10 (older version).
40677         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
40678         of ACE_EVERYONE.
40679         * lib/set-mode-acl.c (qset_acl): Likewise.
40680         Reported by Christian Jullien <eligis@orange.fr>.
40682 2011-09-10  Bruno Haible  <bruno@clisp.org>
40684         iconv, unsetenv: Add support for MSVC compiler.
40685         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
40686         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
40688 2011-09-10  Bruno Haible  <bruno@clisp.org>
40690         *printf: Add support for MSVC compiler.
40691         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
40692         handles the exception caused by the %n directive. When cross-compiling,
40693         guess no on native Windows.
40694         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
40695         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
40696         emulate it through vsnprintf.
40697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
40698         * doc/posix-functions/dprintf.texi: Update documentation regarding
40699         MSVC 9.
40700         * doc/posix-functions/fprintf.texi: Likewise.
40701         * doc/posix-functions/printf.texi: Likewise.
40702         * doc/posix-functions/snprintf.texi: Likewise.
40703         * doc/posix-functions/sprintf.texi: Likewise.
40704         * doc/posix-functions/swprintf.texi: Likewise.
40705         * doc/posix-functions/vdprintf.texi: Likewise.
40706         * doc/posix-functions/vfprintf.texi: Likewise.
40707         * doc/posix-functions/vprintf.texi: Likewise.
40708         * doc/posix-functions/vsnprintf.texi: Likewise.
40709         * doc/posix-functions/vsprintf.texi: Likewise.
40710         * doc/glibc-functions/asprintf.texi: Likewise.
40711         * doc/glibc-functions/obstack_printf.texi: Likewise.
40712         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40713         * doc/glibc-functions/vasprintf.texi: Likewise.
40715 2011-09-10  Bruno Haible  <bruno@clisp.org>
40717         nocrash: Add support for native Windows.
40718         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
40720 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
40721             Bruno Haible  <bruno@clisp.org>
40723         absolute-header, include-next: Add support for MSVC compiler.
40724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
40725         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
40726         directory separator in #line directives.
40727         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
40728         recognize also backslash as directory separator in #line directives.
40730 2011-09-08  Jim Meyering  <meyering@redhat.com>
40732         maint.mk: mark the post-release commit log with "maint: " prefix
40733         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
40734         one-line commit-log summary.
40736 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
40737             Bruno Haible  <bruno@clisp.org>
40739         Doc about crypt functions.
40740         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
40741         systems.
40742         * doc/posix-functions/encrypt.texi: Likewise.
40743         * doc/posix-functions/setkey.texi: Likewise.
40745 2011-09-08  Simon Josefsson  <simon@josefsson.org>
40747         * lib/gc.h: Fix copyright header.
40749 2011-09-07  Bruno Haible  <bruno@clisp.org>
40751         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
40752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
40753         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
40755 2011-09-07  Bruno Haible  <bruno@clisp.org>
40757         openat: Work around compilation error with OSF/1 5.1 DTK cc.
40758         * lib/fopen.c: Use different syntax for include of <stdio.h>.
40759         * lib/freopen.c: Likewise.
40760         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
40761         * lib/lstat.c: Likewise.
40762         * lib/stat.c: Likewise.
40763         * lib/open.c: Use different syntax for include of <fcntl.h>.
40764         * lib/openat.c: Include fcntl.h again, explicitly.
40766 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
40768         parse-datetime: document the newly accepted format
40769         * doc/parse-datetime.texi (Combined date and time of day items):
40770         New section.
40772 2011-09-06  Bruno Haible  <bruno@clisp.org>
40774         acl: Fix a test failure on newer Solaris 10 with ZFS.
40775         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
40776         ENOSYS as no ACL.
40777         Reported by Jim Meyering.
40779 2011-09-06  Bruno Haible  <bruno@clisp.org>
40781         acl: Update for AIX >= 5.3 with NFS.
40782         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
40783         ENOSYS as no ACL.
40785         acl: Fix a test failure on AIX >= 5.3 with NFS.
40786         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
40787         as no ACL.
40789 2011-09-06  Bruno Haible  <bruno@clisp.org>
40791         acl: Fix a test failure on IRIX 6.5 with NFS.
40792         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
40793         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
40794         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
40795         * lib/copy-acl.c (qcopy_acl): Likewise.
40797 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
40799         openat: port to AIX 7.1 with large files
40800         AIX 7.1 does a "#define openat open64at" if large files are in use,
40801         so we can't simply #undef openat.  Use the orig_openat trick (similar
40802         to orig_open in lib/open.c) to work around the problem.  Problem
40803         reported by Kevin Brott for GNU tar, in the thread containing
40804         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
40805         * lib/openat.c (__need_system_fcntl_h): Define first.
40806         Include <fcntl.h> and <sys/types.h> before undefining.
40807         (orig_openat) [HAVE_OPENAT]: New inline function.
40808         (openat) [HAVE_OPENAT]: Do not undef.
40809         (rpl_openat): Use orig_openat, not openat.
40811 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
40812             Bruno Haible  <bruno@clisp.org>
40814         acl: Avoid errors on NonStop Kernel.
40815         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
40816         ENOTSUP errors.
40818 2011-09-05  Bruno Haible  <bruno@clisp.org>
40820         acl: Clean up Solaris code.
40821         * lib/acl-internal.h: Remove no-op #if.
40822         * lib/file-has-acl.c: Likewise.
40823         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
40824         * lib/copy-acl.c (qcopy_acl): Likewise.
40826 2011-09-05  Bruno Haible  <bruno@clisp.org>
40828         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
40829         binaries built on the original Solaris 10.
40830         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
40831         trivial.
40833 2011-09-05  Bruno Haible  <bruno@clisp.org>
40835         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
40836         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
40837         10.
40838         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
40839         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
40840         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
40841         instead of acl_get, facl_get, acl_set, facl_set.
40843 2011-09-05  Bruno Haible  <bruno@clisp.org>
40845         copy-file: Try unit tests on more file systems.
40846         * tests/test-copy-file-1.sh: New file.
40847         * tests/test-copy-file-2.sh: New file.
40848         * modules/copy-file-tests (Files): Add them.
40849         (Makefile.am): Add them to TESTS.
40851         acl: Try unit tests on more file systems.
40852         * tests/test-file-has-acl-1.sh: New file.
40853         * tests/test-file-has-acl-2.sh: New file.
40854         * tests/test-set-mode-acl-1.sh: New file.
40855         * tests/test-set-mode-acl-2.sh: New file.
40856         * tests/test-copy-acl-1.sh: New file.
40857         * tests/test-copy-acl-2.sh: New file.
40858         * modules/acl-tests (Files): Add them.
40859         (Makefile.am): Add them to TESTS.
40861 2011-09-04  Bruno Haible  <bruno@clisp.org>
40863         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
40864         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
40865         10.
40866         (OLD_ALLOW, OLD_DENY): New macros.
40867         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
40868         ACE_ACCESS_ALLOWED_ACE_TYPE.
40869         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
40870         ACE_ACCESS_DENIED_ACE_TYPE.
40871         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
40872         (NEW_ACE_EXECUTE): Fix value.
40873         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
40874         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
40875         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
40876         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
40877         NEW_ACE_SYNCHRONIZE): New macros.
40878         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
40879         instead of acl_fromtext, acl_set, facl_set.
40880         Fixes a coreutils/tests/cp/perm failure.
40882 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
40884         openat: test for fstatat (..., 0) bug
40885         Further testing with tar suggests that fstatat (..., 0)
40886         does not work in general, on AIX 7.1; see
40887         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
40888         So, give up entirely on AIX 7.1's fstatat, and fall back on our
40889         replacement fstatat (which is what older AIX releases were using
40890         anyway).
40891         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
40892         use is now changed to orig_fstatat.  This was probably the right
40893         thing to do anyway.
40894         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
40895         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
40896         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
40897         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
40898         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
40899         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
40900         if the bug is found.
40902         openat: test for fstatat (AT_FDCWD, ..., 0) bug
40903         This tests for another fstatat bug on AIX 7.1:
40904         fstatat (AT_FDCWD, ..., 0) does not work.  See
40905         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
40906         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
40907         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
40908         (rpl_fstatat): Adjust so that it works around either (or both)
40909         bugs if present.
40910         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
40912 2011-09-03  Karl Berry  <karl@gnu.org>
40914         * doc/regex.texi (Character Class Operators): Avoid literal ":"
40915         in index entries.
40917 2011-09-02  Bruno Haible  <bruno@clisp.org>
40919         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
40920         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
40921         values of AR, ARFLAGS, RANLIB.
40922         Reported by John W. Eaton <jwe@gnu.org> for Octave.
40924 2011-09-02  Bruno Haible  <bruno@clisp.org>
40926         Find 'ar' program that fits with --host argument.
40927         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
40929 2011-09-02  Bruno Haible  <bruno@clisp.org>
40931         tests: init.sh: Support any non-GNU diff.
40932         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
40933         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
40934         Solaris 8.
40936 2011-09-02  Bruno Haible  <bruno@clisp.org>
40938         tests: init.sh: work also with any non-GNU diff that supports -u
40939         * tests/init.sh: Relax check for diff -u support.
40940         Rather than checking for GNU diff via --version, simply check
40941         for support for -u itself.  Useful at least on OpenBSD 4.9,
40942         AIX 7.1, IRIX 6.5, and Solaris 10.
40944 2011-09-01  Bruno Haible  <bruno@clisp.org>
40946         strtoimax, strtoumax: Document problem on HP-UX 11.
40947         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
40948         * doc/posix-functions/strtoumax.texi: Likewise.
40950 2011-09-01  Bruno Haible  <bruno@clisp.org>
40952         strtoumax: Avoid link error on OSF/1 with DTK cc.
40953         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
40954         defined as a function.
40955         * modules/strtoumax (Depends-on, configure.ac): Test only whether
40956         strtoumax is defined, not whether it is declared.
40958 2011-09-01  Bruno Haible  <bruno@clisp.org>
40960         strtoimax: Avoid link error on OSF/1 with DTK cc.
40961         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
40962         defined as a function.
40963         * modules/strtoimax (Depends-on, configure.ac): Test only whether
40964         strtoimax is defined, not whether it is declared.
40966 2011-09-01  Bruno Haible  <bruno@clisp.org>
40968         imaxdiv: Avoid link error on OSF/1 with DTK cc.
40969         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
40970         as a function.
40971         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
40972         whether it is declared.
40974 2011-09-01  Bruno Haible  <bruno@clisp.org>
40976         imaxabs: Avoid link error on OSF/1 with DTK cc.
40977         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
40978         as a function.
40979         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
40980         whether it is declared.
40982 2011-09-01  Bruno Haible  <bruno@clisp.org>
40984         Tests for module 'strtoumax'.
40985         * modules/strtoumax-tests: New file.
40986         * tests/test-strtoumax.c: New file.
40988         Tests for module 'strtoimax'.
40989         * modules/strtoimax-tests: New file.
40990         * tests/test-strtoimax.c: New file.
40992         Tests for module 'imaxdiv'.
40993         * modules/imaxdiv-tests: New file.
40994         * tests/test-imaxdiv.c: New file.
40996         Tests for module 'imaxabs'.
40997         * modules/imaxabs-tests: New file.
40998         * tests/test-imaxabs.c: New file.
41000 2011-09-01  Bruno Haible  <bruno@clisp.org>
41002         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
41003         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
41004         pthread_create.
41006 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41008         openat: work around AIX 7.1 fstatat issue
41009         This should fix the problem that was not properly fixed
41010         in the previous change, dated 2011-08-30.
41011         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
41012         __need_system_stat_h defined.
41013         (orig_fstatat) [HAVE_FSTATAT]: New function.
41014         (rpl_fstatat): Go back to the old way of doing things,
41015         except call orig_fstatat instead of fstatat.
41016         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
41017         Remove unnecessary check whether fstatat fills in st_size etc.
41019 2011-09-01  Bruno Haible  <bruno@clisp.org>
41021         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
41022         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
41023         just include the system's header.
41025 2011-08-31  Jim Meyering  <meyering@redhat.com>
41027         tests: avoid spurious assertion failure in test-float.c on ppc64
41028         * tests/test-float.c (test_long_double): Comment out an assertion,
41029         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
41030         with gcc-4.4.4.
41032         maint: indent with spaces, not TABs
41033         I need to get in the habit of running gnulib's "make check".
41034         Both of these would have been caught.
41035         * m4/largefile.m4: Indent with spaces, not TABs.
41036         * lib/parse-datetime.y (iso_8601_time): Likewise.
41037         Spotted by Pádraig Brady.
41039         test-parse-datetime.c: accommodate a relatively strict gcc warning
41040         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
41041         to avoid a warning from gcc's -Werror=missing-declarations.
41042         Insert a few spaces-before-funcall-parenthesis.
41044 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
41046         parse-datetime: accept ISO 8601 date and time rep with "T" separator
41047         The parser now accepts ISO 8601 date-time strings with "T" as the
41048         separator.  It has long parsed dates like "2004-02-29 16:21:42"
41049         with a space between the date and time strings.  Now it also parses
41050         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
41051         variants like "2004-02-29T16:21:42.333-07:00"
41052         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
41053         of day representation using the 'T' separator character.
41054         * doc/parse-datetime.texi (General date syntax): replace use of
41055         deprecated --iso-8601 option with --rfc-3339 in example of date
41056         command output formats that can be parsed.
41057         * tests/test-parse-datetime.c (tm_diff): New function, taken from
41058         lib/parse-datetime.y.
41059         (gmt_offset): New function.
41060         (main): Add additional test cases to validate ISO8601 extended
41061         date and time of day parsing.
41063 2011-08-31  Bruno Haible  <bruno@clisp.org>
41065         freopen: Documentation.
41066         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
41067         name.
41068         Reported by Claudio Bley <claudio.bley@gmail.com>.
41070 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
41072         freopen: Don't crash if the filename argument is NULL.
41073         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
41074         NULL.
41076 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41078         openat: work around AIX 7.1 fstatat bug
41079         Problem reported by Kevin Brott for GNU tar, in the thread containing
41080         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
41081         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
41082         FSTATAT_ST_SIZE_ETC_BROKEN.
41083         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
41084         rpl_fstatat.
41085         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
41086         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
41087         AC_CHECK_FUNCS_ONCE for fstatat.
41088         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
41089         fchmodat, mkdirat, openat and unlinkat.
41091 2011-08-30  Bruno Haible  <bruno@clisp.org>
41093         Avoid endless recursions if config.h includes some header files.
41094         * lib/fopen.c (__need_FILE): Define already before including config.h.
41095         * lib/freopen.c (__need_FILE): Likewise.
41096         * lib/open.c (__need_system_fcntl_h): Likewise.
41097         * lib/stat.c (__need_system_sys_stat_h): Likewise.
41098         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
41099         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41101 2011-08-25  Karl Berry  <karl@gnu.org>
41103         * config/srclist.txt (ylwrap): new try.
41104         * build-aux/ylwrap: new file.
41106 2011-08-23  Bruno Haible  <bruno@clisp.org>
41108         tmpdir: Use a good default directory on native Windows.
41109         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
41110         (P_tmpdir): Default to _P_tmpdir on native Windows.
41111         (path_search): On native Windows, try the value returned by GetTempPath
41112         before trying P_tmpdir.
41113         * modules/tmpdir (Depends-on): Add pathmax.
41114         Suggested by John Darrington <john@darrington.wattle.id.au>.
41116 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
41118         doc: fix typo in README-release
41119         * top/README-release: Capitalize first word of a sentence.
41121 2011-08-19  Jim Meyering  <meyering@redhat.com>
41123         fts: do not exhaust memory when processing million-entry directories
41124         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
41125         directory would require about 256*N bytes of memory.  Thus, it was
41126         easy to construct a directory too large to be processed by any of
41127         those tools.  With this change, fts' maximum memory utilization is
41128         now limited to around 30MB.
41129         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
41130         (fts_read): When we've processed the final entry (i.e., when
41131         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
41132         using the parent entry to read any remaining entries.  Dispatch
41133         depending on what fts_build returns:
41134         - NULL+stop, aka failure: stop
41135         - NULL otherwise: move up in the dir hierarchy
41136         - non-NULL: handle this new entry
41137         (fts_build): Declare and use new local, continue_readdir.
41138         Prepare to be called from fts_read, when the entries
41139         from a partially-read directory have just been exhausted.
41140         In that case, we'll skip the opendir and instead use the parent's
41141         fts_dirp and derive dir_fd from that.
41142         Finally, in the readdir loop, if we read max_entries entries,
41143         exit the loop ensuring *not* to call closedir.  This is required
41144         so that fts_dirp can be reused on a subsequent call.
41145         Prompted by Ben England's report of memory exhaustion in find
41146         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
41148         maint: fts: move decl of `dp' down into while loop; split a long line
41149         * lib/fts.c (fts_build): No semantic change.
41151         fts: add/use new struct member, fts_dirp
41152         We are about to use this to manage any directory with
41153         too many entries to read all of them into memory at once.
41154         To do that, we'll need to save the DIR* pointer in each
41155         affected FTSENT struct.
41156         * lib/fts_.h: Include <dirent.h>.
41157         (struct FTSENT) [fts_dirp]: New member.
41158         * lib/fts.c (closedir_and_clear): Define.
41159         Use it in place of closedir so that we are sure to
41160         clear the new fts_dirp member when done with it.
41161         (fts_alloc): Initialize the new member.
41162         (fts_lfree): Free, if needed.
41164         maint: fts: give __opendir2 a new parameter and rename
41165         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
41166         than surreptitiously using sole caller's "dir_fd".
41167         (fts_opendir): Rename from __opendir2.
41169         maint: fts.c: remove __opendir2's now-unused parameter, oflag
41170         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
41172         maint: fts.c: correct off-by-one indentation
41173         * lib/fts.c (fts_build): Correct indentation, change style
41174         of a couple of block comments, and bracing style.
41176         maint: fts.c: move __opendir2 #define "up" out of function body
41177         * lib/fts.c (__opendir2): Move "up".  No semantic change.
41179         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
41180         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
41181         out for a long time and besides was useful only on BSD systems.
41183 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
41185         regex: port to Stratus OpenVOS
41186         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
41187         define to empty, rather than attempting nonportable optimizations.
41188         Problem reported by Paul Green in:
41189         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
41190         and fix suggested by Eric Blake in:
41191         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
41193 2011-08-17  Eric Blake  <eblake@redhat.com>
41195         getcwd: fix test failures on mingw
41196         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
41197         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
41198         test if long directory cannot be created, and allow mingw errno.
41200         getcwd-lgpl: fix m4 to match relaxed test for BSD
41201         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
41202         (gl_FUNC_GETCWD_SIGNATURE): New macro.
41203         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
41204         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
41205         signature problem.
41207         getcwd: fix compilation on mingw64
41208         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
41209         getcwd.
41210         Reported by Marc-André Lureau.
41212         pipe2: silence compiler warning
41213         * lib/pipe2.c (pipe2): Hide label if it is not used.
41215 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
41217         relocatable-prog: fix link error
41218         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
41219         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
41220         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
41221         into modules/relocatable-lib without noticing that
41222         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
41223         also needs to build relocatable.c.
41225 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
41227         getaddrinfo: fix sh typo in gai_strerrorA decl checking
41228         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
41229         shell code: it contained a 'break' that was not in a loop.
41230         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
41231         via a shell-language loop; this may have been true in old Autoconf
41232         versions, but it's not true in Autoconf 2.68.  I found this bug
41233         when testing coreutils git on Solaris 8, whose shell complains
41234         about the syntax error.
41236 2011-08-12  Simon Josefsson  <simon@josefsson.org>
41238         * lib/base64.c: Fix comment to reference RFC 4648.
41239         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
41240         <gvtulder@gmail.com>.
41242 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41244         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
41246         po/Makefile.in.in: fix make -q problem
41247         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
41248         rule, since there's no file named 'check-macro-version' and its
41249         use as a file breaks make -q.
41250         (all): Don't depend on check-macro-version.
41251         (CHECK_MACRO_VERSION): New macro.
41252         (stamp-po): Use it.
41254         configmake: fix make -q problem
41255         * modules/configmake (configmake.h): Update configmake.h's time stamp
41256         even if the file does not change.  Otherwise, 'make -q' fails.
41257         Problem reported by Simon Josefsson in
41258         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
41260 2011-08-11  Jim Meyering  <meyering@redhat.com>
41262         git-version-gen: correct the advice in a comment
41263         * build-aux/git-version-gen: Correct comment.
41264         Don't recommend to list .tarball-version in .gitignore.
41266 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41268         base64: fix off-by-one buffer size bug
41269         Problem and (trivial) fix reported by Gijs van Tulder in
41270         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
41271         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
41272         * tests/test-base64.c (main): Catch the bug.
41274 2011-08-10  Eric Blake  <eblake@redhat.com>
41276         closein: correct comments
41277         * lib/closein.c (close_stdin): Improve comments.
41279 2011-08-09  Bruno Haible  <bruno@clisp.org>
41281         More tests for 'fseeko'.
41282         * tests/test-fseeko3.c: New file, from Eric Blake.
41283         * tests/test-fseeko3.sh: New file.
41284         * modules/fseeko-tests (Files): Add them.
41285         (TESTS): Add test-fseeko3.sh.
41286         (check_PROGRAMS): Add test-fseeko3.
41288 2011-08-09  Eric Blake  <eblake@redhat.com>
41290         fseeko: remove unneeded hack
41291         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
41293         fseeko: fix bug on glibc
41294         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
41295         Reported by John W. Eaton.
41297 2011-08-08  Bruno Haible  <bruno@clisp.org>
41299         unictype/base: Fix interoperability with preinstalled libunistring.
41300         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
41301         Reported by Simon Josefsson.
41303 2011-08-08  Bruno Haible  <bruno@clisp.org>
41305         iswblank: Detect declaration correctly.
41306         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
41307         AC_CHECK_DECLS invocation.
41309 2011-08-08  Bruno Haible  <bruno@clisp.org>
41311         tcgetsid: Detect declaration correctly.
41312         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
41313         AC_CHECK_DECLS invocation.
41314         Reported by Simon Josefsson.
41316 2011-08-08  Eric Blake  <eblake@redhat.com>
41318         largefile: fix typo that regressed large file support
41319         * modules/largefile (configure.ac-early): Fix section name.
41321 2011-08-06  Karl Berry  <karl@gnu.org>
41323         * MODULES.html.sh (func_all_files): _Noreturn is no longer
41324         a separate module.
41326 2011-08-05  Simon Josefsson  <simon@josefsson.org>
41328         openat: Fix warnings and commens when building unlinkat.c on Hurd.
41329         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
41330         get prototype for free.
41332 2011-08-04  Bruno Haible  <bruno@clisp.org>
41334         Tests for module 'pathmax'.
41335         * modules/pathmax-tests: New file.
41336         * tests/test-pathmax.c: New file.
41338         canonicalize-lgpl: Support larger filenames on the Hurd.
41339         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
41340         Reported by Paul Eggert.
41342         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
41343         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
41344         * lib/chdir-long.h: Include pathmax.h.
41345         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
41346         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
41347         (PATH_MAX): Remove code that is done by pathmax.h.
41348         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
41349         * lib/tmpfile.c: Add a comment.
41350         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
41351         * modules/chdir-long (Depends-on): Add pathmax.
41352         * modules/getcwd (Depends-on): Add pathmax.
41353         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
41354         is not defined.
41355         * doc/posix-headers/limits.texi: Mention the pathmax module.
41356         * NEWS: Mention the change.
41358 2011-08-02  Bruno Haible  <bruno@clisp.org>
41360         pthread_sigmask: Actually use results of gl_THREADLIB.
41361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
41362         gl_THREADLIB, not gl_[]THREADLIB.
41363         Reported by Eric Blake.
41365 2011-08-02  Jim Meyering  <meyering@redhat.com>
41367         maint.mk: relax the default _gl_TS_function_match regexp
41368         * top/maint.mk (_gl_TS_function_match): Don't require at least one
41369         space between function name and "(" in an "extern" declaration.
41370         That would fail to match a decl with no space there: extern void foo();
41372 2011-07-31  Iain Nicol  <iain@thenicols.net>
41374         git-version-gen: document that EXTRA_DIST must include .version
41375         * build-aux/git-version-gen: In the how-to-use comment, document
41376         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
41377         will fail when run from an unpacked distribution tarball.
41379 2011-08-01  Bruno Haible  <bruno@clisp.org>
41381         wctype-h: Fix last change.
41382         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
41383         REPLACE_TOWLOWER to 0.
41384         Reported by Sam Steingold <sds@gnu.org>.
41386 2011-07-31  Bruno Haible  <bruno@clisp.org>
41388         frexpl: Update autoconf test.
41389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
41390         according to changes of 2011-06-20.
41392 2011-07-31  Bruno Haible  <bruno@clisp.org>
41394         sys_utsname: Add support for Minix.
41395         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
41396         <sys/utsname.h>.
41397         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
41398         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
41400 2011-07-31  Bruno Haible  <bruno@clisp.org>
41402         strings: Add support for Minix.
41403         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
41404         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
41405         * doc/posix-headers/strings.texi: Document the Minix problem.
41407 2011-07-31  Bruno Haible  <bruno@clisp.org>
41409         wctype-h: Add support for Minix.
41410         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
41411         REPLACE_TOWLOWER.
41412         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
41413         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
41414         REPLACE_ISWCNTRL.
41416 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
41418         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
41419         This is a performance improvement for 64-bit hosts: it causes the
41420         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
41422 2011-07-31  Bruno Haible  <bruno@clisp.org>
41424         stdioext: Add support for Minix.
41425         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
41426         * lib/fpurge.c (fpurge): Likewise.
41427         * lib/freadahead.c (freadahead): Likewise.
41428         * lib/freadable.c (freadable): Likewise.
41429         * lib/freading.c (freading): Likewise.
41430         * lib/freadptr.c (freadptr): Likewise.
41431         * lib/freadseek.c (freadptrinc): Likewise.
41432         * lib/fseeko.c (rpl_fseeko): Likewise.
41433         * lib/fseterr.c (fseterr): Likewise.
41434         * lib/fwritable.c (fwritable): Likewise.
41435         * lib/fwriting.c (fwriting): Likewise.
41436         * lib/fflush.c (clear_ungetc_buffer): Update comment.
41437         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
41439 2011-07-31  Bruno Haible  <bruno@clisp.org>
41441         errno: Port to Minix.
41442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
41443         ECONNABORTED are defined.
41444         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
41445         GNULIB_defined_ECONNABORTED): New macros.
41446         * lib/strerror-override.h (strerror_override): Test also
41447         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
41448         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
41449         ECONNABORTED.
41450         * doc/posix-headers/errno.texi: Mention the Minix problem.
41452 2011-07-31  Bruno Haible  <bruno@clisp.org>
41454         Work around declaration collisions on Minix.
41455         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
41456         defined, set REPLACE_MBSINIT.
41457         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
41458         defined, set REPLACE_MBRTOWC.
41459         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
41460         set REPLACE_MBRLEN.
41461         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
41462         defined, set REPLACE_MBSRTOWCS.
41463         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
41464         defined, set REPLACE_WCRTOMB.
41465         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
41466         defined, set REPLACE_WCSRTOMBS.
41468 2011-07-31  Bruno Haible  <bruno@clisp.org>
41470         Add support for Minix with ACK compiler.
41471         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
41472         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
41473         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
41475 2011-07-31  Bruno Haible  <bruno@clisp.org>
41477         Documentation about Minix.
41478         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
41479         * doc/glibc-headers/*.texi: Likewise.
41480         * doc/posix-functions/*.texi: Likewise.
41481         * doc/glibc-functions/*.texi: Likewise.
41483 2011-07-31  Bruno Haible  <bruno@clisp.org>
41485         snippet/warn-on-use: Fix indentation.
41486         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
41488 2011-07-25  Jim Meyering  <meyering@redhat.com>
41490         tests: test-update-copyright.sh: remove unnecessary "rm" commands
41491         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
41492         commands.
41494 2011-07-27  Jim Meyering  <meyering@redhat.com>
41496         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
41497         * top/maint.mk (gl_extract_significant_defines_): Now that
41498         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
41499         gnulib/lib/signal.in.h, and now that we recommend to
41500         define-if-undefined those two symbols in application code,
41501         we must filter them out of the "significant" list.
41502         This avoids a "make syntax-check" failure in coreutils.
41504 2011-07-26  Eric Blake  <eblake@redhat.com>
41506         warnings: add comments about previous patch
41507         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
41508         * m4/include_next.m4: Likewise.
41509         * m4/warn-on-use.m4: Likewise.
41510         * m4/warnings.m4: Likewise, and simplify use.
41511         Suggested by Stefano Lattarini.
41513         include-next, warnings: support older autoconf
41514         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
41515         AS_VAR_PUSHDEF in a way that works with older autoconf.
41516         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
41517         Reported by Daniel P. Berrange.
41519 2011-07-25  Bruno Haible  <bruno@clisp.org>
41521         fseek, ftell: Fix doc.
41522         * doc/posix-functions/fseek.texi: Reword statement about
41523         AC_SYS_LARGEFILE.
41524         * doc/posix-functions/ftell.texi: Likewise.
41526 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
41527             Bruno Haible  <bruno@clisp.org>
41529         Add dependencies to the 'largefile' module.
41530         * modules/fopen (Depends-on): Add 'largefile'.
41531         * modules/freopen (Depends-on): Likewise.
41532         * modules/fseeko (Depends-on): Likewise.
41533         * modules/ftello (Depends-on): Likewise.
41534         * modules/glob (Depends-on): Likewise.
41535         * modules/lseek (Depends-on): Likewise.
41536         * modules/lstat (Depends-on): Likewise.
41537         * modules/mkostemp (Depends-on): Likewise.
41538         * modules/mkostemps (Depends-on): Likewise.
41539         * modules/mkstemp (Depends-on): Likewise.
41540         * modules/mkstemps (Depends-on): Likewise.
41541         * modules/open (Depends-on): Likewise.
41542         * modules/openat (Depends-on): Likewise.
41543         * modules/pread (Depends-on): Likewise.
41544         * modules/pwrite (Depends-on): Likewise.
41545         * modules/scandir (Depends-on): Likewise.
41546         * modules/stat (Depends-on): Likewise.
41547         * modules/tmpfile (Depends-on): Likewise.
41548         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
41549         since the containing module now depends on the largefile module.
41550         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
41551         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
41552         off_t is fixed by gnulib.
41553         * doc/posix-functions/freopen.texi: Likewise.
41554         * doc/posix-functions/fseeko.texi: Likewise.
41555         * doc/posix-functions/fstatat.texi: Likewise.
41556         * doc/posix-functions/ftello.texi: Likewise.
41557         * doc/posix-functions/glob.texi: Likewise.
41558         * doc/posix-functions/lseek.texi: Likewise.
41559         * doc/posix-functions/lstat.texi: Likewise.
41560         * doc/posix-functions/mkstemp.texi: Likewise.
41561         * doc/posix-functions/open.texi: Likewise.
41562         * doc/posix-functions/openat.texi: Likewise.
41563         * doc/posix-functions/pread.texi: Likewise.
41564         * doc/posix-functions/pwrite.texi: Likewise.
41565         * doc/posix-functions/scandir.texi: Likewise.
41566         * doc/posix-functions/stat.texi: Likewise.
41567         * doc/posix-functions/tmpfile.texi: Likewise.
41568         * doc/glibc-functions/mkostemp.texi: Likewise.
41569         * doc/glibc-functions/mkostemps.texi: Likewise.
41570         * doc/glibc-functions/mkstemps.texi: Likewise.
41572 2011-07-25  Bruno Haible  <bruno@clisp.org>
41574         fcntl: Move AC_LIBOBJ invocation to module description.
41575         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
41576         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
41578         fcntl: Remove call-in from fchdir.m4.
41579         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
41580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
41582         dup3: Remove potential call-in from fchdir.m4.
41583         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
41584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
41586         dup2: Move AC_LIBOBJ invocation to module description.
41587         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
41588         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
41589         Don't invoke AC_LIBOBJ.
41590         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
41592         dup2: Remove call-in from fchdir.m4.
41593         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
41594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
41596         fclose: Move AC_LIBOBJ invocation to module description.
41597         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
41598         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
41599         to 1.
41600         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
41602         fclose: Remove call-in from close.m4.
41603         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
41604         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
41606         close: Move AC_LIBOBJ invocation to module description.
41607         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
41608         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
41609         1.
41610         * modules/close (configure.ac): Invoke AC_LIBOBJ.
41612         close: Remove call-in from fchdir.m4.
41613         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
41614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
41616         open: Move AC_LIBOBJ invocation to module description.
41617         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
41618         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
41619         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
41621         open: Remove call-in from fchdir.m4.
41622         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
41623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
41625         fchdir: Start to remove gl_REPLACE_* idiom.
41626         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
41627         (gl_FUNC_FCHDIR): Invoke it.
41629 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
41631         * lib/ftell.c (ftell): Comment out cast.
41633         close: use gl_REPLACE_FCLOSE only if defined
41634         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
41635         is defined.  The close module doesn't depend on the fclose module
41636         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
41637         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
41638         I reproduced the problem with "./gnulib-tool --test close sys_socket".
41640 2011-07-24  Jim Meyering  <meyering@redhat.com>
41642         test-select.h: avoid warning when using gcc's -Wmissing-declarations
41643         * tests/test-select.h (test_function): Declare as "static".
41645 2011-07-24  Bruno Haible  <bruno@clisp.org>
41647         doc: Mention the effects of AC_SYS_LARGEFILE.
41648         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
41649         on this function.
41650         * doc/posix-functions/aio_error.texi: Likewise.
41651         * doc/posix-functions/aio_fsync.texi: Likewise.
41652         * doc/posix-functions/aio_read.texi: Likewise.
41653         * doc/posix-functions/aio_return.texi: Likewise.
41654         * doc/posix-functions/aio_suspend.texi: Likewise.
41655         * doc/posix-functions/aio_write.texi: Likewise.
41656         * doc/posix-functions/fgetpos.texi: Likewise.
41657         * doc/posix-functions/fopen.texi: Likewise.
41658         * doc/posix-functions/freopen.texi: Likewise.
41659         * doc/posix-functions/fsetpos.texi: Likewise.
41660         * doc/posix-functions/fstatvfs.texi: Likewise.
41661         * doc/posix-functions/ftruncate.texi: Likewise.
41662         * doc/posix-functions/ftw.texi: Likewise.
41663         * doc/posix-functions/getrlimit.texi: Likewise.
41664         * doc/posix-functions/glob.texi: Likewise.
41665         * doc/posix-functions/lio_listio.texi: Likewise.
41666         * doc/posix-functions/lockf.texi: Likewise.
41667         * doc/posix-functions/mkstemp.texi: Likewise.
41668         * doc/posix-functions/mmap.texi: Likewise.
41669         * doc/posix-functions/nftw.texi: Likewise.
41670         * doc/posix-functions/openat.texi: Likewise.
41671         * doc/posix-functions/opendir.texi: Likewise.
41672         * doc/posix-functions/posix_fadvise.texi: Likewise.
41673         * doc/posix-functions/posix_fallocate.texi: Likewise.
41674         * doc/posix-functions/pread.texi: Likewise.
41675         * doc/posix-functions/pwrite.texi: Likewise.
41676         * doc/posix-functions/readdir.texi: Likewise.
41677         * doc/posix-functions/readdir_r.texi: Likewise.
41678         * doc/posix-functions/rewinddir.texi: Likewise.
41679         * doc/posix-functions/scandir.texi: Likewise.
41680         * doc/posix-functions/seekdir.texi: Likewise.
41681         * doc/posix-functions/setrlimit.texi: Likewise.
41682         * doc/posix-functions/statvfs.texi: Likewise.
41683         * doc/posix-functions/telldir.texi: Likewise.
41684         * doc/posix-functions/tmpfile.texi: Likewise.
41685         * doc/posix-functions/truncate.texi: Likewise.
41686         * doc/glibc-functions/fallocate.texi: Likewise.
41687         * doc/glibc-functions/fstatfs.texi: Likewise.
41688         * doc/glibc-functions/fts_children.texi: Likewise.
41689         * doc/glibc-functions/fts_read.texi: Likewise.
41690         * doc/glibc-functions/getdirentries.texi: Likewise.
41691         * doc/glibc-functions/mkostemp.texi: Likewise.
41692         * doc/glibc-functions/mkostemps.texi: Likewise.
41693         * doc/glibc-functions/mkstemps.texi: Likewise.
41694         * doc/glibc-functions/preadv.texi: Likewise.
41695         * doc/glibc-functions/pwritev.texi: Likewise.
41696         * doc/glibc-functions/sendfile.texi: Likewise.
41697         * doc/glibc-functions/statfs.texi: Likewise.
41699 2011-07-24  Bruno Haible  <bruno@clisp.org>
41701         doc: Fix typo.
41702         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
41704 2011-07-24  Bruno Haible  <bruno@clisp.org>
41706         doc: Mention fsusage.
41707         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
41709 2011-07-24  Bruno Haible  <bruno@clisp.org>
41711         doc: Mention new glibc headers and functions.
41712         * doc/glibc-headers/gshadow.texi: New file.
41713         * doc/glibc-functions/endsgent.texi: New file.
41714         * doc/glibc-functions/fgetsgent.texi: New file.
41715         * doc/glibc-functions/fgetsgent_r.texi: New file.
41716         * doc/glibc-functions/getsgent.texi: New file.
41717         * doc/glibc-functions/getsgent_r.texi: New file.
41718         * doc/glibc-functions/getsgnam.texi: New file.
41719         * doc/glibc-functions/getsgnam_r.texi: New file.
41720         * doc/glibc-functions/putsgent.texi: New file.
41721         * doc/glibc-functions/setsgent.texi: New file.
41722         * doc/glibc-functions/sgetsgent.texi: New file.
41723         * doc/glibc-functions/sgetsgent_r.texi: New file.
41724         * doc/glibc-functions/malloc_info.texi: New file.
41725         * doc/glibc-functions/preadv.texi: New file.
41726         * doc/glibc-functions/pwritev.texi: New file.
41727         * doc/glibc-functions/register_printf_modifier.texi: New file.
41728         * doc/glibc-functions/register_printf_specifier.texi: New file.
41729         * doc/glibc-functions/register_printf_type.texi: New file.
41730         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
41731         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
41732         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
41733         * doc/glibc-functions/pthread_getname_np.texi: New file.
41734         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
41735         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
41736         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
41737         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
41738         * doc/glibc-functions/pthread_setname_np.texi: New file.
41739         * doc/glibc-functions/pthread_sigqueue.texi: New file.
41740         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
41741         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
41742         * doc/glibc-functions/qsort_r.texi: New file.
41743         * doc/glibc-functions/quick_exit.texi: New file.
41744         * doc/glibc-functions/syncfs.texi: New file.
41745         * doc/gnulib.texi: Include them.
41746         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
41747         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
41748         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
41749         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
41750         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
41751         * doc/glibc-functions/execvpe.texi: Likewise.
41753 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41755         ftell: don't include <unistd.h>
41756         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
41757         guaranteed to define off_t, and the ftell module depends on the
41758         stdio module.
41760         ftell: do not assume wraparound signed arithmetic
41761         * lib/ftell.c: Include <limits.h>.
41762         (ftell): Don't assume wraparound signed arithmetic.
41764 2011-07-24  Bruno Haible  <bruno@clisp.org>
41766         close: No longer depend on module 'fclose'.
41767         * modules/close (Depends-on): Remove fclose.
41768         * NEWS: Mention the change.
41769         Suggested by Sam Steingold <sds@gnu.org>.
41771 2011-07-24  Bruno Haible  <bruno@clisp.org>
41773         fsusage: Enable large volume support on AIX >= 5.2.
41774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
41775         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
41776         instead of STAT_STATVFS.
41777         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
41779         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
41780         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
41781         f_blocks field only on MacOS X.
41783         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
41784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
41785         * modules/fsusage (Depends-on): Add largefile.
41787 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41789         * README: Modernize discussion of signed integers.
41790         Assuming overflow wraparound is no longer safe.
41791         Mention ones' complement and signed magnitude.
41793 2011-07-22  Bruno Haible  <bruno@clisp.org>
41795         select tests, pselect tests: Refactor.
41796         * tests/test-select.h: New file, extracted from tests/test-select.c.
41797         (select_fn): New type.
41798         (test, do_select, do_select_nowait, do_select_wait, test_tty,
41799         test_connect_first, test_accept_first, test_pair, test_socket_pair,
41800         test_pipe): Add my_select argument.
41801         (test_function): Renamed from main. Add my_select argument.
41802         * tests/test-select.c: Move most code to tests/test-select.h. Include
41803         test-select.h.
41804         * modules/select-tests (Files): Add tests/test-select.h.
41805         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
41806         (my_select, main): New functions.
41807         * modules/pselect-tests (Files): Add tests/test-select.h,
41808         tests/macros.h, tests/signature.h.
41809         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
41810         (configure.ac): Check for <sys/wait.h>.
41812 2011-07-22  Bruno Haible  <bruno@clisp.org>
41814         sys_select tests: Check the signature of FD_*.
41815         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
41816         signature tests from here...
41817         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
41818         here.
41819         * modules/sys_select-tests (Files): Add tests/signature.h.
41821 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41823         largefile: new module, replacing large-inode
41824         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
41825         * MODULES.html.sh: Add largefile, remove large-inode.
41826         * modules/largefile, m4/largefile.m4: New files.
41827         * modules/large-inode, m4/large-inode.m4: Remove.
41829         fsusage: port to MacOS X 10.7 with 4 TiB file systems
41830         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
41831         implementations that use only 32 bits to count blocks.
41832         On typical hosts with 1024-byte blocks, this fails with file
41833         systems as small as 4 TiB.  Problem reported by Herb Wartens
41834         <http://debbugs.gnu.org/9140> and this should also fix a similar
41835         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
41837         large-inode: New module
41838         * MODULES.html.sh: Add it.
41839         * modules/large-inode, m4/large-inode.m4: New files.
41841         extensions: Enable extensions on MacOS X 10.5 and later.
41842         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
41844 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
41846         file-has-acl: use acl_extended_file_nofollow if available
41847         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
41848         (acl_extended_file): New macro.
41849         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
41850         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
41852 2011-07-21  Bruno Haible  <bruno@clisp.org>
41854         Declare system functions in a way that works with C++.
41855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
41856         declare fdopendir as extern "C".
41857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
41858         declare frexpl as extern "C".
41859         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
41860         declare gai_strerror as extern "C".
41861         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
41862         programs, declare gai_strerror as extern "C".
41863         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
41864         declare getlogin_r as extern "C".
41865         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
41866         as extern "C".
41867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
41868         declare ldexpl as extern "C".
41869         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
41870         as extern "C".
41871         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
41872         program, declare getmntinfo as extern "C".
41873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
41874         stpncpy as extern "C".
41875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
41876         program, declare __xpg_strerror_r as extern "C".
41877         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
41878         strndup as extern "C".
41879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
41880         declare memset and bzero as extern "C".
41881         Reported by Sam Steingold <sds@gnu.org>.
41883 2011-07-12  Jim Meyering  <meyering@redhat.com>
41885         maint.mk: prohibit inclusion of "verify.h" without use
41886         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
41888 2011-07-19  Pádraig Brady  <P@draigBrady.com>
41890         timer-time: A new module to check for timer_settime()
41891         * m4/timer_time.m4: Check for the posix function.
41892         * modules/timer-time: Add the new module.
41893         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
41894         Mention it.
41896 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
41897             Bruno Haible  <bruno@clisp.org>
41899         pthread_sigmask: assume POSIX threads if --avoid=threadlib
41900         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
41901         not defined, assume POSIX threads and look for pthread_sigmask in
41902         $LIBS, without changing $CPPFLAGS.
41904 2011-07-19  Bruno Haible  <bruno@clisp.org>
41906         strstr: Update cross-compilation guess.
41907         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
41908         CPUs, guess no, in view of glibc
41909         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
41910         Suggested by Eric Blake. Reported by Reuben Thomas.
41912 2011-07-19  Pádraig Brady  <P@draigBrady.com>
41914         getopt-gnu: suppress core dumps from detection code
41915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
41916         to suppress core dumps that may well occur on glibc systems.
41917         * modules/getopt-gnu: Depend on nocrash.
41919 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41921         pthread_sigmask: ensure usleep is declared
41922         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
41923         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
41925 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
41927         doc: Document NonStop portability issues.
41928         * doc/posix-functions/sigaction.texi (sigaction):
41929         * doc/posix-headers/signal.texi (signal.h):
41930         Document NonStop.  See Joachim Schmitz in
41931         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
41933 2011-07-15  Bruno Haible  <bruno@clisp.org>
41935         ffsl, ffsll: Avoid unportable behaviour.
41936         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
41938 2011-07-15  Bruno Haible  <bruno@clisp.org>
41940         ffs: More tests.
41941         * tests/test-ffs.c (NBITS): New macro.
41942         (main): Add more tests.
41943         * tests/test-ffsl.c (NBITS): New macro.
41944         (main): Add more tests.
41945         * tests/test-ffsll.c (NBITS): New macro.
41946         (main): Add more tests.
41948 2011-07-15  Eric Blake  <eblake@redhat.com>
41950         ffsl, ffsll: new modules
41951         * modules/ffsl: New file.
41952         * modules/ffsll: Likewise.
41953         * m4/ffsl.m4: Likewise.
41954         * m4/ffsll.m4: Likewise.
41955         * lib/ffsl.c: Likewise.
41956         * lib/ffsl.h: Likewise.
41957         * lib/ffsll.c: Likewise.
41958         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
41959         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
41960         * modules/string (Makefile.am): Substitute witnesses.
41961         * lib/strings.in.h (ffsl, ffsll): Declare.
41962         * modules/ffsl-tests: New test file.
41963         * modules/ffsll-tests: Likewise.
41964         * tests/test-ffsl.c: Likewise.
41965         * tests/test-ffsll.c: Likewise.
41966         * MODULES.html.sh (Integer arithmetic functions): Mention it.
41967         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
41968         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
41970         ffs: fix m4 prerequisite
41971         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
41973         ffs: avoid undefined behavior
41974         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
41975         * tests/test-ffs.c (naive, main): Avoid signed shifts.
41976         Reported by Bruno Haible.
41978 2011-07-12  Bruno Haible  <bruno@clisp.org>
41980         pthread_sigmask: Rely on module 'threadlib'.
41981         * modules/pthread_sigmask (Depends-on): Add threadlib.
41982         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
41983         is defined.
41985 2011-07-12  Bruno Haible  <bruno@clisp.org>
41987         regex: Depend on module 'strcase'.
41988         * modules/regex (Depends-on): Add strcase, for strcasecmp().
41990 2011-07-12  Jim Meyering  <meyering@redhat.com>
41992         warn-on-use: fix typo in file name
41993         * modules/snippet/warn-on-use (Files): Correct file name:
41994         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
41996 2011-07-12  Bruno Haible  <bruno@clisp.org>
41998         strings: Document module.
41999         * doc/posix-headers/strings.texi: Mention module 'strings'.
42001 2011-07-12  Bruno Haible  <bruno@clisp.org>
42003         Rename module '_Noreturn' to 'snippet/_Noreturn'.
42004         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
42005         (Files, Makefile.am): Update.
42006         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
42007         * modules/stdlib (Depends-on): Update.
42009 2011-07-12  Bruno Haible  <bruno@clisp.org>
42011         * NEWS: Mention the changes.
42013         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
42014         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
42015         (Files, Makefile.am): Update.
42016         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
42017         * modules/arpa_inet (Depends-on): Update.
42018         * modules/ctype (Depends-on): Update.
42019         * modules/dirent (Depends-on): Update.
42020         * modules/fcntl-h (Depends-on): Update.
42021         * modules/glob (Depends-on): Update.
42022         * modules/iconv-h (Depends-on): Update.
42023         * modules/inttypes-incomplete (Depends-on): Update.
42024         * modules/langinfo (Depends-on): Update.
42025         * modules/locale (Depends-on): Update.
42026         * modules/math (Depends-on): Update.
42027         * modules/netdb (Depends-on): Update.
42028         * modules/poll-h (Depends-on): Update.
42029         * modules/pty (Depends-on): Update.
42030         * modules/search (Depends-on): Update.
42031         * modules/signal (Depends-on): Update.
42032         * modules/spawn (Depends-on): Update.
42033         * modules/stdio (Depends-on): Update.
42034         * modules/stdlib (Depends-on): Update.
42035         * modules/string (Depends-on): Update.
42036         * modules/strings (Depends-on): Update.
42037         * modules/sys_file (Depends-on): Update.
42038         * modules/sys_ioctl (Depends-on): Update.
42039         * modules/sys_select (Depends-on): Update.
42040         * modules/sys_socket (Depends-on): Update.
42041         * modules/sys_stat (Depends-on): Update.
42042         * modules/sys_time (Depends-on): Update.
42043         * modules/sys_times (Depends-on): Update.
42044         * modules/sys_utsname (Depends-on): Update.
42045         * modules/sys_wait (Depends-on): Update.
42046         * modules/termios (Depends-on): Update.
42047         * modules/time (Depends-on): Update.
42048         * modules/unistd (Depends-on): Update.
42049         * modules/wchar (Depends-on): Update.
42050         * modules/wctype-h (Depends-on): Update.
42051         * MODULES.html.sh (Support for building libraries and executables):
42052         Update.
42054         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
42055         * modules/snippet/unused-parameter: Renamed from
42056         modules/unused-parameter.
42057         (Files, Makefile.am): Update.
42058         * build-aux/snippet/unused-parameter.h: Renamed from
42059         build-aux/unused-parameter.h.
42060         * modules/selinux-h (Depends-on): Update.
42061         * modules/unistr/base (Depends-on): Update.
42062         * MODULES.html.sh (Core language properties): Update.
42064         Rename module 'link-warning' to 'snippet/link-warning'.
42065         * modules/snippet/link-warning: Renamed from modules/link-warning.
42066         (Files, Makefile.am): Update.
42067         * build-aux/snippet/link-warning.h: Renamed from
42068         build-aux/link-warning.h.
42069         * MODULES.html.sh (Support for building libraries and executables):
42070         Update.
42072         Rename module 'c++defs' to 'snippet/c++defs'.
42073         * modules/snippet/c++defs: Renamed from modules/c++defs.
42074         (Files, Makefile.am): Update.
42075         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
42076         * modules/arpa_inet (Depends-on): Update.
42077         * modules/ctype (Depends-on): Update.
42078         * modules/dirent (Depends-on): Update.
42079         * modules/fcntl-h (Depends-on): Update.
42080         * modules/glob (Depends-on): Update.
42081         * modules/iconv-h (Depends-on): Update.
42082         * modules/langinfo (Depends-on): Update.
42083         * modules/locale (Depends-on): Update.
42084         * modules/math (Depends-on): Update.
42085         * modules/netdb (Depends-on): Update.
42086         * modules/poll-h (Depends-on): Update.
42087         * modules/pty (Depends-on): Update.
42088         * modules/search (Depends-on): Update.
42089         * modules/signal (Depends-on): Update.
42090         * modules/spawn (Depends-on): Update.
42091         * modules/stdio (Depends-on): Update.
42092         * modules/stdlib (Depends-on): Update.
42093         * modules/string (Depends-on): Update.
42094         * modules/strings (Depends-on): Update.
42095         * modules/sys_ioctl (Depends-on): Update.
42096         * modules/sys_select (Depends-on): Update.
42097         * modules/sys_socket (Depends-on): Update.
42098         * modules/sys_stat (Depends-on): Update.
42099         * modules/sys_time (Depends-on): Update.
42100         * modules/sys_wait (Depends-on): Update.
42101         * modules/termios (Depends-on): Update.
42102         * modules/time (Depends-on): Update.
42103         * modules/unistd (Depends-on): Update.
42104         * modules/wchar (Depends-on): Update.
42105         * modules/wctype-h (Depends-on): Update.
42107         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
42108         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
42109         (Files, Makefile.am): Update.
42110         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
42111         * modules/argv-iter (Depends-on): Update.
42112         * modules/arpa_inet (Depends-on): Update.
42113         * modules/dirent (Depends-on): Update.
42114         * modules/fcntl-h (Depends-on): Update.
42115         * modules/fnmatch (Depends-on): Update.
42116         * modules/getopt-posix (Depends-on): Update.
42117         * modules/glob (Depends-on): Update.
42118         * modules/iconv-h (Depends-on): Update.
42119         * modules/inttypes-incomplete (Depends-on): Update.
42120         * modules/locale (Depends-on): Update.
42121         * modules/math (Depends-on): Update.
42122         * modules/netdb (Depends-on): Update.
42123         * modules/search (Depends-on): Update.
42124         * modules/signal (Depends-on): Update.
42125         * modules/spawn (Depends-on): Update.
42126         * modules/stdio (Depends-on): Update.
42127         * modules/stdlib (Depends-on): Update.
42128         * modules/string (Depends-on): Update.
42129         * modules/strings (Depends-on): Update.
42130         * modules/sys_socket (Depends-on): Update.
42131         * modules/sys_stat (Depends-on): Update.
42132         * modules/sys_time (Depends-on): Update.
42133         * modules/sys_times (Depends-on): Update.
42134         * modules/sys_utsname (Depends-on): Update.
42135         * modules/time (Depends-on): Update.
42136         * modules/unistd (Depends-on): Update.
42137         * modules/wchar (Depends-on): Update.
42138         * MODULES.html.sh (Support for building libraries and executables):
42139         Update.
42141 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42143         Improvements on _Noreturn and related modules.
42145         modules/_Exit-tests: test _Noreturn too
42146         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
42147         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
42148         (main): Use them.
42150         stdnoreturn, stdnoreturn-tests: remove modules
42151         They're not needed here and a bit premature for use elsewhere.  See
42152         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
42153         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42154         * tests/test-stdnoreturn.c: Remove files.
42155         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
42156         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
42157         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
42158         and using noreturn.
42159         * modules/openat, modules/sigpipe-die, modules/xalloc:
42160         * modules/xmemdup0, modules/xstrtol:
42161         Remove dependency on stdnoreturn.
42163         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
42164         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
42165         Reparenthesize to avoid GCC warning.
42166         Support Microsoft's syntax.
42167         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
42169         _Noreturn-tests: remove module
42170         * modules/_Noreturn-tests: Remove.
42171         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
42172         * tests/test-_Noreturn.c: Remove.
42173         * tests/test-stdnoreturn.c: Merge from the old
42174         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
42176 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
42178         _Noreturn, stdnoreturn, and related modules.
42180         * top/maint.mk: Adjust to new noreturn support.
42181         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
42182         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
42184         xalloc: use stdnoreturn.h
42185         * lib/xalloc.h: Include <stdnoreturn.h>.
42186         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42187         * modules/xalloc (Depends-on): Add stdnoreturn.
42189         xstrtol: use stdnoreturn.h
42190         * lib/xstrtol.h: Include <stdnoreturn.h>.
42191         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42192         * modules/xstrtol (Depends-on): Add stdnoreturn.
42194         xmemdup0: use stdnoreturn.h
42195         * lib/xmemdup0.h: Include <stdnoreturn.h>.
42196         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42197         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
42199         sigpipe-die: use stdnoreturn.h
42200         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
42201         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42202         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
42204         openat: use stdnoreturn.h
42205         * lib/openat.h: Include <stdnoreturn.h>.
42206         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
42207         * modules/openat (Depends-on): Add stdnoreturn.
42209         * lib/openat-die.c (openat_save_fail): Modernize comment.
42211         * lib/xalloc-die.c (xalloc_die): Modernize comment.
42213         * lib/glthread/thread.h: Modernize comment.
42215         obstack: use _Noreturn
42216         * lib/obstack.c (__attribute__): Remove macro.
42217         (print_and_abort): Use _Noreturn.
42219         c-stack: use _Noreturn
42220         * lib/c-stack.c (die, overflow_handler, segv_handler):
42221         Use _Noreturn rather than __attribute__((noreturn)).
42223         argmatch-tests, exclude_tests: use _Noreturn
42224         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
42225         Remove.
42226         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
42228         stdlib: use _Noreturn
42229         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
42230         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
42231         * modules/stdlib (Depends-on): Add _Noreturn.
42232         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
42234         stdnoreturn-tests: new module
42235         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
42237         stdnoreturn: new module
42238         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
42239         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
42241         _Noreturn-tests: new module
42242         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
42244         _Noreturn: new module
42245         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
42246         New section, mentioning it.
42247         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
42249         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
42251 2011-07-11  Eric Blake  <eblake@redhat.com>
42253         ffs: new module
42254         * modules/ffs: New file.
42255         * m4/ffs.m4: Likewise.
42256         * lib/ffs.c: Likewise.
42257         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
42258         * modules/strings (Makefile.am): Substitute witness.
42259         (Depends-on): Add c++defs.
42260         * lib/strings.in.h (ffs): Declare.
42261         * modules/ffs-tests: New test file.
42262         * tests/test-ffs.c: Test new module.
42263         * MODULES.html.sh (Integer arithmetic functions): Mention it.
42264         * doc/posix-functions/ffs.texi (ffs): Likewise.
42266         regex: avoid compiler warning
42267         * lib/regex.c (includes): Include <strings.h>, for use of
42268         strcasecmp in regcomp.c.
42269         Reported by Joachim Schmitz.
42271 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42273         stdint: respect system's intmax_t if INTMAX_MAX
42274         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
42275         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
42276         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
42277         long but int64_t is long long, and where we will clash with the
42278         system intmax_t if we override it.  See
42279         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
42280         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
42281         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
42282         similarly for UINTMAX_C.
42284 2011-07-08  Bruno Haible  <bruno@clisp.org>
42286         pthread_sigmask tests: Avoid a compiler warning.
42287         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
42288         non-zero.
42290         sigprocmask tests: A better way to avoid a compiler warning.
42291         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
42292         (main): Complain if system() returns non-zero.
42293         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
42295 2011-07-08  Bruno Haible  <bruno@clisp.org>
42297         pthread_sigmask: Work around IRIX bug.
42298         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
42299         bug.
42300         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
42301         there may be unblocked pending signals.
42302         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
42304 2011-07-08  Bruno Haible  <bruno@clisp.org>
42306         pthread_sigmask: Work around Cygwin bug.
42307         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
42308         bug.
42309         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
42310         the system's pthread_sigmask function.
42311         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
42313 2011-07-08  Bruno Haible  <bruno@clisp.org>
42315         pthread_sigmask: Work around bug in single-threaded implementation.
42316         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
42317         FreeBSD, HP-UX, Solaris bug.
42318         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
42319         * lib/pthread_sigmask.c: Include <stddef.h>.
42320         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
42321         the system's pthread_sigmask function.
42322         * modules/pthread_sigmask (configure.ac): Invoke
42323         gl_PREREQ_PTHREAD_SIGMASK.
42324         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
42325         HP-UX, Solaris.
42327 2011-07-08  Eric Blake  <eblake@redhat.com>
42329         test-sigprocmask: avoid compiler warning
42330         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
42331         * tests/test-sigprocmask.c (main): Use it to silence warning.
42332         Reported by Jim Meyering.
42334         test-snprintf: avoid compiler warning
42335         * tests/test-snprintf.c (main): Avoid shadowed declaration.
42336         * tests/test-vsnprintf.c (main): Likewise.
42337         Reported by Jim Meyering.
42339 2011-07-08  Bruno Haible  <bruno@clisp.org>
42341         Tests for module 'pthread_sigmask'.
42342         * modules/pthread_sigmask-tests: New file.
42343         * tests/test-pthread_sigmask1.c: New file, based on
42344         tests/test-sigprocmask.c.
42345         * tests/test-pthread_sigmask2.c: New file.
42347 2011-07-08  Jim Meyering  <meyering@redhat.com>
42349         test-getopt.h: avoid warning about an unused variable
42350         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
42352 2011-07-07  Jim Meyering  <meyering@redhat.com>
42354         maint: reduce list of files exempt from sc_prohibit_leading_TABs
42355         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
42356         now that it no longer contains leading TABs.
42357         Remove unused "url=FIXME" statement.
42359 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42361         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
42362         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42363         When gl_THREADLIB is not in use, assume that the POSIX sematics
42364         are desired.  This is better for Emacs, which uses POSIX semantics
42365         on GNUish and/or POSIXish platforms, and does not use threads at
42366         all otherwise.
42368         pthread_sigmask: fix typo when testing for libraries
42369         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
42370         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
42372 2011-07-08  Eric Blake  <eblake@redhat.com>
42374         fts: introduce FTS_NOATIME
42375         * lib/fts_.h (FTS_NOATIME): New bit flag.
42376         (FTS_OPTIONMASK): Adjust.
42377         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
42378         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
42380 2011-07-08  Bruno Haible  <bruno@clisp.org>
42382         Tests for module 'thread'.
42383         * modules/thread-tests: New file.
42384         * tests/test-thread_self.c: New file.
42385         * tests/test-thread_create.cc: New file.
42387 2011-07-08  Bruno Haible  <bruno@clisp.org>
42389         thread: Avoid gcc warnings when using gl_thread_self().
42390         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
42391         'void *'.
42392         (gl_thread_self_pointer): Update.
42394 2011-07-07  Bruno Haible  <bruno@clisp.org>
42396         signal-c++-tests: Check declaration of pthread_sigmask.
42397         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
42398         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
42399         $(LIB_PTHREAD_SIGMASK).
42401 2011-07-07  Bruno Haible  <bruno@clisp.org>
42403         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
42404         * lib/signal.in.h (pthread_sigmask): Override if
42405         REPLACE_PTHREAD_SIGMASK is 1.
42406         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42407         REPLACE_PTHREAD_SIGMASK.
42408         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
42409         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
42410         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
42411         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42412         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
42414 2011-07-07  Bruno Haible  <bruno@clisp.org>
42416         pthread_sigmask: Ensure declaration in <signal.h>.
42417         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
42418         include <pthread.h>.
42419         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
42420         problem.
42422 2011-07-07  Bruno Haible  <bruno@clisp.org>
42424         pthread_sigmask: Document the module.
42425         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
42427 2011-07-07  Bruno Haible  <bruno@clisp.org>
42429         pthread_sigmask: Follow gnulib conventions.
42430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
42431         gl_PTHREAD_SIGMASK.
42432         * modules/pthread_sigmask (configure.ac): Update.
42434 2011-07-07  Bruno Haible  <bruno@clisp.org>
42436         pthread_sigmask: Make declaration C++ safe.
42437         * lib/signal.in.h: In two special conditions, just do an #include_next.
42438         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42439         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
42440         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42441         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
42442         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
42443         not REPLACE_PTHREAD_MASK.
42444         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
42445         not REPLACE_PTHREAD_MASK.
42446         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
42448 2011-07-07  Bruno Haible  <bruno@clisp.org>
42450         pthread_sigmask: Fix return value.
42451         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
42452         * lib/pthread_sigmask.c: New file.
42453         * modules/pthread_sigmask (Files): Add it.
42454         (configure.ac): Invoke AC_LIBOBJ.
42456 2011-07-07  Eric Blake  <eblake@redhat.com>
42458         getopt: more portable argv creation
42459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
42460         const, use char arrays rather than strings.
42461         Suggested by Paul Eggert.
42463 2011-07-07  Bruno Haible  <bruno@clisp.org>
42465         Tests for module 'sigprocmask'.
42466         * modules/sigprocmask-tests: New file.
42467         * tests/test-sigprocmask.c: New file.
42469 2011-07-07  Bruno Haible  <bruno@clisp.org>
42471         float tests: Tweak.
42472         * tests/test-float.c (main): Tweak skip message.
42474 2011-07-07  Eric Blake  <eblake@redhat.com>
42476         getopt: avoid compiler warning during configure
42477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
42478         assigning string literals to non-const pointer.
42480         getopt-gnu: avoid crash in glibc getopt
42481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
42482         * tests/test-getopt.h (test_getopt): Enhance test.
42483         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42484         * doc/posix-functions/getopt.texi (getopt): Document it.
42485         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
42486         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42487         Likewise.
42489 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
42491         getopt: handle W; without long options in getopt [BZ #12922]
42492         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
42493         but no long options are defined, just return 'W'.
42495 2011-07-07  Bruno Haible  <bruno@clisp.org>
42497         Avoid literal tabs.
42498         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
42499         variable containing a tab instead of a literal tab.
42500         Reported by Jim Meyering.
42502 2011-07-07  Bruno Haible  <bruno@clisp.org>
42504         Comments.
42505         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
42507 2011-07-06  Bruno Haible  <bruno@clisp.org>
42509         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
42510         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
42511         <winsock2.h>.
42512         (rpl_fd_isset, FD_ISSET): New definitions, copied from
42513         lib/sys_socket.in.h.
42514         (close, gethostname): Hide declarations from <winsock2.h>.
42515         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42516         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
42517         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
42518         (select): Don't override if gnulib's <sys/select.h> was already
42519         included.
42520         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
42521         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
42522         setsockopt, shutdown, select): Tweak indentation.
42524 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42526         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
42527         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
42528         in an application that does not use the sys_select module.
42530 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
42532         poll: do not return 0 on timeout=-1
42533         * lib/poll.c: Loop with yield if no events occurred.
42535 2011-07-06  Eric Blake  <eblake@redhat.com>
42537         pthread_sigmask: always replace when not using pthread
42538         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
42539         replacement when using some threading other than pthread.  Fix
42540         logic bug.
42542 2011-07-06  Bruno Haible  <bruno@clisp.org>
42544         Comments.
42545         * m4/printf.m4: Update comments about mingw.
42547 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42549         sys_select: define sigset_t more portably
42550         * lib/sys_select.in.h: Always include <sys/types.h>, since
42551         we now need sigset_t and mingw defines it there.
42552         Include <signal.h> before split inclusion guard, to avoid
42553         mishaps on Solaris, whose <signal.h> eventually includes us.
42554         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
42555         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
42556         which come from ...
42557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42558         gl_CHECK_TYPE_SIGSET_T.
42559         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
42560         does the real work.
42561         * modules/sys_select (Depends-on): Add 'signal'.
42563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
42564         Suggested by Bruno Haible.
42566         pselect: Use pthread_sigmask, not sigprocmask.
42567         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
42568         multithreaded apps better than sigprocmask does.
42569         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
42570         sigprocmask directly.
42572 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42574         * lib/pselect.c (pselect): Use plain name, without "rpl_".
42575         Don't #undef,  since we don't need any underlying pselect.
42576         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
42577         (Depends-on): Add select.
42578         (Link): Add $(LIBSOCKET).
42579         These changes suggested by Bruno Haible.
42581         pselect: document better
42582         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
42583         * doc/posix-functions/pselect.texi (pselect): Document new module.
42585         pthread_sigmask: new module
42586         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
42587         * doc/posix-functions/pthread_sigmask.texi: Document new module.
42588         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
42589         This is done only as a macro; I don't know how well that'll
42590         work for C++.  Move <sys/types.h> include before the include_next,
42591         to avoid mishap on Solaris.
42592         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
42593         * modules/signal (Makefile.am): Substitute the check's results.
42594         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
42596         test-pselect: new module
42597         * modules/pselect-tests, tests/test-pselect.c: New files.
42598         * tests/test-select.c, tests/test-sys_select-c++.cc:
42599         If TEST_PSELECT is defined, test pselect instead of testing select.
42601         * tests/test-sys_select.c (sigset_t): Test for it, too.
42602         Suggested by Bruno Haible.
42604 2011-07-05  Eric Blake  <eblake@redhat.com>
42606         snprintf: guarantee %1$d, for libintl
42607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
42608         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42609         * doc/posix-functions/snprintf.texi (snprintf): Update.
42610         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42611         * tests/test-snprintf.c (main): Enhance test.
42612         * tests/test-vsnprintf.c (main): Likewise.
42614 2011-07-05  Jim Meyering  <meyering@redhat.com>
42616         maint: exempt stdio-read.c and stdio-write.c from the cppi check
42617         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
42618         per Bruno's request, to accommodate this idiom (no space after "#")
42619         even when the function is inside an #if block:
42620         char *
42621         gets (char *s)
42622         #undef gets
42623         {
42624           ...
42625         }
42627 2011-07-04  Jim Meyering  <meyering@redhat.com>
42629         maint: indent with spaces, not TABs, and add a rule to check this
42630         * tests/test-userspec.c: Indent with spaces, not TABs.
42631         * tests/test-argp.c: Likewise.
42632         * tests/test-c-stack2.sh: Likewise.
42633         * tests/test-parse-duration.sh: Likewise
42634         * m4/strtod.m4: Likewise.
42635         * m4/alloca.m4: Likewise.
42636         * m4/pselect.m4: Likewise.
42637         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
42639 2011-07-03  Jim Meyering  <meyering@redhat.com>
42641         maint.mk: correct omissions in prohibit_argmatch_without_use check
42642         This rule would mistakenly report that argmatch.h is included without
42643         use even when both the argmatch and invalid_arg macro were used.
42644         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
42645         of argmatch and invalid_arg.
42647 2011-07-03  Bruno Haible  <bruno@clisp.org>
42649         Comments about EINTR.
42650         * lib/safe-read.h: Explain the purpose of this module.
42651         * lib/safe-write.h: Likewise.
42652         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
42653         module.
42654         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
42655         module.
42656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42658 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42660         xnanosleep: Rewrite to use new dtotimespec module.
42661         It has the conversion code that used to be in xnanosleep.
42662         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
42663         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
42664         (TIME_T_MAX): Remove.
42665         (xnanosleep): Rewrite in terms of dtotimespec.
42666         * modules/xnanosleep (Depends-on): Add dtotimespec.
42667         Remove intprops, stdbool.
42669         timespec-add, timespec-sub: new modules
42670         * lib/timespec.h (timespec_add, timespec_sub): New decls.
42671         * lib/timespec-add.c, lib/timespec-sub.c:
42672         * modules/timespec-add, modules/timespec-sub: New files.
42674         dtotimespec: new module
42675         * lib/timespec.h (dtotimespec): New decl.
42676         * lib/dtotimespec.c, modules/dtotimespec: New files.
42678         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
42680         pselect: new module
42681         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
42682         (pselect): New decls.
42683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
42684         since the standard pselect decl uses 'restrict'.
42685         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
42686         HAVE_PSELECT, REPLACE_PSELECT.
42687         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
42688         HAVE_PSELECT, REPLACE_PSELECT.
42689         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
42691         sys_select: don't depend on sys_socket
42692         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
42693         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
42694         This fix works on GNU and GNU-like platforms, but has not been tested
42695         on native Windows.
42696         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
42697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
42698         gl_HEADER_SYS_SOCKET.
42699         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
42700         gl_PREREQ_SYS_H_WINSOCK2.
42702 2011-06-29  Eric Blake  <eblake@redhat.com>
42704         pipe2: fix C89 compile problem
42705         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
42706         Reported by Bruno Haible.
42708         pipe, pipe2: don't corrupt fd on error
42709         * lib/pipe.c (pipe): Leave fd unchanged on error.
42710         * lib/pipe2.c (pipe2): Likewise.
42711         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
42712         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
42714 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
42716         mmap-anon: do not use regular expressions inadvertently
42717         * m4/mmap-anon.m4: Remove trailing period from strings sought
42718         in the output.
42720 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
42722         nanosleep: fix integer overflow problem
42723         * lib/nanosleep.c (my_usleep): Don't assume signed integer
42724         arithmetic wraps around on overflow.
42726         nanosleep: simplify carrying
42727         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
42728         first call to the underyling nanosleep, not for the last one.
42729         This doesn't fix any bugs, but it simplifies the computation of
42730         the remaining delay.  Found while auditing integer overflow issues.
42732         dup2: remove test for existence of fcntl
42733         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
42734         "#if HAVE_FCNTL", in the configure-time test program.
42735         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
42736         and therefore speeds up "configure" a bit.  Found while
42737         adding the dup2 module to Emacs.
42739 2011-06-24  Eric Blake  <eblake@redhat.com>
42741         maint.mk: enhance useless header checks
42742         * top/maint.mk (_sc_header_without_use): Check both include
42743         styles.
42744         (sc_prohibit_assert_without_use)
42745         (sc_prohibit_close_stream_without_use)
42746         (sc_prohibit_getopt_without_use)
42747         (sc_prohibit_quotearg_without_use)
42748         (sc_prohibit_quote_without_use)
42749         (sc_prohibit_long_options_without_use)
42750         (sc_prohibit_inttostr_without_use)
42751         (sc_prohibit_ignore_value_without_use)
42752         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
42753         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
42754         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
42755         (sc_prohibit_hash_pjw_without_use)
42756         (sc_prohibit_safe_read_without_use)
42757         (sc_prohibit_argmatch_without_use)
42758         (sc_prohibit_canonicalize_without_use)
42759         (sc_prohibit_root_dev_ino_without_use)
42760         (sc_prohibit_openat_without_use)
42761         (sc_prohibit_c_ctype_without_use)
42762         (sc_prohibit_signal_without_use)
42763         (sc_prohibit_stdio--_without_use)
42764         (sc_prohibit_stdio-safer_without_use)
42765         (sc_prohibit_strings_without_use)
42766         (sc_prohibit_intprops_without_use)
42767         (sc_prohibit_stddef_without_use)
42768         (sc_prohibit_xfreopen_without_use): Update clients.
42770 2011-06-24  Jim Meyering  <meyering@redhat.com>
42772         syntax-check: keep one maint.mk rule in sync with its header
42773         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
42774         of the bug Eric has just fixed, with today's commit 25e4c2ec.
42775         I prefer to avoid temporary files here, so use <(...), but that
42776         is not supported by /bin/sh, so...
42777         (SHELL): Define to /bin/bash.
42779 2011-06-24  Eric Blake  <eblake@redhat.com>
42781         maint.mk: update sc_prohibit_intprops_without_use
42782         * top/maint.mk (_intprops_names): Match recent changes.
42784 2011-06-24  Bruno Haible  <bruno@clisp.org>
42786         strerror-override: No-op tweak.
42787         * lib/strerror-override.h (strerror_override): Reorder conditions,
42788         for consistency with lib/strerror-override.c.
42790 2011-06-23  Eric Blake  <eblake@redhat.com>
42792         maint.mk: test further PATH_MAX issues
42793         * top/maint.mk (sc_prohibit_path_max_array): Rename...
42794         (sc_prohibit_path_max_allocation): ...and also test alloca.
42795         Suggested by Jim Meyering.
42797 2011-06-22  Eric Blake  <eblake@redhat.com>
42799         maint.mk: add syntax-check to avoid char[PATH_MAX]
42800         * top/maint.mk (sc_prohibit_path_max_array): New rule.
42802         stat: be robust to PATH_MAX definition
42803         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
42804         * modules/stat (Depends-on): Add verify.
42806         link: work around IRIX bug
42807         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
42808         * lib/link.c (rpl_link): Work around it.
42809         * tests/test-link.h (test_link): Enhance test.
42810         * doc/posix-functions/link.texi (link): Document the bug.
42812         getopt: silence clang warning
42813         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
42814         dereference.
42815         Reported by Gustavo Martin Domato.
42817 2011-06-22  Jim Meyering  <meyering@redhat.com>
42819         bootstrap: do not insert a blank line into each .gitignore file
42820         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
42822 2011-06-21  Eric Blake  <eblake@redhat.com>
42824         perror: test for output mismatch
42825         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
42826         perror on IRIX.
42828         strerror_r: fix OpenBSD behavior on out-of-range
42829         * lib/strerror_r.c (strerror_r): Always use maximal string.
42830         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
42832         strerror_r: fix OpenBSD behavior on 0
42833         * lib/strerror-override.c (strerror_override): Also override 0
42834         when needed.
42835         * lib/strerror-override.h (strerror_override): Likewise.
42836         * lib/strerror.c (strerror): Simplify, now that 0 override is done
42837         earlier.
42838         * lib/strerror_r.c (strerror_r): Likewise.
42839         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
42840         behavior...
42841         (gl_FUNC_STRERROR_0): ...into new macro.
42842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
42843         is overridden.
42844         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
42845         * modules/strerror-override (Files): Add strerror.m4.
42846         (configure.ac): Also provide override for 0 when needed.
42847         * doc/posix-functions/strerror.texi (strerror): Document this.
42848         * doc/posix-functions/perror.texi (perror): Likewise.
42850         perror: adjust array size
42851         * modules/perror (Depends-on): Add strerror-override.
42852         * lib/perror.c (perror): Use it to avoid magic number.
42854         strerror-override: reduce size
42855         * lib/strerror-override.c (strerror_override): Use fewer lines.
42857 2011-06-20  Bruno Haible  <bruno@clisp.org>
42859         pathmax: Ensure correct value for PATH_MAX on HP-UX.
42860         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
42862 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42864         alloca: port to compilers that can optimize like GCC 4.6.0
42865         * lib/alloca.c (find_stack_direction): New signature, taken from
42866         Autoconf git.  This works with GCC 4.6.0.  This code should never
42867         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
42868         be used with other compilers that optimize as well as GCC 4.6.0 does.
42869         (alloca): Adjust to new signature.
42870         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
42871         New macro, which patches Autoconf in a similar way.
42873         c-stack: stop worrying about stack direction
42874         * lib/c-stack.c (find_stack_direction): Remove.
42875         (segv_handler): Don't worry about stack direction growth, as it's
42876         too much of a pain to configure this correctly, given how compilers
42877         are optimizing-away our stack-growth detection code.  Instead, assume
42878         that any access to just before or just after the stack is OK.
42879         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
42880         Don't require AC_FUNC_ALLOCA; no longer needed.
42882 2011-06-20  Eric Blake  <eblake@redhat.com>
42884         test-stat: don't allocate PATH_MAX bytes
42885         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
42886         PATH_MAX-sized buffer.
42887         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
42888         * modules/stat-tests (Depends-on): Likewise.
42889         * tests/test-fstatat.c (includes): Drop pathmax.h.
42890         * tests/test-stat.c (includes): Likewise.
42891         Reported by Bruno Haible.
42893 2011-06-20  Bruno Haible  <bruno@clisp.org>
42895         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
42896         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
42897         * lib/float.c: New file.
42898         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
42899         REPLACE_FLOAT_LDBL.
42900         * modules/float (Files): Add lib/float.c.
42901         (configure.ac): Invoke AC_LIBOBJ.
42902         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
42904 2011-06-20  Bruno Haible  <bruno@clisp.org>
42906         Tests for module 'float'.
42907         * modules/float-tests: New file.
42908         * tests/test-float.c: New file.
42910 2011-06-19  Bruno Haible  <bruno@clisp.org>
42912         isinf: Coding style.
42913         * lib/isinf.c: Use GNU coding style.
42915 2011-06-19  Bruno Haible  <bruno@clisp.org>
42917         linkat test: Avoid test failure on AIX 7.1.
42918         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
42919         * tests/test-link.h (test_link): Likewise.
42921 2011-06-19  Bruno Haible  <bruno@clisp.org>
42923         pread test: Avoid test failure on OpenBSD 4.9.
42924         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
42926 2011-06-19  Bruno Haible  <bruno@clisp.org>
42928         sprintf-posix: Fix test failure on AIX 7.1.
42929         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
42930         * doc/posix-functions/dprintf.texi: Mention limited precision problem
42931         on AIX.
42932         * doc/posix-functions/fprintf.texi: Likewise.
42933         * doc/posix-functions/printf.texi: Likewise.
42934         * doc/posix-functions/snprintf.texi: Likewise.
42935         * doc/posix-functions/sprintf.texi: Likewise.
42936         * doc/posix-functions/vdprintf.texi: Likewise.
42937         * doc/posix-functions/vfprintf.texi: Likewise.
42938         * doc/posix-functions/vprintf.texi: Likewise.
42939         * doc/posix-functions/vsnprintf.texi: Likewise.
42940         * doc/posix-functions/vsprintf.texi: Likewise.
42942 2011-06-19  Bruno Haible  <bruno@clisp.org>
42944         roundl-ieee: Fix test failure on AIX 7.1.
42945         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
42946         * doc/posix-functions/roundl.texi: Mention problem with negative
42947         arguments.
42949 2011-06-19  Bruno Haible  <bruno@clisp.org>
42951         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
42952         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
42953         * doc/posix-functions/round.texi: Mention problem with negative
42954         arguments.
42955         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
42957 2011-06-19  Bruno Haible  <bruno@clisp.org>
42959         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
42960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
42961         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
42962         * doc/posix-functions/roundf.texi: Mention problem with negative
42963         arguments.
42964         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
42966 2011-06-19  Bruno Haible  <bruno@clisp.org>
42968         ceilf-ieee: Work around bug on MacOS X 10.5.
42969         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
42971         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
42972         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
42973         IEEE compliant, avoid compiler optimizations.
42974         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
42975         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42976         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
42977         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
42978         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
42979         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
42980         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
42981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42982         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
42985 2011-06-19  Bruno Haible  <bruno@clisp.org>
42987         ceilf-ieee: Work around bug on AIX 7.1.
42988         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
42989         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
42991 2011-06-19  Bruno Haible  <bruno@clisp.org>
42993         ceil-ieee: Work around bug on AIX 7.1.
42994         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
42995         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
42997 2011-06-18  Bruno Haible  <bruno@clisp.org>
42999         fsync test: Avoid test failure on MacOS X and AIX.
43000         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
43001         EINVAL.
43003 2011-06-18  Bruno Haible  <bruno@clisp.org>
43005         openat, fdopendir tests: Fix link errors.
43006         * modules/openat-tests (Depends-on): Add progname.
43007         * modules/fdopendir-tests (Depends-on): Likewise.
43008         * tests/test-fchownat.c: Include progname.h.
43009         (main): Call set_program_name.
43010         * tests/test-fstatat.c: Include progname.h.
43011         (main): Call set_program_name.
43012         * tests/test-mkdirat.c: Include progname.h.
43013         (main): Call set_program_name.
43014         * tests/test-openat.c: Include progname.h.
43015         (main): Call set_program_name.
43016         * tests/test-unlinkat.c: Include progname.h.
43017         (main): Call set_program_name.
43018         * tests/test-fdopendir.c: Include progname.h.
43019         (main): Call set_program_name.
43021 2011-06-18  Bruno Haible  <bruno@clisp.org>
43023         Doc update.
43024         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
43025         HP-UX.
43026         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
43028 2011-06-18  Bruno Haible  <bruno@clisp.org>
43030         getcwd tests: Avoid compilation error on HP-UX 11.31.
43031         * modules/getcwd-tests (Depends-on): Add pathmax.
43032         * tests/test-getcwd.c: Include pathmax.h.
43034 2011-06-18  Bruno Haible  <bruno@clisp.org>
43036         isfinite, isinf: Fix link error on AIX 6 and 7.
43037         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
43038         needed, also test the macro with a 'float' argument.
43039         * m4/isinf.m4 (gl_ISINF): Likewise.
43041 2011-06-18  Bruno Haible  <bruno@clisp.org>
43043         getloadavg: Don't clobber LIBS. Regression from previous commit.
43044         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
43045         AC_CHECK_LIB from here...
43046         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
43047         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
43048         gl_func_getloadavg_done.
43049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43051 2011-06-18  Bruno Haible  <bruno@clisp.org>
43053         clean-temp: Improve documentation.
43054         * lib/clean-temp.h: Explain better how to use this module.
43055         Reported by John Darrington <john@darrington.wattle.id.au>.
43057 2011-06-17  Bruno Haible  <bruno@clisp.org>
43059         pread, pwrite: Avoid cc warning on AIX.
43060         * lib/unistd.in.h (pread): Undefine before defining as a macro.
43061         (pwrite): Likewise.
43063 2011-06-17  Bruno Haible  <bruno@clisp.org>
43065         spawn-pipe tests: Fix link error.
43066         * tests/test-spawn-pipe-child.c: Undefine fprintf.
43067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43069 2011-06-17  Bruno Haible  <bruno@clisp.org>
43071         Tests: Remove unnecessary dependency.
43072         * modules/canonicalize-tests (Depends-on): Remove progname.
43073         * modules/chown-tests (Depends-on): Likewise.
43074         * modules/dirname-tests (Depends-on): Likewise.
43075         * modules/fdopendir-tests (Depends-on): Likewise.
43076         * modules/fdutimensat-tests (Depends-on): Likewise.
43077         * modules/hash-tests (Depends-on): Likewise.
43078         * modules/lchown-tests (Depends-on): Likewise.
43079         * modules/linkat-tests (Depends-on): Likewise.
43080         * modules/renameat-tests (Depends-on): Likewise.
43081         * modules/spawn-pipe-tests (Depends-on): Likewise.
43082         * modules/utimensat-tests (Depends-on): Likewise.
43084 2011-06-17  Bruno Haible  <bruno@clisp.org>
43086         spawn-pipe tests: Fix link error.
43087         * tests/test-spawn-pipe-child.c: Undefine fflush.
43089 2011-06-17  Bruno Haible  <bruno@clisp.org>
43091         Fix tests link errors.
43092         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
43093         * modules/chown-tests (Makefile.am): Don't link test-chown with
43094         LIBINTL.
43095         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
43096         LIBINTL.
43097         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
43098         LIBINTL.
43099         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
43100         LIBINTL.
43102 2011-06-16  Bruno Haible  <bruno@clisp.org>
43104         crypto/gc-sha1: Fix recent regression.
43105         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
43106         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
43108         crypto/gc-md5: Fix recent regression.
43109         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
43111         crypto/gc-md4: Fix recent regression.
43112         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
43113         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
43115         crypto/gc-arctwo: Fix recent regression.
43116         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
43117         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
43119         crypto/gc-rijndael: Fix recent regression.
43120         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
43121         (configure.ac): Invoke AC_LIBOBJ here.
43122         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
43123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43125         crypto/gc-hmac-sha1: Fix recent regression.
43126         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
43127         (configure.ac): Invoke AC_LIBOBJ here.
43128         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
43129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43131         crypto/gc-hmac-md5: Fix recent regression.
43132         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
43133         (configure.ac): Invoke AC_LIBOBJ here.
43134         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
43135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43137         crypto/gc-des: Fix recent regression.
43138         * modules/crypto/gc-des (Files): Remove m4/des.m4.
43139         (configure.ac): Invoke AC_LIBOBJ here.
43140         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
43141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43143         crypto/gc-arcfour: Fix recent regression.
43144         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
43145         (configure.ac): Invoke AC_LIBOBJ here.
43146         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
43147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43149 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
43151         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
43152         After the 2011-05-21 change, this macro requires
43153         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
43154         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43156 2011-06-16  Bruno Haible  <bruno@clisp.org>
43158         fprintftime: Move AC_LIBOBJ invocations to module description.
43159         * m4/fprintftime.m4: Remove file.
43160         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
43161         (configure.ac): Remove gl_FPRINTFTIME call.
43162         (Makefile.am): Augment lib_SOURCES.
43163         Reported by Jim Meyering.
43165 2011-06-16  Bruno Haible  <bruno@clisp.org>
43167         tmpfile-safer: Finish 2011-05-23 commit.
43168         * m4/stdio-safer.m4: Really remove file.
43169         Reported by Jim Meyering.
43171 2011-06-16  Bruno Haible  <bruno@clisp.org>
43173         syntax-check: Fix typo.
43174         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
43175         printf-posix.m4.
43176         Reported by Jim Meyering.
43178 2011-06-13  Jim Meyering  <meyering@redhat.com>
43180         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
43181         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
43183 2011-05-23  Bruno Haible  <bruno@clisp.org>
43185         yesno: Move AC_LIBOBJ invocations to module description.
43186         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
43187         * modules/yesno (Makefile.am): Augment lib_SOURCES.
43189 2011-05-23  Bruno Haible  <bruno@clisp.org>
43191         xstrtol: Move AC_LIBOBJ invocations to module description.
43192         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
43193         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
43195 2011-05-23  Bruno Haible  <bruno@clisp.org>
43197         xstrtold: Move AC_LIBOBJ invocations to module description.
43198         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
43199         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
43201 2011-05-23  Bruno Haible  <bruno@clisp.org>
43203         xstrtod: Move AC_LIBOBJ invocations to module description.
43204         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
43205         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
43207 2011-05-23  Bruno Haible  <bruno@clisp.org>
43209         xnanosleep: Move AC_LIBOBJ invocations to module description.
43210         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
43211         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
43213 2011-05-23  Bruno Haible  <bruno@clisp.org>
43215         xgetcwd: Move AC_LIBOBJ invocations to module description.
43216         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
43217         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
43219 2011-05-23  Bruno Haible  <bruno@clisp.org>
43221         xalloc: Move AC_LIBOBJ invocations to module description.
43222         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
43223         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
43225 2011-05-23  Bruno Haible  <bruno@clisp.org>
43227         write-any-file: Move AC_LIBOBJ invocations to module description.
43228         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
43229         invocation.
43230         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
43232 2011-05-23  Bruno Haible  <bruno@clisp.org>
43234         utimens: Move AC_LIBOBJ invocations to module description.
43235         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
43236         * modules/utimens (Makefile.am): Augment lib_SOURCES.
43238 2011-05-23  Bruno Haible  <bruno@clisp.org>
43240         utimecmp: Move AC_LIBOBJ invocations to module description.
43241         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
43242         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
43244 2011-05-23  Bruno Haible  <bruno@clisp.org>
43246         userspec: Move AC_LIBOBJ invocations to module description.
43247         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
43248         * modules/userspec (Makefile.am): Augment lib_SOURCES.
43250 2011-05-23  Bruno Haible  <bruno@clisp.org>
43252         unlinkdir: Move AC_LIBOBJ invocations to module description.
43253         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
43254         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
43256 2011-05-23  Bruno Haible  <bruno@clisp.org>
43258         unistd-safer: Move AC_LIBOBJ invocations to module description.
43259         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
43260         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
43262 2011-05-23  Bruno Haible  <bruno@clisp.org>
43264         tempname: Move AC_LIBOBJ invocations to module description.
43265         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
43266         * modules/tempname (Makefile.am): Augment lib_SOURCES.
43268 2011-05-23  Bruno Haible  <bruno@clisp.org>
43270         strftime: Move AC_LIBOBJ invocations to module description.
43271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
43272         * modules/strftime (Makefile.am): Augment lib_SOURCES.
43274 2011-05-23  Bruno Haible  <bruno@clisp.org>
43276         stdlib-safer: Move AC_LIBOBJ invocations to module description.
43277         * m4/stdlib-safer.m4: Remove file.
43278         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
43279         (configure.ac): Remove gl_STDLIB_SAFER call.
43280         (Makefile.am): Augment lib_SOURCES.
43282 2011-05-23  Bruno Haible  <bruno@clisp.org>
43284         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
43285         * m4/stdio-safer.m4: Remove file.
43286         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
43287         (configure.ac): Remove gl_TMPFILE_SAFER call.
43288         (Makefile.am): Augment lib_SOURCES.
43290 2011-05-23  Bruno Haible  <bruno@clisp.org>
43292         popen-safer: Move AC_LIBOBJ invocations to module description.
43293         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
43294         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
43295         (configure.ac): Remove gl_POPEN_SAFER call.
43296         (Makefile.am): Augment lib_SOURCES.
43298 2011-05-23  Bruno Haible  <bruno@clisp.org>
43300         freopen-safer: Move AC_LIBOBJ invocations to module description.
43301         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
43302         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
43303         (configure.ac): Remove gl_FREOPEN_SAFER call.
43304         (Makefile.am): Augment lib_SOURCES.
43306 2011-05-23  Bruno Haible  <bruno@clisp.org>
43308         fopen-safer: Move AC_LIBOBJ invocations to module description.
43309         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
43310         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
43311         (configure.ac): Remove gl_FOPEN_SAFER call.
43312         (Makefile.am): Augment lib_SOURCES.
43314 2011-05-23  Bruno Haible  <bruno@clisp.org>
43316         crypto/sha512: Move AC_LIBOBJ invocations to module description.
43317         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
43318         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
43320 2011-05-23  Bruno Haible  <bruno@clisp.org>
43322         crypto/sha256: Move AC_LIBOBJ invocations to module description.
43323         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
43324         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
43326 2011-05-23  Bruno Haible  <bruno@clisp.org>
43328         crypto/sha1: Move AC_LIBOBJ invocations to module description.
43329         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
43330         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
43332 2011-05-23  Bruno Haible  <bruno@clisp.org>
43334         settime: Move AC_LIBOBJ invocations to module description.
43335         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
43336         * modules/settime (Makefile.am): Augment lib_SOURCES.
43338 2011-05-23  Bruno Haible  <bruno@clisp.org>
43340         savedir: Move AC_LIBOBJ invocations to module description.
43341         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
43342         * modules/savedir (Makefile.am): Augment lib_SOURCES.
43344 2011-05-23  Bruno Haible  <bruno@clisp.org>
43346         save-cwd: Move AC_LIBOBJ invocations to module description.
43347         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
43348         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
43350 2011-05-23  Bruno Haible  <bruno@clisp.org>
43352         same: Move AC_LIBOBJ invocations to module description.
43353         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
43354         * modules/same (Makefile.am): Augment lib_SOURCES.
43356 2011-05-23  Bruno Haible  <bruno@clisp.org>
43358         safe-write: Move AC_LIBOBJ invocations to module description.
43359         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
43360         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
43361         instead of gl_SAFE_WRITE.
43362         (Makefile.am): Augment lib_SOURCES.
43364 2011-05-23  Bruno Haible  <bruno@clisp.org>
43366         safe-read: Move AC_LIBOBJ invocations to module description.
43367         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
43368         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
43369         of gl_SAFE_READ.
43370         (Makefile.am): Augment lib_SOURCES.
43372 2011-05-23  Bruno Haible  <bruno@clisp.org>
43374         safe-alloc: Move AC_LIBOBJ invocations to module description.
43375         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
43376         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
43378 2011-05-23  Bruno Haible  <bruno@clisp.org>
43380         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
43381         * m4/rijndael.m4: Remove file.
43382         * modules/crypto/rijndael (Files): Remove it.
43383         (configure.ac): Remove gl_RIJNDAEL call.
43384         (Makefile.am): Augment lib_SOURCES.
43386 2011-05-23  Bruno Haible  <bruno@clisp.org>
43388         readtokens: Move AC_LIBOBJ invocations to module description.
43389         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
43390         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
43392 2011-05-23  Bruno Haible  <bruno@clisp.org>
43394         read-file: Move AC_LIBOBJ invocations to module description.
43395         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
43396         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
43397         of gl_FUNC_READ_FILE.
43398         (Makefile.am): Augment lib_SOURCES.
43400 2011-05-23  Bruno Haible  <bruno@clisp.org>
43402         quotearg: Move AC_LIBOBJ invocations to module description.
43403         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
43404         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
43406 2011-05-23  Bruno Haible  <bruno@clisp.org>
43408         quote: Move AC_LIBOBJ invocations to module description.
43409         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
43410         * modules/quote (Makefile.am): Augment lib_SOURCES.
43412 2011-05-23  Bruno Haible  <bruno@clisp.org>
43414         posixver: Move AC_LIBOBJ invocations to module description.
43415         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
43416         * modules/posixver (Makefile.am): Augment lib_SOURCES.
43418 2011-05-23  Bruno Haible  <bruno@clisp.org>
43420         posixtm: Move AC_LIBOBJ invocations to module description.
43421         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
43422         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
43424 2011-05-23  Bruno Haible  <bruno@clisp.org>
43426         physmem: Move AC_LIBOBJ invocations to module description.
43427         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
43428         * modules/physmem (Makefile.am): Augment lib_SOURCES.
43430 2011-05-23  Bruno Haible  <bruno@clisp.org>
43432         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
43433         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
43434         invocation.
43435         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
43437 2011-05-23  Bruno Haible  <bruno@clisp.org>
43439         mpsort: Move AC_LIBOBJ invocations to module description.
43440         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
43441         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
43443 2011-05-23  Bruno Haible  <bruno@clisp.org>
43445         modechange: Move AC_LIBOBJ invocations to module description.
43446         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
43447         * modules/modechange (Makefile.am): Augment lib_SOURCES.
43449 2011-05-23  Bruno Haible  <bruno@clisp.org>
43451         mkdir-p: Move AC_LIBOBJ invocations to module description.
43452         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
43453         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
43455 2011-05-23  Bruno Haible  <bruno@clisp.org>
43457         mkancesdirs: Move AC_LIBOBJ invocations to module description.
43458         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
43459         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
43461 2011-05-23  Bruno Haible  <bruno@clisp.org>
43463         mgetgroups: Move AC_LIBOBJ invocations to module description.
43464         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
43465         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
43467 2011-05-23  Bruno Haible  <bruno@clisp.org>
43469         memxor: Move AC_LIBOBJ invocations to module description.
43470         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
43471         * modules/memxor (Makefile.am): Augment lib_SOURCES.
43473 2011-05-23  Bruno Haible  <bruno@clisp.org>
43475         memcoll: Move AC_LIBOBJ invocations to module description.
43476         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
43477         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
43479 2011-05-23  Bruno Haible  <bruno@clisp.org>
43481         memcasecmp: Move AC_LIBOBJ invocations to module description.
43482         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
43483         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
43485 2011-05-23  Bruno Haible  <bruno@clisp.org>
43487         crypto/md5: Move AC_LIBOBJ invocations to module description.
43488         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
43489         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
43491 2011-05-23  Bruno Haible  <bruno@clisp.org>
43493         crypto/md4: Move AC_LIBOBJ invocations to module description.
43494         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
43495         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
43497 2011-05-23  Bruno Haible  <bruno@clisp.org>
43499         crypto/md2: Move AC_LIBOBJ invocations to module description.
43500         * m4/md2.m4: Remove file.
43501         * modules/crypto/md2 (Files): Remove it.
43502         (configure.ac): Remove gl_MD2 call.
43503         (Makefile.am): Augment lib_SOURCES.
43505 2011-05-23  Bruno Haible  <bruno@clisp.org>
43507         long-options: Move AC_LIBOBJ invocations to module description.
43508         * m4/long-options.m4: Remove file.
43509         * modules/long-options (Files): Remove it.
43510         (configure.ac): Remove gl_LONG_OPTIONS call.
43511         (Makefile.am): Augment lib_SOURCES.
43513 2011-05-23  Bruno Haible  <bruno@clisp.org>
43515         i-ring: Move AC_LIBOBJ invocations to module description.
43516         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
43517         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
43519 2011-05-23  Bruno Haible  <bruno@clisp.org>
43521         idcache: Move AC_LIBOBJ invocations to module description.
43522         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
43523         * modules/idcache (Makefile.am): Augment lib_SOURCES.
43525 2011-05-23  Bruno Haible  <bruno@clisp.org>
43527         human: Move AC_LIBOBJ invocations to module description.
43528         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
43529         * modules/human (Makefile.am): Augment lib_SOURCES.
43531 2011-05-23  Bruno Haible  <bruno@clisp.org>
43533         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
43534         * m4/hmac-sha1.m4: Remove file.
43535         * modules/crypto/hmac-sha1 (Files): Remove it.
43536         (configure.ac): Remove gl_HMAC_SHA1 call.
43537         (Makefile.am): Augment lib_SOURCES.
43539 2011-05-23  Bruno Haible  <bruno@clisp.org>
43541         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
43542         * m4/hmac-md5.m4: Remove file.
43543         * modules/crypto/hmac-md5 (Files): Remove it.
43544         (configure.ac): Remove gl_HMAC_MD5 call.
43545         (Makefile.am): Augment lib_SOURCES.
43547 2011-05-23  Bruno Haible  <bruno@clisp.org>
43549         hash: Move AC_LIBOBJ invocations to module description.
43550         * m4/hash.m4: Remove file.
43551         * modules/hash (Files): Remove it.
43552         (configure.ac): Remove gl_HASH call.
43553         (Makefile.am): Augment lib_SOURCES.
43555 2011-05-23  Bruno Haible  <bruno@clisp.org>
43557         hard-locale: Move AC_LIBOBJ invocations to module description.
43558         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
43559         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
43561 2011-05-23  Bruno Haible  <bruno@clisp.org>
43563         getugroups: Move AC_LIBOBJ invocations to module description.
43564         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
43565         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
43567 2011-05-23  Bruno Haible  <bruno@clisp.org>
43569         gettime: Move AC_LIBOBJ invocations to module description.
43570         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
43571         * modules/gettime (Makefile.am): Augment lib_SOURCES.
43573 2011-05-23  Bruno Haible  <bruno@clisp.org>
43575         getndelim2: Move AC_LIBOBJ invocations to module description.
43576         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
43577         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
43579 2011-05-23  Bruno Haible  <bruno@clisp.org>
43581         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
43582         * m4/gc-pbkdf2-sha1.m4: Remove file.
43583         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
43584         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
43585         (Makefile.am): Augment lib_SOURCES.
43587 2011-05-23  Bruno Haible  <bruno@clisp.org>
43589         fts: Move AC_LIBOBJ invocations to module description.
43590         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
43591         * modules/fts (configure.ac): ... to here.
43593 2011-05-23  Bruno Haible  <bruno@clisp.org>
43595         file-type: Move AC_LIBOBJ invocations to module description.
43596         * m4/file-type.m4: Remove file.
43597         * modules/file-type (Files): Remove it.
43598         (configure.ac): Remove gl_FILE_TYPE call.
43599         (Makefile.am): Augment lib_SOURCES.
43601 2011-05-23  Bruno Haible  <bruno@clisp.org>
43603         filenamecat*: Respect rules for use of AC_LIBOBJ.
43604         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
43605         Remove AC_LIBOBJ invocation.
43606         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
43607         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
43609 2011-05-23  Bruno Haible  <bruno@clisp.org>
43611         filemode: Move AC_LIBOBJ invocations to module description.
43612         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
43613         * modules/filemode (Makefile.am): Augment lib_SOURCES.
43615 2011-05-23  Bruno Haible  <bruno@clisp.org>
43617         openat-safer: Move AC_LIBOBJ invocations to module description.
43618         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
43619         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
43621 2011-05-23  Bruno Haible  <bruno@clisp.org>
43623         fcntl-safer: Move AC_LIBOBJ invocations to module description.
43624         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
43625         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
43627 2011-05-23  Bruno Haible  <bruno@clisp.org>
43629         exclude: Move AC_LIBOBJ invocations to module description.
43630         * m4/exclude.m4: Remove file.
43631         * modules/exclude (Files): Remove it.
43632         (configure.ac): Remove gl_EXCLUDE call.
43633         (Makefile.am): Augment lib_SOURCES.
43635 2011-05-23  Bruno Haible  <bruno@clisp.org>
43637         dirname*: Respect rules for use of AC_LIBOBJ.
43638         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
43639         invocations.
43640         * modules/dirname (Makefile.am): Augment lib_SOURCES.
43641         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
43643 2011-05-23  Bruno Haible  <bruno@clisp.org>
43645         dirent-safer: Move AC_LIBOBJ invocations to module description.
43646         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
43647         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
43649 2011-05-23  Bruno Haible  <bruno@clisp.org>
43651         crypto/des: Move AC_LIBOBJ invocations to module description.
43652         * m4/des.m4: Remove file.
43653         * modules/crypto/des (Files): Remove it.
43654         (configure.ac): Remove gl_DES call.
43655         (Makefile.am): Augment lib_SOURCES.
43657 2011-05-23  Bruno Haible  <bruno@clisp.org>
43659         cycle-check: Move AC_LIBOBJ invocations to module description.
43660         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
43661         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
43663 2011-05-23  Bruno Haible  <bruno@clisp.org>
43665         c-strtold: Move AC_LIBOBJ invocations to module description.
43666         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
43667         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
43669 2011-05-23  Bruno Haible  <bruno@clisp.org>
43671         c-strtod: Move AC_LIBOBJ invocations to module description.
43672         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
43673         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
43675 2011-05-23  Bruno Haible  <bruno@clisp.org>
43677         crc: Move AC_LIBOBJ invocations to module description.
43678         * m4/crc.m4: Remove file.
43679         * modules/crc (Files): Remove it.
43680         (configure.ac): Remove gl_CRC call.
43681         (Makefile.am): Augment lib_SOURCES.
43683 2011-05-23  Bruno Haible  <bruno@clisp.org>
43685         close-stream: Move AC_LIBOBJ invocations to module description.
43686         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
43687         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
43689 2011-05-23  Bruno Haible  <bruno@clisp.org>
43691         closeout: Move AC_LIBOBJ invocations to module description.
43692         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
43693         * modules/closeout (Makefile.am): Augment lib_SOURCES.
43695 2011-05-23  Bruno Haible  <bruno@clisp.org>
43697         closein: Move AC_LIBOBJ invocations to module description.
43698         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
43699         * modules/closein (Makefile.am): Augment lib_SOURCES.
43701 2011-05-23  Bruno Haible  <bruno@clisp.org>
43703         cloexec: Move AC_LIBOBJ invocations to module description.
43704         * m4/cloexec.m4: Remove file.
43705         * modules/cloexec (Files): Remove it.
43706         (configure.ac): Remove gl_CLOEXEC call.
43707         (Makefile.am): Augment lib_SOURCES.
43709 2011-05-23  Bruno Haible  <bruno@clisp.org>
43711         check-version: Move AC_LIBOBJ invocations to module description.
43712         * m4/check-version.m4: Remove file.
43713         * modules/check-version (Files): Remove it.
43714         (configure.ac): Remove gl_CHECK_VERSION call.
43715         (Makefile.am): Augment lib_SOURCES.
43717 2011-05-23  Bruno Haible  <bruno@clisp.org>
43719         chdir-safer: Move AC_LIBOBJ invocations to module description.
43720         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
43721         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
43723 2011-05-23  Bruno Haible  <bruno@clisp.org>
43725         canonicalize: Move AC_LIBOBJ invocations to module description.
43726         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
43727         AC_LIBOBJ invocation.
43728         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
43730 2011-05-23  Bruno Haible  <bruno@clisp.org>
43732         canon-host: Move AC_LIBOBJ invocations to module description.
43733         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
43734         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
43735         instead of gl_CANON_HOST.
43736         (Makefile.am): Augment lib_SOURCES.
43738 2011-05-23  Bruno Haible  <bruno@clisp.org>
43740         backupfile: Move AC_LIBOBJ invocations to module description.
43741         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
43742         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
43744 2011-05-23  Bruno Haible  <bruno@clisp.org>
43746         argmatch: Move AC_LIBOBJ invocations to module description.
43747         * m4/argmatch.m4: Remove file.
43748         * modules/argmatch (Files): Remove it.
43749         (configure.ac): Remove gl_ARGMATCH call.
43750         (Makefile.am): Augment lib_SOURCES.
43752 2011-05-23  Bruno Haible  <bruno@clisp.org>
43754         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
43755         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
43756         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
43758 2011-05-23  Bruno Haible  <bruno@clisp.org>
43760         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
43761         * m4/arcfour.m4: Remove file.
43762         * modules/crypto/arcfour (Files): Remove it.
43763         (configure.ac): Remove gl_ARCFOUR call.
43764         (Makefile.am): Augment lib_SOURCES.
43766 2011-05-22  Bruno Haible  <bruno@clisp.org>
43768         write: Move AC_LIBOBJ invocations to module description.
43769         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
43770         * modules/write (configure.ac): ... to here.
43772 2011-05-22  Bruno Haible  <bruno@clisp.org>
43774         wmemset: Move AC_LIBOBJ invocations to module description.
43775         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
43776         here...
43777         * modules/wmemset (configure.ac): ... to here.
43779 2011-05-22  Bruno Haible  <bruno@clisp.org>
43781         wmemmove: Move AC_LIBOBJ invocations to module description.
43782         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
43783         here...
43784         * modules/wmemmove (configure.ac): ... to here.
43786 2011-05-22  Bruno Haible  <bruno@clisp.org>
43788         wmemcpy: Move AC_LIBOBJ invocations to module description.
43789         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
43790         here...
43791         * modules/wmemcpy (configure.ac): ... to here.
43793 2011-05-22  Bruno Haible  <bruno@clisp.org>
43795         wmemcmp: Move AC_LIBOBJ invocations to module description.
43796         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
43797         here...
43798         * modules/wmemcmp (configure.ac): ... to here.
43800 2011-05-22  Bruno Haible  <bruno@clisp.org>
43802         wmemchr: Move AC_LIBOBJ invocations to module description.
43803         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
43804         here...
43805         * modules/wmemchr (configure.ac): ... to here.
43807 2011-05-22  Bruno Haible  <bruno@clisp.org>
43809         wcswidth: Move AC_LIBOBJ invocations to module description.
43810         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
43811         here...
43812         * modules/wcswidth (configure.ac): ... to here.
43814 2011-05-22  Bruno Haible  <bruno@clisp.org>
43816         wcwidth: Respect rules for use of AC_LIBOBJ.
43817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
43818         invocation from here...
43819         * modules/wcwidth (configure.ac): ... to here.
43820         (Depends-on): Update conditions.
43822 2011-05-22  Bruno Haible  <bruno@clisp.org>
43824         wctype: Move AC_LIBOBJ invocations to module description.
43825         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
43826         invocation from here...
43827         * modules/wctype (configure.ac): ... to here.
43828         (Depends-on): Update conditions.
43830 2011-05-22  Bruno Haible  <bruno@clisp.org>
43832         wctrans: Move AC_LIBOBJ invocations to module description.
43833         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
43834         invocation from here...
43835         * modules/wctrans (configure.ac): ... to here.
43837 2011-05-22  Bruno Haible  <bruno@clisp.org>
43839         wctomb: Move AC_LIBOBJ invocations to module description.
43840         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
43841         invocations from here...
43842         * modules/wctomb (configure.ac): ... to here.
43844 2011-05-22  Bruno Haible  <bruno@clisp.org>
43846         wctob: Move AC_LIBOBJ invocations to module description.
43847         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
43848         gl_PREREQ_WCTOB invocations from here...
43849         * modules/wctob (configure.ac): ... to here.
43850         (Depends-on): Update conditions.
43852 2011-05-22  Bruno Haible  <bruno@clisp.org>
43854         wcsxfrm: Move AC_LIBOBJ invocations to module description.
43855         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
43856         here...
43857         * modules/wcsxfrm (configure.ac): ... to here.
43859 2011-05-22  Bruno Haible  <bruno@clisp.org>
43861         wcstok: Move AC_LIBOBJ invocations to module description.
43862         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
43863         * modules/wcstok (configure.ac): ... to here.
43865 2011-05-22  Bruno Haible  <bruno@clisp.org>
43867         wcsstr: Move AC_LIBOBJ invocations to module description.
43868         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
43869         * modules/wcsstr (configure.ac): ... to here.
43871 2011-05-22  Bruno Haible  <bruno@clisp.org>
43873         wcsspn: Move AC_LIBOBJ invocations to module description.
43874         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
43875         * modules/wcsspn (configure.ac): ... to here.
43877 2011-05-22  Bruno Haible  <bruno@clisp.org>
43879         wcsrtombs: Move AC_LIBOBJ invocations to module description.
43880         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
43881         gl_PREREQ_WCSRTOMBS invocations from here...
43882         * modules/wcsrtombs (configure.ac): ... to here.
43884 2011-05-22  Bruno Haible  <bruno@clisp.org>
43886         wcsrchr: Move AC_LIBOBJ invocations to module description.
43887         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
43888         here...
43889         * modules/wcsrchr (configure.ac): ... to here.
43891 2011-05-22  Bruno Haible  <bruno@clisp.org>
43893         wcspbrk: Move AC_LIBOBJ invocations to module description.
43894         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
43895         here...
43896         * modules/wcspbrk (configure.ac): ... to here.
43898 2011-05-22  Bruno Haible  <bruno@clisp.org>
43900         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
43901         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
43902         gl_PREREQ_WCSNRTOMBS invocations from here...
43903         * modules/wcsnrtombs (configure.ac): ... to here.
43905 2011-05-22  Bruno Haible  <bruno@clisp.org>
43907         wcsnlen: Move AC_LIBOBJ invocations to module description.
43908         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
43909         here...
43910         * modules/wcsnlen (configure.ac): ... to here.
43912 2011-05-22  Bruno Haible  <bruno@clisp.org>
43914         wcsncpy: Move AC_LIBOBJ invocations to module description.
43915         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
43916         here...
43917         * modules/wcsncpy (configure.ac): ... to here.
43919 2011-05-22  Bruno Haible  <bruno@clisp.org>
43921         wcsncmp: Move AC_LIBOBJ invocations to module description.
43922         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
43923         here...
43924         * modules/wcsncmp (configure.ac): ... to here.
43926 2011-05-22  Bruno Haible  <bruno@clisp.org>
43928         wcsncat: Move AC_LIBOBJ invocations to module description.
43929         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
43930         here...
43931         * modules/wcsncat (configure.ac): ... to here.
43933 2011-05-22  Bruno Haible  <bruno@clisp.org>
43935         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
43936         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
43937         from here...
43938         * modules/wcsncasecmp (configure.ac): ... to here.
43940 2011-05-22  Bruno Haible  <bruno@clisp.org>
43942         wcslen: Move AC_LIBOBJ invocations to module description.
43943         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
43944         * modules/wcslen (configure.ac): ... to here.
43946 2011-05-22  Bruno Haible  <bruno@clisp.org>
43948         wcsdup: Move AC_LIBOBJ invocations to module description.
43949         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
43950         * modules/wcsdup (configure.ac): ... to here.
43952 2011-05-22  Bruno Haible  <bruno@clisp.org>
43954         wcscspn: Move AC_LIBOBJ invocations to module description.
43955         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
43956         here...
43957         * modules/wcscspn (configure.ac): ... to here.
43959 2011-05-22  Bruno Haible  <bruno@clisp.org>
43961         wcscpy: Move AC_LIBOBJ invocations to module description.
43962         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
43963         * modules/wcscpy (configure.ac): ... to here.
43965 2011-05-22  Bruno Haible  <bruno@clisp.org>
43967         wcscoll: Move AC_LIBOBJ invocations to module description.
43968         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
43969         here...
43970         * modules/wcscoll (configure.ac): ... to here.
43972 2011-05-22  Bruno Haible  <bruno@clisp.org>
43974         wcscmp: Move AC_LIBOBJ invocations to module description.
43975         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
43976         * modules/wcscmp (configure.ac): ... to here.
43978 2011-05-22  Bruno Haible  <bruno@clisp.org>
43980         wcschr: Move AC_LIBOBJ invocations to module description.
43981         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
43982         * modules/wcschr (configure.ac): ... to here.
43984 2011-05-22  Bruno Haible  <bruno@clisp.org>
43986         wcscat: Move AC_LIBOBJ invocations to module description.
43987         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
43988         * modules/wcscat (configure.ac): ... to here.
43990 2011-05-22  Bruno Haible  <bruno@clisp.org>
43992         wcscasecmp: Move AC_LIBOBJ invocations to module description.
43993         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
43994         here...
43995         * modules/wcscasecmp (configure.ac): ... to here.
43997 2011-05-22  Bruno Haible  <bruno@clisp.org>
43999         wcrtomb: Move AC_LIBOBJ invocations to module description.
44000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
44001         invocations from here...
44002         * modules/wcrtomb (configure.ac): ... to here.
44004 2011-05-22  Bruno Haible  <bruno@clisp.org>
44006         wcpncpy: Move AC_LIBOBJ invocations to module description.
44007         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
44008         here...
44009         * modules/wcpncpy (configure.ac): ... to here.
44011 2011-05-22  Bruno Haible  <bruno@clisp.org>
44013         wcpcpy: Move AC_LIBOBJ invocations to module description.
44014         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
44015         * modules/wcpcpy (configure.ac): ... to here.
44017 2011-05-22  Bruno Haible  <bruno@clisp.org>
44019         waitpid: Move AC_LIBOBJ invocations to module description.
44020         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
44021         invocation from here...
44022         * modules/waitpid (configure.ac): ... to here.
44024 2011-05-22  Bruno Haible  <bruno@clisp.org>
44026         utimensat: Move AC_LIBOBJ invocations to module description.
44027         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
44028         here...
44029         * modules/utimensat (configure.ac): ... to here.
44031 2011-05-22  Bruno Haible  <bruno@clisp.org>
44033         usleep: Move AC_LIBOBJ invocations to module description.
44034         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
44035         here...
44036         * modules/usleep (configure.ac): ... to here.
44038 2011-05-22  Bruno Haible  <bruno@clisp.org>
44040         unlockpt: Move AC_LIBOBJ invocations to module description.
44041         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
44042         gl_PREREQ_UNLOCKPT invocations from here...
44043         * modules/unlockpt (configure.ac): ... to here.
44045 2011-05-22  Bruno Haible  <bruno@clisp.org>
44047         unlink: Respect rules for use of AC_LIBOBJ.
44048         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
44049         * modules/unlink (configure.ac): ... to here.
44051 2011-05-22  Bruno Haible  <bruno@clisp.org>
44053         uname: Move AC_LIBOBJ invocations to module description.
44054         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
44055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
44056         here...
44057         * modules/uname (configure.ac): ... to here.
44059 2011-05-22  Bruno Haible  <bruno@clisp.org>
44061         ttyname_r: Move AC_LIBOBJ invocations to module description.
44062         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
44063         gl_PREREQ_TTYNAME_R invocations from here...
44064         * modules/ttyname_r (configure.ac): ... to here.
44066 2011-05-22  Bruno Haible  <bruno@clisp.org>
44068         tsearch: Move AC_LIBOBJ invocations to module description.
44069         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
44070         invocations from here...
44071         * modules/tsearch (configure.ac): ... to here.
44073 2011-05-22  Bruno Haible  <bruno@clisp.org>
44075         towctrans: Move AC_LIBOBJ invocations to module description.
44076         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
44077         AC_LIBOBJ invocation from here...
44078         * modules/towctrans (configure.ac): ... to here.
44080 2011-05-22  Bruno Haible  <bruno@clisp.org>
44082         tmpfile: Move AC_LIBOBJ invocations to module description.
44083         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
44084         invocations from here...
44085         * modules/tmpfile (configure.ac): ... to here.
44087 2011-05-22  Bruno Haible  <bruno@clisp.org>
44089         times: Move AC_LIBOBJ invocations to module description.
44090         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
44091         * modules/times (configure.ac): ... to here.
44093 2011-05-22  Bruno Haible  <bruno@clisp.org>
44095         time_r: Move AC_LIBOBJ invocations to module description.
44096         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
44097         invocations from here...
44098         * modules/time_r (configure.ac): ... to here.
44100 2011-05-22  Bruno Haible  <bruno@clisp.org>
44102         timegm: Move AC_LIBOBJ invocations to module description.
44103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
44104         invocations from here...
44105         * modules/timegm (configure.ac): ... to here.
44107 2011-05-22  Bruno Haible  <bruno@clisp.org>
44109         tcgetsid: Move AC_LIBOBJ invocations to module description.
44110         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
44111         and gl_PREREQ_TCGETSID invocations from here...
44112         * modules/tcgetsid (configure.ac): ... to here.
44113         (Depends-on): Update conditions.
44115 2011-05-22  Bruno Haible  <bruno@clisp.org>
44117         symlinkat: Move AC_LIBOBJ invocations to module description.
44118         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
44119         here...
44120         * modules/symlinkat (configure.ac): ... to here.
44122 2011-05-22  Bruno Haible  <bruno@clisp.org>
44124         symlink: Move AC_LIBOBJ invocations to module description.
44125         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
44126         here...
44127         * modules/symlink (configure.ac): ... to here.
44129 2011-05-22  Bruno Haible  <bruno@clisp.org>
44131         strverscmp: Move AC_LIBOBJ invocations to module description.
44132         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
44133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
44134         from here...
44135         * modules/strverscmp (configure.ac): ... to here.
44137 2011-05-22  Bruno Haible  <bruno@clisp.org>
44139         strtok_r: Move AC_LIBOBJ invocations to module description.
44140         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
44141         and gl_PREREQ_STRTOK_R invocations from here...
44142         * modules/strtok_r (configure.ac): ... to here.
44143         (Depends-on): Update conditions.
44145 2011-05-22  Bruno Haible  <bruno@clisp.org>
44147         strtoumax: Move AC_LIBOBJ invocations to module description.
44148         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
44149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
44150         from here...
44151         * modules/strtoumax (configure.ac): ... to here.
44153 2011-05-22  Bruno Haible  <bruno@clisp.org>
44155         strtoimax: Move AC_LIBOBJ invocations to module description.
44156         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
44157         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
44158         from here...
44159         * modules/strtoimax (configure.ac): ... to here.
44161 2011-05-22  Bruno Haible  <bruno@clisp.org>
44163         strtoull: Move AC_LIBOBJ invocations to module description.
44164         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
44165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
44166         from here...
44167         * modules/strtoull (configure.ac): ... to here.
44169 2011-05-22  Bruno Haible  <bruno@clisp.org>
44171         strtoll: Move AC_LIBOBJ invocations to module description.
44172         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
44173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
44174         here...
44175         * modules/strtoll (configure.ac): ... to here.
44177 2011-05-22  Bruno Haible  <bruno@clisp.org>
44179         strtoul: Move AC_LIBOBJ invocations to module description.
44180         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
44181         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44182         * modules/strtoul (configure.ac): ... to here.
44184 2011-05-22  Bruno Haible  <bruno@clisp.org>
44186         strtol: Move AC_LIBOBJ invocations to module description.
44187         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
44188         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
44189         * modules/strtol (configure.ac): ... to here.
44191 2011-05-22  Bruno Haible  <bruno@clisp.org>
44193         strtod: Move AC_LIBOBJ invocations to module description.
44194         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
44195         invocations from here...
44196         * modules/strtod (configure.ac): ... to here.
44198 2011-05-22  Bruno Haible  <bruno@clisp.org>
44200         strstr*: Move AC_LIBOBJ invocations to module description.
44201         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
44202         invocations from here...
44203         * modules/strstr-simple (configure.ac): ... to here.
44204         * modules/strstr (configure.ac): ... and here.
44206 2011-05-22  Bruno Haible  <bruno@clisp.org>
44208         strsignal: Move AC_LIBOBJ invocations to module description.
44209         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
44210         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
44211         * modules/strsignal (configure.ac): ... to here.
44212         (Depends-on): Update conditions.
44214 2011-05-22  Bruno Haible  <bruno@clisp.org>
44216         strsep: Move AC_LIBOBJ invocations to module description.
44217         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
44218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
44219         here...
44220         * modules/strsep (configure.ac): ... to here.
44222 2011-05-22  Bruno Haible  <bruno@clisp.org>
44224         strptime: Move AC_LIBOBJ invocations to module description.
44225         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
44226         gl_PREREQ_STRPTIME invocations from here...
44227         * modules/strptime (configure.ac): ... to here.
44229 2011-05-22  Bruno Haible  <bruno@clisp.org>
44231         strpbrk: Move AC_LIBOBJ invocations to module description.
44232         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
44233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
44234         here...
44235         * modules/strpbrk (configure.ac): ... to here.
44237 2011-05-22  Bruno Haible  <bruno@clisp.org>
44239         strnlen: Move AC_LIBOBJ invocations to module description.
44240         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
44241         invocations from here...
44242         * modules/strnlen (configure.ac): ... to here.
44244 2011-05-22  Bruno Haible  <bruno@clisp.org>
44246         strndup: Move AC_LIBOBJ invocations to module description.
44247         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
44248         invocations from here...
44249         * modules/strndup (configure.ac): ... to here.
44250         (Depends-on): Update conditions.
44252 2011-05-22  Bruno Haible  <bruno@clisp.org>
44254         strncat: Move AC_LIBOBJ invocations to module description.
44255         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
44256         invocations from here...
44257         * modules/strncat (configure.ac): ... to here.
44259 2011-05-22  Bruno Haible  <bruno@clisp.org>
44261         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
44262         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
44263         invocations from here...
44264         * modules/strdup (configure.ac): ... to here.
44265         * modules/strdup-posix (configure.ac): ... and here.
44267 2011-05-22  Bruno Haible  <bruno@clisp.org>
44269         strcspn: Move AC_LIBOBJ invocations to module description.
44270         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
44271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
44272         here...
44273         * modules/strcspn (configure.ac): ... to here.
44275 2011-05-22  Bruno Haible  <bruno@clisp.org>
44277         strchrnul: Move AC_LIBOBJ invocations to module description.
44278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
44279         gl_PREREQ_STRCHRNUL invocations from here...
44280         * modules/strchrnul (configure.ac): ... to here.
44282 2011-05-22  Bruno Haible  <bruno@clisp.org>
44284         strcasestr*: Move AC_LIBOBJ invocations to module description.
44285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
44286         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
44287         * modules/strcasestr-simple (configure.ac): ... to here.
44288         * modules/strcasestr (configure.ac): ... and here.
44290 2011-05-22  Bruno Haible  <bruno@clisp.org>
44292         strcase: Move AC_LIBOBJ invocations to module description.
44293         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
44294         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
44295         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
44296         gl_PREREQ_STRNCASECMP invocations from here...
44297         * modules/strcase (configure.ac): ... to here.
44299 2011-05-22  Bruno Haible  <bruno@clisp.org>
44301         stpncpy: Move AC_LIBOBJ invocations to module description.
44302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
44303         here...
44304         * modules/stpncpy (configure.ac): ... to here.
44306 2011-05-22  Bruno Haible  <bruno@clisp.org>
44308         stpcpy: Move AC_LIBOBJ invocations to module description.
44309         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
44310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
44311         here...
44312         * modules/stpcpy (configure.ac): ... to here.
44314 2011-05-21  Bruno Haible  <bruno@clisp.org>
44316         stat: Move AC_LIBOBJ invocations to module description.
44317         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
44318         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
44319         here...
44320         * modules/stat (configure.ac): ... to here.
44322 2011-05-21  Bruno Haible  <bruno@clisp.org>
44324         sleep: Move AC_LIBOBJ invocations to module description.
44325         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
44326         * modules/sleep (configure.ac): ... to here.
44328 2011-05-21  Bruno Haible  <bruno@clisp.org>
44330         signbit: Move AC_LIBOBJ invocations to module description.
44331         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
44332         * modules/signbit (configure.ac): ... to here.
44334 2011-05-21  Bruno Haible  <bruno@clisp.org>
44336         sigprocmask: Move AC_LIBOBJ invocations to module description.
44337         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
44338         gl_PREREQ_SIGPROMASK invocations from here...
44339         * modules/sigprocmask (configure.ac): ... to here.
44341 2011-05-21  Bruno Haible  <bruno@clisp.org>
44343         sigaction: Move AC_LIBOBJ invocations to module description.
44344         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
44345         gl_PREREQ_SIGACTION invocations from here...
44346         * modules/sigaction (configure.ac): ... to here.
44348 2011-05-21  Bruno Haible  <bruno@clisp.org>
44350         sig2str: Move AC_LIBOBJ invocations to module description.
44351         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
44352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
44353         here...
44354         * modules/sig2str (configure.ac): ... to here.
44356 2011-05-21  Bruno Haible  <bruno@clisp.org>
44358         setlocale: Move AC_LIBOBJ invocations to module description.
44359         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
44360         gl_PREREQ_SETLOCALE invocations from here...
44361         * modules/setlocale (configure.ac): ... to here.
44363 2011-05-21  Bruno Haible  <bruno@clisp.org>
44365         unsetenv: Move AC_LIBOBJ invocations to module description.
44366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
44367         and gl_PREREQ_UNSETENV invocations from here...
44368         * modules/unsetenv (configure.ac): ... to here.
44369         (Depends-on): Update.
44371 2011-05-21  Bruno Haible  <bruno@clisp.org>
44373         setenv: Move AC_LIBOBJ invocations to module description.
44374         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
44375         here...
44376         * modules/setenv (configure.ac): ... to here.
44378 2011-05-21  Bruno Haible  <bruno@clisp.org>
44380         selinux-h: Move AC_LIBOBJ invocations to module description.
44381         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
44382         AC_LIBOBJ invocation from here...
44383         * modules/selinux-h (configure.ac): ... to here.
44385 2011-05-21  Bruno Haible  <bruno@clisp.org>
44387         select: Respect rules for use of AC_LIBOBJ.
44388         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
44389         here...
44390         * modules/select (configure.ac): ... to here.
44392 2011-05-21  Bruno Haible  <bruno@clisp.org>
44394         scandir: Move AC_LIBOBJ invocations to module description.
44395         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
44396         invocations from here...
44397         * modules/scandir (configure.ac): ... to here.
44399 2011-05-21  Bruno Haible  <bruno@clisp.org>
44401         rpmatch: Move AC_LIBOBJ invocations to module description.
44402         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
44403         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
44404         here...
44405         * modules/rpmatch (configure.ac): ... to here.
44407 2011-05-21  Bruno Haible  <bruno@clisp.org>
44409         rmdir: Respect rules for use of AC_LIBOBJ.
44410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
44411         * modules/rmdir (configure.ac): ... to here.
44413 2011-05-21  Bruno Haible  <bruno@clisp.org>
44415         renameat: Move AC_LIBOBJ invocations to module description.
44416         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
44417         here...
44418         * modules/renameat (configure.ac): ... to here.
44420 2011-05-21  Bruno Haible  <bruno@clisp.org>
44422         rename: Respect rules for use of AC_LIBOBJ.
44423         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
44424         here...
44425         * modules/rename (configure.ac): ... to here.
44427 2011-05-21  Bruno Haible  <bruno@clisp.org>
44429         remove: Move AC_LIBOBJ invocations to module description.
44430         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
44431         here...
44432         * modules/remove (configure.ac): ... to here.
44434 2011-05-21  Bruno Haible  <bruno@clisp.org>
44436         relocatable-lib: Move AC_LIBOBJ invocations to module description.
44437         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
44438         macro.
44439         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
44440         * modules/relocatable-lib (configure.ac): ... to here.
44441         * modules/relocatable-prog-wrapper (configure.ac): Invoke
44442         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
44444 2011-05-21  Bruno Haible  <bruno@clisp.org>
44446         relocatable-prog: Move AC_LIBOBJ invocations to module description.
44447         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
44448         here...
44449         * modules/relocatable-prog (configure.ac): ... to here.
44451 2011-05-21  Bruno Haible  <bruno@clisp.org>
44453         regex: Move AC_LIBOBJ invocations to module description.
44454         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
44455         invocations from here...
44456         * modules/regex (configure.ac): ... to here.
44458 2011-05-21  Bruno Haible  <bruno@clisp.org>
44460         realloc-*: Move AC_LIBOBJ invocations to module description.
44461         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
44462         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
44463         AC_LIBOBJ invocations from here...
44464         * modules/realloc-gnu (configure.ac): ... to here.
44465         * modules/realloc-posix (configure.ac): ... and here.
44467 2011-05-21  Bruno Haible  <bruno@clisp.org>
44469         readutmp: Move AC_LIBOBJ invocations to module description.
44470         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
44471         * modules/readutmp (configure.ac): ... to here.
44473 2011-05-21  Bruno Haible  <bruno@clisp.org>
44475         readlinkat: Move AC_LIBOBJ invocations to module description.
44476         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
44477         here...
44478         * modules/readlinkat (configure.ac): ... to here.
44480 2011-05-21  Bruno Haible  <bruno@clisp.org>
44482         readlink: Move AC_LIBOBJ invocations to module description.
44483         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
44484         gl_PREREQ_READLINK invocations from here...
44485         * modules/readlink (configure.ac): ... to here.
44487 2011-05-21  Bruno Haible  <bruno@clisp.org>
44489         readline: Move AC_LIBOBJ invocations to module description.
44490         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
44491         gl_PREREQ_READLINE invocations from here...
44492         * modules/readline (configure.ac): ... to here.
44494 2011-05-21  Bruno Haible  <bruno@clisp.org>
44496         read: Move AC_LIBOBJ invocations to module description.
44497         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
44498         * modules/read (configure.ac): ... to here.
44500 2011-05-21  Bruno Haible  <bruno@clisp.org>
44502         rawmemchr: Move AC_LIBOBJ invocations to module description.
44503         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
44504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
44505         from here...
44506         * modules/rawmemchr (configure.ac): ... to here.
44508 2011-05-21  Bruno Haible  <bruno@clisp.org>
44510         random_r: Move AC_LIBOBJ invocations to module description.
44511         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
44512         gl_PREREQ_RANDOM_R invocations from here...
44513         * modules/random_r (configure.ac): ... to here.
44515 2011-05-21  Bruno Haible  <bruno@clisp.org>
44517         pwrite: Move AC_LIBOBJ invocations to module description.
44518         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
44519         * modules/pwrite (configure.ac): ... to here.
44521 2011-05-21  Bruno Haible  <bruno@clisp.org>
44523         putenv: Move AC_LIBOBJ invocations to module description.
44524         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
44525         * modules/putenv (configure.ac): ... to here.
44527 2011-05-21  Bruno Haible  <bruno@clisp.org>
44529         login_tty: Move AC_LIBOBJ invocations to module description.
44530         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
44531         * modules/login_tty (configure.ac): ... to here.
44533 2011-05-21  Bruno Haible  <bruno@clisp.org>
44535         openpty: Move AC_LIBOBJ invocations to module description.
44536         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
44537         * modules/openpty (configure.ac): ... to here.
44539 2011-05-21  Bruno Haible  <bruno@clisp.org>
44541         forkpty: Move AC_LIBOBJ invocations to module description.
44542         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
44543         * modules/forkpty (configure.ac): ... to here.
44545 2011-05-21  Bruno Haible  <bruno@clisp.org>
44547         ptsname: Move AC_LIBOBJ invocations to module description.
44548         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
44549         invocations from here...
44550         * modules/ptsname (configure.ac): ... to here.
44552 2011-05-21  Bruno Haible  <bruno@clisp.org>
44554         pread: Move AC_LIBOBJ invocations to module description.
44555         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
44556         * modules/pread (configure.ac): ... to here.
44558 2011-05-21  Bruno Haible  <bruno@clisp.org>
44560         posix_spawn*: Move AC_LIBOBJ invocations to module description.
44561         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
44562         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
44563         * modules/posix_spawn (configure.ac): ... to here.
44564         * modules/posix_spawnp (configure.ac): ... and here.
44566 2011-05-21  Bruno Haible  <bruno@clisp.org>
44568         popen: Move AC_LIBOBJ invocations to module description.
44569         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
44570         invocations from here...
44571         * modules/popen (configure.ac): ... to here.
44573 2011-05-21  Bruno Haible  <bruno@clisp.org>
44575         poll: Move AC_LIBOBJ invocations to module description.
44576         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
44577         invocations from here...
44578         * modules/poll (configure.ac): ... to here.
44580 2011-05-21  Bruno Haible  <bruno@clisp.org>
44582         pipe-posix: Move AC_LIBOBJ invocations to module description.
44583         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
44584         * modules/pipe-posix (configure.ac): ... to here.
44586 2011-05-21  Bruno Haible  <bruno@clisp.org>
44588         openat: Respect rules for use of AC_LIBOBJ.
44589         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
44590         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
44591         * modules/openat (configure.ac): ... to here.
44593 2011-05-21  Bruno Haible  <bruno@clisp.org>
44595         obstack-printf*: Move AC_LIBOBJ invocations to module description.
44596         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
44597         invocation from here...
44598         * modules/obstack-printf (configure.ac): ... to here.
44599         * modules/obstack-printf-posix (configure.ac): ... and here.
44601 2011-05-21  Bruno Haible  <bruno@clisp.org>
44603         nl_langinfo: Move AC_LIBOBJ invocations to module description.
44604         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
44605         from here...
44606         * modules/nl_langinfo (configure.ac): ... to here.
44608 2011-05-21  Bruno Haible  <bruno@clisp.org>
44610         nanosleep: Move AC_LIBOBJ invocations to module description.
44611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
44612         gl_PREREQ_NANOSLEEP invocations from here...
44613         * modules/nanosleep (configure.ac): ... to here.
44615 2011-05-21  Bruno Haible  <bruno@clisp.org>
44617         mountlist: Move AC_LIBOBJ invocations to module description.
44618         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
44619         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
44620         * modules/mountlist (configure.ac): ... to here.
44622 2011-05-21  Bruno Haible  <bruno@clisp.org>
44624         mktime: Respect rules for use of AC_LIBOBJ.
44625         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
44626         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
44627         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
44628         (gl_FUNC_MKTIME_INTERNAL): ... and here...
44629         * modules/mktime (configure.ac): ... to here.
44630         * modules/mktime-internal (configure.ac): ... and here.
44631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
44633 2011-05-21  Bruno Haible  <bruno@clisp.org>
44635         mkstemps: Move AC_LIBOBJ invocations to module description.
44636         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
44637         here...
44638         * modules/mkstemps (configure.ac): ... to here.
44640 2011-05-21  Bruno Haible  <bruno@clisp.org>
44642         mkstemp: Move AC_LIBOBJ invocations to module description.
44643         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
44644         gl_PREREQ_MKSTEMP invocations from here...
44645         * modules/mkstemp (configure.ac): ... to here.
44647 2011-05-21  Bruno Haible  <bruno@clisp.org>
44649         mkostemps: Move AC_LIBOBJ invocations to module description.
44650         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
44651         here...
44652         * modules/mkostemps (configure.ac): ... to here.
44654 2011-05-21  Bruno Haible  <bruno@clisp.org>
44656         mkostemp: Move AC_LIBOBJ invocations to module description.
44657         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
44658         gl_PREREQ_MKOSTEMP invocations from here...
44659         * modules/mkostemp (configure.ac): ... to here.
44661 2011-05-21  Bruno Haible  <bruno@clisp.org>
44663         mknod: Move AC_LIBOBJ invocations to module description.
44664         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
44665         * modules/mknod (configure.ac): ... to here.
44667 2011-05-21  Bruno Haible  <bruno@clisp.org>
44669         mkfifoat: Move AC_LIBOBJ invocations to module description.
44670         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
44671         here...
44672         * modules/mkfifoat (configure.ac): ... to here.
44674 2011-05-21  Bruno Haible  <bruno@clisp.org>
44676         mkfifo: Respect rules for use of AC_LIBOBJ.
44677         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
44678         here...
44679         * modules/mkfifo (configure.ac): ... to here.
44681 2011-05-21  Bruno Haible  <bruno@clisp.org>
44683         mkdtemp: Move AC_LIBOBJ invocations to module description.
44684         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
44685         invocations from here...
44686         * modules/mkdtemp (configure.ac): ... to here.
44688 2011-05-21  Bruno Haible  <bruno@clisp.org>
44690         mkdir: Move AC_LIBOBJ invocations to module description.
44691         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
44692         * modules/mkdir (configure.ac): ... to here.
44694 2011-05-21  Bruno Haible  <bruno@clisp.org>
44696         memset: Move AC_LIBOBJ invocations to module description.
44697         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
44698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
44699         here...
44700         * modules/memset (configure.ac): ... to here.
44702 2011-05-21  Bruno Haible  <bruno@clisp.org>
44704         memrchr: Move AC_LIBOBJ invocations to module description.
44705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
44706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
44707         here...
44708         * modules/memrchr (configure.ac): ... to here.
44710 2011-05-21  Bruno Haible  <bruno@clisp.org>
44712         mempcpy: Move AC_LIBOBJ invocations to module description.
44713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
44714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
44715         here...
44716         * modules/mempcpy (configure.ac): ... to here.
44718 2011-05-21  Bruno Haible  <bruno@clisp.org>
44720         memmove: Move AC_LIBOBJ invocations to module description.
44721         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
44722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
44723         here...
44724         * modules/memmove (configure.ac): ... to here.
44726 2011-05-21  Bruno Haible  <bruno@clisp.org>
44728         memmem*: Move AC_LIBOBJ invocations to module description.
44729         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
44730         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
44731         here...
44732         (gl_FUNC_MEMMEM): ... and here...
44733         * modules/memmem-simple (configure.ac): ... to here.
44734         * modules/memmem (configure.ac): ... and here.
44736 2011-05-21  Bruno Haible  <bruno@clisp.org>
44738         memcpy: Move AC_LIBOBJ invocations to module description.
44739         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
44740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
44741         here...
44742         * modules/memcpy (configure.ac): ... to here.
44744 2011-05-21  Bruno Haible  <bruno@clisp.org>
44746         memcmp: Simplify autoconf macro.
44747         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
44748         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
44749         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
44751 2011-05-21  Bruno Haible  <bruno@clisp.org>
44753         memcmp: Move AC_LIBOBJ invocations to module description.
44754         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
44755         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
44756         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
44757         * modules/memcmp (configure.ac): ... to here.
44758         (Depends-on): Update conditions.
44760 2011-05-21  Bruno Haible  <bruno@clisp.org>
44762         memchr: Respect rules for use of AC_LIBOBJ.
44763         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
44764         invocations from here...
44765         * modules/memchr (configure.ac): ... to here.
44767 2011-05-21  Bruno Haible  <bruno@clisp.org>
44769         mbtowc: Move AC_LIBOBJ invocations to module description.
44770         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
44771         invocations from here...
44772         * modules/mbtowc (configure.ac): ... to here.
44774 2011-05-21  Bruno Haible  <bruno@clisp.org>
44776         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
44777         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
44778         gl_PREREQ_MBSRTOWCS invocations from here...
44779         * modules/mbsrtowcs (configure.ac): ... to here.
44781 2011-05-21  Bruno Haible  <bruno@clisp.org>
44783         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
44784         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
44785         gl_PREREQ_MBSNRTOWCS invocations from here...
44786         * modules/mbsnrtowcs (configure.ac): ... to here.
44788 2011-05-21  Bruno Haible  <bruno@clisp.org>
44790         mbsinit: Move AC_LIBOBJ invocations to module description.
44791         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
44792         invocations from here...
44793         * modules/mbsinit (configure.ac): ... to here.
44795 2011-05-21  Bruno Haible  <bruno@clisp.org>
44797         mbrlen: Move AC_LIBOBJ invocations to module description.
44798         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
44799         invocations from here...
44800         * modules/mbrlen (configure.ac): ... to here.
44802 2011-05-21  Bruno Haible  <bruno@clisp.org>
44804         mbrtowc: Respect rules for use of AC_LIBOBJ.
44805         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
44806         invocations from here...
44807         * modules/mbrtowc (configure.ac): ... to here.
44809 2011-05-21  Bruno Haible  <bruno@clisp.org>
44811         malloc-*: Move AC_LIBOBJ invocations to module description.
44812         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
44813         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
44814         AC_LIBOBJ invocations from here...
44815         * modules/malloc-gnu (configure.ac): ... to here.
44816         * modules/malloc-posix (configure.ac): ... and here.
44818 2011-05-21  Bruno Haible  <bruno@clisp.org>
44820         lstat, openat: Respect rules for use of AC_LIBOBJ.
44821         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
44822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
44823         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
44824         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
44825         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
44826         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
44827         here.
44828         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
44830 2011-05-21  Bruno Haible  <bruno@clisp.org>
44832         lseek: Move AC_LIBOBJ invocations to module description.
44833         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
44834         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
44835         * modules/lseek (configure.ac): ... to here.
44837 2011-05-21  Bruno Haible  <bruno@clisp.org>
44839         linkat: Move AC_LIBOBJ invocations to module description.
44840         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
44841         here...
44842         * modules/linkat (configure.ac): ... to here.
44844 2011-05-21  Bruno Haible  <bruno@clisp.org>
44846         link: Respect rules for use of AC_LIBOBJ.
44847         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
44848         * modules/link (configure.ac): ... to here.
44850 2011-05-21  Bruno Haible  <bruno@clisp.org>
44852         lchown: Move AC_LIBOBJ invocations to module description.
44853         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
44854         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
44855         * modules/lchown (configure.ac): ... to here.
44857 2011-05-21  Bruno Haible  <bruno@clisp.org>
44859         iswctype: Move AC_LIBOBJ invocations to module description.
44860         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
44861         here...
44862         * modules/iswctype (configure.ac): ... to here.
44864 2011-05-21  Bruno Haible  <bruno@clisp.org>
44866         iswblank: Move AC_LIBOBJ invocations to module description.
44867         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
44868         here...
44869         * modules/iswblank (configure.ac): ... to here.
44871 2011-05-21  Bruno Haible  <bruno@clisp.org>
44873         atanl: Move AC_LIBOBJ invocations to module description.
44874         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
44875         * modules/atanl (configure.ac): ... to here.
44877 2011-05-21  Bruno Haible  <bruno@clisp.org>
44879         acosl: Move AC_LIBOBJ invocations to module description.
44880         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
44881         * modules/acosl (configure.ac): ... to here.
44883 2011-05-21  Bruno Haible  <bruno@clisp.org>
44885         asinl: Respect rules for use of AC_LIBOBJ.
44886         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
44887         * modules/asinl (configure.ac): ... to here.
44889 2011-05-21  Bruno Haible  <bruno@clisp.org>
44891         tanl: Move AC_LIBOBJ invocations to module description.
44892         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
44893         * modules/tanl (configure.ac): ... to here.
44895 2011-05-21  Bruno Haible  <bruno@clisp.org>
44897         cosl: Move AC_LIBOBJ invocations to module description.
44898         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
44899         * modules/cosl (configure.ac): ... to here.
44901 2011-05-21  Bruno Haible  <bruno@clisp.org>
44903         sinl: Move AC_LIBOBJ invocations to module description.
44904         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
44905         * modules/sinl (configure.ac): ... to here.
44907 2011-05-21  Bruno Haible  <bruno@clisp.org>
44909         logl: Move AC_LIBOBJ invocations to module description.
44910         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
44911         * modules/logl (configure.ac): ... to here.
44913 2011-05-21  Bruno Haible  <bruno@clisp.org>
44915         expl: Move AC_LIBOBJ invocations to module description.
44916         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
44917         * modules/expl (configure.ac): ... to here.
44919 2011-05-21  Bruno Haible  <bruno@clisp.org>
44921         roundl: Move AC_LIBOBJ invocations to module description.
44922         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
44923         * modules/roundl (configure.ac): ... to here.
44925 2011-05-21  Bruno Haible  <bruno@clisp.org>
44927         round: Move AC_LIBOBJ invocations to module description.
44928         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
44929         * modules/round (configure.ac): ... to here.
44931 2011-05-21  Bruno Haible  <bruno@clisp.org>
44933         roundf: Move AC_LIBOBJ invocations to module description.
44934         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
44935         * modules/roundf (configure.ac): ... to here.
44937 2011-05-21  Bruno Haible  <bruno@clisp.org>
44939         truncl: Move AC_LIBOBJ invocations to module description.
44940         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
44941         * modules/truncl (configure.ac): ... to here.
44943 2011-05-21  Bruno Haible  <bruno@clisp.org>
44945         trunc: Move AC_LIBOBJ invocations to module description.
44946         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
44947         * modules/trunc (configure.ac): ... to here.
44949 2011-05-21  Bruno Haible  <bruno@clisp.org>
44951         truncf: Move AC_LIBOBJ invocations to module description.
44952         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
44953         * modules/truncf (configure.ac): ... to here.
44955 2011-05-21  Bruno Haible  <bruno@clisp.org>
44957         ceill: Move AC_LIBOBJ invocations to module description.
44958         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
44959         * modules/ceill (configure.ac): ... to here.
44961 2011-05-21  Bruno Haible  <bruno@clisp.org>
44963         ceil: Move AC_LIBOBJ invocations to module description.
44964         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
44965         * modules/ceil (configure.ac): ... to here.
44967 2011-05-21  Bruno Haible  <bruno@clisp.org>
44969         ceilf: Move AC_LIBOBJ invocations to module description.
44970         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
44971         * modules/ceilf (configure.ac): ... to here.
44973 2011-05-21  Bruno Haible  <bruno@clisp.org>
44975         floorl: Respect rules for use of AC_LIBOBJ.
44976         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
44977         * modules/floorl (configure.ac): ... to here.
44979 2011-05-21  Bruno Haible  <bruno@clisp.org>
44981         floor: Respect rules for use of AC_LIBOBJ.
44982         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
44983         * modules/floor (configure.ac): ... to here.
44985 2011-05-21  Bruno Haible  <bruno@clisp.org>
44987         floorf: Move AC_LIBOBJ invocations to module description.
44988         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
44989         * modules/floorf (configure.ac): ... to here.
44991 2011-05-20  Bruno Haible  <bruno@clisp.org>
44993         sqrtl: Respect rules for use of AC_LIBOBJ.
44994         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
44995         * modules/sqrtl (configure.ac): ... to here.
44997 2011-05-20  Bruno Haible  <bruno@clisp.org>
44999         ldexpl: Respect rules for use of AC_LIBOBJ.
45000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
45001         * modules/ldexpl (configure.ac): ... to here.
45003 2011-05-20  Bruno Haible  <bruno@clisp.org>
45005         frexpl*: Respect rules for use of AC_LIBOBJ.
45006         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
45007         invocation from here...
45008         * modules/frexpl (configure.ac): ... to here.
45009         * modules/frexpl-nolibm (configure.ac): ... and here.
45011 2011-05-20  Bruno Haible  <bruno@clisp.org>
45013         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
45014         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
45015         invocation from here...
45016         * modules/frexp (configure.ac): ... to here.
45017         * modules/frexp-nolibm (configure.ac): ... and here.
45019 2011-05-20  Bruno Haible  <bruno@clisp.org>
45021         isnan: Respect rules for use of AC_LIBOBJ.
45022         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
45023         invocations here.
45024         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
45025         REPLACE_ISNAN.
45026         * modules/isnand (configure.ac): Likewise.
45027         * modules/isnanl (configure.ac): Likewise.
45029 2011-05-20  Bruno Haible  <bruno@clisp.org>
45031         isnanl*: Respect rules for use of AC_LIBOBJ.
45032         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
45033         invocation from here...
45034         * modules/isnanl (configure.ac): ... to here.
45035         * modules/isnanl-nolibm (configure.ac): ... and here.
45037 2011-05-20  Bruno Haible  <bruno@clisp.org>
45039         isnand*: Move AC_LIBOBJ invocations to module description.
45040         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
45041         invocation from here...
45042         * modules/isnand (configure.ac): ... to here.
45043         * modules/isnand-nolibm (configure.ac): ... and here.
45045 2011-05-20  Bruno Haible  <bruno@clisp.org>
45047         isnanf*: Move AC_LIBOBJ invocations to module description.
45048         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
45049         invocation from here...
45050         * modules/isnanf (configure.ac): ... to here.
45051         * modules/isnanf-nolibm (configure.ac): ... and here.
45053 2011-05-20  Bruno Haible  <bruno@clisp.org>
45055         isnan*: Separate the AC_LIBOBJ invocations.
45056         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
45057         AC_LIBOBJ invocation.
45058         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
45059         here.
45060         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
45061         AC_LIBOBJ invocation.
45062         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
45063         here.
45064         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
45065         AC_LIBOBJ invocation.
45066         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
45067         here.
45068         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
45070 2011-05-08  Bruno Haible  <bruno@clisp.org>
45072         isinf: Move AC_LIBOBJ invocations to module description.
45073         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
45074         * modules/isinf (configure.ac): ... to here.
45076 2011-05-08  Bruno Haible  <bruno@clisp.org>
45078         isfinite: Move AC_LIBOBJ invocations to module description.
45079         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
45080         * modules/isfinite (configure.ac): ... to here.
45082 2011-05-08  Bruno Haible  <bruno@clisp.org>
45084         isblank: Move AC_LIBOBJ invocations to module description.
45085         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
45086         here...
45087         * modules/isblank (configure.ac): ... to here.
45089 2011-05-08  Bruno Haible  <bruno@clisp.org>
45091         isapipe: Move AC_LIBOBJ invocations to module description.
45092         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
45093         gl_PREREQ_ISAPIPE invocations from here...
45094         * modules/isapipe (configure.ac): ... to here.
45095         (Depends-on): Update condition.
45097 2011-05-08  Bruno Haible  <bruno@clisp.org>
45099         ioctl: Move AC_LIBOBJ invocations to module description.
45100         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
45101         invocations from here...
45102         * modules/ioctl (configure.ac): ... to here.
45103         (Depends-on): Update condition.
45105 2011-05-08  Bruno Haible  <bruno@clisp.org>
45107         imaxdiv: Move AC_LIBOBJ invocations to module description.
45108         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
45109         invocations from here...
45110         * modules/imaxdiv (configure.ac): ... to here.
45112 2011-05-08  Bruno Haible  <bruno@clisp.org>
45114         imaxabs: Move AC_LIBOBJ invocations to module description.
45115         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
45116         invocations from here...
45117         * modules/imaxabs (configure.ac): ... to here.
45119 2011-05-08  Bruno Haible  <bruno@clisp.org>
45121         getaddrinfo: Move AC_LIBOBJ invocations to module description.
45122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
45123         AC_LIBOBJ invocations from here...
45124         * modules/getaddrinfo (configure.ac): ... to here.
45125         (Depends-on): Add conditions.
45127 2011-05-08  Bruno Haible  <bruno@clisp.org>
45129         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
45131         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45132         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
45133         (gl_PREREQ_INET_PTON): ... from here.
45134         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
45135         gl_PREREQ_INET_PTON here.
45136         (Depends-on): Update condition.
45138 2011-05-08  Bruno Haible  <bruno@clisp.org>
45140         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
45141         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
45142         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
45143         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
45144         (gl_PREREQ_INET_NTOP): ... from here.
45145         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
45146         gl_PREREQ_INET_NTOP here.
45147         (Depends-on): Update condition.
45149 2011-05-08  Bruno Haible  <bruno@clisp.org>
45151         iconv_open: Move AC_LIBOBJ invocations to module description.
45152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
45153         AC_LIBOBJ invocations from here...
45154         * modules/iconv_open (configure.ac): ... to here.
45156 2011-05-08  Bruno Haible  <bruno@clisp.org>
45158         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
45159         If module 'iconv_open' is among the main modules and module
45160         'iconv_open-utf' is among the tests dependencies, then
45161         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
45162         return the special iconv_t values. Therefore iconv() and iconv_close()
45163         must support these special iconv_t values, already in lib, not only in
45164         tests.
45165         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
45166         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
45167         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
45168         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
45169         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
45170         (Depends-on): Add the dependencies of iconv_open-utf.
45171         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
45172         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
45173         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
45175 2011-05-08  Bruno Haible  <bruno@clisp.org>
45177         group-member: Move AC_LIBOBJ invocations to module description.
45178         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
45179         gl_PREREQ_GROUP_MEMBER invocations from here...
45180         * modules/group-member (configure.ac): ... to here.
45182 2011-05-08  Bruno Haible  <bruno@clisp.org>
45184         grantpt: Move AC_LIBOBJ invocations to module description.
45185         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
45186         invocations from here...
45187         * modules/grantpt (configure.ac): ... to here.
45189 2011-05-08  Bruno Haible  <bruno@clisp.org>
45191         glob: Move AC_LIBOBJ invocations to module description.
45192         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
45193         from here...
45194         * modules/glob (configure.ac): ... to here.
45196 2011-05-08  Bruno Haible  <bruno@clisp.org>
45198         getusershell: Move AC_LIBOBJ invocations to module description.
45199         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
45200         Move AC_LIBOBJ invocation from here...
45201         * modules/getusershell (configure.ac): ... to here.
45202         (Depends-on): Update condition.
45204 2011-05-08  Bruno Haible  <bruno@clisp.org>
45206         gettimeofday: Move AC_LIBOBJ invocations to module description.
45207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45208         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
45209         gl_PREREQ_GETTIMEOFDAY invocations from here...
45210         * modules/gettimeofday (configure.ac): ... to here.
45212 2011-05-08  Bruno Haible  <bruno@clisp.org>
45214         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
45215         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
45216         just gl_FUNC_TZSET.
45217         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
45218         (gl_FUNC_TZSET_CLOBBER): Remove actions.
45219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
45220         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
45222 2011-05-08  Bruno Haible  <bruno@clisp.org>
45224         getsubopt: Move AC_LIBOBJ invocations to module description.
45225         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
45226         gl_PREREQ_GETSUBOPT invocations from here...
45227         * modules/getsubopt (configure.ac): ... to here.
45229 2011-05-08  Bruno Haible  <bruno@clisp.org>
45231         getpass-gnu: Move AC_LIBOBJ invocations to module description.
45232         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
45233         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
45234         * modules/getpass-gnu (configure.ac): ... to here.
45236 2011-05-08  Bruno Haible  <bruno@clisp.org>
45238         getpass: Move AC_LIBOBJ invocations to module description.
45239         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
45240         gl_PREREQ_GETPASS invocations from here...
45241         * modules/getpass (configure.ac): ... to here.
45243 2011-05-08  Bruno Haible  <bruno@clisp.org>
45245         getpagesize: Move AC_LIBOBJ invocations to module description.
45246         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
45247         from here...
45248         * modules/getpagesize (configure.ac): ... to here.
45250 2011-05-08  Bruno Haible  <bruno@clisp.org>
45252         getopt: Move AC_LIBOBJ invocations to module description.
45253         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
45254         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
45255         invocations from here...
45256         * modules/getopt-gnu (configure.ac): ... to here.
45257         * modules/getopt-posix (configure.ac): ... and here.
45258         (Depends-on): Update condition.
45260 2011-05-08  Bruno Haible  <bruno@clisp.org>
45262         getopt, argp: Respect rules for use of AC_LIBOBJ.
45263         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
45264         (gl_REPLACE_GETOPT_ALWAYS): New macro.
45265         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
45266         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
45268 2011-05-08  Bruno Haible  <bruno@clisp.org>
45270         getlogin_r: Move AC_LIBOBJ invocations to module description.
45271         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
45272         gl_PREREQ_GETLOGIN_R invocations from here...
45273         * modules/getlogin_r (configure.ac): ... to here.
45275 2011-05-08  Bruno Haible  <bruno@clisp.org>
45277         getlogin: Move AC_LIBOBJ invocations to module description.
45278         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
45279         here...
45280         * modules/getlogin (configure.ac): ... to here.
45282 2011-05-08  Bruno Haible  <bruno@clisp.org>
45284         getloadavg: Move AC_LIBOBJ invocations to module description.
45285         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
45286         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
45287         * modules/getloadavg (configure.ac): ... to here.
45289 2011-05-08  Bruno Haible  <bruno@clisp.org>
45291         gethrxtime: Move AC_LIBOBJ invocations to module description.
45292         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
45293         LIB_GETHRXTIME from here...
45294         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
45295         invocations from here...
45296         * modules/gethrxtime (configure.ac): ... to here.
45298 2011-05-08  Bruno Haible  <bruno@clisp.org>
45300         gethostname: Move AC_LIBOBJ invocations to module description.
45301         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
45302         gl_PREREQ_GETHOSTNAME invocations from here...
45303         * modules/gethostname (configure.ac): ... to here.
45305 2011-05-08  Bruno Haible  <bruno@clisp.org>
45307         getgroups: Move AC_LIBOBJ invocations to module description.
45308         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
45309         here...
45310         * modules/getgroups (configure.ac): ... to here.
45312 2011-05-08  Bruno Haible  <bruno@clisp.org>
45314         getdtablesize: Move AC_LIBOBJ invocations to module description.
45315         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
45316         invocation from here...
45317         * modules/getdtablesize (configure.ac): ... to here.
45319 2011-05-08  Bruno Haible  <bruno@clisp.org>
45321         getdomainname: Move AC_LIBOBJ invocations to module description.
45322         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
45323         gl_PREREQ_GETDOMAINNAME invocations from here...
45324         * modules/getdomainname (configure.ac): ... to here.
45326 2011-05-08  Bruno Haible  <bruno@clisp.org>
45328         getline: Move AC_LIBOBJ invocations to module description.
45329         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
45330         invocations from here...
45331         * modules/getline (configure.ac): ... to here.
45333 2011-05-08  Bruno Haible  <bruno@clisp.org>
45335         getline: Simplify.
45336         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
45337         It's already handled through the module dependency.
45339 2011-05-08  Bruno Haible  <bruno@clisp.org>
45341         getdelim: Move AC_LIBOBJ invocations to module description.
45342         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
45343         and gl_PREREQ_GETDELIM invocations from here...
45344         * modules/getdelim (configure.ac): ... to here.
45345         (Depends-on): Fix condition.
45347 2011-05-08  Bruno Haible  <bruno@clisp.org>
45349         getcwd: Move AC_LIBOBJ invocations to module description.
45350         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
45351         invocations from here...
45352         * modules/getcwd (configure.ac): ... to here.
45354 2011-05-08  Bruno Haible  <bruno@clisp.org>
45356         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
45357         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
45358         here...
45359         * modules/getcwd-lgpl (configure.ac): ... to here.
45361 2011-05-07  Bruno Haible  <bruno@clisp.org>
45363         crypto/gc: Move AC_LIBOBJ invocations to module description.
45364         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
45365         * modules/crypto/gc (configure.ac): ... to here.
45367 2011-05-07  Bruno Haible  <bruno@clisp.org>
45369         fwriting: Move AC_LIBOBJ invocations to module description.
45370         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
45371         here...
45372         * modules/fwriting (configure.ac): ... to here.
45374 2011-05-07  Bruno Haible  <bruno@clisp.org>
45376         fwritable: Move AC_LIBOBJ invocations to module description.
45377         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
45378         here...
45379         * modules/fwritable (configure.ac): ... to here.
45381 2011-05-07  Bruno Haible  <bruno@clisp.org>
45383         futimens: Move AC_LIBOBJ invocations to module description.
45384         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
45385         here...
45386         * modules/futimens (configure.ac): ... to here.
45388 2011-05-07  Bruno Haible  <bruno@clisp.org>
45390         ftruncate: Move AC_LIBOBJ invocations to module description.
45391         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
45392         gl_PREREQ_FTRUNCATE invocations from here...
45393         * modules/ftruncate (configure.ac): ... to here.
45395 2011-05-07  Bruno Haible  <bruno@clisp.org>
45397         fsync: Move AC_LIBOBJ invocations to module description.
45398         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
45399         invocations from here...
45400         * modules/fsync (configure.ac): ... to here.
45402 2011-05-07  Bruno Haible  <bruno@clisp.org>
45404         fsusage: Move AC_LIBOBJ invocations to module description.
45405         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
45406         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
45407         * modules/fsusage (configure.ac): ... to here.
45409 2011-05-07  Bruno Haible  <bruno@clisp.org>
45411         freopen: Move AC_LIBOBJ invocations to module description.
45412         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
45413         invocations from here...
45414         * modules/freopen (configure.ac): ... to here.
45416 2011-05-07  Bruno Haible  <bruno@clisp.org>
45418         free: Move AC_LIBOBJ invocations to module description.
45419         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
45420         invocations from here...
45421         * modules/free (configure.ac): ... to here.
45423 2011-05-07  Bruno Haible  <bruno@clisp.org>
45425         freadable: Move AC_LIBOBJ invocations to module description.
45426         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
45427         here...
45428         * modules/freadable (configure.ac): ... to here.
45430 2011-05-07  Bruno Haible  <bruno@clisp.org>
45432         fpurge: Move AC_LIBOBJ invocations to module description.
45433         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
45434         invocations from here...
45435         * modules/fpurge (configure.ac): ... to here.
45437 2011-05-07  Bruno Haible  <bruno@clisp.org>
45439         fpending: Move AC_LIBOBJ invocations to module description.
45440         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
45441         gl_FUNC_FPENDING.
45442         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
45443         invocations from here...
45444         * modules/fpending (configure.ac): ... to here.
45446 2011-05-07  Bruno Haible  <bruno@clisp.org>
45448         fopen: Move AC_LIBOBJ invocations to module description.
45449         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
45450         invocations from here...
45451         * modules/fopen (configure.ac): ... to here.
45453 2011-05-07  Bruno Haible  <bruno@clisp.org>
45455         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
45456         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
45457         gl_FUNC_FNMATCH_POSIX.
45458         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
45459         invocations from here...
45460         * modules/fnmatch (configure.ac): ... to here.
45461         * modules/fnmatch-gnu (configure.ac): ... and here.
45463 2011-05-07  Bruno Haible  <bruno@clisp.org>
45465         flock: Move AC_LIBOBJ invocations to module description.
45466         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
45467         invocations from here...
45468         * modules/flock (configure.ac): ... to here.
45470 2011-05-07  Bruno Haible  <bruno@clisp.org>
45472         fileblocks: Move AC_LIBOBJ invocations to module description.
45473         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
45474         gl_PREREQ_FILEBLOCKS invocations from here...
45475         * modules/fileblocks (configure.ac): ... to here.
45477 2011-05-06  Bruno Haible  <bruno@clisp.org>
45479         fflush: Move AC_LIBOBJ invocations to module description.
45480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
45481         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
45482         invocations from here...
45483         * modules/fflush (configure.ac): ... to here.
45485 2011-05-06  Bruno Haible  <bruno@clisp.org>
45487         fdopendir: Move AC_LIBOBJ invocations to module description.
45488         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
45489         here...
45490         * modules/fdopendir (configure.ac): ... to here.
45491         (Depends-on): Improve conditions.
45493 2011-05-06  Bruno Haible  <bruno@clisp.org>
45495         _Exit: Move AC_LIBOBJ invocations to module description.
45496         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
45497         invocations from here...
45498         * modules/_Exit (configure.ac): ... to here.
45500 2011-05-21  Bruno Haible  <bruno@clisp.org>
45502         euidaccess: Respect rules for use of AC_LIBOBJ.
45503         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
45504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
45505         from here...
45506         * modules/euidaccess (configure.ac): ... to here.
45508 2011-05-06  Bruno Haible  <bruno@clisp.org>
45510         error: Move AC_LIBOBJ invocations to module description.
45511         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
45512         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
45513         invocations from here...
45514         * modules/error (configure.ac): ... to here.
45516 2011-05-06  Bruno Haible  <bruno@clisp.org>
45518         duplocale: Move AC_LIBOBJ invocations to module description.
45519         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
45520         gl_PREREQ_DUPLOCALE invocations from here...
45521         * modules/duplocale (configure.ac): ... to here.
45523 2011-05-05  Bruno Haible  <bruno@clisp.org>
45525         dirfd: Move AC_LIBOBJ invocations to module description.
45526         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
45527         gl_FUNC_DIRFD.
45528         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
45529         here...
45530         * modules/dirfd (configure.ac): ... to here.
45531         (Depends-on): Fix condition.
45533 2011-05-05  Bruno Haible  <bruno@clisp.org>
45535         chown: Respect rules for use of AC_LIBOBJ.
45536         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
45537         * modules/chown (configure.ac): ... to here.
45539 2011-05-05  Bruno Haible  <bruno@clisp.org>
45541         chdir-long: Move AC_LIBOBJ invocations to module description.
45542         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
45543         gl_PREREQ_CHDIR_LONG invocations from here...
45544         * modules/chdir-long (configure.ac): ... to here.
45546 2011-05-05  Bruno Haible  <bruno@clisp.org>
45548         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
45549         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
45550         from here...
45551         * modules/canonicalize-lgpl (configure.ac): ... to here.
45553 2011-05-05  Bruno Haible  <bruno@clisp.org>
45555         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
45556         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
45557         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
45558         REPLACE_CALLOC.
45559         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
45560         * modules/calloc-gnu (configure.ac): Likewise.
45562 2011-05-05  Bruno Haible  <bruno@clisp.org>
45564         btowc: Move AC_LIBOBJ invocations to module description.
45565         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
45566         invocations from here...
45567         * modules/btowc (configure.ac): ... to here.
45569 2011-05-21  Bruno Haible  <bruno@clisp.org>
45571         atexit: Move AC_LIBOBJ invocations to module description.
45572         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
45573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
45574         here...
45575         * modules/atexit (configure.ac): ... to here.
45577 2011-05-05  Bruno Haible  <bruno@clisp.org>
45579         atoll: Move AC_LIBOBJ invocations to module description.
45580         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
45581         invocations from here...
45582         * modules/atoll (configure.ac): ... to here.
45584 2011-05-05  Bruno Haible  <bruno@clisp.org>
45586         argz: Move AC_LIBOBJ invocations to module description.
45587         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
45588         * modules/argz (configure.ac): ... to here.
45590 2011-05-05  Bruno Haible  <bruno@clisp.org>
45592         alphasort: Move AC_LIBOBJ invocations to module description.
45593         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
45594         gl_PREREQ_ALPHASORT invocations from here...
45595         * modules/alphasort (configure.ac): ... to here.
45597 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45599         verify: new macro verify_expr; verify_true deprecated
45600         * NEWS: Mention this.
45601         * doc/verify.texi (Compile-time Assertions): Document this.
45602         * lib/verify.h (verify_true): Deprecate.
45603         (verify_expr): New macro.
45604         * tests/test-verify.c (function): Test verify_expr.
45606 2011-06-14  Jim Meyering  <meyering@redhat.com>
45608         init.sh: give more portable redirection-related advice in a comment
45609         * tests/init.sh (stderr_fileno_): Update the advice in comments.
45610         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
45611         for lots of discussion.  Stefano Lattarini suggested the solution
45612         of putting "9>&2" after the command.  Reported by Bruno Haible.
45614 2011-06-13  Bruno Haible  <bruno@clisp.org>
45616         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
45617         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
45618         'none'.
45620 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
45622         ftoastr: use strtof only if HAVE_STRTOF
45623         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
45624         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
45625         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
45626         * modules/ftoastr (configure.ac): Check for strtof.
45628 2011-06-13  Bruno Haible  <bruno@clisp.org>
45630         gnulib-tool: Addendum to 2011-06-08 commit.
45631         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
45632         and --witness-c-macro have been given, augment AM_CPPFLAGS.
45634 2011-06-13  Bruno Haible  <bruno@clisp.org>
45636         fseeko: Provide a non-inline replacement of fseek().
45637         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
45638         * modules/fseeko (Depends-on): Add fseek.
45639         * modules/fseek (License): Change to LGPLv2+.
45641 2011-06-13  Bruno Haible  <bruno@clisp.org>
45643         ftello: Provide a non-inline replacement of ftell().
45644         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
45645         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
45646         not have ftello() (such as on mingw).
45647         * modules/ftello (Depends-on): Add ftell.
45648         * modules/ftell (License): Change to LGPLv2+.
45650 2011-05-07  Bruno Haible  <bruno@clisp.org>
45652         ftell: Move AC_LIBOBJ invocations to module description.
45653         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
45654         * modules/ftell (configure.ac): ... to here.
45656 2011-05-07  Bruno Haible  <bruno@clisp.org>
45658         ftello: Respect rules for use of AC_LIBOBJ.
45659         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
45660         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
45661         here...
45662         * modules/ftello (configure.ac): ... to here.
45664 2011-05-07  Bruno Haible  <bruno@clisp.org>
45666         fseeko: Simplify.
45667         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
45668         (gl_FUNC_FSEEKO): Inline it here.
45670 2011-05-07  Bruno Haible  <bruno@clisp.org>
45672         fseek: Move AC_LIBOBJ invocations to module description.
45673         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
45674         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
45675         * modules/fseek (configure.ac): ... to here.
45677 2011-05-07  Bruno Haible  <bruno@clisp.org>
45679         fseek: Respect rules for use of AC_LIBOBJ.
45680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
45681         here...
45682         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
45684 2011-05-07  Bruno Haible  <bruno@clisp.org>
45686         fseeko: Respect rules for use of AC_LIBOBJ.
45687         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
45688         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
45689         here...
45690         * modules/fseeko (configure.ac): ... to here.
45692 2011-06-13  Bruno Haible  <bruno@clisp.org>
45694         gnulib-tool: Allow comments in the 'Depends-on' section.
45695         * doc/gnulib.texi (Module description): Mention comment syntax in the
45696         Depends-on section.
45697         * gnulib-tool (func_get_dependencies): Filter out comment lines.
45699 2011-06-13  Bruno Haible  <bruno@clisp.org>
45701         file-set.h: guard __attibute__ use, now that it's not always defined
45702         * lib/file-set.h (record_file): Use __attribute__ only with compiler
45703         versions that support it.  This fixes a coreutils build failure with
45704         the vendor cc on HP-UX 11.31.
45706 2011-06-12  Bruno Haible  <bruno@clisp.org>
45708         acl: Add support for HP-UX >= 11.11 JFS ACLs.
45709         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
45710         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
45711         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
45712         (acl, aclsort): New declarations.
45713         (aclv_nontrivial): New declaration.
45714         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
45715         (file_has_acl): Read also the second kind of HP-UX ACLs.
45716         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
45717         kind of HP-UX ACLs if the first kind fails.
45718         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
45719         second kind of HP-UX ACLs.
45720         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
45721         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
45722         agree.
45723         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
45724         hpuxjfs.
45725         Handle hpuxjfs.
45726         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
45727         hpuxjfs.
45728         Handle hpuxjfs.
45729         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
45730         (func_test_same_acls): Use both lsacl and getacl.
45731         Handle hpuxjfs.
45732         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
45733         (func_test_same_acls): Use both lsacl and getacl.
45734         Handle hpuxjfs.
45736 2011-06-12  Bruno Haible  <bruno@clisp.org>
45738         acl: Complete the 2010-08-10 fix.
45739         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
45740         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
45741         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
45742         explicitly.
45743         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
45744         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
45746 2011-06-12  Bruno Haible  <bruno@clisp.org>
45748         spawn-pipe tests: Comments.
45749         * tests/test-spawn-pipe-child.c (main): Update comment.
45750         Reported by James Youngman <jay@gnu.org>.
45752 2011-06-11  James Youngman  <jay@gnu.org>
45754         New module 'stat-size'.
45755         * modules/stat-size: New module.  Provides macros for accessing
45756         file size information in instances of struct stat.  Depends on the
45757         fileblocks module because it calls st_blocks.
45758         * lib/stat-size.h: New file, adapted from coreutils' system.h.
45759         * doc/gnulib.texi: Include stat-size.texi.
45760         * doc/stat-size.texi: Documentation for this module.
45761         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
45762         * m4/fileblocks.m4: Mention that stat-size depends on the call to
45763         AC_STRUCT_ST_BLOCKS.
45765 2011-06-09  Bruno Haible  <bruno@clisp.org>
45767         thread: Support pthreads-win32.
45768         * lib/glthread/thread.h (gl_thread_self): Define differently on
45769         pthreads-win32.
45770         (gl_null_thread): New declaration.
45771         (gl_thread_self_pointer): New macro.
45772         * lib/glthread/thread.c (gl_null_thread): New constant.
45773         * tests/test-lock.c: Use gl_thread_self_pointer instead of
45774         gl_thread_self.
45775         * tests/test-tls.c: Likewise.
45776         Suggested by Paul Eggert. Reported by Eric Blake.
45778 2011-06-09  Bruno Haible  <bruno@clisp.org>
45780         thread: Fix confusion between NULL and 0.
45781         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
45782         Reported by Paul Eggert.
45784 2011-06-09  Bruno Haible  <bruno@clisp.org>
45786         spawn-pipe tests: Avoid test failure on HP-UX 11.
45787         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
45788         is closed.
45790 2011-06-09  Bruno Haible  <bruno@clisp.org>
45792         acl tests: Fix compilation error on HP-UX 11.
45793         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
45795 2011-06-09  Bruno Haible  <bruno@clisp.org>
45797         rmdir: Avoid test failure on HP-UX 10.20.
45798         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
45799         EEXIST.
45801 2011-06-08  Eric Blake  <eblake@redhat.com>
45803         perror: fix test on mingw
45804         * modules/perror-tests (Depends-on): Add dup2.
45806         strerror_r-posix: fix on MacOS
45807         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
45808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
45809         logic bug.
45810         * lib/strerror_r.c (strerror_r): Fix the bug.
45811         * lib/strerror.c (strerror): Likewise.
45812         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
45813         problem.
45814         * doc/posix-functions/strerror.texi (strerror): Likewise.
45815         * doc/posix-functions/perror.texi (perror): Likewise.
45816         * tests/test-strerror.c (main): Enhance test.
45817         * tests/test-strerror_r.c (main): Likewise.
45819 2011-06-08  Bruno Haible  <bruno@clisp.org>
45821         gnulib-tool: Better isolation between different gnulib-tool invocations.
45822         * gnulib-tool: New option --witness-c-macro.
45823         (witness_c_macro): New variable.
45824         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
45825         AM_CPPFLAGS define it as a C macro.
45826         (func_emit_tests_Makefile_am): Likewise.
45827         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
45828         read it from there.
45829         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
45830         m4_define, not AC_DEFUN.
45831         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
45832         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
45833         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
45834         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
45835         s|...|...|, to substitute the values of the GNULIB_* module indicator
45836         variables.
45837         * modules/dirent (Makefile.am): Likewise.
45838         * modules/fcntl-h (Makefile.am): Likewise.
45839         * modules/iconv-h (Makefile.am): Likewise.
45840         * modules/langinfo (Makefile.am): Likewise.
45841         * modules/locale (Makefile.am): Likewise.
45842         * modules/math (Makefile.am): Likewise.
45843         * modules/netdb (Makefile.am): Likewise.
45844         * modules/poll-h (Makefile.am): Likewise.
45845         * modules/pty (Makefile.am): Likewise.
45846         * modules/search (Makefile.am): Likewise.
45847         * modules/signal (Makefile.am): Likewise.
45848         * modules/spawn (Makefile.am): Likewise.
45849         * modules/stdio (Makefile.am): Likewise.
45850         * modules/stdlib (Makefile.am): Likewise.
45851         * modules/string (Makefile.am): Likewise.
45852         * modules/sys_ioctl (Makefile.am): Likewise.
45853         * modules/sys_select (Makefile.am): Likewise.
45854         * modules/sys_socket (Makefile.am): Likewise.
45855         * modules/sys_stat (Makefile.am): Likewise.
45856         * modules/sys_times (Makefile.am): Likewise.
45857         * modules/sys_utsname (Makefile.am): Likewise.
45858         * modules/sys_wait (Makefile.am): Likewise.
45859         * modules/termios (Makefile.am): Likewise.
45860         * modules/time (Makefile.am): Likewise.
45861         * modules/unistd (Makefile.am): Likewise.
45862         * modules/wchar (Makefile.am): Likewise.
45864 2011-06-08  Eric Blake  <eblake@redhat.com>
45866         strerror: simplify replacement
45867         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
45868         * modules/strerror (configure.ac): No prereqs needed here...
45869         * modules/strerror-override (configure.ac): ...but this needs it.
45870         (Files): Add file for needed prereq macro.
45872 2011-06-08  Bruno Haible  <bruno@clisp.org>
45874         strerror_r-posix: Tweaks.
45875         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
45876         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
45877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
45878         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
45879         (gl_FUNC_STRERROR_R): ... to here.
45880         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
45882 2011-06-07  Eric Blake  <eblake@redhat.com>
45884         perror: document fixed bugs
45885         * doc/posix-functions/perror.texi (perror): Document recent
45886         patches.
45888 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
45890         stat-time: get_stat_birthtime failure is better-defined
45891         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
45892         return a timestamp whose tv_sec and tv_nsec values are both -1.
45893         Previously, the spec said only that the tv_nsec value was negative.
45894         This upward-compatible change simplifies GNU tar a bit.
45896 2011-06-07  Eric Blake  <eblake@redhat.com>
45898         strerror_r-posix: work around cygwin 1.7.9
45899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
45900         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
45901         bug without replacing strerror_r.
45902         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
45903         strerror_r is buggy, but without requiring strerror_r compilation.
45904         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
45906         test-perror: relax test to ignore cygwin bug
45907         * tests/test-perror2.c (main): Relax test on requiring detection
45908         of stream errors, and use unbuffered stream.
45909         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
45910         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
45911         * doc/posix-functions/fputc.texi (fputc): Likewise.
45912         * doc/posix-functions/fputs.texi (fputs): Likewise.
45913         * doc/posix-functions/fputws.texi (fputws): Likewise.
45914         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
45915         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
45916         * doc/posix-functions/getopt.texi (getopt): Likewise.
45917         * doc/posix-functions/perror.texi (perror): Likewise.
45918         * doc/posix-functions/printf.texi (printf): Likewise.
45919         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
45920         * doc/posix-functions/psignal.texi (psignal): Likewise.
45921         * doc/posix-functions/putc.texi (putc): Likewise.
45922         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
45923         Likewise.
45924         * doc/posix-functions/putchar.texi (putchar): Likewise.
45925         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
45926         Likewise.
45927         * doc/posix-functions/puts.texi (puts): Likewise.
45928         * doc/posix-functions/putwc.texi (putwc): Likewise.
45929         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45930         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45931         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45932         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
45933         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45934         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45935         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45936         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
45938 2011-05-22  Bruno Haible  <bruno@clisp.org>
45940         strerror: Move AC_LIBOBJ invocations to module description.
45941         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
45942         gl_PREREQ_STRERROR invocations from here...
45943         * modules/strerror (configure.ac): ... to here.
45945 2011-05-21  Bruno Haible  <bruno@clisp.org>
45947         perror: Use common idiom.
45948         * modules/perror (configure.ac): Reorder statements.
45950 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
45952         tests: fix usage message in 'mktempd_'
45953         * tests/init.sh (mktempd_): In the usage message, use literal
45954         'mktempd_', not '$ME' (which is even undefined), as the name of
45955         the subroutine.
45957 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
45959         tests init: new function 'fatal_', for hard errors
45960         Before this patch, the only way offered by tests/init.sh to
45961         properly signal a hard error was the `framework_failure_'
45962         function.  But the error message issued by that function,
45963         as its name would suggest, refers to a set-up failure in the
45964         testsuite, while hard errors can obviously also be due to
45965         other reasons.  The best way to fix this inconsistency is to
45966         introduce a new function with a more general error message.
45967         * tests/init.sh (fatal_): New function.
45969 2011-06-06  Eric Blake  <eblake@redhat.com>
45971         canonicalize-lgpl: use common idiom
45972         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
45973         over newer POSIX -Rf.
45974         Reported by Bruno Haible.
45976         canonicalize-lgpl: work around AIX realpath bug
45977         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
45978         * doc/posix-functions/realpath.texi (realpath): Document it.
45979         Reported by Bruno Haible.
45981         strerror: work around FreeBSD bug
45982         * lib/strerror.c (strerror): Special case 0.
45983         Reported by Bruno Haible.
45985         strerror-override: avoid bloating errno module
45986         * modules/errno (Files, configure.ac): Move replacement strings...
45987         * modules/strerror-override: ...to new module.
45988         * modules/strerror (Depends-on): Add strerror-override.
45989         * modules/strerror_r-posix (Depends-on): Likewise.
45990         * MODULES.html.sh: Document new module.
45991         Reported by Bruno Haible.
45993 2011-06-06  Bruno Haible  <bruno@clisp.org>
45995         spawn-pipe tests: Rename program.
45996         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
45997         * tests/test-spawn-pipe-child.c: Update comment.
45998         * tests/test-spawn-pipe.sh: Update.
45999         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
46001         spawn-pipe tests: Link the child program only against libc.
46002         * tests/test-spawn-pipe-child.c: New file, extracted from
46003         tests/test-spawn-pipe.c.
46004         (main): Expect only one argument.
46005         (is_open): New function, copied from tests/test-pipe.c.
46006         * tests/test-spawn-pipe.c: Don't include <errno.h>.
46007         (child_main): Remove function.
46008         (test_pipe): Pass only one argument to the child program.
46009         (main): Remove child process code. Expect the child program's name as
46010         first argument.
46011         * tests/test-spawn-pipe.sh: Pass the child program's name as first
46012         argument.
46013         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
46014         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
46015         test-spawn-pipe-child against no libraries.
46017 2011-06-06  Bruno Haible  <bruno@clisp.org>
46019         careadlinkat: Avoid mismatch between ssize_t and int.
46020         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
46021         * lib/careadlinkat.c (careadlinkatcwd): Define always.
46023 2011-06-06  Jim Meyering  <meyering@redhat.com>
46025         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
46026         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
46027         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
46029 2011-06-05  Bruno Haible  <bruno@clisp.org>
46031         ansi-c++-opt: Interoperability with libtool.
46032         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
46033         set the variable to "no", not to ":".
46034         * NEWS: Mention the change.
46036 2011-06-05  Bruno Haible  <bruno@clisp.org>
46038         acl: Fix test failure on AIX 7.
46039         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
46040         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
46042 2011-06-05  Bruno Haible  <bruno@clisp.org>
46044         pipe-filter-ii: Fix test failure on AIX and IRIX.
46045         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
46046         with EAGAIN, retry with a smaller buffer size.
46048 2011-06-05  Bruno Haible  <bruno@clisp.org>
46050         localename: Fix link dependencies.
46051         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
46052         * modules/localename-tests (Makefile.am): Link test-localename with
46053         $(LIBTHREAD).
46055 2011-06-05  Bruno Haible  <bruno@clisp.org>
46057         error: Avoid gcc warning.
46058         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
46060 2011-06-05  Bruno Haible  <bruno@clisp.org>
46062         unsetenv: Avoid gcc warning.
46063         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
46065 2011-06-05  Bruno Haible  <bruno@clisp.org>
46067         setenv: Avoid gcc warning.
46068         * lib/setenv.c (setenv): Provide declaration if system lacks it.
46070 2011-06-05  Bruno Haible  <bruno@clisp.org>
46072         sys_select: Ensure memset is declared also on AIX 7.
46073         * lib/sys_select.in.h: Include <string.h> also on AIX.
46074         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
46075         self-contained also on AIX 7.1.
46077 2011-06-04  Jim Meyering  <meyering@redhat.com>
46079         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
46080         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
46081         function name, "error".
46082         (_gl_translatable_diag_func_re): New configurable variable.
46084 2011-06-04  Bruno Haible  <bruno@clisp.org>
46086         getopt: Avoid gcc warning.
46087         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
46089 2011-06-04  Bruno Haible  <bruno@clisp.org>
46091         strerror_r: Fix comments.
46092         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
46093         commit.
46095 2011-06-04  Bruno Haible  <bruno@clisp.org>
46097         perror: Fix compilation error.
46098         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
46099         Undefine fprintf, not sprintf.
46100         * modules/perror (Depends-on): Remove intprops, verify.
46102 2011-06-04  Bruno Haible  <bruno@clisp.org>
46104         setlocale: Enable replacement on Cygwin 1.5.
46105         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
46106         Cygwin 1.5.x.
46107         * doc/posix-functions/setlocale.texi: Mention that the problem with the
46108         LC_CTYPE category also exists on Cygwin 1.5.x.
46110 2011-06-04  Bruno Haible  <bruno@clisp.org>
46112         strerror-override: Don't disable symbol renamings.
46113         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
46114         * lib/strerror-override.c: Include config.h.
46115         (strerror_override): Don't undefine.
46117 2011-06-03  Bruno Haible  <bruno@clisp.org>
46119         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
46120         * lib/localename.h: Update copyright header.
46121         * lib/localename.c: Likewise.
46122         * lib/relocatable.h: Likewise.
46123         * lib/relocatable.c: Likewise.
46125 2011-06-02  Bruno Haible  <bruno@clisp.org>
46127         doc: Fix a module name.
46128         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
46130 2011-06-02  Bruno Haible  <bruno@clisp.org>
46132         pipe2: Remove dependency on 'nonblocking' module.
46133         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
46134         O_NONBLOCK is defined by gnulib.
46135         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
46136         is zero.
46137         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
46138         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
46139         defined by gnulib.
46140         (get_nonblocking_flag): New function.
46141         (main): Test O_NONBLOCK flag only if it is nonzero.
46142         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
46144 2011-06-03  Jim Meyering  <meyering@redhat.com>
46146         maint: three new prohibit-header-without-use rules
46147         Prohibit use of cloexec.h, posixver.h, same.h without use.
46148         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
46149         (sc_prohibit_posixver_without_use): Likewise.
46150         (sc_prohibit_same_without_use): Likewise.
46152 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
46154         allocator: 'die' routine is now given requested size
46155         * lib/allocator.h (struct allocator.die): New size arg.
46156         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
46157         If the actual problem is an ssize_t limitation, not a size_t or
46158         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
46160 2011-06-01  Eric Blake  <eblake@redhat.com>
46162         strerror: drop strerror_r dependency
46163         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
46164         * lib/strerror-override.c (strerror_override): ...to new file.
46165         * lib/strerror-override.h: Add prototype.
46166         * lib/strerror-impl.h: Delete.
46167         * lib/strerror.c (strerror): New implementation.
46168         * modules/errno (Files): Add new files.
46169         (configure.ac): Compile new file as appropriate.
46170         * modules/strerror (Files): Drop unused file.
46171         (Depends-on): Drop strerror_r-posix.
46172         * MODULES.html.sh: Document strerror_r-posix.
46173         Requested by Sam Steingold.
46175         perror: call strerror_r directly
46176         * modules/perror (Files): Drop strerror-impl.h.
46177         * lib/perror.c (perror): Use our own stack buffer, rather than
46178         calling a wrapper that uses static storage.
46179         * doc/posix-functions/perror.texi (perror): Document a limitation
46180         of our replacement.
46182         strerror_r: fix includes for FreeBSD
46183         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
46184         since we use abort on some platforms.
46185         Reported by Matthias Bolte.
46187 2011-05-31  Bruno Haible  <bruno@clisp.org>
46189         Fix link errors in tests: openat-die uses gettext-h.
46190         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
46191         against $(LIBINTL).
46192         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
46193         against $(LIBINTL).
46194         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
46195         $(LIBINTL).
46196         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
46197         against $(LIBINTL).
46198         * modules/linkat-tests (Makefile.am): Link test-linkat against
46199         $(LIBINTL).
46200         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
46201         $(LIBINTL).
46202         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
46203         against $(LIBINTL).
46204         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
46205         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
46206         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
46207         $(LIBINTL).
46208         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
46209         $(LIBINTL).
46210         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
46211         $(LIBINTL).
46212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46214 2011-05-31  Bruno Haible  <bruno@clisp.org>
46216         Fix link errors in tests: wait-process uses gettext-h.
46217         * modules/nonblocking-pipe-tests (Makefile.am): Set
46218         test_nonblocking_pipe_main_LDADD.
46219         * modules/nonblocking-socket-tests (Makefile.am): Link
46220         test-nonblocking-socket-main against $(LIBINTL).
46221         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46223 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
46225         assert-h: work around 'verify' incompatibility
46226         * lib/verify.h: Use @...@ directives, not ifdef.
46227         * modules/assert-h (assert.h): Implement the directives.
46228         (assert.h): Substitute the symbol-prefix more consistently.
46230 2011-05-29  Jim Meyering  <meyering@redhat.com>
46232         trim: remove three superfluous assignments
46233         * lib/trim.c (trim2): Remove three superfluous assignments
46234         and correct brace positioning.
46236 2011-05-29  Bruno Haible  <bruno@clisp.org>
46238         wctype-h: Avoid namespace pollution on Solaris 2.6.
46239         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
46240         identifiers.
46241         * doc/posix-headers/wctype.texi: Mention the problem.
46242         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46244 2011-05-28  Jim Meyering  <meyering@redhat.com>
46246         parse-datetime.y: accommodate -Wstrict-overflow
46247         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
46248         placate -Wstrict-overflow.
46250         trim: avoid a warning from -O2 -Wstrict-overflow
46251         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
46253 2011-05-29  Bruno Haible  <bruno@clisp.org>
46255         gnulib-tool: Fix bug in yesterday's commit.
46256         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
46257         twice.
46259 2011-05-29  Bruno Haible  <bruno@clisp.org>
46261         Allow multiple gnulib generated include files to be combined.
46262         * gnulib-tool (func_compute_include_guard_prefix): New function.
46263         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
46264         ${gl_include_guard_prefix} references.
46265         (func_import, func_create_testdir): Invoke
46266         func_compute_include_guard_prefix.
46267         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
46268         * lib/ctype.in.h: Likewise.
46269         * lib/dirent.in.h: Likewise.
46270         * lib/errno.in.h: Likewise.
46271         * lib/fcntl.in.h: Likewise.
46272         * lib/float.in.h: Likewise.
46273         * lib/getopt.in.h: Likewise.
46274         * lib/iconv.in.h: Likewise.
46275         * lib/langinfo.in.h: Likewise.
46276         * lib/locale.in.h: Likewise.
46277         * lib/math.in.h: Likewise.
46278         * lib/netdb.in.h: Likewise.
46279         * lib/netinet_in.in.h: Likewise.
46280         * lib/poll.in.h: Likewise.
46281         * lib/pthread.in.h: Likewise.
46282         * lib/pty.in.h: Likewise.
46283         * lib/sched.in.h: Likewise.
46284         * lib/se-selinux.in.h: Likewise.
46285         * lib/search.in.h: Likewise.
46286         * lib/signal.in.h: Likewise.
46287         * lib/spawn.in.h: Likewise.
46288         * lib/stdarg.in.h: Likewise.
46289         * lib/stddef.in.h: Likewise.
46290         * lib/stdint.in.h: Likewise.
46291         * lib/stdio.in.h: Likewise.
46292         * lib/stdlib.in.h: Likewise.
46293         * lib/string.in.h: Likewise.
46294         * lib/strings.in.h: Likewise.
46295         * lib/sys_file.in.h: Likewise.
46296         * lib/sys_ioctl.in.h: Likewise.
46297         * lib/sys_select.in.h: Likewise.
46298         * lib/sys_socket.in.h: Likewise.
46299         * lib/sys_stat.in.h: Likewise.
46300         * lib/sys_time.in.h: Likewise.
46301         * lib/sys_times.in.h: Likewise.
46302         * lib/sys_uio.in.h: Likewise.
46303         * lib/sys_utsname.in.h: Likewise.
46304         * lib/sys_wait.in.h: Likewise.
46305         * lib/sysexits.in.h: Likewise.
46306         * lib/termios.in.h: Likewise.
46307         * lib/time.in.h: Likewise.
46308         * lib/unistd.in.h: Likewise.
46309         * lib/wchar.in.h: Likewise.
46310         * lib/wctype.in.h: Likewise.
46311         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
46312         * modules/ctype (Makefile.am): Likewise.
46313         * modules/dirent (Makefile.am): Likewise.
46314         * modules/errno (Makefile.am): Likewise.
46315         * modules/fcntl-h (Makefile.am): Likewise.
46316         * modules/float (Makefile.am): Likewise.
46317         * modules/getopt-posix (Makefile.am): Likewise.
46318         * modules/iconv-h (Makefile.am): Likewise.
46319         * modules/langinfo (Makefile.am): Likewise.
46320         * modules/locale (Makefile.am): Likewise.
46321         * modules/math (Makefile.am): Likewise.
46322         * modules/netdb (Makefile.am): Likewise.
46323         * modules/netinet_in (Makefile.am): Likewise.
46324         * modules/poll-h (Makefile.am): Likewise.
46325         * modules/pthread (Makefile.am): Likewise.
46326         * modules/pty (Makefile.am): Likewise.
46327         * modules/sched (Makefile.am): Likewise.
46328         * modules/search (Makefile.am): Likewise.
46329         * modules/selinux-h (Makefile.am): Likewise.
46330         * modules/signal (Makefile.am): Likewise.
46331         * modules/spawn (Makefile.am): Likewise.
46332         * modules/stdarg (Makefile.am): Likewise.
46333         * modules/stddef (Makefile.am): Likewise.
46334         * modules/stdint (Makefile.am): Likewise.
46335         * modules/stdio (Makefile.am): Likewise.
46336         * modules/stdlib (Makefile.am): Likewise.
46337         * modules/string (Makefile.am): Likewise.
46338         * modules/strings (Makefile.am): Likewise.
46339         * modules/sys_file (Makefile.am): Likewise.
46340         * modules/sys_ioctl (Makefile.am): Likewise.
46341         * modules/sys_select (Makefile.am): Likewise.
46342         * modules/sys_socket (Makefile.am): Likewise.
46343         * modules/sys_stat (Makefile.am): Likewise.
46344         * modules/sys_time (Makefile.am): Likewise.
46345         * modules/sys_times (Makefile.am): Likewise.
46346         * modules/sys_uio (Makefile.am): Likewise.
46347         * modules/sys_utsname (Makefile.am): Likewise.
46348         * modules/sys_wait (Makefile.am): Likewise.
46349         * modules/sysexits (Makefile.am): Likewise.
46350         * modules/termios (Makefile.am): Likewise.
46351         * modules/time (Makefile.am): Likewise.
46352         * modules/unistd (Makefile.am): Likewise.
46353         * modules/wchar (Makefile.am): Likewise.
46354         * modules/wctype-h (Makefile.am): Likewise.
46355         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
46357 2011-05-29  Bruno Haible  <bruno@clisp.org>
46359         assert-h: Allow multiple gnulib generated replacements to coexist.
46360         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
46362 2011-05-29  Bruno Haible  <bruno@clisp.org>
46364         argp: Allow coexistence with strerror_r-posix module.
46365         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
46366         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
46367         by gnulib's <string.h> replacement), assume it has the POSIX signature,
46368         not the glibc signature.
46370 2011-05-28  Bruno Haible  <bruno@clisp.org>
46372         gnulib-tool: Alternative structure of testdirs, similar to --import.
46373         * gnulib-tool: New option --single-configure.
46374         (func_usage): Document it.
46375         (single_configure): New variable.
46376         (func_modules_transitive_closure_separately,
46377         func_modules_transitive_closure_separately,
46378         func_determine_use_libtests, func_modules_add_dummy_separately,
46379         func_modules_to_filelist_separately): New functions, extracted from
46380         func_import.
46381         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
46382         (func_import): Use the new functions.
46383         (func_create_testdir): Set final_modules. Handle $single_configure =
46384         true case.
46386 2011-05-28  Bruno Haible  <bruno@clisp.org>
46388         getloadavg: Remove an unreliable safety check.
46389         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
46390         getloadavg.c is in place.
46391         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
46392         Reported by Sam Steingold <sds@gnu.org>.
46394 2011-05-28  Bruno Haible  <bruno@clisp.org>
46396         doc: Cleanup yet another file produced by texinfo.tex.
46397         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
46399 2011-05-28  Bruno Haible  <bruno@clisp.org>
46401         Finish the conditional dependencies mechanism.
46402         * gnulib-tool: New option --no-conditional-dependencies.
46403         (func_usage): Document it. Don't mark --conditional-dependencies as
46404         experimental.
46405         (cond_dependencies): The possible values can now be true, false, empty.
46406         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
46407         (func_import): Store setting in gnulib-cache.m4 and read it from there.
46408         * doc/gnulib-tool.texi (Conditional dependencies): New section.
46410 2011-05-28  Bruno Haible  <bruno@clisp.org>
46412         doc: Use a recent texinfo.tex.
46413         * doc/Makefile (tex_opts): New variable.
46414         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
46416 2011-05-28  Jim Meyering  <meyering@redhat.com>
46418         intprops.h: adjust comment to match code change
46419         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
46420         only once, it *may* have side effects.  Also fix an unrelated typo.
46421         (_GL_INT_SIGNED): Likewise.
46423 2011-05-26  Simon Josefsson  <simon@josefsson.org>
46425         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
46427 2011-05-26  Bruno Haible  <bruno@clisp.org>
46429         mbsrchr: Avoid collision with system function on Interix.
46430         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
46431         Reported by Markus Duft <mduft@gentoo.org>.
46433 2011-05-15  James Youngman  <jay@gnu.org>
46435         getopt: for ambiguous options, enumerate the possibilities.
46436         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
46437         the ambiguous options when an ambiguous prefix is given. This was
46438         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
46439         glibc change was
46440         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
46442 2011-05-25  Eric Blake  <eblake@redhat.com>
46444         getcwd: work around mingw bug
46445         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
46446         * doc/posix-functions/getcwd.texi (getcwd): Document it.
46447         Reported by Matthias Bolte.
46449 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
46451         test-intprops: disable -Wtype-limits diagnostics
46452         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
46453         diagnostics.  Otherwise, the integer overflow macros generate many
46454         diagnostics.  Reported by Jim Meyering in
46455         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46457         intprops: shorten, to pacify gcc -Woverlength-strings
46458         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
46459         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
46460         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
46461         likely to run afoul of C compiler limits for string constant lengths.
46462         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
46464 2011-05-24  Eric Blake  <eblake@redhat.com>
46466         docs: document recently fixed glibc printf bug
46467         * doc/posix-functions/fprintf.texi (fprintf): Document it.
46468         * doc/posix-functions/printf.texi (printf): Likewise.
46469         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46470         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46472         closein-tests: convert to init.sh
46473         * modules/closein-tests (Files): Add init.sh
46474         * tests/test-closein.sh Use it.
46476         yesno-tests: convert to init.sh
46477         * modules/yesno-tests (Files): Add init.sh.
46478         * tests/test-yesno.sh: Use it.
46480         atexit-tests: ensure reliable exit status
46481         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
46482         Reported by Bruno Haible.
46484 2011-05-24  Bruno Haible  <bruno@clisp.org>
46486         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
46487         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
46488         gl_PREREQ_STRERROR_R invocations from here...
46489         * modules/strerror_r-posix (configure.ac): ... to here.
46491 2011-05-24  Eric Blake  <eblake@redhat.com>
46493         strerror_r: fix missing header
46494         * lib/strerror_r.c: Avoid compiler warning about snprintf.
46496         strerror_r: fix AIX test failures
46497         * lib/strerror_r.c (strerror_r): Convert silent truncation to
46498         ERANGE failure.
46500         strerror_r: fix Solaris test failures
46501         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
46502         failures.
46503         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
46505         strerror_r: enforce POSIX recommendations
46506         * lib/strerror_r.c (safe_copy): New helper method.
46507         (strerror_r): Guarantee a non-empty string.
46508         * tests/test-strerror_r.c (main): Enhance tests to incorporate
46509         recent POSIX rulings and to match our strerror guarantees.
46510         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
46512 2011-05-24  Jim Meyering  <meyering@redhat.com>
46514         test-perror2.c: avoid warning about unused variable
46515         * tests/test-perror2.c (main): Remove declaration of unused "fp".
46517 2011-05-24  Eric Blake  <eblake@redhat.com>
46519         perror: avoid spurious test failure on HP-UX
46520         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
46522         tests: fix logic bug in init.sh
46523         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
46524         shell.
46526 2011-05-24  Jim Meyering  <meyering@redhat.com>
46528         utimensat: do not reference an out-of-scope buffer
46529         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
46530         declared in an inner scope, yet "times" would be dereferenced outside
46531         the scope in which "ts" was valid.
46532         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
46533         of ts[2] "out/up", so that the use of aliased "times" (via
46534         "times = ts;") does not end up referencing an out-of-scope "ts"
46536         opendir-safer.c: don't clobber errno; don't close negative FD
46537         * lib/opendir-safer.c (opendir_safer):
46538         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
46539         file descriptor, and more importantly, don't clobber the
46540         offending errno value with EINVAL.  Before, upon failure
46541         of dup_safer, we would pass the negative file descriptor to
46542         fdopendir, which would clobber errno.
46544 2011-05-23  Bruno Haible  <bruno@clisp.org>
46546         idcache: Fix module description.
46547         * modules/idcache (Include): Set to "idcache.h".
46549 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
46551         gnulib-tool: fix portability problem with MacOS sed
46552         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
46553         before the "}".  Problem reported by Leo in
46554         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
46555         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
46556         sed_extract_condition1, sed_extract_condition2.
46558 2011-05-23  Bruno Haible  <bruno@clisp.org>
46560         hash: Simplify autoconf macro.
46561         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
46563 2011-05-23  Bruno Haible  <bruno@clisp.org>
46565         getugroups: Fix module description.
46566         * modules/getugroups (Include): Set to "getugroups.h".
46568 2011-05-23  Bruno Haible  <bruno@clisp.org>
46570         linkat: Simplify autoconf macro.
46571         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
46573 2011-05-23  Bruno Haible  <bruno@clisp.org>
46574             Eric Blake  <eblake@redhat.com>
46576         linkat, renameat: Update dependencies.
46577         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
46578         * modules/linkat (Depends-on): Likewise. Remove also readlink,
46579         symlinkat.
46581 2011-05-23  Jim Meyering  <meyering@redhat.com>
46583         maint.mk: more tight_scope improvements
46584         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
46585         (_gl_TS_headers): Define only in if-0'd block.
46586         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
46587         sometimes we must *not* use it.  Adjust uses accordingly.
46588         (sc_tight_scope): Use much simpler grep-based test to determine
46589         whether we skip this rule.
46591         maint.mk: generalize/improve the tight-scope rule
46592         * top/maint.mk: Emit a warning when the test is skipped.
46593         (_gl_TS_dir): Add $(srcdir)/ prefix.
46594         (_gl_TS_function_match): Simplify, rather than trying
46595         to enumerate common types.  Otherwise, it would fail to match an
46596         "extern unsigned char const *" declaration in idutils.
46597         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
46598         a way to support use of that type of macro.
46599         (_gl_TS_var_match): Simplify regexp.
46600         (_gl_TS_obj_files): New configurable variable.
46601         (_gl_TS_headers): Likewise.
46603 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46605         verify: fix bug when gnulib <assert.h> is also included
46606         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
46607         is defined, not if _GL_STATIC_ASSERT_H is not defined.
46608         Perhaps there's a better way, but this fixes the immediate problem.
46609         Problem reported by Bruno Haible in
46610         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
46612 2011-05-22  Bruno Haible  <bruno@clisp.org>
46614         xgetcwd: Simplify autoconf macro.
46615         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
46617 2011-05-22  Bruno Haible  <bruno@clisp.org>
46619         New module 'mktime-internal'.
46620         * modules/mktime-internal: New file.
46621         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
46622         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
46623         mktime_internal as a C macro if libc has __mktime_internal.
46624         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
46625         conditions.
46626         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
46628 2011-05-22  Bruno Haible  <bruno@clisp.org>
46630         timegm: Correct mktime replacement statements.
46631         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
46632         defining mktime as a C macro. This completes a 2009-07-28 commit.
46634 2011-05-22  Bruno Haible  <bruno@clisp.org>
46636         timegm: Simplify autoconf macro.
46637         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
46639 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
46641         clock-time: change to LGPLv2+.
46642         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
46643         BSD-like but we have no mark for that; this is good enough for now.
46645 2011-05-21  Bruno Haible  <bruno@clisp.org>
46647         strerror_r: Fix comments.
46648         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
46650 2011-05-21  Bruno Haible  <bruno@clisp.org>
46652         relocatable-prog-wrapper: Fix possible link error.
46653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
46654         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
46655         (gl_FUNC_SETENV): ... to here.
46656         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
46657         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
46659 2011-05-21  Bruno Haible  <bruno@clisp.org>
46661         relocatable-prog-wrapper: Assume strerror() exists.
46662         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
46663         m4/strerror.m4.
46664         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
46665         * lib/relocwrapper.c: Remove mention of strerror module.
46666         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
46667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
46668         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
46669         C macro.
46671 2011-05-21  Bruno Haible  <bruno@clisp.org>
46673         select: Simplify replacement idiom.
46674         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
46675         Win32 platforms.
46676         * lib/sys_select.in.h (select): Simplify accordingly.
46677         * modules/select (Depends-on): Likewise.
46679 2011-05-21  Bruno Haible  <bruno@clisp.org>
46681         mkdir-p: Simplify autoconf macro.
46682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
46683         gl_FUNC_LCHOWN.
46685 2011-05-21  Eric Blake  <eblake@redhat.com>
46687         strerror_r: avoid clobbering strerror on cygwin
46688         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
46689         fall back instead to sys_errlist.
46690         * modules/strerror (configure.ac): Add witness.
46691         * tests/test-strerror_r.c (main): Enhance test.
46692         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
46693         * tests/test-perror2.c (main): Free memory before exit.
46695 2011-05-21  Bruno Haible  <bruno@clisp.org>
46697         mkdtemp: Use gnulib naming conventions.
46698         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
46699         * modules/mkdtemp (configure.ac): Update.
46701 2011-05-20  Eric Blake  <eblake@redhat.com>
46703         strerror_r: avoid corrupting errno on Solaris
46704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
46705         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
46707         strerror_r: avoid compiler warning
46708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
46710         strerror_r: simplify AIX code
46711         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
46713         test-perror: avoid spurious failure on FreeBSD
46714         * modules/perror-tests (Depends-on): Add strerror, now that
46715         strerror_r no longer pulls it in.
46717 2011-05-20  Bruno Haible  <bruno@clisp.org>
46719         strerror_r-posix: Remove unused dependencies.
46720         * modules/strerror_r-posix (Depends-on): Remove strerror.
46721         Reported by Eric Blake.
46723 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46725         intprops: remove assumption about A|B representation
46726         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
46727         is a valid integer if both A and B are.  Although this is true for
46728         all known practical hosts, the C standard doesn't guarantee it,
46729         and the code need not assume it.  Also, this change may work around
46730         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
46731         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
46733 2011-05-20  Eric Blake  <eblake@redhat.com>
46735         perror: work around FreeBSD bug
46736         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
46737         is broken.  Move AC_LIBOBJ...
46738         * modules/perror (configure.ac): Here.
46739         * doc/posix-functions/perror.texi (perror): Document this.
46740         * tests/test-perror2.c (main): Enhance test.
46742         test-perror: check for strerror interactions
46743         * tests/macros.h (STREQ): Add macro.
46744         * modules/perror-tests (Files): Add second test.
46745         * tests/test-perror2.c (main): New file.
46746         * doc/posix-functions/perror.texi (perror): Document glibc bug.
46748         test-perror: rewrite to use init script
46749         * modules/perror-tests (Files): Add init.sh.
46750         * tests/test-perror.sh: Use temporary directory.
46752 2011-05-20  Jim Meyering  <meyering@redhat.com>
46754         maint: replace misused "a" with "an"
46755         * doc/intprops.texi: "a integer"
46756         * doc/regex.texi: "a explanation"
46757         * lib/alignof.h: "a object"
46758         * lib/argmatch.h: "a explanation"
46759         * lib/argp-help.c: "a option" and "a OPTION_DOC"
46760         * lib/stdint.in.h: "a integer"
46761         * lib/userspec.c: "a owner"
46762         * doc/gnulib.texi: Fix "a idea", and reword.
46764 2011-05-19  Jim Meyering  <meyering@redhat.com>
46766         maint: correct misuse of "a" and "an"
46767         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
46768         * lib/argp-help.c: "an docum...": s/an/a/
46769         * lib/argp-parse.c: "An vector": s/An/A/
46770         * lib/execute.c: "an native": s/an/a/
46771         * lib/spawn-pipe.c: Likewise.
46772         * lib/gc.h: "an Gc_rc": s/an/a/
46773         * lib/unigbrk.in.h: "an grapheme": s/an/a/
46774         * lib/fts.c: "an stat.st_dev": s/an/a/
46776 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46778         intprops-tests: work around HP-UX 11.23 cc bug with constants
46779         * tests/test-intprops.c (VERIFY): New macro.
46780         (main): Use it, instead of verify, to work around the compiler bug; see
46781         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
46783         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
46784         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
46785         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
46786         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
46787         (_GL_REMAINDER_OVERFLOW): Use it.
46789         intprops-tests: revert unsigned part of previous change
46790         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
46791         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
46792         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
46793         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
46795 2011-05-19  Bruno Haible  <bruno@clisp.org>
46797         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
46798         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
46799         strerror_r() returned without filling the buffer.
46800         Reported by Eric Blake.
46802 2011-05-19  Eric Blake  <eblake@redhat.com>
46804         strerror_r: guarantee unchanged errno
46805         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
46806         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
46807         failure.
46808         * tests/test-strerror_r.c (main): Enhance test.
46810 2011-05-19  Bruno Haible  <bruno@clisp.org>
46812         strerror_r: Reorder #if blocks.
46813         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
46814         for consistency with the previous commit.
46816 2011-05-19  Bruno Haible  <bruno@clisp.org>
46818         perror: Avoid clobbering the strerror buffer when possible.
46819         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
46820         * lib/strerror.c: Include it.
46821         * modules/strerror (Files): Add lib/strerror-impl.h.
46822         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
46823         (my_strerror): New function, defined through lib/strerror-impl.h.
46824         (perror): Use it instead of strerror.
46825         * modules/perror (Files): Add lib/strerror-impl.h.
46826         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
46828 2011-05-19  Eric Blake  <eblake@redhat.com>
46830         strerror_r: fix on newer cygwin
46831         * lib/strerror_r.c (strerror_r): Cygwin now has
46832         __xpg_strerror_r, use it.
46834 2011-05-19  Bruno Haible  <bruno@clisp.org>
46836         strerror_r: Avoid clobbering the strerror buffer when possible.
46837         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
46838         (sys_nerr, sys_errlist): New declarations.
46839         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
46840         HP-UX, native Win32, IRIX, and 32-bit Solaris.
46841         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
46843 2011-05-19  Bruno Haible  <bruno@clisp.org>
46845         strerror_r: Fix test failure on mingw.
46846         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
46847         EXTEND_STRERROR_R.
46848         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
46849         macros from errno.in.h instead.
46851 2011-05-19  Eric Blake  <eblake@redhat.com>
46853         strerror: relax test for Solaris
46854         * tests/test-strerror.c (main): Permit Solaris behavior.
46855         * tests/test-strerror_r.c (main): Likewise.
46857         strerror: enforce POSIX ruling on strerror(0)
46858         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
46859         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46860         * lib/strerror_r.c (rpl_strerror_r): Work around it.
46861         * doc/posix-functions/strerror.texi (strerror): Document it.
46862         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
46863         * tests/test-strerror.c (main): Strengthen test.
46864         * tests/test-strerror_r.c (main): Likewise.
46866 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46868         intprop-tests: port to older and more-pedantic compilers
46869         * modules/intprops-tests (Files): Add tests/macros.h.
46870         * tests/test-intprops.c: Include macros.h.
46871         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
46872         it's no longer documented to expand to an integer constant expression.
46873         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
46874         argument is floating point, as it's no longer documented to expand
46875         to an integer constant expression in that case.
46876         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
46877         compiler bugs reported by Bruno Haible.  See
46878         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
46879         (U0, U1): New constants, to work around the same bugs.  Also,
46880         in tests, use e.g., "(unsigned int) 39" rather than "39u".
46882         intprops: work around C compiler bugs
46883         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
46884         bug in Sun C 5.11 2010/08/13 and other compilers; see
46885         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
46887         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
46888         * doc/intprops.texi (Integer Type Determination): Fix
46889         documentation for TYPE_IS_INTEGER: it returns an constant
46890         expression, not an integer constant expression.  Fix doc for
46891         TYPE_SIGNED: it returns an integer constant expression only if its
46892         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
46893         hardly worth documented that way....)
46895 2011-05-18  Bruno Haible  <bruno@clisp.org>
46897         strerror_r: Avoid clobbering the strerror buffer when possible.
46898         * lib/strerror_r.c (strerror_r): Merge the three implementations.
46899         Handle gnulib defined errno values here. When strerror() returns NULL
46900         or an empty string, return EINVAL.
46901         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
46902         gnulib defined errno values here.
46903         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
46905 2011-05-18  Eric Blake  <eblake@redhat.com>
46907         fnmatch: avoid compiler warning
46908         * lib/fnmatch_loop.c (FCT): Use correct type.
46909         Reported by Matthias Bolte.
46911 2011-05-13  Jim Meyering  <meyering@redhat.com>
46913         maint.mk: three new prohibit_<HDR>_without_use rules
46914         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
46915         (sc_prohibit_stdio-safer_without_use): Likewise.
46916         (sc_prohibit_xfreopen_without_use): Likewise.
46918 2011-05-17  Jim Meyering  <meyering@redhat.com>
46920         announce-gen: fail if the NEWS delta is empty
46921         If there's nothing noteworthy in NEWS, then either you forgot
46922         or you shouldn't be releasing.
46923         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
46925 2011-05-17  Pádraig Brady  <P@draigBrady.com>
46927         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
46928         reserved symbols starting with double underscore from the check.
46930 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46932         intprops: add doc
46933         * doc/intprops.texi: New file, documenting intprops.
46934         * doc/gnulib.texi (Particular Modules): Include it.
46936         verify: add doc to gnulib manual and fix example
46937         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
46938         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
46939         (Compile-time Assertions): Fix example so it can't overflow.
46941 2011-05-17  Jim Meyering  <meyering@redhat.com>
46943         warnings.m4: don't usurp save_CPPFLAGS variable name
46944         * m4/warnings.m4: Prefix local temporary variable name with gl_.
46946         doc: fix typo
46947         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
46949 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46950             Bruno Haible  <bruno@clisp.org>
46952         doc: Tweak recent change.
46953         * README (Portability guidelines): Tweak new text.
46954         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
46955         Interix 6.1.
46957 2011-05-16  Eric Blake  <eblake@redhat.com>
46959         inttypes: avoid autoconf warning
46960         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
46961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46963 2011-05-16  Sam Steingold  <sds@gnu.org>
46964         and Eric Blake  <eblake@redhat.com>
46966         vc-list-files: accept multiple directory operands
46967         * build-aux/vc-list-files: Iterate over all remaining operands.
46969 2011-05-16  Bruno Haible  <bruno@clisp.org>
46971         Fix confusion regarding deprecated modules.
46972         * modules/calloc (Status, Notice): Mark module as deprecated, not
46973         obsolete.
46974         * modules/fnmatch-posix (Status, Notice): Likewise.
46975         * modules/getdate (Status, Notice): Likewise.
46976         * modules/getopt (Status, Notice): Likewise.
46977         * modules/malloc (Status, Notice): Likewise.
46978         * modules/pipe (Status, Notice): Likewise.
46979         * modules/realloc (Status, Notice): Likewise.
46980         * modules/rename-dest-slash (Status, Notice): Likewise.
46981         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
46982         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
46983         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
46984         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
46985         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
46987 2011-05-16  Bruno Haible  <bruno@clisp.org>
46989         doc: List the target platforms.
46990         * doc/gnulib-intro.texi (Target Platforms): New section.
46991         * doc/gnulib.texi (Introduction): Update menu.
46992         * README (Portability guidelines): Refer to the new section. Update
46993         statement about oldest supported environment. Remove rationale why
46994         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
46995         unportable C89 function.
46996         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
46997         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
46999 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
47001         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
47003 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
47005         intprops-tests: new module
47006         * modules/intprops-tests, tests/test-intprops.c: New files.
47008         intprops: add safe, portable integer overflow checking
47009         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
47010         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
47011         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
47012         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
47013         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
47014         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
47015         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
47016         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
47017         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
47018         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
47019         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
47021 2011-05-12  James Youngman  <jay@gnu.org>
47023         Add a test for glibc's Bugzilla bug #12378.
47024         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
47025         doesn't allow the literal matching of a lone "[" (which is
47026         required by POSIX).
47027         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
47029 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
47031         Sync glibc change fixing Bugzilla bug #12378.
47032         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
47033         beginning and fall back to matching as normal character if the
47034         string ends before the matching ']' is found.  This is what POSIX
47035         requires.
47037 2011-05-13  Eric Blake  <eblake@redhat.com>
47039         getcwd-lgpl: relax test for FreeBSD
47040         * doc/posix-functions/getcwd.texi (getcwd): Document portability
47041         issue.
47042         * tests/test-getcwd-lgpl.c (main): Relax test.
47043         Reported by Matthias Bolte.
47045 2011-05-11  Eric Blake  <eblake@redhat.com>
47047         test-fflush: silence compiler warning
47048         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
47050 2011-05-11  Bruno Haible  <bruno@clisp.org>
47052         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
47053         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
47054         * modules/canonicalize (Depends-on): Add 'nocrash'.
47055         * modules/canonicalize-lgpl (Depends-on): Likewise.
47056         * doc/posix-functions/realpath.texi: Update platforms list.
47057         Reported by Ryan Schmidt <ryandesign@macports.org>.
47059 2011-05-11  Bruno Haible  <bruno@clisp.org>
47061         group-member: Declare function in <unistd.h>.
47062         * lib/unistd.in.h (group_member): New declaration.
47063         * lib/group-member.h: Remove file.
47064         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
47065         * tests/test-unistd-c++.cc: Check signature of group_member.
47066         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
47067         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
47068         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
47069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
47070         HAVE_GROUP_MEMBER.
47071         * modules/group-member (Files): Remove lib/group-member.h.
47072         (Depends-on): Add unistd. Specify conditions.
47073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47074         (Include): Change to <unistd.h>.
47075         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
47076         HAVE_GROUP_MEMBER.
47077         * NEWS: Mention the change.
47078         * lib/euidaccess.c: Don't include group-member.h.
47080 2011-05-11  Bruno Haible  <bruno@clisp.org>
47082         group-member: Document module.
47083         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
47084         module.
47086 2011-05-11  Bruno Haible  <bruno@clisp.org>
47088         fclose: Fix mistake earlier today.
47089         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
47091 2011-05-11  Eric Blake  <eblake@redhat.com>
47093         fclose: preserve fflush errors
47094         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
47095         Reported by Jim Meyering.
47097         bootstrap: support a prereq of 'rpcgen -' on RHEL5
47098         * build-aux/bootstrap (check_versions): When no specific version
47099         is required, merely check that the app produces an exit status
47100         that indicates its existence.
47102         maint.mk: drop redundant check
47103         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
47104         the same but better.
47106 2011-05-11  Bruno Haible  <bruno@clisp.org>
47108         fclose: Fix possible link error.
47109         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
47110         unregister_shadow_fd. Improve comments.
47111         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
47112         Eric Blake.
47114 2011-05-11  Jim Meyering  <meyering@redhat.com>
47116         maint.mk: improve "can not" detection and generalize rule name
47117         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
47118         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
47119         Use the same technique as in sc_prohibit_doubled_word, so that
47120         we recognize "can not" also when the words are separated by a newline.
47121         Suggested by Eric Blake.
47122         (perl_filename_lineno_text_): Define.  Factored out of...
47123         (prohibit_doubled_word_): ...here.  Use the new definition.
47124         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
47125         (prohibit_undesirable_word_seq_RE_): New overridable variable.
47126         (ignore_undesirable_word_sequence_RE_): New overridable variable.
47128 2011-05-10  Eric Blake  <eblake@redhat.com>
47130         fclose: avoid double close race when possible
47131         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
47132         all but WINDOWS_SOCKETS.
47134 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
47136         openat: correct new comment
47137         * lib/openat-proc.c (openat_proc_name): Correct the comment.
47139 2011-05-10  Jim Meyering  <meyering@redhat.com>
47141         openat: add comments
47142         * lib/openat-proc.c (openat_proc_name): Add comments,
47143         mostly from Eric Blake.
47145 2011-05-09  Eric Blake  <eblake@redhat.com>
47147         openat: reduce syscalls in first probe of /proc
47148         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
47149         be a directory.  Simplify the probe for .. bugs.
47150         * modules/openat (Depends-on): Drop same-inode.
47151         Reported by Bastien ROUCARIES.
47153 2011-05-09  Jim Meyering  <meyering@redhat.com>
47155         maint.mk: change semantics/name of tight_scope variables
47156         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
47157         Rename variables to align with semantics that make them more useful.
47159         maint.mk: tweak new rule's name not to impinge
47160         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
47161         (sc_tight_scope): Use new rule name rather than $@-0.
47163         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
47164         * top/maint.mk (sc_tight_scope): New rule.
47165         (sc_tight_scope-0): New rule, ifdef'd out.
47166         (_gl_TS_dir): Default.
47167         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
47168         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
47170 2011-05-09  Simon Josefsson  <simon@josefsson.org>
47172         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
47173         Haible <bruno@clisp.org>.
47175 2011-05-08  Bruno Haible  <bruno@clisp.org>
47177         Comments.
47178         * m4/isnanf.m4: Add comment.
47179         * m4/isnanl.m4: Likewise.
47181 2011-05-08  Bruno Haible  <bruno@clisp.org>
47183         glob: Remove obsolete macro.
47184         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
47186 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
47188         intprops: Sun C 5.11 supports __typeof__
47189         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
47190         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
47191         which is new.
47192         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
47194         intprops: switch to usual gnulib indenting and naming
47195         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
47196         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
47198         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
47200 2011-05-08  Jim Meyering  <meyering@redhat.com>
47202         maint.mk: suppress "Entering/Leaving directory" diag in announcement
47203         * top/maint.mk (release-prep): Use make's --no-print-directory
47204         option when generating the announcement.  This eliminates the
47205         pesky "make[2]: Entering/Leaving directory" diagnostics in the
47206         generated announcement template.
47208 2011-05-08  Bruno Haible  <bruno@clisp.org>
47210         tzset: Fix gettimeofday wrapper on Solaris 2.6.
47211         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
47212         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
47214 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
47216         ignore-value, verify: Omit include files from lib_SOURCES.
47217         * modules/ignore-value, modules/verify (Makefile.am):
47218         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
47219         that leads Automake to duplicate use of am__objects_... variables
47220         in Makefile.in.  See
47221         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
47223 2011-05-07  Bruno Haible  <bruno@clisp.org>
47225         fclose: Simplify autoconf macro.
47226         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
47227         defined.
47229 2011-05-07  Bruno Haible  <bruno@clisp.org>
47231         canonicalize-lgpl: Fix autoconf macro ordering bug.
47232         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
47233         gl_STDLIB_H_DEFAULTS.
47235 2011-05-06  Eric Blake  <eblake@redhat.com>
47237         maintainer-makefile: make sc_po_check easier to tune
47238         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
47239         to probe for strings, such as an alternate location for gnulib.
47241         fclose: guarantee behavior on seekable stdin
47242         * modules/fclose (Depends-on): Add fflush.
47243         * doc/posix-functions/fclose.texi (fclose): Document this.
47244         * tests/test-fclose.c (main): Make test for this unconditional.
47246 2011-05-06  Bruno Haible  <bruno@clisp.org>
47248         fflush, fpurge: Relicense under LGPLv2+.
47249         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
47250         * modules/fpurge (License): Likewise.
47251         With permission from Eric Blake and Jim Meyering.
47252         Suggested by Eric Blake.
47254 2011-05-06  Karl Berry  <karl@gnu.org>
47256         * MODULES.html.sh (func_all_modules): remove exit.
47258 2011-05-06  Jim Meyering  <meyering@redhat.com>
47260         maint.mk: use info-gnu@ as the default only for a stable release
47261         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
47262         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
47263         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
47264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
47266 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
47268         assert-h: new module, which supports C1X-style static_assert
47269         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
47270         * lib/verify.h: Revamp so that this can be copied into assert.h,
47271         while retaining the ability to use it standalone as before.
47272         Rename private identifiers so as not to encroach on the
47273         standard C namespace, since this is now used by assert.h.
47274         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
47275         the old verify_true.
47276         (_GL_VERIFY_TRUE): New macro, with much of the contents of
47277         the old verify_true.  Use _GL_VERIFY_TYPE.
47278         (_GL_VERIFY): New macro, with much of the contents of the old verify.
47279         (static_assert): New macro, if _GL_STATIC_ASSERT_H
47280         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
47281         defined when this file is copied into the replacement assert.h.
47282         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
47283         and _Static_assert is not built in.
47284         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
47285         defined, and use the new macros mentioned above.
47286         * doc/posix-headers/assert.texi: Document this.
47288 2011-05-05  Bruno Haible  <bruno@clisp.org>
47290         fclose, fflush: Respect rules for use of AC_LIBOBJ.
47291         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
47292         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
47293         gl_REPLACE_FCLOSE here.
47294         * modules/fflush (Depends-on): Remove fclose.
47295         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
47296         combination with module 'fclose'.
47298 2011-05-05  Bruno Haible  <bruno@clisp.org>
47300         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
47301         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
47302         gl_FUNC_FFLUSH.
47303         (gl_FUNC_FFLUSH): Use it.
47304         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
47305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
47306         gl_REPLACE_FSEEKO here.
47308 2011-05-05  Bruno Haible  <bruno@clisp.org>
47310         tzset: Relicense under LGPL.
47311         * modules/tzset (License): Change to LGPL.
47312         No agreement needed; it's a no-op.
47314         strtoimax, strtoumax: Relicense under LGPL.
47315         * modules/strtoimax (License): Change to LGPL.
47316         * modules/strtoumax (License): Likewise.
47317         With permission from Jim Meyering, Paul Eggert:
47318         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
47319         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
47321         getgroups: Relicense under LGPL.
47322         * modules/getgroups (License): Change to LGPL.
47323         With permission from Jim Meyering, Paul Eggert, Eric Blake:
47324         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47325         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47326         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47328         nanosleep: Relicense under LGPL.
47329         * modules/nanosleep (License): Change to LGPL.
47330         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
47331         Haible:
47332         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
47333         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
47334         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47335         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47337         futimens: Relicense under LGPL.
47338         * modules/futimens (License): Change to LGPL.
47339         With permission from Eric Blake:
47340         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47342         fflush: Relicense under LGPL.
47343         * modules/fflush (License): Change to LGPL.
47344         With permission from Eric Blake, Bruno Haible, Jim Meyering:
47345         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
47346         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
47347         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
47349         tmpfile: Relicense under LGPL.
47350         * modules/tmpfile (License): Change to LGPL.
47351         With permission from Ben Pfaff:
47352         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47354         isfinite: Relicense under LGPL.
47355         * modules/isfinite (License): Change to LGPL.
47356         With permission from Ben Pfaff, Bruno Haible:
47357         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
47358         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
47360         acosl..tanl: Relicense under LGPL.
47361         * modules/acosl (License): Change to LGPL.
47362         * modules/asinl (License): Likewise.
47363         * modules/atanl (License): Likewise.
47364         * modules/cosl (License): Likewise.
47365         * modules/expl (License): Likewise.
47366         * modules/logl (License): Likewise.
47367         * modules/sinl (License): Likewise.
47368         * modules/sqrtl (License): Likewise.
47369         * modules/tanl (License): Likewise.
47370         Source code originally from glibc and Paolo Bonzini. Agreements:
47371         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
47372         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
47374 2011-05-05  Bruno Haible  <bruno@clisp.org>
47376         signal: Define sighandler_t.
47377         * lib/signal.in.h (sighandler_t): New type.
47378         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
47379         whether sighandler_t is defined.
47380         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
47381         * modules/signal (Depends-on): Add extensions.
47382         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
47383         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
47384         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
47386 2011-05-05  Eric Blake  <eblake@redhat.com>
47388         maint: remove useless REPLACE_*_H macros
47389         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
47390         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
47391         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
47392         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
47393         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
47394         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
47395         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
47396         * m4/btowc.m4: Update callers.
47397         * m4/dirfd.m4: Likewise.
47398         * m4/duplocale.m4: Likewise.
47399         * m4/fchdir.m4: Likewise.
47400         * m4/fdopendir.m4: Likewise.
47401         * m4/inet_ntop.m4: Likewise.
47402         * m4/inet_pton.m4: Likewise.
47403         * m4/ioctl.m4: Likewise.
47404         * m4/mbrlen.m4: Likewise.
47405         * m4/mbrtowc.m4: Likewise.
47406         * m4/mbsinit.m4: Likewise.
47407         * m4/mbsnrtowcs.m4: Likewise.
47408         * m4/mbsrtowcs.m4: Likewise.
47409         * m4/poll.m4: Likewise.
47410         * m4/setlocale.m4: Likewise.
47411         * m4/wcrtomb.m4: Likewise.
47412         * m4/wcsnrtombs.m4: Likewise.
47413         * m4/wcsrtombs.m4: Likewise.
47414         * m4/wctob.m4: Likewise.
47415         * m4/wcwidth.m4: Likewise.
47416         * modules/posix_spawn: Likewise.
47417         * modules/posix_spawn_file_actions_addclose: Likewise.
47418         * modules/posix_spawn_file_actions_adddup2: Likewise.
47419         * modules/posix_spawn_file_actions_addopen: Likewise.
47420         * modules/posix_spawn_file_actions_destroy: Likewise.
47421         * modules/posix_spawn_file_actions_init: Likewise.
47422         * modules/posix_spawnattr_destroy: Likewise.
47423         * modules/posix_spawnattr_getflags: Likewise.
47424         * modules/posix_spawnattr_getpgroup: Likewise.
47425         * modules/posix_spawnattr_getschedparam: Likewise.
47426         * modules/posix_spawnattr_getschedpolicy: Likewise.
47427         * modules/posix_spawnattr_getsigdefault: Likewise.
47428         * modules/posix_spawnattr_getsigmask: Likewise.
47429         * modules/posix_spawnattr_init: Likewise.
47430         * modules/posix_spawnattr_setflags: Likewise.
47431         * modules/posix_spawnattr_setpgroup: Likewise.
47432         * modules/posix_spawnattr_setschedparam: Likewise.
47433         * modules/posix_spawnattr_setschedpolicy: Likewise.
47434         * modules/posix_spawnattr_setsigdefault: Likewise.
47435         * modules/posix_spawnattr_setsigmask: Likewise.
47436         * modules/posix_spawnp: Likewise.
47438 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
47440         Add option to do-release-commit-and-tag to specify branch.
47441         * build-aux/do-release-commit-and-tag: Add --branch.
47443 2011-05-03  Bruno Haible  <bruno@clisp.org>
47445         Avoid unnecessary compilation units, through conditional dependencies.
47446         * modules/accept (Depends-on): Add conditions to the dependencies.
47447         * modules/acosl (Depends-on): Likewise.
47448         * modules/argz (Depends-on): Likewise.
47449         * modules/asinl (Depends-on): Likewise.
47450         * modules/atanl (Depends-on): Likewise.
47451         * modules/atoll (Depends-on): Likewise.
47452         * modules/bind (Depends-on): Likewise.
47453         * modules/btowc (Depends-on): Likewise.
47454         * modules/canonicalize-lgpl (Depends-on): Likewise.
47455         * modules/ceil (Depends-on): Likewise.
47456         * modules/ceilf (Depends-on): Likewise.
47457         * modules/ceill (Depends-on): Likewise.
47458         * modules/chdir-long (Depends-on): Likewise.
47459         * modules/chown (Depends-on): Likewise.
47460         * modules/close (Depends-on): Likewise.
47461         * modules/connect (Depends-on): Likewise.
47462         * modules/cosl (Depends-on): Likewise.
47463         * modules/dirfd (Depends-on): Likewise.
47464         * modules/dprintf (Depends-on): Likewise.
47465         * modules/dprintf-posix (Depends-on): Likewise.
47466         * modules/error (Depends-on): Likewise.
47467         * modules/euidaccess (Depends-on): Likewise.
47468         * modules/expl (Depends-on): Likewise.
47469         * modules/faccessat (Depends-on): Likewise.
47470         * modules/fchdir (Depends-on): Likewise.
47471         * modules/fclose (Depends-on): Likewise.
47472         * modules/fcntl (Depends-on): Likewise.
47473         * modules/fdopendir (Depends-on): Likewise.
47474         * modules/fflush (Depends-on): Likewise.
47475         * modules/floor (Depends-on): Likewise.
47476         * modules/floorf (Depends-on): Likewise.
47477         * modules/floorl (Depends-on): Likewise.
47478         * modules/fnmatch (Depends-on): Likewise.
47479         * modules/fopen (Depends-on): Likewise.
47480         * modules/fprintf-posix (Depends-on): Likewise.
47481         * modules/frexp (Depends-on): Likewise.
47482         * modules/frexp-nolibm (Depends-on): Likewise.
47483         * modules/frexpl (Depends-on): Likewise.
47484         * modules/frexpl-nolibm (Depends-on): Likewise.
47485         * modules/fseek (Depends-on): Likewise.
47486         * modules/fsusage (Depends-on): Likewise.
47487         * modules/ftell (Depends-on): Likewise.
47488         * modules/ftello (Depends-on): Likewise.
47489         * modules/futimens (Depends-on): Likewise.
47490         * modules/getcwd (Depends-on): Likewise.
47491         * modules/getcwd-lgpl (Depends-on): Likewise.
47492         * modules/getdelim (Depends-on): Likewise.
47493         * modules/getdomainname (Depends-on): Likewise.
47494         * modules/getgroups (Depends-on): Likewise.
47495         * modules/gethostname (Depends-on): Likewise.
47496         * modules/getline (Depends-on): Likewise.
47497         * modules/getlogin_r (Depends-on): Likewise.
47498         * modules/getopt-posix (Depends-on): Likewise.
47499         * modules/getpeername (Depends-on): Likewise.
47500         * modules/getsockname (Depends-on): Likewise.
47501         * modules/getsockopt (Depends-on): Likewise.
47502         * modules/getsubopt (Depends-on): Likewise.
47503         * modules/getusershell (Depends-on): Likewise.
47504         * modules/glob (Depends-on): Likewise.
47505         * modules/grantpt (Depends-on): Likewise.
47506         * modules/iconv_open (Depends-on): Likewise.
47507         * modules/iconv_open-utf (Depends-on): Likewise.
47508         * modules/inet_ntop (Depends-on): Likewise.
47509         * modules/inet_pton (Depends-on): Likewise.
47510         * modules/ioctl (Depends-on): Likewise.
47511         * modules/isapipe (Depends-on): Likewise.
47512         * modules/isfinite (Depends-on): Likewise.
47513         * modules/isinf (Depends-on): Likewise.
47514         * modules/lchown (Depends-on): Likewise.
47515         * modules/ldexpl (Depends-on): Likewise.
47516         * modules/link (Depends-on): Likewise.
47517         * modules/linkat (Depends-on): Likewise.
47518         * modules/listen (Depends-on): Likewise.
47519         * modules/logl (Depends-on): Likewise.
47520         * modules/lstat (Depends-on): Likewise.
47521         * modules/mbrlen (Depends-on): Likewise.
47522         * modules/mbrtowc (Depends-on): Likewise.
47523         * modules/mbsinit (Depends-on): Likewise.
47524         * modules/mbsnrtowcs (Depends-on): Likewise.
47525         * modules/mbsrtowcs (Depends-on): Likewise.
47526         * modules/mbtowc (Depends-on): Likewise.
47527         * modules/memcmp (Depends-on): Likewise.
47528         * modules/mkdir (Depends-on): Likewise.
47529         * modules/mkdtemp (Depends-on): Likewise.
47530         * modules/mkfifo (Depends-on): Likewise.
47531         * modules/mkfifoat (Depends-on): Likewise.
47532         * modules/mknod (Depends-on): Likewise.
47533         * modules/mkostemp (Depends-on): Likewise.
47534         * modules/mkostemps (Depends-on): Likewise.
47535         * modules/mkstemp (Depends-on): Likewise.
47536         * modules/mkstemps (Depends-on): Likewise.
47537         * modules/mktime (Depends-on): Likewise.
47538         * modules/nanosleep (Depends-on): Likewise.
47539         * modules/open (Depends-on): Likewise.
47540         * modules/openat (Depends-on): Likewise.
47541         * modules/perror (Depends-on): Likewise.
47542         * modules/poll (Depends-on): Likewise.
47543         * modules/popen (Depends-on): Likewise.
47544         * modules/posix_spawn (Depends-on): Likewise.
47545         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
47546         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47547         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47548         * modules/posix_spawnp (Depends-on): Likewise.
47549         * modules/pread (Depends-on): Likewise.
47550         * modules/printf-posix (Depends-on): Likewise.
47551         * modules/ptsname (Depends-on): Likewise.
47552         * modules/putenv (Depends-on): Likewise.
47553         * modules/pwrite (Depends-on): Likewise.
47554         * modules/readline (Depends-on): Likewise.
47555         * modules/readlink (Depends-on): Likewise.
47556         * modules/readlinkat (Depends-on): Likewise.
47557         * modules/recv (Depends-on): Likewise.
47558         * modules/recvfrom (Depends-on): Likewise.
47559         * modules/regex (Depends-on): Likewise.
47560         * modules/remove (Depends-on): Likewise.
47561         * modules/rename (Depends-on): Likewise.
47562         * modules/renameat (Depends-on): Likewise.
47563         * modules/rmdir (Depends-on): Likewise.
47564         * modules/round (Depends-on): Likewise.
47565         * modules/roundf (Depends-on): Likewise.
47566         * modules/roundl (Depends-on): Likewise.
47567         * modules/rpmatch (Depends-on): Likewise.
47568         * modules/select (Depends-on): Likewise.
47569         * modules/send (Depends-on): Likewise.
47570         * modules/sendto (Depends-on): Likewise.
47571         * modules/setenv (Depends-on): Likewise.
47572         * modules/setlocale (Depends-on): Likewise.
47573         * modules/setsockopt (Depends-on): Likewise.
47574         * modules/shutdown (Depends-on): Likewise.
47575         * modules/sigaction (Depends-on): Likewise.
47576         * modules/signbit (Depends-on): Likewise.
47577         * modules/sigprocmask (Depends-on): Likewise.
47578         * modules/sinl (Depends-on): Likewise.
47579         * modules/sleep (Depends-on): Likewise.
47580         * modules/snprintf (Depends-on): Likewise.
47581         * modules/snprintf-posix (Depends-on): Likewise.
47582         * modules/socket (Depends-on): Likewise.
47583         * modules/sprintf-posix (Depends-on): Likewise.
47584         * modules/sqrtl (Depends-on): Likewise.
47585         * modules/stat (Depends-on): Likewise.
47586         * modules/strchrnul (Depends-on): Likewise.
47587         * modules/strdup-posix (Depends-on): Likewise.
47588         * modules/strerror (Depends-on): Likewise.
47589         * modules/strerror_r-posix (Depends-on): Likewise.
47590         * modules/strndup (Depends-on): Likewise.
47591         * modules/strnlen (Depends-on): Likewise.
47592         * modules/strptime (Depends-on): Likewise.
47593         * modules/strsep (Depends-on): Likewise.
47594         * modules/strsignal (Depends-on): Likewise.
47595         * modules/strstr-simple (Depends-on): Likewise.
47596         * modules/strtod (Depends-on): Likewise.
47597         * modules/strtoimax (Depends-on): Likewise.
47598         * modules/strtok_r (Depends-on): Likewise.
47599         * modules/strtoumax (Depends-on): Likewise.
47600         * modules/symlink (Depends-on): Likewise.
47601         * modules/symlinkat (Depends-on): Likewise.
47602         * modules/tanl (Depends-on): Likewise.
47603         * modules/tcgetsid (Depends-on): Likewise.
47604         * modules/tmpfile (Depends-on): Likewise.
47605         * modules/trunc (Depends-on): Likewise.
47606         * modules/truncf (Depends-on): Likewise.
47607         * modules/truncl (Depends-on): Likewise.
47608         * modules/uname (Depends-on): Likewise.
47609         * modules/unlink (Depends-on): Likewise.
47610         * modules/unlockpt (Depends-on): Likewise.
47611         * modules/unsetenv (Depends-on): Likewise.
47612         * modules/usleep (Depends-on): Likewise.
47613         * modules/utimensat (Depends-on): Likewise.
47614         * modules/vasprintf (Depends-on): Likewise.
47615         * modules/vdprintf (Depends-on): Likewise.
47616         * modules/vdprintf-posix (Depends-on): Likewise.
47617         * modules/vfprintf-posix (Depends-on): Likewise.
47618         * modules/vprintf-posix (Depends-on): Likewise.
47619         * modules/vsnprintf (Depends-on): Likewise.
47620         * modules/vsnprintf-posix (Depends-on): Likewise.
47621         * modules/vsprintf-posix (Depends-on): Likewise.
47622         * modules/wcrtomb (Depends-on): Likewise.
47623         * modules/wcscasecmp (Depends-on): Likewise.
47624         * modules/wcscspn (Depends-on): Likewise.
47625         * modules/wcsdup (Depends-on): Likewise.
47626         * modules/wcsncasecmp (Depends-on): Likewise.
47627         * modules/wcsnrtombs (Depends-on): Likewise.
47628         * modules/wcspbrk (Depends-on): Likewise.
47629         * modules/wcsrtombs (Depends-on): Likewise.
47630         * modules/wcsspn (Depends-on): Likewise.
47631         * modules/wcsstr (Depends-on): Likewise.
47632         * modules/wcstok (Depends-on): Likewise.
47633         * modules/wcswidth (Depends-on): Likewise.
47634         * modules/wctob (Depends-on): Likewise.
47635         * modules/wctomb (Depends-on): Likewise.
47636         * modules/wctype (Depends-on): Likewise.
47637         * modules/wcwidth (Depends-on): Likewise.
47638         * modules/write (Depends-on): Likewise.
47640 2011-05-03  Bruno Haible  <bruno@clisp.org>
47642         Support for conditional dependencies.
47643         * doc/gnulib.texi (Module description): Document the syntax of
47644         conditional dependencies.
47645         * gnulib-tool: New option --conditional-dependencies.
47646         (func_usage): Document it.
47647         (cond_dependencies): New variable.
47648         (func_get_automake_snippet_conditional,
47649         func_get_automake_snippet_unconditional): New functions, extracted from
47650         func_get_automake_snippet.
47651         (func_get_automake_snippet): Use them.
47652         (sed_first_32_chars): New variable.
47653         (func_module_shellfunc_name): New function.
47654         (func_module_shellvar_name): New function.
47655         (func_module_conditional_name): New function.
47656         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
47657         func_cond_module_condition): New functions.
47658         (func_modules_transitive_closure): Add support for conditional
47659         dependencies.
47660         (func_emit_lib_Makefile_am): For a conditional module, enclose the
47661         conditional automake snippet in an automake conditional.
47662         (func_emit_autoconf_snippets): Emit shell functions that contain the
47663         code for conditional modules.
47664         (func_import, func_create_testdir): Update specification.
47666 2011-05-03  Eric Blake  <eblake@redhat.com>
47668         test-getaddrinfo: report error information
47669         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
47671 2011-05-03  Jim Meyering  <meyering@redhat.com>
47673         bootstrap: avoid build failure when $GZIP is set
47674         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
47675         program name.  If defined at all, it is supposed to list gzip options.
47676         Reported by Alan Curry in http://debbugs.gnu.org/8609
47678 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
47680         readme-release: new module with release instructions
47681         * modules/readme-release: New module.
47682         * top/README-release: New file, from coreutils, grep, diffutils.
47683         * MODULES.html.sh (Support for maintaining and releasing): Add it.
47685 2011-05-02  Eric Blake  <eblake@redhat.com>
47687         fflush: also replace fclose when fixing fflush
47688         * modules/fflush (Depends-on): Add fclose.
47689         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
47690         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
47691         memstreams with no backing fd.
47692         * doc/posix-functions/fclose.texi (fclose): Document the use of
47693         fflush module to fix the bug.
47694         * tests/test-fclose.c (main): Relax test when fclose is used in
47695         isolation.
47697         fclose: add some tests
47698         * modules/fclose-tests: New test module.
47699         * tests/test-fclose.c: New file.
47700         * doc/posix-functions/fclose.texi (fclose): Document the bug.
47702         fclose: reduced dependencies
47703         * modules/fclose (Depends-on): Switch from fflush/fseeko to
47704         simpler lseek.
47705         * lib/fclose.c (rpl_fclose): Likewise.
47706         Reported by Simon Josefsson.
47708         exit: drop remaining clients
47709         * modules/argmatch (Depends-on): Replace exit with stdlib.
47710         * modules/copy-file (Depends-on): Likewise.
47711         * modules/execute (Depends-on): Likewise.
47712         * modules/exitfail (Depends-on): Likewise.
47713         * modules/obstack (Depends-on): Likewise.
47714         * modules/pagealign_alloc (Depends-on): Likewise.
47715         * modules/pipe-filter-gi (Depends-on): Likewise.
47716         * modules/pipe-filter-ii (Depends-on): Likewise.
47717         * modules/savewd (Depends-on): Likewise.
47718         * modules/spawn-pipe (Depends-on): Likewise.
47719         * modules/wait-process (Depends-on): Likewise.
47720         * modules/xsetenv (Depends-on): Likewise.
47721         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
47722         * modules/git-merge-changelog (Depends-on): Likewise.
47723         * modules/long-options (Depends-on): Likewise.
47724         * modules/pt_chown (Depends-on): Likewise.
47725         * modules/sysexits (Depends-on): Likewise.
47727         freading: relax license from LGPLv3+ to LGPLv2+
47728         * modules/freading (License): Relax LGPL version.
47730 2011-05-02  Bruno Haible  <bruno@clisp.org>
47732         fchdir: Remove unused dependencies.
47733         * modules/fchdir (Depends-on): Remove include_next.
47735 2011-05-02  Bruno Haible  <bruno@clisp.org>
47737         gnulib-tool: Refactor.
47738         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
47739         from func_emit_autoconf_snippets.
47740         (func_emit_autoconf_snippets): Use it.
47742 2011-05-02  Simon Josefsson  <simon@josefsson.org>
47744         * NEWS: Document removal of 'exit'.
47745         * modules/exit: Remove file.
47747 2011-05-01  Bruno Haible  <bruno@clisp.org>
47749         Update DEPENDENCIES.
47750         * DEPENDENCIES (gettext): Recommend the newest release.
47751         Reported by Simon Josefsson.
47753 2011-05-01  Bruno Haible  <bruno@clisp.org>
47755         gnulib-tool: Reduce code duplication.
47756         * gnulib-tool (func_emit_autoconf_snippets): New function.
47757         (func_import, func_create_testdir): Use it.
47759 2011-04-30  Eric Blake  <eblake@redhat.com>
47761         fclose: don't fail on non-seekable input stream
47762         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
47763         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
47764         since fflush is allowed to fail in that case.
47766 2011-04-30  Bruno Haible  <bruno@clisp.org>
47768         dup3: cleanup
47769         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
47771 2011-04-30  Bruno Haible  <bruno@clisp.org>
47773         netdb: Make it work in C++ mode.
47774         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
47775         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
47776         module.
47777         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
47778         gl_MODULE_INDICATOR_FOR_TESTS.
47779         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
47780         * modules/netdb-c++-tests: New file.
47781         * tests/test-netdb-c++.cc: New file.
47783 2011-04-30  Bruno Haible  <bruno@clisp.org>
47785         New modules 'vfscanf', 'vscanf'.
47786         * modules/vfscanf: New file.
47787         * modules/vscanf: New file.
47788         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
47789         here.
47790         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
47791         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
47793 2011-04-30  Bruno Haible  <bruno@clisp.org>
47795         passfd: Add comments.
47796         * lib/passfd.c: Add comments about platforms.
47798 2011-04-30  Bruno Haible  <bruno@clisp.org>
47800         sys_uio: Make <sys/uio.h> self-contained.
47801         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
47802         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
47804 2011-04-30  Bruno Haible  <bruno@clisp.org>
47806         sys_socket: Ensure 'struct iovec' definition.
47807         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
47808         <sys/socket.h>.
47809         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
47811 2011-04-30  Bruno Haible  <bruno@clisp.org>
47813         sys_uio: Protect definition of 'struct iovec'.
47814         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
47815         it as a C struct.
47817 2011-04-30  Bruno Haible  <bruno@clisp.org>
47819         manywarnings: fix indentation
47820         * m4/manywarnings.m4: Indent by 2 spaces consistently.
47822 2011-04-30  Pádraig Brady  <P@draigBrady.com>
47824         manywarnings: add -Wno-missing-field-initializers if needed.
47825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
47826         option if it's needed to allow initialization with { 0, }
47828 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
47830         announce-gen: cosmetic improvement
47831         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
47833 2011-04-29  Jim Meyering  <meyering@redhat.com>
47835         vc-list-files: indent with spaces, not TABs
47836         * build-aux/vc-list-files: Convert leading TABs to spaces,
47837         to match the style of most other files in gnulib.
47839         announce-gen: indent with spaces, not TABs
47840         * build-aux/announce-gen: Convert all TABs to spaces, to match
47841         the style of most other files in gnulib.
47843 2011-04-29  Eric Blake  <eblake@redhat.com>
47845         quotearg: avoid uninitialized variable use
47846         * lib/quotearg.c (quoting_options_from_style): Initialize
47847         remaining fields, and ensure that custom styles are only used via
47848         quoting_options rather than quoting_style.
47850 2011-04-29  Jim Meyering  <meyering@redhat.com>
47852         maint.mk: remove unused VC-tag variable
47853         * top/maint.mk (VC-tag): Remove unused variable.
47855 2011-04-29  Bruno Haible  <bruno@clisp.org>
47857         netdb: fix gai_strerror replacements
47858         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
47859         * modules/netdb: Substitute it.
47861 2011-04-29  Jim Meyering  <meyering@redhat.com>
47863         test-getcwd.c: avoid new set-but-not-used warning
47864         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
47865         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
47866         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
47867         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
47869         test-hash.c: avoid a new shadowing warning
47870         * tests/test-hash.c (main): Don't shadow "dup".
47872 2011-04-28  Eric Blake  <eblake@redhat.com>
47874         getaddrinfo: fix gai_strerror signature
47875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
47876         and work around mingw with UNICODE defined.
47877         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
47878         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
47879         * modules/netdb (Makefile.am): Substitute it.
47880         * lib/netdb.in.h (gai_strerror): Declare replacement.
47881         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
47882         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
47883         the fix.
47885         getsockopt: avoid compiler warning
47886         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
47887         Reported by Matthias Bolte.
47889         tests: drop unused link dependency
47890         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
47891         * modules/dirent-safer-tests (Makefile.am): Likewise.
47892         * modules/fdopendir-tests (Makefile.am): Likewise.
47893         * modules/mkfifoat-tests (Makefile.am): Likewise.
47894         * modules/openat-safer-tests (Makefile.am): Likewise.
47895         * modules/openat-tests (Makefile.am): Likewise.
47896         * modules/readlinkat-tests (Makefile.am): Likewise.
47897         * modules/symlinkat-tests (Makefile.am): Likewise.
47898         * modules/linkat-tests (Makefile.am): Likewise.
47899         (Depends-on): Switch to filenamecat-lgpl.
47900         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
47901         LIBINTL.
47902         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
47903         * tests/test-linkat.c (main): Don't require xalloc.
47905         hash, mgetgroups: drop xalloc dependency
47906         * lib/hash.c (includes): Adjust includes.
47907         * lib/mgetgroups.c (includes): Likewise.
47908         (xgetgroups): Move...
47909         * lib/xgetgroups.c: ...to new file.
47910         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
47911         * modules/xgetgroups: New file, split from...
47912         * modules/mgetgroups: ...here.
47913         (Depends-on): Add xalloc-oversized.
47914         * modules/hash (Depends-on): Likewise.
47915         * modules/hash-tests (Depends-on): Drop xalloc.
47916         (test_hash_LDADD): Drop unused library.
47917         * tests/test-hash.c (main): Break xalloc dependency.
47918         (includes): Drop unused include.
47920         xalloc-oversized: new module
47921         * modules/xalloc-oversized: New module.
47922         * modules/xalloc (Depends-on): Add it.
47923         * lib/xalloc.h (xalloc_oversized): Move...
47924         * lib/xalloc-oversized.h: ...into new file.
47926         utimecmp: drop dependency on xmalloc
47927         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
47928         due to memory pressure.
47929         * modules/utimecmp (Depends-on): Drop xalloc.
47931 2011-04-27  Eric Blake  <eblake@redhat.com>
47933         getcwd: fix mingw bugs
47934         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
47935         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
47936         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
47938 2011-04-27  Bruno Haible  <bruno@clisp.org>
47940         mkstemps: Ensure declaration on MacOS X 10.5.
47941         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
47942         * doc/glibc-functions/mkstemps.texi: Document header file problem on
47943         MacOS X.
47945 2011-04-27  Bruno Haible  <bruno@clisp.org>
47947         mkstemp: More documentation.
47948         * doc/posix-functions/mkstemp.texi: Document header file problem on
47949         MacOS X.
47951 2011-04-27  Bruno Haible  <bruno@clisp.org>
47953         mkstemp: Tweak configure message when cross-compiling.
47954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
47955         result as a guess.
47957 2011-04-27  Bruno Haible  <bruno@clisp.org>
47959         clean-temp: Clarify what it does.
47960         * lib/clean-temp.h: Add more comments.
47961         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
47962         module.
47963         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
47964         * doc/glibc-functions/mkstemps.texi: Likewise.
47965         * doc/glibc-functions/mkostemps.texi: Likewise.
47967 2011-04-27  Eric Blake  <eblake@redhat.com>
47969         fchdir: avoid extra chdir and fix test
47970         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
47971         getcwd-lgpl.
47972         * lib/fchdir.c (get_name): Any absolute name will do; it does not
47973         have to be canonical.
47974         (canonicalize_file_name): Drop unused macro.
47975         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
47977         filenamecat-lgpl: fix licence
47978         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
47979         when it was first created.
47981         linkat, renameat: add missing dependency
47982         * modules/linkat (Depends-on): Require getcwd-lgpl.
47983         * modules/renameat (Depends-on): Likewise.
47985         tests: reduce dependencies
47986         * tests/test-linkat.c (main): Use lighter-weight getcwd.
47987         * tests/test-renameat.c (main): Likewise.
47988         * modules/linkat-tests (Depends-on): Relax dependency.
47989         * modules/renameat-tests (Depends-on): Likewise.
47990         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
47991         dependency explicit.
47993         save-cwd: reduce default dependency
47994         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
47995         * lib/save-cwd.c: Update comments.
47996         * NEWS: Document the semantic change.
47998         getcwd: enhance tests
47999         * tests/test-getcwd-lgpl.c: New file, taken from...
48000         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
48001         repeat long path stress tests from m4 probe.
48002         * modules/getcwd-lgpl-tests: New module.
48003         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
48004         * m4/getcwd-abort-bug.m4: Update comment.
48005         * m4/getcwd-path-max.m4: Likewise.
48007         getcwd-lgpl: new module
48008         * modules/getcwd-lgpl: New module.
48009         * lib/getcwd-lgpl.c: New file.
48010         * doc/posix-functions/getcwd.texi (getcwd): Document it.
48011         * MODULES.html.sh (lacking POSIX:2008): Likewise.
48012         * modules/getcwd (configure.ac): Set C witness.
48013         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
48015         getcwd: tweak comments
48016         * m4/getcwd-abort-bug.m4: Fix comments.
48017         * m4/getcwd-path-max.m4: Likewise.
48018         * m4/getcwd.m4: Likewise.
48020 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48021         and Eric Blake  <eblake@redhat.com>
48023         mkstemp: replace if system version uses wrong permissions
48024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
48025         read/write mode bits set in file created by mkstemp.
48026         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
48028 2011-04-27  Eric Blake  <eblake@redhat.com>
48030         passfd: avoid compiler warning
48031         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
48032         Reported by Laine Stump.
48034 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
48036         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
48037         required by the NetBSD (and perhaps other 4.4BSD derived) join.
48039 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
48040         and Eric Blake  <eblake@redhat.com>
48042         mkstemp: mention clean-temp module
48043         * lib/mkstemp.c: Add comment.
48044         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
48046 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
48048         inttypes: also provide default values for 32-bit tests
48049         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
48050         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
48052 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
48054         strtoumax: remove dependency on strtoimax
48055         This is like the strtoull change of yesterday.
48056         * modules/strtoumax (Files): Add lib/strtoimax.c.
48057         (Depends-on): Remove strtoimax and add verify.
48059         inttypes-incomplete: new module
48060         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
48061         all but the PRI* and SCN* parts of gl_INTTYPES_H.
48062         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
48063         of gl_INTTYPES_H.
48064         (gl_INTTYPES_H): Rewrite in terms of these new macros.
48065         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
48066         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
48067         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
48068         * modules/strtoumax, modules/xstrtol (Depends-on):
48069         Depend on inttypes-incomplete, not inttypes.
48070         * modules/inttypes-incomplete: New module, containing the contents
48071         of the old modules/inttypes module, except that the Files: section
48072         omits m4/inttypes-pri.m4, and the configure.ac section invokes
48073         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
48074         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
48075         (Depends-on): Depend only on inttypes-incomplete.
48076         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
48078         inttypes: omit now-redundant strtoimax and strtoumax work
48079         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
48080         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
48082         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
48083         This supports apps that need pointers to strtoimax and strtoumax,
48084         and ports to HP-UX 11.00 64.bit, which has macros that expand to
48085         nonexistent functions.  See
48086         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
48087         et seq.
48088         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
48089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
48090         a macro.
48091         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
48093 2011-04-25  Simon Josefsson  <simon@josefsson.org>
48095         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
48097 2011-04-25  Bruno Haible  <bruno@clisp.org>
48099         strtol, strtoul: Mark modules as obsolete.
48100         * modules/strtol (Status, Notice): New sections.
48101         * modules/strtoul (Status, Notice): New sections.
48103 2011-04-25  Bruno Haible  <bruno@clisp.org>
48105         strtod: Remove check for strtod, unless supporting old platforms.
48106         * modules/strtod-obsolete: New file.
48107         * m4/strtod-obsolete.m4: New file.
48108         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
48109         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
48110         * modules/strtod (Depends-on): Add strtod-obsolete.
48111         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
48113 2011-04-25  Bruno Haible  <bruno@clisp.org>
48115         strcase: Make module obsolete.
48116         * modules/strcase (Status, Notice): New sections.
48118 2011-04-25  Bruno Haible  <bruno@clisp.org>
48120         dup2: Remove check for dup2, unless supporting old obsolete platforms.
48121         * modules/dup2-obsolete: New file.
48122         * m4/dup2-obsolete.m4: New file.
48123         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
48124         gl_FUNC_DUP2_OBSOLETE is not also defined.
48125         * modules/dup2 (Depends-on): Add dup2-obsolete.
48126         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
48128 2011-04-25  Bruno Haible  <bruno@clisp.org>
48130         strnlen: Avoid memchr related link error on old obsolete platforms.
48131         * modules/memchr-obsolete: New file.
48132         * m4/memchr-obsolete.m4: New file.
48133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
48134         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
48135         * modules/memchr (Depends-on): Add memchr-obsolete.
48136         * modules/strnlen (Depends-on): Likewise.
48137         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
48139 2011-04-25  Jim Meyering  <meyering@redhat.com>
48141         maint.mk: makefile_at_at_check extend and clean up
48142         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
48143         in addition to */Makefile.am.
48144         Exempt legitimate uses of @VAR@ notation, e.g.,
48145         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
48146         Remove obsolete coreutils-specific comment.
48147         Prompted by discussion here:
48148         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
48150 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
48152         strtoul: remove dependency on strtol
48153         This is so that 'configure' need not check for strtol merely because
48154         the application needs strtoul.
48155         * modules/strtoul (Files): Add lib/strtol.c.
48156         (Depends-on): Remove strtol.
48158         strtoull: remove dependency on strtoul
48159         This is like the strtoll change.
48160         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
48161         (Depends-on): Remove strtoul.
48163         strtoll: remove dependency on strtol
48164         This is so that 'configure' need not check for strtol merely because
48165         the application needs strtoll.
48166         * modules/strtoll (Files): Add lib/strtol.c.
48167         (Depends-on): Remove strtol.
48169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48171         inttypes: Move some configure check to module 'imaxdiv'.
48172         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
48173         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
48174         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
48176 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48178         inttypes: Move some configure check to module 'imaxabs'.
48179         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
48180         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
48181         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
48183 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48185         inttypes: Remove configure tests that are not needed since 2009-12-31.
48186         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
48187         gl_cv_header_working_inttypes_h.
48189 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
48191         * modules/strnlen (Depends-on): Remove memchr.
48192         The strnlen implementation doesn't need the memchr module's fixes; see
48193         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
48195         strtol: remove dependency on wchar
48196         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
48197         * modules/strtol (Depends-on): Remove wchar.
48199 2011-04-21  Eric Blake  <eblake@redhat.com>
48201         passfd: fix test regression on Linux
48202         * modules/passfd-tests (configure.ac): Correct socketpair check.
48204         passfd: speed up configure and drop unused code
48205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
48206         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
48207         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
48208         Instead of probing at configure for unix_scm_rights_bsd44_way,
48209         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
48210         check to a struct member probe.
48211         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
48212         (sendfd, recvfd): Update preprocessor checks.
48213         * modules/passfd (Files): Reflect rename, and drop unused file.
48214         (Depends-on): Drop unused dependency.
48216         passfd: allow compilation on mingw
48217         * modules/sys_socket (Depends-on): Add sys_uio.
48218         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
48219         iovec and a minimal struct msghdr.
48220         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
48221         * tests/test-sys_socket.c (main): Enhance test.
48222         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
48223         guaranteed to provide what we need.
48224         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
48225         * modules/passfd-tests (Depends-on): Add sys_wait.
48226         * tests/test-passfd.c (main): Skip test on mingw, for now.
48227         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
48228         partial 'struct msghdr' implementation.
48230         sys_uio: new module
48231         * modules/sys_uio: New module.
48232         * modules/sys_uio-tests: Likewise.
48233         * lib/sys_uio.in.h: New file.
48234         * m4/sys_uio_h.m4: Likewise.
48235         * tests/test-sys_uio.c: Likewise.
48236         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
48237         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
48239 2011-04-20  Jim Meyering  <meyering@redhat.com>
48241         useless-if-before-free: avoid false-positive
48242         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
48243         disjunct so that it too requires a terminating ";".  Without that,
48244         this script would identify as useless one statement from gcc that
48245         was not:
48246           if (aligned_ptr)
48247             free (((void **) aligned_ptr) [-1]);
48249 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
48251         doc: update users.txt.
48252         * users.txt: Add barcode.
48254 2011-04-19  Bruno Haible  <bruno@clisp.org>
48256         ioctl: Remove link dependency on native Windows.
48257         * lib/fd-hook.h: Renamed from lib/close-hook.h.
48258         (gl_close_fn, gl_ioctl_fn): New types.
48259         (struct fd_hook): Renamed from struct close_hook. Change type of
48260         private_close_fn field. Add private_ioctl_fn field.
48261         (close_hook_fn): Add parameter for primary close method.
48262         (execute_close_hooks, execute_all_close_hooks): Likewise.
48263         (ioctl_hook_fn): New type.
48264         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
48265         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48266         argument.
48267         (unregister_fd_hook): Renamed from unregister_close_hook.
48268         * lib/fd-hook.c: Renamed from lib/close-hook.c.
48269         Don't include <unistd.h>.
48270         (close): Remove undef.
48271         (anchor): Update.
48272         (execute_close_hooks): Add argument for primary close method.
48273         (execute_all_close_hooks): Likewise.
48274         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
48275         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
48276         argument. Allow each argument to be NULL.
48277         (unregister_fd_hook): Renamed from unregister_close_hook.
48278         * lib/close.c (rpl_close): Pass 'close' function pointer to
48279         execute_all_close_hooks.
48280         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
48281         (primary_ioctl): New function.
48282         (ioctl): Don't call ioctlsocket here. Instead, call
48283         execute_all_ioctl_hooks.
48284         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
48285         close method.
48286         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
48287         (fd_sockets_hook): Renamed from close_sockets_hook.
48288         (gl_sockets_startup, gl_sockets_cleanup): Update.
48289         * modules/fd-hook: Renamed from modules/close-hook. Update.
48290         * modules/close (Depends-on): Add fd-hook, remove close-hook.
48291         * modules/sockets (Depends-on): Likewise.
48292         * modules/ioctl (Depends-on): Add fd-hook.
48293         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
48294         GNULIB_SOCKET.
48296 2011-04-19  Bruno Haible  <bruno@clisp.org>
48298         Move the support of O_NONBLOCK in open() to the 'open' module.
48299         * modules/nonblocking (Depends-on): Remove 'open'.
48300         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
48301         gl_cv_have_open_O_NONBLOCK.
48302         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
48303         O_NONBLOCK support.
48304         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
48306 2011-04-17  Bruno Haible  <bruno@clisp.org>
48308         pipe2: Simplify code.
48309         * lib/pipe2.c (pipe2): Reduce code duplication.
48311 2011-04-17  Bruno Haible  <bruno@clisp.org>
48313         nonblocking: Add comment.
48314         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
48316 2011-04-17  Bruno Haible  <bruno@clisp.org>
48318         nonblocking: Add tests for sockets.
48319         * tests/test-nonblocking-socket.sh: New file.
48320         * tests/test-nonblocking-socket-main.c: New file.
48321         * tests/test-nonblocking-socket-child.c: New file.
48322         * tests/test-nonblocking-socket.h: New file.
48323         * tests/socket-server.h: New file.
48324         * tests/socket-client.h: New file.
48325         * modules/nonblocking-socket-tests: New file.
48326         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
48328 2011-04-17  Bruno Haible  <bruno@clisp.org>
48330         nonblocking: Add tests for pipes.
48331         * tests/test-nonblocking-pipe.sh: New file.
48332         * tests/test-nonblocking-pipe-main.c: New file.
48333         * tests/test-nonblocking-pipe-child.c: New file.
48334         * tests/test-nonblocking-pipe.h: New file.
48335         * tests/test-nonblocking-writer.h: New file.
48336         * tests/test-nonblocking-reader.h: New file.
48337         * tests/test-nonblocking-misc.h: New file.
48338         * modules/nonblocking-pipe-tests: New file.
48339         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
48341 2011-04-16  Bruno Haible  <bruno@clisp.org>
48343         gettext: Clarify the needed programmer actions.
48344         * modules/gettext (Notice): New field.
48345         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48347 2011-04-16  Bruno Haible  <bruno@clisp.org>
48349         strchrnul: Tweak last commit.
48350         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
48351         bug.
48352         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
48353         as in _GL_FUNCDECL_SYS.
48354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
48355         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
48357 2011-04-15  Eric Blake  <eblake@redhat.com>
48359         strchrnul: work around cygwin bug
48360         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
48361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
48362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
48363         * modules/string (Makefile.am): Substitute it.
48364         * lib/string.in.h (strchrnul): Use it.
48366 2011-04-15  Bruno Haible  <bruno@clisp.org>
48368         Don't require lib/stdio-write.c when only module 'stdio' is used.
48369         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
48370         invocation.
48371         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
48373 2011-04-14  Bruno Haible  <bruno@clisp.org>
48375         Support non-blocking pipe I/O in read() on native Windows.
48376         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
48377         (read): New declaration.
48378         * lib/read.c: New file.
48379         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
48380         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
48381         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
48382         vscanf): New declarations.
48383         * lib/stdio-read.c: New file.
48384         * m4/read.m4: New file.
48385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
48386         REPLACE_READ.
48387         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
48388         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48389         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
48390         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
48391         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
48392         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48393         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48394         * modules/read: New file.
48395         * modules/nonblocking (Files): Add lib/stdio-read.c.
48396         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
48397         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
48398         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
48399         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
48400         * modules/pread (Depends-on): Add read.
48401         * modules/safe-read (Depends-on): Likewise.
48402         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
48403         gets, scanf, vfscanf, vscanf): Verify signatures.
48404         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
48405         problem with non-blocking pipes.
48406         * doc/posix-functions/fgetc.texi: Likewise.
48407         * doc/posix-functions/fgets.texi: Likewise.
48408         * doc/posix-functions/fread.texi: Likewise.
48409         * doc/posix-functions/fscanf.texi: Likewise.
48410         * doc/posix-functions/getc.texi: Likewise.
48411         * doc/posix-functions/getchar.texi: Likewise.
48412         * doc/posix-functions/gets.texi: Likewise.
48413         * doc/posix-functions/scanf.texi: Likewise.
48414         * doc/posix-functions/vfscanf.texi: Likewise.
48415         * doc/posix-functions/vscanf.texi: Likewise.
48417 2011-04-14  Bruno Haible  <bruno@clisp.org>
48419         Support non-blocking pipe I/O in write() on native Windows.
48420         * lib/write.c (rpl_write): Split a write request that failed merely
48421         because the byte count was larger than the pipe buffer's size.
48422         * doc/posix-functions/write.texi: Mention the problem with large byte
48423         counts.
48425 2011-04-14  Bruno Haible  <bruno@clisp.org>
48427         wchar: Ensure that wchar_t gets defined on uClibc.
48428         * lib/wchar.in.h: On uClibc, include <stddef.h>.
48429         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
48431 2011-04-13  Bruno Haible  <bruno@clisp.org>
48433         safe-write, full-read: Avoid unnecessary compilation units.
48434         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
48435         (Depends-on): Remove safe-read. Add ssize_t.
48436         * modules/full-read (Files): Add lib/full-write.c.
48437         (Depends-on): Add full-write.
48439 2011-04-13  Bruno Haible  <bruno@clisp.org>
48441         Support non-blocking pipe I/O and SIGPIPE in pwrite().
48442         * modules/pwrite (Depends-on): Add 'write'.
48444 2011-04-13  Bruno Haible  <bruno@clisp.org>
48446         Support non-blocking pipe I/O in write() on native Windows.
48447         * lib/unistd.in.h (write): Enable replacement also if
48448         GNULIB_UNISTD_H_NONBLOCKING is 1.
48449         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
48450         (rpl_write): When failing to write on a non-blocking pipe, change
48451         errno from ENOSPC to EAGAIN.
48452         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
48453         putchar, puts, vfprintf, vprintf): Enable replacement also if
48454         GNULIB_STDIO_H_NONBLOCKING is 1.
48455         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
48456         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
48457         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
48458         CALL_WITH_SIGPIPE_EMULATION.
48459         (CALL_WITH_SIGPIPE_EMULATION): Use them.
48460         * m4/nonblocking.m4: New file.
48461         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
48462         for non-blocking I/O support.
48463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48464         GNULIB_UNISTD_H_NONBLOCKING.
48465         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
48466         required for non-blocking I/O support.
48467         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
48468         * modules/nonblocking (Files): Add m4/nonblocking.m4,
48469         lib/stdio-write.c, m4/asm-underscore.m4.
48470         (Depends-on): Add stdio, unistd.
48471         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
48472         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
48473         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
48474         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
48475         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
48476         problem with non-blocking pipes.
48477         * doc/posix-functions/fputc.texi: Likewise.
48478         * doc/posix-functions/fputs.texi: Likewise.
48479         * doc/posix-functions/fwrite.texi: Likewise.
48480         * doc/posix-functions/printf.texi: Likewise.
48481         * doc/posix-functions/putc.texi: Likewise.
48482         * doc/posix-functions/putchar.texi: Likewise.
48483         * doc/posix-functions/puts.texi: Likewise.
48484         * doc/posix-functions/vfprintf.texi: Likewise.
48485         * doc/posix-functions/vprintf.texi: Likewise.
48486         * doc/posix-functions/write.texi: Likewise.
48488 2011-04-10  Jim Meyering  <meyering@redhat.com>
48490         maint.mk: prohibit doubled words
48491         Detect them also when they're separated by a newline.
48492         There are 3 ways to customize it:
48493           - disable the test on a per file basis, as usual with rules using
48494             $(VC_LIST_EXCEPT)
48495           - replace the default doubled-word-selecting regexp (affects all files)
48496           - ignore a particular file-vs-doubled-word match
48497         I nearly used that last one to ignore the "is is" match in
48498         coreutils' NEWS file, since the text was "ls -is is ..."
48499         To do that, I would have added this line to cfg.mk:
48500           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
48501         but it would have ignored any "is is" match in NEWS.
48502         Low probability, but still...
48503         Instead, I changed the text, slightly:
48504           -  ls -is is now consistent with ls -lis in ignoring values returned
48505           +  "ls -is" is now consistent with ls -lis in ignoring values returned
48506         * top/maint.mk (prohibit_double_word_RE_): Provide default.
48507         (prohibit_doubled_word_): Define.
48508         (sc_prohibit_doubled_word): New rule.
48509         (sc_prohibit_the_the): Remove.  Subsumed by the above.
48511 2011-04-10  Jim Meyering  <meyering@redhat.com>
48513         maint: fix doubled-word typo in comment
48514         * m4/gethostname.m4: s/is is/it is/
48515         * m4/getdomainname.m4: Likewise.
48517 2011-04-10  Jim Meyering  <meyering@redhat.com>
48519         maint: remove doubled word: s/it it/it/
48520         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
48522 2011-04-10  Jim Meyering  <meyering@redhat.com>
48524         maint.mk: remove useless semicolon and backslash
48525         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
48526         semicolon and backslash.
48528 2011-04-10  Bruno Haible  <bruno@clisp.org>
48530         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
48531         * modules/stdint-tests (Depends-on): Add wchar.
48533 2011-04-10  Jim Meyering  <meyering@redhat.com>
48535         maint: remove doubled words in comments, e.g., s/a a/a/
48536         * lib/strptime.c (day_of_the_week): s/the the/the/
48537         * tests/test-chown.h (test_chown): s/a a/a/
48539         test-chown.h: correct a cast
48540         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
48541         when the destination is a stat.st_gid.
48543 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
48545         getaddrinfo: Fix test for sa_len member.
48546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
48547         include <sys/types.h> before <sys/socket.h>.
48549 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48551         maint: change "can not" to "cannot"
48552         * doc/posix-functions/iconv.texi (iconv): This one crossed line
48553         boundaries.
48555 2011-04-09  Jim Meyering  <meyering@redhat.com>
48557         maint: change "a a" to "a"
48558         * tests/test-lchown.h (test_lchown): s/a a/a/
48560         maint.mk: prohibit \<the the\>
48561         * top/maint.mk (sc_prohibit_the_the): New rule.
48563         maint: fix "the the" in comment
48564         * lib/count-one-bits.h: s/the the/the/
48566         maint: change "can not" to "cannot"
48567         But do not change the occurrences in maintain.texi or in
48568         build-aux/po/Makefile.in.in, which I presume comes from gettext.
48569         * doc/gnulib-tool.texi: s/can not/cannot/
48570         * doc/posix-functions/accept.texi (accept): Likewise.
48571         * doc/posix-functions/socket.texi (socket): Likewise.
48572         * lib/mbrtowc.c: Likewise.
48574         maint.mk: prohibit use of "can not"
48575         * top/maint.mk (sc_prohibit_can_not): New rule.
48576         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
48578 2011-04-09  Bruno Haible  <bruno@clisp.org>
48580         careadlinkat: Guard against misuse of careadlinkatcwd.
48581         * lib/careadlinkat.c: Include <stdlib.h>.
48582         (careadlinkatcwd): Check that the fd argument is as expected.
48584 2011-04-09  Bruno Haible  <bruno@clisp.org>
48586         careadlinkat: Use common coding style.
48587         * lib/careadlinkat.c: Move gnulib includes after system includes.
48589 2011-04-09  Bruno Haible  <bruno@clisp.org>
48591         careadlinkat: Clarify specification.
48592         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
48593         (careadlinkatcwd): Add comment.
48594         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
48596 2011-04-09  Bruno Haible  <bruno@clisp.org>
48598         areadlinkat: Avoid link error on many platforms.
48599         * modules/areadlinkat (Depends-on): Add areadlink.
48601 2011-04-09  Bruno Haible  <bruno@clisp.org>
48603         allocator, careadlinkat: Fix double-inclusion guard.
48604         * lib/allocator.h: Fix double-inclusion guard.
48605         * lib/careadlinkat.h: Likewise.
48607 2011-04-09  Bruno Haible  <bruno@clisp.org>
48609         relocatable-prog-wrapper: Update after module 'areadlink' changed.
48610         * lib/relocwrapper.c: Update dependencies hierarchy.
48611         * build-aux/install-reloc: Update list of files to be compiled.
48612         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
48613         lib/allocator.[hc].
48615 2011-04-08  Eric Blake  <eblake@redhat.com>
48617         strftime: silence gnulib-tool warning
48618         * modules/strftime-tests (Depends-on): Drop automatic dependency.
48620 2011-04-08  Bruno Haible  <bruno@clisp.org>
48622         verify: Fix syntax error with GCC 4.6 in C++ mode.
48623         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
48624         (HAVE_STATIC_ASSERT): New macro.
48625         (verify_true, verify): Use 'static_assert' if it is supported and
48626         '_Static_assert' is not supported.
48628 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
48630         allocator: New module.
48631         * modules/allocator, lib/allocator.c: New files.
48632         * lib/allocator.h (stdlib_allocator): New decl.
48633         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
48634         Remove.  Do not include <stdlib.h>.
48635         (careadlinkat): Use stdlib_allocator instead of rolling our own.
48636         * modules/careadlinkat (Files): Remove lib/allocator.h.
48637         (Depends-on): Add allocator.
48639         stdlib: let modules use system malloc, realloc
48640         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
48641         if !_GL_USE_STDLIB_ALLOC.
48642         (malloc, realloc): Limit this change to a smaller scope.
48644         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
48645         (malloc, realloc): Don't #undef; no longer needed.
48646         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48647         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48648         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
48649         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48650         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48651         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48652         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
48653         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
48655         careadlinkat: rename members to avoid problem
48656         * lib/allocator.h (struct allocator): Rename members from
48657         malloc/realloc to allocate/reallocate, to avoid problems if malloc
48658         and realloc are #define'd.  Reported by Eric Blake in
48659         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
48660         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
48662 2011-04-08  Eric Blake  <eblake@redhat.com>
48664         nonblocking: reduce dependency
48665         * tests/test-nonblocking.c: Only test sockets when in use.
48666         * modules/nonblocking-tests (Depends-on): Drop socket.
48667         (Makefile.am): Link even if sockets are not present.
48668         * modules/pipe2-tests (Makefile.am): Likewise.
48669         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
48671         pipe2: fix O_NONBLOCK support on mingw
48672         * modules/pipe2 (Depends-on): Add nonblocking.
48673         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
48674         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
48675         * tests/test-nonblocking.c (main): Likewise.
48676         * modules/pipe2-tests (Makefile.am): Avoid link failure.
48678         fcntl-h: fix O_ACCMODE on cygwin
48679         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
48680         * lib/fcntl.in.h (O_ACCMODE): Fix it.
48682         pipe-filter: drop O_NONBLOCK workarounds
48683         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
48684         * modules/pipe-filter-ii (Depends-on): Likewise.
48685         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
48687         nonblocking: provide O_NONBLOCK for mingw
48688         * modules/nonblocking (Depends-on): Add open.
48689         (configure.ac): Set new witness macro.
48690         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
48691         * modules/fcntl-h (Makefile.am): Substitute it.
48692         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
48693         nonblocking module is in use.
48694         * lib/nonblocking.c: Adjust portability test.
48695         * lib/open.c (open): Don't let native open see gnulib flag.
48696         * tests/test-fcntl-h.c (main): Enhance test.
48697         * tests/test-open.h (test_open): Likewise.
48698         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
48700         careadlinkat: fix compilation error on mingw
48701         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
48702         within struct allocator.
48704 2011-04-06  Eric Blake  <eblake@redhat.com>
48706         binary-io: relicense under LGPLv2+
48707         * modules/binary-io (License): Relax to LGPLv2+.
48708         Requested for libvirt, and required by pipe2.
48710 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
48712         verify: use _Static_assert if available
48713         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
48714         (verify_true, verify): Use it if available.  This generates better
48715         diagnostics with GCC 4.6.0 and later.
48717 2011-04-05  Bruno Haible  <bruno@clisp.org>
48719         Remove leftover generated .h files after config.status changed.
48721         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
48722         GL_GENERATE_ALLOCA_H.
48723         * modules/alloca-opt (Makefile.am): Remove alloca.h if
48724         GL_GENERATE_ALLOCA_H evaluates to false.
48726         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
48727         GL_GENERATE_ARGZ_H.
48728         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
48729         evaluates to false.
48731         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
48732         GL_GENERATE_BYTESWAP_H.
48733         * modules/byteswap (Makefile.am): Remove byteswap.h if
48734         GL_GENERATE_BYTESWAP_H evaluates to false.
48736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
48737         GL_GENERATE_ERRNO_H.
48738         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
48739         evaluates to false.
48741         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
48742         GL_GENERATE_FLOAT_H.
48743         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
48744         evaluates to false.
48746         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
48747         GL_GENERATE_FNMATCH_H.
48748         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
48749         GL_GENERATE_FNMATCH_H evaluates to false.
48751         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
48752         GL_GENERATE_GLOB_H.
48753         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
48754         evaluates to false.
48756         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
48757         automake conditional GL_GENERATE_ICONV_H.
48758         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
48759         evaluates to false.
48761         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
48762         GL_GENERATE_NETINET_IN_H.
48763         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
48764         GL_GENERATE_NETINET_IN_H evaluates to false.
48766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
48767         conditional GL_GENERATE_PTHREAD_H.
48768         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
48769         * modules/pthread (Makefile.am): Remove pthread.h if
48770         GL_GENERATE_PTHREAD_H evaluates to false.
48772         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
48773         GL_GENERATE_SCHED_H.
48774         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
48775         evaluates to false.
48777         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
48778         conditional GL_GENERATE_SELINUX_CONTEXT_H.
48779         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
48780         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
48782         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
48783         GL_GENERATE_STDARG_H.
48784         * modules/stdarg (Makefile.am): Remove stdarg.h if
48785         GL_GENERATE_STDARG_H evaluates to false.
48787         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
48788         GL_GENERATE_STDBOOL_H.
48789         * modules/stdbool (Makefile.am): Remove stdbool.h if
48790         GL_GENERATE_STDBOOL_H evaluates to false.
48792         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
48793         conditional GL_GENERATE_STDDEF_H.
48794         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
48795         * modules/stddef (Makefile.am): Remove stddef.h if
48796         GL_GENERATE_STDDEF_H evaluates to false.
48798         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
48799         GL_GENERATE_STDINT_H.
48800         * modules/stdint (Makefile.am): Remove stdint.h if
48801         GL_GENERATE_STDINT_H evaluates to false.
48803         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
48804         GL_GENERATE_SYSEXITS_H.
48805         * modules/sysexits (Makefile.am): Remove sysexits.h if
48806         GL_GENERATE_SYSEXITS_H evaluates to false.
48808         Reported by Karl Berry and Ralf Wildenhues.
48810 2011-04-05  Bruno Haible  <bruno@clisp.org>
48812         Ensure to rebuild generated .h files when config.status has changed.
48813         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
48814         config.status.
48815         * modules/ctype (Makefile.am): Likewise.
48816         * modules/dirent (Makefile.am): Likewise.
48817         * modules/errno (Makefile.am): Likewise.
48818         * modules/fcntl-h (Makefile.am): Likewise.
48819         * modules/float (Makefile.am): Likewise.
48820         * modules/getopt-posix (Makefile.am): Likewise.
48821         * modules/glob (Makefile.am): Likewise.
48822         * modules/iconv-h (Makefile.am): Likewise.
48823         * modules/inttypes (Makefile.am): Likewise.
48824         * modules/langinfo (Makefile.am): Likewise.
48825         * modules/locale (Makefile.am): Likewise.
48826         * modules/math (Makefile.am): Likewise.
48827         * modules/netdb (Makefile.am): Likewise.
48828         * modules/netinet_in (Makefile.am): Likewise.
48829         * modules/poll-h (Makefile.am): Likewise.
48830         * modules/pthread (Makefile.am): Likewise.
48831         * modules/pty (Makefile.am): Likewise.
48832         * modules/sched (Makefile.am): Likewise.
48833         * modules/search (Makefile.am): Likewise.
48834         * modules/selinux-h (Makefile.am): Likewise.
48835         * modules/signal (Makefile.am): Likewise.
48836         * modules/spawn (Makefile.am): Likewise.
48837         * modules/stdarg (Makefile.am): Likewise.
48838         * modules/stdbool (Makefile.am): Likewise.
48839         * modules/stddef (Makefile.am): Likewise.
48840         * modules/stdint (Makefile.am): Likewise.
48841         * modules/stdio (Makefile.am): Likewise.
48842         * modules/stdlib (Makefile.am): Likewise.
48843         * modules/string (Makefile.am): Likewise.
48844         * modules/strings (Makefile.am): Likewise.
48845         * modules/sys_file (Makefile.am): Likewise.
48846         * modules/sys_ioctl (Makefile.am): Likewise.
48847         * modules/sys_select (Makefile.am): Likewise.
48848         * modules/sys_socket (Makefile.am): Likewise.
48849         * modules/sys_stat (Makefile.am): Likewise.
48850         * modules/sys_time (Makefile.am): Likewise.
48851         * modules/sys_times (Makefile.am): Likewise.
48852         * modules/sys_utsname (Makefile.am): Likewise.
48853         * modules/sys_wait (Makefile.am): Likewise.
48854         * modules/sysexits (Makefile.am): Likewise.
48855         * modules/termios (Makefile.am): Likewise.
48856         * modules/time (Makefile.am): Likewise.
48857         * modules/unistd (Makefile.am): Likewise.
48858         * modules/wchar (Makefile.am): Likewise.
48859         * modules/wctype-h (Makefile.am): Likewise.
48860         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
48862 2011-04-05  Bruno Haible  <bruno@clisp.org>
48864         pipe2: Relicense under LGPLv2+.
48865         * modules/pipe2 (License): Change to LGPLv2+.
48866         Requested by Eric Blake, for libvirt.
48868 2011-04-05  Bruce Korb  <bkorb@gnu.org>
48870         bootstrap: compute gnulib_extra_files after updating build_aux
48871         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
48872         change build_aux or also supply gnulib_extra_files.  Handle correctly.
48874 2011-04-05  Eric Blake  <eblake@redhat.com>
48876         bootstrap: preserve git whitelist item sorting
48877         * build-aux/bootstrap (sort_patterns): New function.
48878         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
48880 2011-04-05  Simon Josefsson  <simon@josefsson.org>
48882         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
48883         sc_space_tab check.
48885 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
48887         areadlink, areadlinkat: rewrite in terms of careadlinkat
48888         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
48889         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
48890         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
48891         (malloc, realloc): Remove #undefs.
48892         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
48893         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
48894         readlink, ssize_t, stdint, unistd.
48895         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
48896         areadlink, stdint.
48898         careadlinkat: new module
48899         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
48900         * modules/careadlinkat: New files, written by me with
48901         a review and feedback from Ben Pfaff in
48902         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
48904 2011-04-01  Bruno Haible  <bruno@clisp.org>
48906         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
48907         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
48908         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
48909         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
48910         Reported by Bruce Korb <bruce.korb@gmail.com>.
48912 2011-04-01  Bruno Haible  <bruno@clisp.org>
48914         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
48915         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
48916         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
48917         * modules/wcpcpy (Depends-on): Add extensions.
48918         * modules/wcpncpy (Depends-on): Likewise.
48919         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
48920         systems.
48921         * doc/posix-functions/wcpncpy.texi: Likewise.
48922         * doc/posix-functions/wcwidth.texi: Likewise.
48924 2011-03-31  Eric Blake  <eblake@redhat.com>
48926         nonblocking: fix mingw test failures
48927         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
48928         non-blocking flag on regular file.
48929         (get_nonblocking_flag): Set errno on invalid fd.
48930         * tests/test-nonblocking.c (main): Avoid test failure on
48931         directories if fchdir is not active.
48932         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
48934 2011-03-31  Bruno Haible  <bruno@clisp.org>
48936         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
48937         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
48938         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
48939         Reported by Simon Josefsson <simon@josefsson.org>.
48941 2011-03-31  Bruno Haible  <bruno@clisp.org>
48942         and Eric Blake  <eblake@redhat.com>
48944         nonblocking: new module
48945         * modules/nonblocking: New module.
48946         * modules/nonblocking-tests: Likewise.
48947         * lib/nonblocking.h: New file.
48948         * lib/nonblocking.c: Likewise.
48949         * tests/test-nonblocking.c: New test.
48950         * lib/ioctl.c (ioctl) [mingw]: Update comment.
48952 2011-03-30  Bruno Haible  <bruno@clisp.org>
48954         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
48955         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
48956         instead of 'printf' format for GCC >= 4.4.
48957         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
48958         (fprintf, printf, vfprintf, vprintf): Declare with
48959         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
48960         the system's vfprintf() function.
48961         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
48963 2011-03-30  Eric Blake  <eblake@redhat.com>
48965         passfd: fix scoping bug
48966         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
48967         before sendmsg/recvmsg.
48969         passfd: standardize coding conventions
48970         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
48971         can be learned at compile time.
48972         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
48973         ifdefs.
48974         (sendfd, recvfd): Follow gnulib code conventions.
48976         passfd: fix incorrect sendmsg arguments
48977         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
48978         incorrect msg_controllen value.
48979         * modules/passfd-tests (Depends-on): Check for alarm.
48980         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
48981         Reported by Bastien ROUCARIES.
48983 2011-03-30  Bruno Haible  <bruno@clisp.org>
48985         c-strcasestr: Relicense under LGPLv2+.
48986         * modules/c-strcasestr (License): Change to LGPLv2+.
48987         Requested by Eric Blake, for libvirt.
48989 2011-03-30  Simon Josefsson  <simon@josefsson.org>
48991         * users.txt: Add libidn2.  Fix libtasn1 link.
48993 2011-03-30  Jim Meyering  <meyering@redhat.com>
48995         tests: readlink* ("",... fails with EINVAL on newer kernels
48996         readlink and readlinkat have typically failed with ENOENT for
48997         the invalid, empty file name,  "".  However, with the advent
48998         of linux-2.6.39, they fail with EINVAL.
48999         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
49000         when operating on the empty file name.
49001         * tests/test-readlink.h (test_readlink): Likewise.
49003 2011-03-29  Bruno Haible  <bruno@clisp.org>
49005         Relicense some modules under LGPLv2+, for libidn2.
49006         * modules/array-mergesort (License): Change to LGPLv2+.
49007         * modules/c-strcaseeq (License): Likewise.
49008         * modules/striconveh (License): Likewise.
49009         * modules/striconveha (License): Likewise.
49010         * modules/uniconv/base (License): Likewise.
49011         * modules/uniconv/u8-conv-from-enc (License): Likewise.
49012         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
49013         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
49014         * modules/unictype/base (License): Likewise.
49015         * modules/unictype/bidiclass-of (License): Likewise.
49016         * modules/unictype/category-M (License): Likewise.
49017         * modules/unictype/category-none (License): Likewise.
49018         * modules/unictype/category-of (License): Likewise.
49019         * modules/unictype/category-test (License): Likewise.
49020         * modules/unictype/category-test-withtable (License): Likewise.
49021         * modules/unictype/combining-class (License): Likewise.
49022         * modules/unictype/joiningtype-of (License): Likewise.
49023         * modules/unictype/scripts (License): Likewise.
49024         * modules/uninorm/base (License): Likewise.
49025         * modules/uninorm/canonical-decomposition (License): Likewise.
49026         * modules/uninorm/composition (License): Likewise.
49027         * modules/uninorm/decompose-internal (License): Likewise.
49028         * modules/uninorm/decomposition-table (License): Likewise.
49029         * modules/uninorm/nfc (License): Likewise.
49030         * modules/uninorm/nfd (License): Likewise.
49031         * modules/uninorm/u32-normalize (License): Likewise.
49032         * modules/unistr/base (License): Likewise.
49033         * modules/unistr/u32-cpy (License): Likewise.
49034         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
49035         * modules/unistr/u32-to-u8 (License): Likewise.
49036         * modules/unistr/u32-uctomb (License): Likewise.
49037         * modules/unistr/u8-check (License): Likewise.
49038         * modules/unistr/u8-mblen (License): Likewise.
49039         * modules/unistr/u8-mbtouc (License): Likewise.
49040         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
49041         * modules/unistr/u8-mbtoucr (License): Likewise.
49042         * modules/unistr/u8-prev (License): Likewise.
49043         * modules/unistr/u8-strlen (License): Likewise.
49044         * modules/unistr/u8-to-u32 (License): Likewise.
49045         * modules/unistr/u8-uctomb (License): Likewise.
49046         * modules/unitypes (License): Likewise.
49047         Requested by Simon Josefsson.
49049 2011-03-29  Simon Josefsson  <simon@josefsson.org>
49051         lib-symbol-visibility: Add a notice.
49052         * modules/lib-symbol-visibility (Notice): New field.
49054 2011-03-29  Bruno Haible  <bruno@clisp.org>
49056         getaddrinfo: Doc fix.
49057         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
49058         section "fixed in Gnulib".
49060 2011-03-28  Simon Josefsson  <simon@josefsson.org>
49062         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
49063         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
49065 2011-03-26  Bruno Haible  <bruno@clisp.org>
49067         unictype/property-byname: Reduce the number of load-time relocations.
49068         * lib/unictype/pr_byname.c: Include <stdlib.h>.
49069         (UC_PROPERTY_INDEX_*): New enumeration values.
49070         (uc_property_byname): Convert an index from the lookup table to an
49071         uc_property_t.
49072         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
49073         values.
49075 2011-03-26  Bruno Haible  <bruno@clisp.org>
49077         unictype/property-byname: Allow omitted word separators and aliases.
49078         * lib/unictype/pr_byname.gperf: Add property names without word
49079         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
49080         for 'space'.
49082 2011-03-26  Bruno Haible  <bruno@clisp.org>
49084         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
49085         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
49086         also hyphens to space.
49087         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
49088         without spaces.
49089         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
49091 2011-03-26  Bruno Haible  <bruno@clisp.org>
49093         unictype/joiningtype-byname: Recognize long names as well.
49094         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
49095         a long name.
49096         * lib/unictype/joiningtype_byname.c: Include <string.h>,
49097         unictype/joiningtype_byname.h.
49098         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
49099         * lib/unictype/joiningtype_byname.gperf: New file.
49100         * modules/unictype/joiningtype-byname (Files): Add
49101         lib/unictype/joiningtype_byname.gperf.
49102         (Depends-on): Add gperf.
49103         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
49104         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
49105         long names.
49107         Tests for module 'unictype/joiningtype-longname'.
49108         * modules/unictype/joiningtype-longname-tests: New file.
49109         * tests/unictype/test-joiningtype_longname.c: New file.
49111         New module 'unictype/joiningtype-longname'.
49112         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
49113         * lib/unictype/joiningtype_longname.c: New file.
49114         * modules/unictype/joiningtype-longname: New file.
49115         * modules/unictype/joiningtype-all (Depends-on): Add
49116         unictype/joiningtype-longname.
49118 2011-03-26  Bruno Haible  <bruno@clisp.org>
49120         unictype/bidiclass-byname: Recognize long names as well.
49121         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
49122         name.
49123         * lib/unictype/bidi_byname.c: Include <string.h>,
49124         unictype/bidi_byname.h.
49125         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
49126         * lib/unictype/bidi_byname.gperf: New file.
49127         * modules/unictype/bidiclass-byname (Files): Add
49128         lib/unictype/bidi_byname.gperf.
49129         (Depends-on): Add gperf.
49130         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
49131         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
49132         long names.
49134         Tests for module 'unictype/bidiclass-longname'.
49135         * modules/unictype/bidiclass-longname-tests: New file.
49136         * tests/unictype/test-bidi_longname.c: New file.
49138         New module 'unictype/bidiclass-longname'.
49139         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
49140         * lib/unictype/bidi_longname.c: New file.
49141         * modules/unictype/bidiclass-longname: New file.
49142         * modules/unictype/bidiclass-all (Depends-on): Add
49143         unictype/bidiclass-longname.
49145 2011-03-26  Bruno Haible  <bruno@clisp.org>
49147         unictype/bidi*: Rename modules.
49148         * modules/unictype/bidiclass-all: Renamed from
49149         modules/unictype/bidicategory-all.
49150         * modules/unictype/bidiclass-name: Renamed from
49151         modules/unictype/bidiclass-name.
49152         (Description): Update.
49153         * modules/unictype/bidiclass-name-tests: Renamed from
49154         modules/unictype/bidicategory-name-tests.
49155         * modules/unictype/bidiclass-byname: Renamed from
49156         modules/unictype/bidicategory-byname.
49157         (Description): Update.
49158         * modules/unictype/bidiclass-byname-tests: Renamed from
49159         modules/unictype/bidicategory-byname-tests.
49160         * modules/unictype/bidiclass-of: Renamed from
49161         modules/unictype/bidicategory-of.
49162         (Description): Update.
49163         * modules/unictype/bidiclass-of-tests: Renamed from
49164         modules/unictype/bidicategory-of-tests.
49165         * modules/unictype/bidiclass-test: Renamed from
49166         modules/unictype/bidicategory-test.
49167         (Description): Update.
49168         * modules/unictype/bidiclass-test-tests: Renamed from
49169         modules/unictype/bidicategory-test-tests.
49170         * modules/unictype/bidicategory-all: New file, a simple redirection.
49171         * modules/unictype/bidicategory-name: Likewise.
49172         * modules/unictype/bidicategory-byname: Likewise.
49173         * modules/unictype/bidicategory-of: Likewise.
49174         * modules/unictype/bidicategory-test: Likewise.
49175         * modules/unictype/property-bidi-* (Dependencies): Update.
49176         * lib/unictype/bidi_*.c: Update comment.
49178 2011-03-26  Bruno Haible  <bruno@clisp.org>
49180         unictype/bidi*: Rename functions, part 2.
49181         * modules/unictype/bidicategory-name (configure.ac): Update required
49182         libunistring version.
49183         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
49185 2011-03-25  Bruno Haible  <bruno@clisp.org>
49187         New module 'unictype/combining-class-all'.
49188         * modules/unictype/combining-class-all: New file.
49190         Tests for module 'unictype/combining-class-byname'.
49191         * modules/unictype/combining-class-byname-tests: New file.
49192         * tests/unictype/test-combiningclass_byname.c: New file.
49194         New module 'unictype/combining-class-byname'.
49195         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
49196         * lib/unictype/combiningclass_byname.c: New file.
49197         * lib/unictype/combiningclass_byname.gperf: New file.
49198         * modules/unictype/combining-class-byname: New file.
49200         Tests for module 'unictype/combining-class-longname'.
49201         * modules/unictype/combining-class-longname-tests: New file.
49202         * tests/unictype/test-combiningclass_longname.c: New file.
49204         New module 'unictype/combining-class-longname'.
49205         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
49206         * lib/unictype/combiningclass_longname.c: New file.
49207         * modules/unictype/combining-class-longname: New file.
49209         Tests for module 'unictype/combining-class-name'.
49210         * modules/unictype/combining-class-name-tests: New file.
49211         * tests/unictype/test-combiningclass_name.c: New file.
49213         New module 'unictype/combining-class-name'.
49214         * lib/unictype.in.h (uc_combining_class_name): New declaration.
49215         * lib/unictype/combiningclass_name.c: New file.
49216         * modules/unictype/combining-class-name: New file.
49218 2011-03-25  Bruno Haible  <bruno@clisp.org>
49220         unictype/combining-class: Rename source files.
49221         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
49222         of unictype/combining.h.
49223         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
49224         Update.
49225         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
49226         * modules/unictype/combining-class (Description): Fix.
49227         (Files, Makefile.am): Update.
49228         * tests/unictype/test-combiningclass.c: Renamed from
49229         tests/unictype/test-combining.c.
49230         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
49232 2011-03-25  Bruno Haible  <bruno@clisp.org>
49234         unictype: Update list of canonical combining classes.
49235         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
49237 2011-03-25  Bruno Haible  <bruno@clisp.org>
49239         unictype/category-byname: Recognize long names as well.
49240         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
49241         a long name.
49242         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
49243         unictype/categ_byname.h.
49244         (UC_CATEGORY_INDEX_*): New enumeration values.
49245         (uc_general_category_byname): Use uc_general_category_lookup and
49246         convert from index to value.
49247         * lib/unictype/categ_byname.gperf: New file.
49248         * modules/unictype/category-byname (Files): Add
49249         lib/unictype/categ_byname.gperf.
49250         (Depends-on): Add gperf.
49251         (Makefile.am): Add rule for generating unictype/categ_byname.h.
49252         * tests/unictype/test-categ_byname.c (main): Test the recognition of
49253         long names.
49255         Tests for module 'unictype/category-longname'.
49256         * modules/unictype/category-longname-tests: New file.
49257         * tests/unictype/test-categ_longname.c: New file.
49259         New module 'unictype/category-longname'.
49260         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
49261         * lib/unictype/categ_longname.c: New file.
49262         * modules/unictype/category-longname: New file.
49263         * modules/unictype/category-all (Depends-on): Add it.
49265 2011-03-25  Bruno Haible  <bruno@clisp.org>
49267         Tests for module 'unictype/category-LC'.
49268         * modules/unictype/category-LC-tests: New file.
49269         * tests/unictype/test-categ_LC.c: New file, automatically generated.
49271         New module 'unictype/category-LC'.
49272         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
49273         (UC_CATEGORY_LC): New declaration.
49274         (UC_CASED_LETTER): New macro.
49275         * lib/gen-uni-tables.c (is_category_LC): New function.
49276         (output_categories): Also handle category LC.
49277         (UC_CATEGORY_MASK_LC): New enumeration value.
49278         (general_category_byname): Also handle category LC.
49279         * lib/unictype/categ_LC.c: New file.
49280         * lib/unictype/categ_LC.h: New file, automatically generated.
49281         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
49282         category LC.
49283         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
49284         * modules/unictype/category-LC: New file.
49285         * modules/unictype/category-byname (Depends-on): Add
49286         unictype/category-LC.
49287         * modules/unictype/category-all (Depends-on): Likewise.
49289 2011-03-25  Eric Blake  <eblake@redhat.com>
49291         xmalloc: revert yesterday's regression
49292         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
49293         realloc's underlying behavior (allowing allocation of zero-size
49294         objects, especially if malloc-gnu is also in use).
49296 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
49298         maint.mk: add missing version to VC-tag
49299         * top/maint.mk: git tag was missing actual tag name; add it.
49301         valgrind: do leak checking, and exit with code 1 on error (not 0)
49302         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
49303         to VALGRIND.
49305 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
49307         posix-modules: say what it does.
49308         * posix-modules: Add a line to the --help output saying what it does.
49310 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
49312         xmalloc: Do not leak if underlying realloc is C99 compatible.
49313         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
49314         This avoids a leak on C99-based systems.  See
49315         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
49317 2011-03-24  Eric Blake  <eblake@redhat.com>
49319         realloc: document portability problem
49320         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
49321         passing 0 size to realloc.
49323 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
49325         doc: update users.txt
49326         * users.txt: Add cvsps, tmpwatch
49328 2011-03-23  Matt Rice  <ratmice@gmail.com>
49330         doc: update users.txt
49331         * users.txt: Add gdb.
49333 2011-03-23  Jim Meyering  <meyering@redhat.com>
49335         doc: update users.txt
49336         Looking through matches up to the following URL (there are still
49337         several more pages), I found several projects that use gnulib:
49338         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
49339         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
49340         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
49342 2011-03-22  Bruno Haible  <bruno@clisp.org>
49344         unictype/bidi*: Rename functions.
49345         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
49346         uc_bidi_class, uc_is_bidi_class): New declarations.
49347         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
49348         uc_bidi_category_byname.
49349         (uc_bidi_category_byname): New function.
49350         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
49351         u_bidi_category_name.
49352         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
49353         (uc_bidi_category_name): New function.
49354         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
49355         uc_bidi_category.
49356         (uc_bidi_category): New function.
49357         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
49358         uc_is_bidi_category. Invoke uc_bidi_class.
49359         (uc_is_bidi_category): New function.
49360         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
49361         instead of uc_bidi_category_byname.
49362         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
49363         instead of uc_bidi_category_name.
49364         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
49365         uc_bidi_category.
49366         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
49367         instead of uc_is_bidi_category.
49369 2011-03-21  Bruno Haible  <bruno@clisp.org>
49371         New module 'unictype/joininggroup-all'.
49372         * modules/unictype/joininggroup-all: New file.
49374         Tests for module 'unictype/joininggroup-of'.
49375         * modules/unictype/joininggroup-of-tests: New file.
49376         * tests/unictype/test-joininggroup_of.c: New file.
49377         * tests/unictype/test-joininggroup_of.h: New file, automatically
49378         generated by gen-uni-tables.
49380         New module 'unictype/joininggroup-of'.
49381         * modules/unictype/joininggroup-of: New file.
49382         * lib/unictype/joininggroup_of.c: New file.
49383         * lib/unictype/joininggroup_of.h: New file, automatically generated by
49384         gen-uni-tables.
49386         Tests for module 'unictype/joininggroup-byname'.
49387         * modules/unictype/joininggroup-byname-tests: New file.
49388         * tests/unictype/test-joininggroup_byname.c: New file.
49390         New module 'unictype/joininggroup-byname'.
49391         * modules/unictype/joininggroup-byname: New file.
49392         * lib/unictype/joininggroup_byname.c: New file.
49393         * lib/unictype/joininggroup_byname.gperf: New file.
49395         Tests for module 'unictype/joininggroup-name'.
49396         * modules/unictype/joininggroup-name-tests: New file.
49397         * tests/unictype/test-joininggroup_name.c: New file.
49399         New module 'unictype/joininggroup-name'.
49400         * modules/unictype/joininggroup-name: New file.
49401         * lib/unictype/joininggroup_name.c: New file.
49402         * lib/unictype/joininggroup_name.h: New file.
49404         New module 'unictype/joiningtype-all'.
49405         * modules/unictype/joiningtype-all: New file.
49407         Tests for module 'unictype/joiningtype-of'.
49408         * modules/unictype/joiningtype-of-tests: New file.
49409         * tests/unictype/test-joiningtype_of.c: New file.
49410         * tests/unictype/test-joiningtype_of.h: New file, automatically
49411         generated by gen-uni-tables.
49413         New module 'unictype/joiningtype-of'.
49414         * modules/unictype/joiningtype-of: New file.
49415         * lib/unictype/joiningtype_of.c: New file.
49416         * lib/unictype/joiningtype_of.h: New file, automatically generated by
49417         gen-uni-tables.
49419         Tests for module 'unictype/joiningtype-byname'.
49420         * modules/unictype/joiningtype-byname-tests: New file.
49421         * tests/unictype/test-joiningtype_byname.c: New file.
49423         New module 'unictype/joiningtype-byname'.
49424         * modules/unictype/joiningtype-byname: New file.
49425         * lib/unictype/joiningtype_byname.c: New file.
49427         Tests for module 'unictype/joiningtype-name'.
49428         * modules/unictype/joiningtype-name-tests: New file.
49429         * tests/unictype/test-joiningtype_name.c: New file.
49431         New module 'unictype/joiningtype-name'.
49432         * modules/unictype/joiningtype-name: New file.
49433         * lib/unictype/joiningtype_name.c: New file.
49435         unictype: Add support for Arabic shaping properties.
49436         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
49437         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
49438         declarations.
49439         (UC_JOINING_GROUP_*): New enumeration values.
49440         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
49441         declarations.
49442         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
49443         (unicode_joining_type): New variable.
49444         (UC_JOINING_GROUP_*): New enumeration values.
49445         (unicode_joining_group): New variable.
49446         (fill_arabicshaping, joining_type_as_c_identifier,
49447         output_joining_type_test, output_joining_type,
49448         joining_group_as_c_identifier, output_joining_group_test,
49449         output_joining_group): New functions.
49450         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
49451         fill_arabicshaping and output_joining_type_test, output_joining_type,
49452         output_joining_group_test, output_joining_group.
49453         Reported by Simon Josefsson.
49455 2011-03-21  Jim Meyering  <meyering@redhat.com>
49457         strftime: fix a bug in yesterday's change
49458         * lib/strftime.c (add): Accommodate width's initial value of -1.
49459         Otherwise, nstrftime would copy uninitialized data into
49460         the result buffer.
49462 2011-03-21  Jim Meyering  <meyering@redhat.com>
49464         tests: add strftime-tests module
49465         * tests/test-strftime.c: New file.
49466         * modules/strftime-tests: New module.
49468 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49470         strftime: don't assume a byte count fits in 'int'
49471         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
49472         found this problem by static analysis, using gcc -Wstrict-overflow
49473         (GCC 4.5.2, x86-64).  This reported an optimization that depended
49474         on an integer overflow having undefined behavior, but it turns out
49475         that the argument is a size, which might not fit in 'int' anyway,
49477 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49479         stdio: don't require ignore_value around fwrite
49481         This patch works around libc bug 11959
49482         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
49483         Without this patch, applications must often write
49484         ignore_value (fwrite (...)) even though the ignore_value is
49485         not helpful here.  It's common to write many objects, using
49486         fwrite/printf/etc., and then use ferror to detect output error.
49488         I considered making this patch optional, but decided against it,
49489         because libc is obviously being inconsistent here: there is no
49490         reason libc should insist that user code must inspect fwrite
49491         return's value without also insisting that it inspect printf's,
49492         putchar's, etc.  If user code wants to have a strict style where
49493         all these functions' values are checked (so that ferror need not
49494         be checked), we could add support for that style in a new gnulib
49495         module, but in the meantime it's better to be consistent and to
49496         support common usage.
49498         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
49499         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
49500         that we are compiling in checking mode, and if not C++, and
49501         if not already wrapping fwrite for some other reason.
49502         (fwrite): #define to rpl_fwrite if the latter is defined.
49504 2011-03-20  Bruno Haible  <bruno@clisp.org>
49506         verror: Fix compilation error introduced on 2011-02-13.
49507         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
49508         instead of __attribute__.
49509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49511 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
49512             Bruno Haible  <bruno@clisp.org>
49514         socklen: do not depend on sys_socket
49515         While trying to modify Emacs to use gnulib's socklen module,
49516         I discovered a circular dependency: socklen depends on sys_socket
49517         and vice versa.  Emacs can use socklen, but it does not need
49518         sys_socket because it has its own substitute for sys/socket.h.
49519         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
49520         gl_TYPE_SOCKLEN_T.
49521         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
49522         gl_PREREQ_SYS_H_SOCKET.
49523         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
49524         gl_PREREQ_SYS_H_SOCKET.
49525         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
49526         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
49527         * modules/socklen (Depends-on): Do not depend on sys_socket.
49528         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
49530 2011-03-20  Jim Meyering  <meyering@redhat.com>
49532         maint.mk: sort file names *after* new transformation
49533         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
49534         prefix would have led to an unwarranted failure in GNU parted.
49535         Sort after that transformation.
49537 2011-03-19  Jim Meyering  <meyering@redhat.com>
49539         maint.mk: fix po-file syntax-check rule
49540         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
49541         Patch by Bruno Haible.
49543 2011-03-19  Bruno Haible  <bruno@clisp.org>
49545         socklen: Update comment.
49546         * m4/socklen.m4: Update comment about platforms.
49548 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49549             Bruno Haible  <bruno@clisp.org>
49551         inet_ntop, inet_pton: Simplify.
49552         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
49553         documented to provide socklen_t and we already depend on sys_socket.
49554         * modules/inet_pton (Depends-on): Likewise.
49555         * lib/arpa_inet.in.h: Adjust comment.
49557 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
49558             Bruno Haible  <bruno@clisp.org>
49560         netdb: Simplify.
49561         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
49562         documented to provide socklen_t and we already depend on sys_socket.
49563         * lib/netdb.in.h: Adjust comment.
49565 2011-03-19  Bruno Haible  <bruno@clisp.org>
49567         sys_socket, netdb: Document problem with socklen_t.
49568         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
49569         platforms.
49570         * doc/posix-headers/netdb.texi: Likewise.
49572 2011-03-18  Eric Blake  <eblake@redhat.com>
49574         maint.mk: let po check work in VPATH build
49575         * top/maint.mk (po_file): Allow cfg.mk override.
49576         (sc_po_check): Allow VPATH use.
49577         Reported by Jiri Denemark.
49579 2011-03-16  Jim Meyering  <meyering@redhat.com>
49581         maint.mk: allow fine-grained syntax-check exclusion via Make variables
49582         Before, you would have had to create one .x-sc_ file per rule in order
49583         to exempt offending files.  Now, you may instead use a Make variable --
49584         usually defined in cfg.mk -- whose name identifies the affected rule.
49585         * top/maint.mk (_sc_excl): Define.
49586         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
49587         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
49589 2011-03-13  Bruno Haible  <bruno@clisp.org>
49591         ignore-value tests: Avoid warnings.
49592         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
49593         empty for gcc < 3.4.
49595 2011-03-13  Bruno Haible  <bruno@clisp.org>
49597         passfd: Fix link error on Solaris.
49598         * modules/passfd (Description): Correct.
49599         (Depends-on): Add socketlib.
49600         (Link): New section.
49601         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
49603 2011-03-13  Bruno Haible  <bruno@clisp.org>
49605         passfd: Fix link error on AIX 5.2.
49606         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
49608 2011-03-13  Bruno Haible  <bruno@clisp.org>
49610         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
49611         * lib/sys_socket.in.h: Include <stddef.h>.
49612         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
49613         CMSG_FIRSTHDR. Remove unused variable.
49615 2011-03-13  Bruno Haible  <bruno@clisp.org>
49617         passfd: Fix compilation error on OpenBSD.
49618         * lib/passfd.c: Include <sys/uio.h>.
49620 2011-03-13  Bruno Haible  <bruno@clisp.org>
49622         passfd test: Fix warnings.
49623         * tests/test-passfd.c: Include <sys/wait.h>.
49624         (main): Fix typo.
49626 2011-03-13  Bruno Haible  <bruno@clisp.org>
49628         passfd module, part 4, tweaks.
49629         * tests/test-passfd.c: Reorder includes.
49630         (main): Fix perror and printf calls.
49632 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
49634         passfd module, part 4.
49635         * modules/passfd-tests: New file.
49636         * tests/test-passfd.c: New file.
49638 2011-03-13  Jim Meyering  <meyering@redhat.com>
49640         Makefile: rely on GNU make; derive syntax-check rule names
49641         Rather than requiring that each sc_ rule be listed as a dependent
49642         of "check", use features of GNU make to derive the list.
49643         * Makefile (syntax-check-rules): Define.
49644         (check): Depend on the new variable, not the hard-coded list.
49646 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
49647             Bruno Haible  <bruno@clisp.org>
49649         passfd module, part 3.
49650         * lib/passfd.h (recvfd): Add a flags argument.
49651         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
49652         (recvfd): Add a flags argument.
49653         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
49654         exists.
49655         * modules/passfd (Depends-on): Add cloexec.
49656         Suggested by Eric Blake.
49658 2011-03-13  Bruno Haible  <bruno@clisp.org>
49660         passfd module, part 2, tweaks.
49661         * modules/passfd (Files): Reorder.
49662         (Depends-on): Remove errno.
49663         (Include): Remove <sys/socket.h>, <sys/un.h>.
49664         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
49665         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
49666         specification header. Include <sys/socket.h> always. Don't include
49667         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
49668         (sendfd): Clarify that it sets errno when it fails.
49669         (recvfd): Fix specification.
49671 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
49673         passfd module, part 2.
49674         * modules/passfd: New file.
49675         * lib/passfd.h: New file.
49676         * lib/passfd.c: New file.
49678 2011-03-12  Bruno Haible  <bruno@clisp.org>
49680         wcswidth, mbswidth: Avoid integer overflow.
49681         * lib/wcswidth.c: Include <limits.h>.
49682         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
49683         * lib/mbswidth.c: Include <limits.h>.
49684         (mbsnwidth): Avoid 'int' overflow.
49685         Reported by Jim Meyering.
49687 2011-03-12  Bruno Haible  <bruno@clisp.org>
49689         futimens, utimensat: Avoid endless recursion on Solaris 10.
49690         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
49691         Solaris.
49692         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
49693         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
49695 2011-03-11  Jim Meyering  <meyering@redhat.com>
49697         maint.mk: relax a regexp to accommodate other formatting styles
49698         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
49699         between "ngettext" and the following "(".
49701 2011-03-11  Pádraig Brady  <P@draigBrady.com>
49703         maint.mk: suppress a false positive warning
49704         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
49705         diagnostics are marked with ngettext.
49707 2011-03-10  Eric Blake  <eblake@redhat.com>
49709         wchar: add explicit dependencies, for Tru64
49710         * modules/mbmemcasecoll (Depends-on): Add wchar.
49711         * modules/mbtowc (Depends-on): Likewise.
49712         * modules/vasnprintf (Depends-on): Likewise.
49713         * modules/unistdio/u-printf-args (Depends-on): Likewise.
49714         * modules/wctomb (Depends-on): Likewise.
49715         Reported by Peter O'Gorman.
49717 2011-03-08  Bruno Haible  <bruno@clisp.org>
49719         passfd module, part 1, tweaks.
49720         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
49721         Improve indentation. Improve AC_MSG_CHECKING messages.
49722         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
49723         gl_SOCKET_FAMILIES.
49725 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
49727         passfd module, part 1.
49728         * m4/afunix.m4: New file.
49729         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
49730         sockets.
49732 2011-03-08  Bruno Haible  <bruno@clisp.org>
49734         regex-quote: New API.
49735         * lib/regex-quote.h: Include <stdbool.h>.
49736         (struct regex_quote_spec): New type.
49737         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
49738         New declarations.
49739         (regex_quote_length, regex_quote_copy, regex_quote): Take a
49740         'const struct regex_quote_spec *' argument.
49741         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
49742         (pcre_special): New constant.
49743         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
49744         New functions.
49745         (regex_quote_length, regex_quote_copy, regex_quote): Take a
49746         'const struct regex_quote_spec *' argument.
49747         * modules/regex-quote (Depends-on): Add stdbool.
49748         * tests/test-regex-quote.c (check): Update for new API. Add test for
49749         anchored results.
49750         * NEWS: Mention the API change.
49751         Reported by Reuben Thomas and Eric Blake.
49753 2011-03-06  Bruno Haible  <bruno@clisp.org>
49755         regex-quote: Fix creation of POSIX extended regular expressions.
49756         * lib/regex-quote.c (ere_special): Add grouping and alternation
49757         operators.
49759 2011-03-05  Bruno Haible  <bruno@clisp.org>
49761         doc: Improve doc regarding autopoint vs. gnulib.
49762         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
49763         disable autopoint while running autoreconf.
49764         Suggested by Ralf Wildenhues.
49766 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49768         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
49769         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
49771 2011-03-03  Bruce Korb  <bkorb@gnu.org>
49773         parse-duration: remove xalloc.h dependency
49774         * lib/parse-duration.c (parse_period): handle NULL return from
49775         strdup instead of calling xstrdup().
49776         * modules/parse-duration: remove "xalloc" dependency
49778 2011-03-03  Matthew Booth  <mbooth@redhat.com>
49780         bootstrap: honor m4_base when running aclocal
49781         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
49783 2011-03-02  Jim Meyering  <meyering@redhat.com>
49785         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
49786         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
49787         on request from Matt Booth.
49789 2011-03-01  Eric Blake  <eblake@redhat.com>
49791         test-link: work on Hurd
49792         * tests/test-link.h (test_link): Hurd rejects linking directories
49793         with EISDIR instead of the POSIX-mandated EPERM.
49795 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
49797         stdio: simplify by moving files to printf-posix, sigpipe
49798         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
49799         since this symbol is needed only if printf is replaced.
49800         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
49801         Require gl_ASM_SYMBOL_PREFIX.
49802         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
49803         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
49804         (Depends-on): Add 'raise'.
49805         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
49806         * modules/stdio (Files): Remove lib/stdio-write.c,
49807         m4/asm-underscore.m4.
49808         (Depends-on): Remove 'raise'.
49810         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
49811         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
49812         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
49813         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
49815 2011-02-28  Bruno Haible  <bruno@clisp.org>
49817         localcharset: Assume ANSI C behaviour of free().
49818         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
49819         calling free().
49820         Suggested by Simon Josefsson <simon@josefsson.org>.
49822 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
49823             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
49824             Bruno Haible  <bruno@clisp.org>  (tiny change)
49826         On Cygwin, use /proc file system instead of win32 API.
49827         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
49828         Win32 file names.
49829         (DllMain): Simplify by removing Cygwin specific code.
49830         (find_shared_library_fullname): Use Linux specific implementation also
49831         for Cygwin.
49832         (get_shared_library_fullname): Update accordingly.
49833         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
49834         Win32 file names.
49835         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
49836         Cygwin specific code.
49838 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
49839             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
49841         Fix OpenMP flag detection for various Fortran compilers.
49842         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
49843         OpenMP-conditional compilation construct, to force compile
49844         failure with missing OpenMP flag.
49845         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
49847 2011-02-25  Eric Blake  <eblake@redhat.com>
49849         strstr: expand test coverage
49850         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
49851         compilation.
49852         * tests/test-memmem.c (main): Duplicate tests.
49853         * tests/test-strcasestr.c (main): Likewise.
49854         * tests/test-c-strcasestr.c (main): Likewise.
49856 2011-02-25  Jim Meyering  <meyering@redhat.com>
49858         maint.mk: detect missing-NL-at-EOF, too
49859         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
49860         it also detects when a file lacks a newline at EOF.
49861         (require_exactly_one_NL_at_EOF_): Renamed from
49862         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
49863         since people may well have .x-sc_... file names tied to the
49864         existing name.  Suggested by Eric Blake.
49866 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49868         dirname: move m4/dos.m4 functionality into lib/dosname.h
49870         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
49871         extracts symbols from it, puts them into config.h; but it's much
49872         easier to use the symbols directly.  filename.h already does this,
49873         but it disagrees with dos.m4 in some respects.  This patch
49874         introduces a different include file dosname.h that packages up
49875         dos.m4, and then later we can work on merging filename.h and
49876         dosname.h.  Applications that need only the easy-to-configure
49877         symbols should consider including dosname.h rather than dirname.h.
49878         * NEWS: Mention incompatible changes.
49879         * m4/dos.m4: Remove.
49880         * lib/dosname.h, modules/dosname: New files.
49881         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
49882         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
49883         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
49884         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
49885         Include dosname.h, not dirname.h.
49886         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
49887         Include dosname.h, for definitions of symbols like ISSLASH
49888         that used to be in config.h.
49889         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
49890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
49891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
49892         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
49893         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
49894         * modules/rmdir (Files): Likewise.
49895         * modules/stat (Files): Likewise.
49896         * modules/unlink (Files): Likewise.
49897         * modules/dirname-lgpl (Depends-on): Add dosname.
49898         * modules/lstat (Depends-on): Likewise.
49899         * modules/openat (Depends-on): Likewise.
49900         * modules/rmdir (Depends-on): Likewise.
49901         * modules/savewd (Depends-on): Likewise.
49902         * modules/stat (Depends-on): Likewise.
49903         * modules/unlink (Depends-on): Likewise.
49904         * modules/openat (Depends-on): Remove dirname-lgpl.
49905         * modules/savewd (Depends-on): Likewise.
49906         * tests/test-dirname.c: Do not use removed symbols like
49907         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
49908         the remaining symbols, e.g., ISSLASH ('\\').
49910 2011-02-25  Eric Blake  <eblake@redhat.com>
49912         strstr: revert patches that introduced bug and pessimization
49913         * lib/str-two-way.h: Add another reference.
49914         (two_way_short_needle, two_way_long_needle): Revert changes from
49915         2011-02-24; they pessimize search speed.
49916         (critical_factorization): Partially revert changes from
49917         2010-06-22; they violate the requirement that the left half of the
49918         needle be smaller than the period of the needle.
49920 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49922         filenamecat: remove unnecessary dependency on dirname-lgpl
49923         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
49924         is no direct dependency, just an indirect one via filenamecat-lgpl.
49926         remove: remove unnecessary use of m4/dos.m4
49927         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
49928         * modules/remove (FILES): Remove m4/dos.m4.
49930         * lib/openat-proc.c: Don't include dirname.h; not needed.
49932         backupfile: remove unnecessary use of m4/dos.m4
49933         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
49934         of its symbols are used by the backupfile code.  backupfile.c does
49935         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
49936         for the rare case of programs that want all their backup file
49937         names to live within 8+3 limits, and dos.m4 doesn't address that.
49938         * modules/backupfile (Files): Remove m4/dos.m4.
49940 2011-02-24  Jim Meyering  <meyering@redhat.com>
49942         strstr: fix a bug whereby strstr would mistakenly return NULL
49943         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
49944         in period calculation.
49945         (two_way_long_needle): Likewise.
49946         The original problem was reported by Mike Stump in
49947         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
49948         Ralf Wildenhues provided the short needle and haystack.
49949         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
49950         Add a more involved test to trigger the bug in two_way_long_needle.
49952 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49954         gnulib-tool: remove use of bold display in help screen
49955         * gnulib-tool (func_usage): Do not use bold display anymore in the
49956         help screen.  That was just meant to be a temporary emphasis for a
49957         backward-incompatible change.
49959 2011-02-23  Bruno Haible  <bruno@clisp.org>
49961         Fix misindentation of preprocessor directives.
49962         * lib/argp-namefrob.h: Reindent preprocessor directives.
49963         * lib/getopt_int.h (struct _getopt_data): Likewise.
49964         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
49965         * lib/vasnprintf.c (decode_long_double): Likewise.
49966         * tests/test-argmatch.c: Insert blank lines, for clarity.
49967         * tests/test-exclude.c: Likewise.
49969 2011-02-22  Bruno Haible  <bruno@clisp.org>
49971         ioctl: Fix for MacOS X in 64-bit mode.
49972         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
49973         value.
49974         Suggested by Eric Blake.
49975         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
49977 2011-02-22  Jim Meyering  <meyering@redhat.com>
49979         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
49980         * Makefile (sc_cpp_indent_check): Don't limit the check to files
49981         in lib/.
49983 2011-02-22  Eric Blake  <eblake@redhat.com>
49985         maint: avoid any CDPATH issue
49986         * Makefile (sc_cpp_indent_check): Anchor cd argument.
49988         maint: adjust cpp indentation for my modules, as well
49989         * Makefile (sc_cpp_indent_check): Add my name.
49990         * lib/fbufmode.c: Filter through cppi.
49991         * lib/fpurge.c: Likewise.
49992         * lib/freadable.c: Likewise.
49993         * lib/freading.c: Likewise.
49994         * lib/fwritable.c: Likewise.
49995         * lib/fwriting.c: Likewise.
49996         * lib/sigaction.c: Likewise.
49998 2011-02-22  Jim Meyering  <meyering@redhat.com>
50000         maint: adjust cpp indentation to reflect nesting depth
50001         I.e., in a block of code that begins with an unnested "#if",
50002         put one space between the "#" in column 1 and following token.
50003         For example,
50004         -#include <sys/vfs.h>
50005         +# include <sys/vfs.h>
50006         Do this only in .c files that are part of a module I maintain.
50007         * lib/linkat.c: Filter through cppi.
50008         * lib/nanosleep.c: Likewise.
50009         * lib/openat.c: Likewise.
50010         * lib/openat-die.c: Likewise.
50011         * lib/dup3.c: Likewise.
50012         * lib/fchownat.c: Likewise.
50013         * lib/flock.c: Likewise.
50014         * lib/fsync.c: Likewise.
50015         * lib/fts.c: Likewise.
50016         * lib/getpass.c: Likewise.
50017         * lib/gettimeofday.c: Likewise.
50018         * lib/userspec.c: Likewise.
50019         * Makefile (sc_cpp_indent_check): New rule, to check this.
50021 2011-02-22  Bruno Haible  <bruno@clisp.org>
50023         New module 'wctomb'.
50024         * lib/stdlib.in.h (wctomb): New declaration.
50025         * lib/wctomb.c: New file.
50026         * lib/wctomb-impl.h: New file.
50027         * m4/wctomb.m4: New file.
50028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
50029         REPLACE_WCTOMB.
50030         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
50031         REPLACE_WCTOMB.
50032         * modules/wctomb: New file.
50033         * tests/test-stdlib-c++.cc: Test signature of wctomb.
50034         * doc/posix-functions/wctomb.texi: Mention the new module.
50035         * modules/wctob (Depends-on): Add wctomb.
50037 2011-02-22  Bruno Haible  <bruno@clisp.org>
50039         New module 'mbtowc'.
50040         * lib/stdlib.in.h (mbtowc): New declaration.
50041         * lib/mbtowc.c: New file.
50042         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
50043         * m4/mbtowc.m4: New file.
50044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
50045         REPLACE_MBTOWC.
50046         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
50047         REPLACE_MBTOWC.
50048         * modules/mbtowc: New file.
50049         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
50050         * doc/posix-functions/mbtowc.texi: Mention the new module.
50051         * modules/btowc (Depends-on): Add mbtowc.
50053 2011-02-22  Bruno Haible  <bruno@clisp.org>
50055         wcrtomb: Add more tests for native Windows platforms.
50056         * tests/test-wcrtomb-w32-1.sh: New file.
50057         * tests/test-wcrtomb-w32-2.sh: New file.
50058         * tests/test-wcrtomb-w32-3.sh: New file.
50059         * tests/test-wcrtomb-w32-4.sh: New file.
50060         * tests/test-wcrtomb-w32-5.sh: New file.
50061         * tests/test-wcrtomb-w32.c: New file.
50062         * modules/wcrtomb-tests (Files): Add them.
50063         (Makefile.am): Arrange to run these tests.
50064         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
50065         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
50067 2011-02-20  Bruno Haible  <bruno@clisp.org>
50069         wcrtomb: Enhance test.
50070         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
50072 2011-02-20  Bruno Haible  <bruno@clisp.org>
50074         mbrtowc: Tiny optimization.
50075         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
50077 2011-02-20  Jim Meyering  <meyering@redhat.com>
50079         test-exclude.c: remove unmatched #endif
50080         * tests/test-exclude.c: Remove stray #endif, left over from
50081         the change of a week ago.
50083 2011-02-19  Jim Meyering  <meyering@redhat.com>
50085         git-version-gen: skip "-dirty" check when appropriate
50086         * build-aux/git-version-gen: Don't run any git commands when the
50087         version string comes from .tarball-version.  Prior to this, we
50088         would run git update-index --refresh even from a just-unpacked
50089         tarball directory, and that could affect a .git/ directory in a
50090         parent of the build directory.  Reported by Mike Frysinger.
50092 2011-02-19  Bruno Haible  <bruno@clisp.org>
50094         unictype/property-byname: Reduce the size of the 'data' segment.
50095         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
50097 2011-02-19  Bruno Haible  <bruno@clisp.org>
50099         unictype/scripts: Reduce the size of the 'data' segment.
50100         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
50101         '%pic'.
50102         * lib/unictype/scripts_byname.gperf: Regenerated.
50104 2011-02-19  Bruno Haible  <bruno@clisp.org>
50106         stdint: Update documentation.
50107         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
50109 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
50111         stdint: omit redundant check for wchar.h
50112         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
50113         always tests whether wchar.h exists, so remove the now-redundant test.
50115 2011-02-18  Bruno Haible  <bruno@clisp.org>
50117         stdint: Cut dependency to module 'wchar'.
50118         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
50119         include the necessary prerequisites.
50120         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
50121         * modules/stdint (Depends-on): Remove wchar.
50122         (Makefile.am): Substitute HAVE_WCHAR_H.
50123         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
50125 2011-02-18  Eric Blake  <eblake@redhat.com>
50127         longlong: skip, rather than fail, on cross-compilation
50128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
50129         when cross-compiling; regression from 2011-02-16.
50131 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50133         * NEWS: Mention 2011-02-08 change to stdlib.
50135 2011-02-17  Bruno Haible  <bruno@clisp.org>
50137         getloadavg: Add comments about platforms.
50138         * m4/getloadavg.m4: Add comment.
50139         * lib/getloadavg.c: Likewise.
50141 2011-02-17  Bruno Haible  <bruno@clisp.org>
50143         getloadavg: Fix link error on Solaris 2.6.
50144         * modules/getloadavg (Link): New section.
50145         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
50146         linking test-getloadavg.
50147         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
50148         getloadavg.
50150 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
50152         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
50153         It was 'int', but this doesn't match the IRIX 6.5 manual.
50154         Suggested by Bruno Haible in
50155         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
50157 2011-02-17  Bruno Haible  <bruno@clisp.org>
50159         havelib: Fix comments.
50160         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
50161         change.
50163 2011-02-17  Bruno Haible  <bruno@clisp.org>
50165         havelib: Update config.rpath.
50166         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
50168 2011-02-17  Bruno Haible  <bruno@clisp.org>
50170         getloadavg test: Add some plausibility checks.
50171         * tests/test-getloadavg.c (check_avg): Print a warning when the value
50172         is improbable.
50174 2011-02-16  Eric Blake  <eblake@redhat.com>
50176         maintainer-makefile: make syntax-check a no-op from tarballs
50177         * top/maint.mk (no-vc-detected): New rule.
50178         (local-checks-available): Use it to avoid hanging if someone tries
50179         'make syntax-check' from a tarball.  Also append to any non-syntax
50180         checks already defined in cfg.mk.
50182 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
50184         longlong: tune, particularly for common case of c99
50186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
50187         or running anything if c99, or if unsigned long long int does not
50188         work.  In either case, we know the answer without further tests.
50189         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
50190         it at most once, and use its results for both long long int and
50191         unsigned long long int.  This is more likely to be efficient in
50192         the common case where the program wants to check for both long
50193         long int and unsigned long long int.
50194         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
50195         since the answer is already known.
50197 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
50199         getloadavg: set errno
50200         * lib/getloadavg.c: Set errno when returning -1.  If no other
50201         error number looks appropriate, set it to ENOSYS if the getloadavg
50202         looks like it can't possibly ever work, ENOTSUP otherwise.
50203         Suggested by Bruno Haible in
50204         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
50206         getloadavg: trim unused parts and speed up 'configure'
50207         * NEWS: Document this.
50208         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
50209         always compiled if getloadavg is absent.
50210         Move test code to ...
50211         * tests/test-getloadavg.c: New file, containing previous
50212         contents of test from lib/getloadavg.c.  It also contains
50213         suggestions by Bruno Haible in
50214         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
50215         * modules/getloadavg-tests: New file.
50216         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
50217         Do tests in the same order as they're needed for getloadavg.c.
50218         Omit setgid-related tests that generate symbols KMEM_GROUP,
50219         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
50220         Do only the tests that are needed to see whether the system has
50221         getloadavg, moving the other tests into ...
50222         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
50223         NLIST_NAME_UNION; nobody should be using it.  Do not define
50224         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
50225         relevant, as the user of this module shouldn't care how getloadavg
50226         is implemented.
50228         getloadavg: omit unused var
50229         * lib/getloadavg.c (getloadavg): Omit unused local variable.
50231 2011-02-15  Jim Meyering  <meyering@redhat.com>
50233         doc: update users.txt
50234         * users.txt: Update iwhd's URL.
50236 2011-02-13  Bruno Haible  <bruno@clisp.org>
50238         Consistent macro naming for macros that use GCC __attribute__.
50239         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
50240         _ATTRIBUTE_NONNULL_.
50241         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
50242         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
50243         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
50244         ATTRIBUTE_DEPRECATED.
50245         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
50246         ATTRIBUTE_NORETURN.
50247         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50248         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50249         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50250         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
50251         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
50252         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
50253         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
50254         ATTRIBUTE_SENTINEL.
50255         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
50256         ATTRIBUTE_RETURN_CHECK.
50257         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
50258         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
50259         ATTRIBUTE_NORETURN.
50260         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
50261         Reported by Paul Eggert.
50263 2011-02-13  Bruno Haible  <bruno@clisp.org>
50265         Don't interfere with a program's definition of __attribute__.
50266         * lib/argp.h (__attribute__): Remove definition.
50267         (_GL_ATTRIBUTE_FORMAT): New macro.
50268         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
50269         * lib/argp-fmtstream.h (__attribute__): Remove definition.
50270         (_GL_ATTRIBUTE_FORMAT): New macro.
50271         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
50272         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
50273         GCC 3 or newer.
50274         * lib/error.h (__attribute__): Remove definition.
50275         (_GL_ATTRIBUTE_FORMAT): New macro.
50276         (error, error_at_line): Use it.
50277         * lib/hash.h (__attribute__): Remove definition.
50278         (ATTRIBUTE_WUR): Update definition. Define always.
50279         * lib/openat.h (__attribute__): Remove definition.
50280         (ATTRIBUTE_NORETURN): Update definition. Define always.
50281         * lib/sigpipe-die.h (__attribute__): Remove definition.
50282         (ATTRIBUTE_NORETURN): Update definition. Define always.
50283         * lib/vasnprintf.h (__attribute__): Remove definition.
50284         (_GL_ATTRIBUTE_FORMAT): New macro.
50285         (asnprintf, vasnprintf): Use it.
50286         * lib/xalloc.h (__attribute__): Remove definition.
50287         (ATTRIBUTE_NORETURN): Update definition. Define always.
50288         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
50289         * lib/xmemdup0.h (__attribute__): Remove definition.
50290         (ATTRIBUTE_NORETURN): Update definition. Define always.
50291         * lib/xprintf.h (__attribute__): Remove definition.
50292         (_GL_ATTRIBUTE_FORMAT): New macro.
50293         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
50294         * lib/xstrtol.h (__attribute__): Remove definition.
50295         (ATTRIBUTE_NORETURN): Update definition. Define always.
50296         * lib/xvasprintf.h (__attribute__): Remove definition.
50297         (_GL_ATTRIBUTE_FORMAT): New macro.
50298         (xasprintf, xvasprintf): Use it.
50299         * tests/test-argmatch.c (__attribute__): Remove definition.
50300         (ATTRIBUTE_NORETURN): Update definition. Define always.
50301         * tests/test-exclude.c (__attribute__): Remove definition.
50302         (ATTRIBUTE_NORETURN): Update definition. Define always.
50303         Reported by Paul Eggert.
50305 2011-02-13  Bruno Haible  <bruno@clisp.org>
50307         mbrtowc: Add more tests for native Windows platforms.
50308         * tests/test-mbrtowc-w32-1.sh: New file.
50309         * tests/test-mbrtowc-w32-2.sh: New file.
50310         * tests/test-mbrtowc-w32-3.sh: New file.
50311         * tests/test-mbrtowc-w32-4.sh: New file.
50312         * tests/test-mbrtowc-w32-5.sh: New file.
50313         * tests/test-mbrtowc-w32.c: New file.
50314         * modules/mbrtowc-tests (Files): Add them.
50315         (Makefile.am): Arrange to run these tests.
50316         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
50317         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
50319 2011-02-13  Bruno Haible  <bruno@clisp.org>
50321         mbrtowc: Work around native Windows bug.
50322         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
50323         guess when no suitable locale for testing was found.
50324         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
50326 2011-02-13  Bruno Haible  <bruno@clisp.org>
50328         mbsinit: Work around mingw bug.
50329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
50330         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
50331         Windows.
50332         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
50334 2011-02-13  Bruno Haible  <bruno@clisp.org>
50336         mbsinit: Don't crash for a NULL argument.
50337         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
50338         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
50340 2011-02-13  Bruno Haible  <bruno@clisp.org>
50342         Don't interfere with a program's definition of __attribute__.
50343         * lib/stdio.in.h (__attribute__): Remove definition.
50344         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
50345         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
50346         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
50347         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
50348         * lib/string.in.h (__attribute__): Remove definition.
50349         Reported by Paul Eggert.
50351 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50353         stdlib: don't get in the way of non-GCC __attribute__
50354         See thread starting at
50355         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
50356         Revert previous stdlib change, installing the following instead:
50357         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
50358         to get in the way of a non-GCC compiler that supports __attribute__.
50359         (_GL_ATTRIBUTE_RETURN): New macro.
50360         (_Exit): Use it instead of __attribute__.
50362 2011-02-12  Bruno Haible  <bruno@clisp.org>
50364         quotearg test: Avoid test failure on mingw.
50365         * tests/test-quotearg.sh: Convert the locale identifier from native
50366         Windows syntax to Unix syntax.
50368 2011-02-12  Bruno Haible  <bruno@clisp.org>
50370         setlocale: Prefer gnulib's override over libintl's override.
50371         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
50372         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
50373         GNULIB_defined_setlocale is set.
50375 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50377         stdlib: support non-GCC __attribute__
50379         Fix a serious and tricky problem encountered when attempting to
50380         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
50381         5.5, but it crashed due to memory corruption on Solaris 10 with
50382         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
50383         bits that are otherwise zero.  This tagging is optional inside
50384         Emacs but is preferred and is used when __attribute__ ((__aligned
50385         (8))) works, as it does with both recent-enough GCC and with Sun C
50386         5.11.  However, Sun C 5.11 is not GCC and does not #define
50387         __GNUC__ and __GNUC_MINOR__.
50389         When I added the getloadavg module to Emacs, it brought in
50390         stdlib.in.h, which contained this fragment:
50392            #ifndef __attribute__
50393            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
50394            #  define __attribute__(Spec)   /* empty */
50395            # endif
50396            #endif
50398         When files that include <stdlib.h> were compiled with Sun C 5.11,
50399         the above code disabled __attribute__ ((__aligned (8))), which
50400         caused variables to not be properly aligned, which eventually led
50401         to the pointer corruption mentioned above.  (This was a bit hard
50402         to diagnose, unfortunately.)
50404         Several "#define __attribute__(X) /* empty */" code snippets need
50405         to be eradicated from Gnulib to work with non-GCC compilers that
50406         support __attribute__.  The Autoconf way to do this is to test for
50407         each kind of attribute that we want support for, and selectively
50408         enable that in source code.
50410         Fix this problem just for stdlib.h, by adding a test for the
50411         __noreturn__ attribute, and change stdlib.in.h to use that test
50412         when needed.  This technique can be easily generalized to the
50413         other *.in.h files and attributes, and a similar technique can be
50414         used for *.h and *.c files.  This patch is enough to solve the
50415         problem for Emacs + getloadavg, and I thought I'd publish it for
50416         feedback before undertaking further, similar fixes in other
50417         modules.
50419         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
50420         because it's not needed for stdlib.h.  It merely substitutes the
50421         value directly into stdlib.h.  We may well need to #define it, or
50422         similar symbols, for other modules, but it's nice to also have an
50423         option to not #define it for applications like Emacs that do not
50424         need it.
50426         * lib/stdlib.in.h (__attribute__): Do not #define.
50427         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
50428         be defined only if the _Exit module is also used.
50429         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
50430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
50431         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
50432         platforms.
50433         * modules/_Exit (Files): Add m4/attribute.m4.
50434         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
50435         * m4/attribute.m4: New file.
50437 2011-02-12  Bruno Haible  <bruno@clisp.org>
50439         wcsrtombs: Work around bug on native Windows.
50440         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
50441         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
50442         instead of len.
50443         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
50445 2011-02-12  Bruno Haible  <bruno@clisp.org>
50447         mbsrtowcs: Work around bug on native Windows.
50448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
50449         against mingw bug.
50450         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
50452 2011-02-12  Bruno Haible  <bruno@clisp.org>
50454         Avoid setlocale bugs in tests.
50455         * modules/btowc (Dependencies): Add setlocale.
50456         * modules/c-strcase (Dependencies): Likewise.
50457         * modules/mbmemcasecmp (Dependencies): Likewise.
50458         * modules/mbmemcasecoll (Dependencies): Likewise.
50459         * modules/mbrtowc (Dependencies): Likewise.
50460         * modules/mbscasecmp (Dependencies): Likewise.
50461         * modules/mbscasestr (Dependencies): Likewise.
50462         * modules/mbschr (Dependencies): Likewise.
50463         * modules/mbscspn (Dependencies): Likewise.
50464         * modules/mbsinit (Dependencies): Likewise.
50465         * modules/mbsncasecmp (Dependencies): Likewise.
50466         * modules/mbsnrtowcs (Dependencies): Likewise.
50467         * modules/mbspbrk (Dependencies): Likewise.
50468         * modules/mbspcasecmp (Dependencies): Likewise.
50469         * modules/mbsrchr (Dependencies): Likewise.
50470         * modules/mbsrtowcs (Dependencies): Likewise.
50471         * modules/mbsspn (Dependencies): Likewise.
50472         * modules/mbsstr (Dependencies): Likewise.
50473         * modules/nl_langinfo (Dependencies): Likewise.
50474         * modules/quotearg (Dependencies): Likewise.
50475         * modules/unicase/locale-language (Dependencies): Likewise.
50476         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
50477         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
50478         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
50479         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
50480         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
50481         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
50482         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
50483         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
50484         * modules/vasnprintf-posix (Dependencies): Likewise.
50485         * modules/wcrtomb (Dependencies): Likewise.
50486         * modules/wcsnrtombs (Dependencies): Likewise.
50487         * modules/wcsrtombs (Dependencies): Likewise.
50489 2011-02-12  Bruno Haible  <bruno@clisp.org>
50491         setlocale: Workaround native Windows bug.
50492         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
50493         succeeds but sets LC_CTYPE to "C", report a failure.
50494         * tests/test-setlocale2.sh: New file.
50495         * tests/test-setlocale2.c: New file.
50496         * modules/setlocale-tests (Files): Add the new files.
50497         (Makefile.am): Enable test-setlocale2.sh test.
50498         * doc/posix-functions/setlocale.texi: Mention workaround.
50500 2011-02-11  Bruno Haible  <bruno@clisp.org>
50502         Tests for module 'setlocale'.
50503         * modules/setlocale-tests: New file.
50504         * tests/test-setlocale1.sh: New file.
50505         * tests/test-setlocale1.c: New file.
50507         New module 'setlocale'.
50508         * lib/locale.in.h (setlocale): New declaration.
50509         * lib/setlocale.c: New file, based on
50510         gettext/gettext-runtime/intl/setlocale.c.
50511         * m4/setlocale.m4: New file.
50512         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
50513         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
50514         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
50515         REPLACE_SETLOCALE.
50516         * modules/setlocale: New file.
50517         * tests/test-locale-c++.cc: Test the declaration of setlocale.
50518         * doc/posix-functions/setlocale.texi: Mention the new module.
50520 2011-02-11  Bruno Haible  <bruno@clisp.org>
50522         Prepare for locale dependent tests on mingw.
50523         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
50524         because it has the wrong locale encoding.
50525         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
50526         French_France.1252 instead of "fr".
50527         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
50528         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
50529         because it has the wrong locale encoding.
50530         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
50531         native Windows, try Turkish_Turkey.65001.
50532         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
50533         Chinese_China.54936.
50535         Prepare for locale dependent tests on mingw.
50536         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
50537         differently.
50538         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
50539         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
50540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50543 2011-02-11  Eric Blake  <eblake@redhat.com>
50545         strptime: avoid compiler warnings
50546         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
50547         compiler warnings about dead code.
50548         Reported by Daniel P. Berrange.
50550 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
50552         doc: update users.txt
50553         * users.txt: Add rcs.
50555 2011-02-10  John W. Eaton  <jwe@gnu.org>
50557         doc: update users.txt
50558         * users.txt: Add octave.
50560 2011-02-10  Jim Meyering  <meyering@redhat.com>
50562         doc: update users.txt
50563         * users.txt: Add iwhd.
50565 2011-02-09  Bruno Haible  <bruno@clisp.org>
50567         gnulib-tool: Make copyright notice adjustment more robust.
50568         * gnulib-tool (func_import): In sed_transform_main_lib_file,
50569         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
50570         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
50571         License".
50572         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
50574 2011-02-06  Bruno Haible  <bruno@clisp.org>
50576         New module 'towctrans'.
50577         * modules/towctrans: New file.
50578         * lib/wctype.in.h (towctrans): New declaration.
50579         * lib/towctrans.c: New file.
50580         * lib/towctrans-impl.h: New file.
50581         * m4/towctrans.m4: New file.
50582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
50583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
50584         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
50585         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
50586         * doc/posix-functions/towctrans.texi: Mention the new module.
50588 2011-02-06  Bruno Haible  <bruno@clisp.org>
50590         New module 'wctrans'.
50591         * modules/wctrans: New file.
50592         * lib/wctype.in.h (wctrans): New declaration.
50593         * lib/wctrans.c: New file.
50594         * lib/wctrans-impl.h: New file.
50595         * m4/wctrans.m4: New file.
50596         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
50597         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
50598         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
50599         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
50600         * doc/posix-functions/wctrans.texi: Mention the new module.
50602 2011-02-06  Bruno Haible  <bruno@clisp.org>
50604         New module 'iswctype'.
50605         * modules/iswctype: New file.
50606         * lib/wctype.in.h (iswctype): New declaration.
50607         * lib/iswctype.c: New file.
50608         * lib/iswctype-impl.h: New file.
50609         * m4/iswctype.m4: New file.
50610         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
50611         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
50612         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
50613         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
50614         * doc/posix-functions/iswctype.texi: Mention the new module and the
50615         HP-UX 11.00 problem.
50617 2011-02-06  Bruno Haible  <bruno@clisp.org>
50619         New module 'wctype'.
50620         * modules/wctype: Change to represent the wctype() substitute.
50621         * lib/wctype.in.h (wctype): New declaration.
50622         * lib/wctype.c: New file.
50623         * lib/wctype-impl.h: New file.
50624         * m4/wctype.m4: New file.
50625         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
50626         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
50627         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
50628         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
50629         * doc/posix-functions/wctype.texi: Mention the new module and the
50630         HP-UX 11.00 problem.
50632 2011-02-06  Bruno Haible  <bruno@clisp.org>
50634         wctype-h: Ensure wctype_t and wctrans_t are defined.
50635         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
50636         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
50637         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
50638         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
50639         HAVE_WCTRANS_T.
50640         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
50642 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
50644         flock: fix license typo
50646         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
50647         omitted.
50649 2011-02-08  Bruno Haible  <bruno@clisp.org>
50651         Split large sed scripts, for HP-UX sed.
50652         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
50653         to avoid HP-UX limit of 99 commands, in the near future.
50654         * modules/stdlib (Makefile.am): Likewise.
50655         * modules/unistd (Makefile.am): Likewise.
50656         * modules/wchar (Makefile.am): Likewise.
50657         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50658         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
50659         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
50661 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
50662             Bruno Haible  <bruno@clisp.org>
50664         stdlib: improve random_r modularization
50665         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
50666         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
50667         you also need the random_r module to get this material right.
50668         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
50669         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
50670         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
50672 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
50674         stdlib: don't depend on stdint
50675         * lib/stdlib.in.h: Don't include <stdint.h> merely because
50676         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
50677         be independent of whether stdint.h is needed.
50678         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
50679         here, instead of ...
50680         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
50681         struct random_data should be using the random_r module, not just
50682         the stdlib module (which wouldn't make sense: what package needs
50683         just struct random_data without also needing random_r?).
50684         * modules/stdlib (Depends-on): Remove stdint.
50686         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
50687         See the thread rooted at
50688         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
50689         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
50690         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
50691         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
50692         __VMS)); previously it was always included (via fcntl--.h).
50693         (getloadavg): Do not use c_strtod.  Instead, approximate it by
50694         hand; this is good enough for load averages.  Also, do not use
50695         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
50696         flags directly if available and don't bother otherwise.  (Packages
50697         that need the extra reliability should use the modules that define
50698         these flags on older platforms that lack them.)
50699         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
50700         fcntl-safer.
50702 2011-02-08  Jim Meyering  <meyering@redhat.com>
50704         di-set.h, ino-map.h: add multiple-inclusion guard
50705         Technically, the guard is required only for ino-map.h, due to its
50706         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
50707         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
50708         * lib/ino-map.h: Likewise.
50710 2011-02-06  Bruno Haible  <bruno@clisp.org>
50712         iswblank: Ensure declaration on glibc systems.
50713         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
50714         * modules/iswblank (Dependencies): Add 'extensions'.
50715         * doc/posix-functions/iswblank.texi: Document the glibc problem.
50717 2011-02-06  Bruno Haible  <bruno@clisp.org>
50719         New module 'iswblank'.
50720         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
50721         * modules/iswblank: New file.
50722         * modules/wctype-h (Files): Remove lib/iswblank.c.
50723         (Makefile.am): Substitute GNULIB_ISWBLANK.
50724         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
50725         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
50726         (gl_WCTYPE_H_DEFAULTS): New macro.
50727         (gl_WCTYPE_H): Require it. Remove iswblank related code.
50728         * modules/iswblank-tests: New file.
50729         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
50730         * tests/test-wctype-h.c (main): Remove iswblank tests.
50731         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
50732         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
50733         of 'wctype-h'.
50734         * NEWS: Mention the change.
50735         * modules/mbchar (Depends-on): Add iswblank.
50737 2011-02-08  Bruno Haible  <bruno@clisp.org>
50739         di-set tests: Refactor.
50740         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
50741         unnecessary includes.
50742         (ASSERT): Remove macro.
50743         (main): Make C90 compliant by avoiding variable declaration after
50744         statement.
50745         * modules/di-set-tests (Files): Add tests/macros.h.
50747 2011-02-08  Bruno Haible  <bruno@clisp.org>
50749         ino-map tests: Refactor.
50750         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
50751         unnecessary includes.
50752         (ASSERT): Remove macro.
50753         (main): Make C90 compliant by avoiding variable declaration after
50754         statement.
50755         * modules/ino-map-tests (Files): Add tests/macros.h.
50757 2011-02-08  Jim Meyering  <meyering@redhat.com>
50759         di-set: add "const" to a cast
50760         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
50761         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
50763 2011-02-06  Bruno Haible  <bruno@clisp.org>
50765         Rename module 'wctype' to 'wctype-h'.
50766         * modules/wctype-h: Renamed from modules/wctype.
50767         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
50768         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
50769         (Files, Depends-on, Makefile.am): Update.
50770         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
50771         (Files, Makefile.am): Update.
50772         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
50773         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
50774         * doc/posix-headers/wctype.texi: Update.
50775         * doc/posix-functions/iswalnum.texi: Update.
50776         * doc/posix-functions/iswalpha.texi: Update.
50777         * doc/posix-functions/iswblank.texi: Update.
50778         * doc/posix-functions/iswcntrl.texi: Update.
50779         * doc/posix-functions/iswdigit.texi: Update.
50780         * doc/posix-functions/iswgraph.texi: Update.
50781         * doc/posix-functions/iswlower.texi: Update.
50782         * doc/posix-functions/iswprint.texi: Update.
50783         * doc/posix-functions/iswpunct.texi: Update.
50784         * doc/posix-functions/iswspace.texi: Update.
50785         * doc/posix-functions/iswupper.texi: Update.
50786         * doc/posix-functions/iswxdigit.texi: Update.
50787         * doc/posix-functions/towlower.texi: Update.
50788         * doc/posix-functions/towupper.texi: Update.
50789         * NEWS: Mention the change.
50790         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
50791         * modules/mbchar (Dependencies): Likewise.
50792         * modules/mbswidth (Dependencies): Likewise.
50793         * modules/quotearg (Dependencies): Likewise.
50794         * modules/regex (Dependencies): Likewise.
50795         * modules/wcscasecmp (Dependencies): Likewise.
50796         * modules/wcsncasecmp (Dependencies): Likewise.
50797         * modules/wcwidth (Dependencies): Likewise.
50799 2011-02-06  Bruno Haible  <bruno@clisp.org>
50801         New module 'wcswidth'.
50802         * modules/wcswidth: New file.
50803         * lib/wchar.in.h (wcswidth): New declaration.
50804         * lib/wcswidth.c: New file.
50805         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
50806         * m4/wcswidth.m4: New file.
50807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
50808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
50809         REPLACE_WCSWIDTH.
50810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
50811         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
50812         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
50813         * doc/posix-functions/wcswidth.texi: Mention the new module.
50815 2011-02-06  Bruno Haible  <bruno@clisp.org>
50817         New module 'wcstok'.
50818         * modules/wcstok: New file.
50819         * lib/wchar.in.h (wcstok): New declaration.
50820         * lib/wcstok.c: New file.
50821         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
50822         * m4/wcstok.m4: New file.
50823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
50824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
50825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
50826         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
50827         * doc/posix-functions/wcstok.texi: Mention the new module.
50829 2011-02-06  Bruno Haible  <bruno@clisp.org>
50831         New module 'wcsstr'.
50832         * modules/wcsstr: New file.
50833         * lib/wchar.in.h (wcsstr): New declaration.
50834         * lib/wcsstr.c: New file.
50835         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
50836         * m4/wcsstr.m4: New file.
50837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
50838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
50839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
50840         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
50841         * doc/posix-functions/wcsstr.texi: Mention the new module.
50843 2011-02-06  Bruno Haible  <bruno@clisp.org>
50845         New module 'wcspbrk'.
50846         * modules/wcspbrk: New file.
50847         * lib/wchar.in.h (wcspbrk): New declaration.
50848         * lib/wcspbrk.c: New file.
50849         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
50850         * m4/wcspbrk.m4: New file.
50851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
50852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
50853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
50854         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
50855         * doc/posix-functions/wcspbrk.texi: Mention the new module.
50857 2011-02-06  Bruno Haible  <bruno@clisp.org>
50859         New module 'wcsspn'.
50860         * modules/wcsspn: New file.
50861         * lib/wchar.in.h (wcsspn): New declaration.
50862         * lib/wcsspn.c: New file.
50863         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
50864         * m4/wcsspn.m4: New file.
50865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
50866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
50867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
50868         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
50869         * doc/posix-functions/wcsspn.texi: Mention the new module.
50871 2011-02-06  Bruno Haible  <bruno@clisp.org>
50873         New module 'wcscspn'.
50874         * modules/wcscspn: New file.
50875         * lib/wchar.in.h (wcscspn): New declaration.
50876         * lib/wcscspn.c: New file.
50877         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
50878         * m4/wcscspn.m4: New file.
50879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
50880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
50881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
50882         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
50883         * doc/posix-functions/wcscspn.texi: Mention the new module.
50885 2011-02-06  Bruno Haible  <bruno@clisp.org>
50887         New module 'wcsrchr'.
50888         * modules/wcsrchr: New file.
50889         * lib/wchar.in.h (wcsrchr): New declaration.
50890         * lib/wcsrchr.c: New file.
50891         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
50892         * m4/wcsrchr.m4: New file.
50893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
50894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
50895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
50896         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
50897         * doc/posix-functions/wcsrchr.texi: Mention the new module.
50899 2011-02-06  Bruno Haible  <bruno@clisp.org>
50901         New module 'wcschr'.
50902         * modules/wcschr: New file.
50903         * lib/wchar.in.h (wcschr): New declaration.
50904         * lib/wcschr.c: New file.
50905         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
50906         * m4/wcschr.m4: New file.
50907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
50908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
50909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
50910         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
50911         * doc/posix-functions/wcschr.texi: Mention the new module.
50913 2011-02-06  Bruno Haible  <bruno@clisp.org>
50915         New module 'wcsdup'.
50916         * modules/wcsdup: New file.
50917         * lib/wchar.in.h (wcsdup): New declaration.
50918         * lib/wcsdup.c: New file.
50919         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
50920         * m4/wcsdup.m4: New file.
50921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
50922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
50923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
50924         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
50925         * doc/posix-functions/wcsdup.texi: Mention the new module.
50927 2011-02-06  Bruno Haible  <bruno@clisp.org>
50929         New module 'wcsxfrm'.
50930         * modules/wcsxfrm: New file.
50931         * lib/wchar.in.h (wcsxfrm): New declaration.
50932         * lib/wcsxfrm.c: New file.
50933         * lib/wcsxfrm-impl.h: New file.
50934         * m4/wcsxfrm.m4: New file.
50935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
50936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
50937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
50938         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
50939         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
50941 2011-02-06  Bruno Haible  <bruno@clisp.org>
50943         New module 'wcscoll'.
50944         * modules/wcscoll: New file.
50945         * lib/wchar.in.h (wcscoll): New declaration.
50946         * lib/wcscoll.c: New file.
50947         * lib/wcscoll-impl.h: New file.
50948         * m4/wcscoll.m4: New file.
50949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
50950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
50951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
50952         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
50953         * doc/posix-functions/wcscoll.texi: Mention the new module.
50955 2011-02-06  Bruno Haible  <bruno@clisp.org>
50957         New module 'wcsncasecmp'.
50958         * modules/wcsncasecmp: New file.
50959         * lib/wchar.in.h (wcsncasecmp): New declaration.
50960         * lib/wcsncasecmp.c: New file.
50961         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
50962         * m4/wcsncasecmp.m4: New file.
50963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
50964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
50965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
50966         HAVE_WCSNCASECMP.
50967         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
50968         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
50970 2011-02-06  Bruno Haible  <bruno@clisp.org>
50972         New module 'wcscasecmp'.
50973         * modules/wcscasecmp: New file.
50974         * lib/wchar.in.h (wcscasecmp): New declaration.
50975         * lib/wcscasecmp.c: New file.
50976         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
50977         * m4/wcscasecmp.m4: New file.
50978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
50979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
50980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
50981         HAVE_WCSCASECMP.
50982         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
50983         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
50985 2011-02-05  Bruno Haible  <bruno@clisp.org>
50987         New module 'wcsncmp'.
50988         * modules/wcsncmp: New file.
50989         * lib/wchar.in.h (wcsncmp): New declaration.
50990         * lib/wcsncmp.c: New file.
50991         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
50992         * m4/wcsncmp.m4: New file.
50993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
50994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
50995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
50996         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
50997         * doc/posix-functions/wcsncmp.texi: Mention the new module.
50999 2011-02-05  Bruno Haible  <bruno@clisp.org>
51001         New module 'wcscmp'.
51002         * modules/wcscmp: New file.
51003         * lib/wchar.in.h (wcscmp): New declaration.
51004         * lib/wcscmp.c: New file.
51005         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
51006         * m4/wcscmp.m4: New file.
51007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
51008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
51009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
51010         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
51011         * doc/posix-functions/wcscmp.texi: Mention the new module.
51013 2011-02-05  Bruno Haible  <bruno@clisp.org>
51015         New module 'wcsncat'.
51016         * modules/wcsncat: New file.
51017         * lib/wchar.in.h (wcsncat): New declaration.
51018         * lib/wcsncat.c: New file.
51019         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
51020         * m4/wcsncat.m4: New file.
51021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
51022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
51023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
51024         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
51025         * doc/posix-functions/wcsncat.texi: Mention the new module.
51027 2011-02-05  Bruno Haible  <bruno@clisp.org>
51029         New module 'wcscat'.
51030         * modules/wcscat: New file.
51031         * lib/wchar.in.h (wcscat): New declaration.
51032         * lib/wcscat.c: New file.
51033         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
51034         * m4/wcscat.m4: New file.
51035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
51036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
51037         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
51038         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
51039         * doc/posix-functions/wcscat.texi: Mention the new module.
51041 2011-02-05  Bruno Haible  <bruno@clisp.org>
51043         New module 'wcpncpy'.
51044         * modules/wcpncpy: New file.
51045         * lib/wchar.in.h (wcpncpy): New declaration.
51046         * lib/wcpncpy.c: New file.
51047         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
51048         * m4/wcpncpy.m4: New file.
51049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
51050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
51051         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
51052         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
51053         * doc/posix-functions/wcpncpy.texi: Mention the new module.
51055 2011-02-05  Bruno Haible  <bruno@clisp.org>
51057         New module 'wcsncpy'.
51058         * modules/wcsncpy: New file.
51059         * lib/wchar.in.h (wcsncpy): New declaration.
51060         * lib/wcsncpy.c: New file.
51061         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
51062         * m4/wcsncpy.m4: New file.
51063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
51064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
51065         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
51066         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
51067         * doc/posix-functions/wcsncpy.texi: Mention the new module.
51069 2011-02-05  Bruno Haible  <bruno@clisp.org>
51071         New module 'wcpcpy'.
51072         * modules/wcpcpy: New file.
51073         * lib/wchar.in.h (wcpcpy): New declaration.
51074         * lib/wcpcpy.c: New file.
51075         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
51076         * m4/wcpcpy.m4: New file.
51077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
51078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
51079         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
51080         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
51081         * doc/posix-functions/wcpcpy.texi: Mention the new module.
51083 2011-02-05  Bruno Haible  <bruno@clisp.org>
51085         New module 'wcscpy'.
51086         * modules/wcscpy: New file.
51087         * lib/wchar.in.h (wcscpy): New declaration.
51088         * lib/wcscpy.c: New file.
51089         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
51090         * m4/wcscpy.m4: New file.
51091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
51092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
51093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
51094         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
51095         * doc/posix-functions/wcscpy.texi: Mention the new module.
51097 2011-02-05  Bruno Haible  <bruno@clisp.org>
51099         New module 'wcsnlen'.
51100         * modules/wcsnlen: New file.
51101         * lib/wchar.in.h (wcsnlen): New declaration.
51102         * lib/wcsnlen.c: New file.
51103         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
51104         * m4/wcsnlen.m4: New file.
51105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
51106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
51107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
51108         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
51109         * doc/posix-functions/wcsnlen.texi: Mention the new module.
51111 2011-02-05  Bruno Haible  <bruno@clisp.org>
51113         New module 'wcslen'.
51114         * modules/wcslen: New file.
51115         * lib/wchar.in.h (wcslen): New declaration.
51116         * lib/wcslen.c: New file.
51117         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
51118         * m4/wcslen.m4: New file.
51119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
51120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
51121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
51122         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
51123         * doc/posix-functions/wcslen.texi: Mention the new module.
51125 2011-02-05  Bruno Haible  <bruno@clisp.org>
51127         New module 'wmemset'.
51128         * modules/wmemset: New file.
51129         * lib/wchar.in.h (wmemset): New declaration.
51130         * lib/wmemset.c: New file.
51131         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
51132         * m4/wmemset.m4: New file.
51133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
51134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
51135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
51136         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
51137         * doc/posix-functions/wmemset.texi: Mention the new module.
51139 2011-02-05  Bruno Haible  <bruno@clisp.org>
51141         New module 'wmemmove'.
51142         * modules/wmemmove: New file.
51143         * lib/wchar.in.h (wmemmove): New declaration.
51144         * lib/wmemmove.c: New file.
51145         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
51146         * m4/wmemmove.m4: New file.
51147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
51148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
51149         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
51150         HAVE_WMEMMOVE.
51151         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
51152         * doc/posix-functions/wmemmove.texi: Mention the new module.
51154 2011-02-05  Bruno Haible  <bruno@clisp.org>
51156         New module 'wmemcpy'.
51157         * modules/wmemcpy: New file.
51158         * lib/wchar.in.h (wmemcpy): New declaration.
51159         * lib/wmemcpy.c: New file.
51160         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
51161         * m4/wmemcpy.m4: New file.
51162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
51163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
51164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
51165         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
51166         * doc/posix-functions/wmemcpy.texi: Mention the new module.
51168 2011-02-05  Bruno Haible  <bruno@clisp.org>
51170         New module 'wmemcmp'.
51171         * modules/wmemcmp: New file.
51172         * lib/wchar.in.h (wmemcmp): New declaration.
51173         * lib/wmemcmp.c: New file.
51174         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
51175         * m4/wmemcmp.m4: New file.
51176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
51177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
51178         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
51179         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
51180         * doc/posix-functions/wmemcmp.texi: Mention the new module.
51182 2011-02-07  Jim Meyering  <meyering@redhat.com>
51184         di-set, ino-map: new modules, from coreutils
51185         * lib/di-set.c: New file.
51186         * lib/di-set.h: Likewise.
51187         * lib/ino-map.c: Likewise.
51188         * lib/ino-map.h: Likewise.
51189         * modules/di-set: Likewise.
51190         * modules/di-set-tests: Likewise.
51191         * modules/ino-map: Likewise.
51192         * modules/ino-map-tests: Likewise.
51193         * tests/test-di-set.c: Likewise.
51194         * tests/test-ino-map.c: Likewise.
51196 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
51198         getloadavg: merge minor changes from Emacs
51200         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
51201         (getloadavg): Use memset, not bzero.
51203         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
51204         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
51205         clash (bug#86).
51207 2010-11-14  Bruno Haible  <bruno@clisp.org>
51209         Allow multiple gnulib generated replacements to coexist.
51210         * lib/getopt.in.h (struct option): Avoid identical redefinition.
51211         * lib/inttypes.in.h (imaxdiv_t): Likewise.
51212         * lib/langinfo.in.h (nl_item): Likewise.
51213         * lib/math.in.h (_NaN, NAN): Likewise.
51214         * lib/netdb.in.h (struct addrinfo): Likewise.
51215         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
51216         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
51217         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
51218         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
51219         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
51220         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
51221         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
51222         pthread_mutexattr_init, pthread_mutexattr_settype,
51223         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
51224         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
51225         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
51226         pthread_spin_trylock, pthread_spin_unlock): Likewise.
51227         * lib/sched.in.h (struct sched_param): Likewise.
51228         * lib/se-selinux.in.h (security_class_t, security_context_t,
51229         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
51230         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
51231         lsetfilecon, fsetfilecon, security_check_context,
51232         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
51233         Likewise.
51234         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
51235         Likewise.
51236         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
51237         _gl_function_taking_int_returning_void_t, union sigval,
51238         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
51239         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
51240         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
51241         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
51242         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
51243         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
51244         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
51245         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
51246         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
51247         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
51248         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
51249         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
51250         socklen_t, rpl_fd_isset): Likewise.
51251         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
51252         * lib/sys_time.in.h (struct timeval): Likewise.
51253         * lib/sys_times.in.h (struct tms): Likewise.
51254         * lib/sys_utsname.in.h (struct utsname):
51255         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
51256         * lib/unistd.in.h (getpagesize): Likewise.
51257         * lib/wchar.in.h (mbstate_t): Likewise.
51258         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51259         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
51260         towlower, towupper): Likewise.
51261         Reported by Sam Steingold <sds@gnu.org>.
51263 2011-02-05  Eric Blake  <eblake@redhat.com>
51265         unsetenv: work around Haiku issues
51266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
51267         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
51269 2010-12-30  Bruce Korb  <bkorb@gnu.org>
51271         libposix: avoid calling error() within libposix
51272         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
51273         is defined.
51275 2011-02-05  Eric Blake  <eblake@redhat.com>
51277         strerror_r-posix: port to cygwin
51278         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
51279         implementation.
51280         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
51281         * tests/test-strerror_r.c (main): Fix test.
51282         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51283         issue.
51285 2011-02-05  Bruno Haible  <bruno@clisp.org>
51287         New module 'wmemchr'.
51288         * modules/wmemchr: New file.
51289         * lib/wchar.in.h (wmemchr): New declaration.
51290         * lib/wmemchr.c: New file.
51291         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
51292         * m4/wmemchr.m4: New file.
51293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
51294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
51295         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
51296         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
51297         * doc/posix-functions/wmemchr.texi: Mention the new module.
51299 2011-02-04  Eric Blake  <eblake@redhat.com>
51301         fdopendir: detect FreeBSD bug
51302         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
51303         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
51305 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
51307         stdbool: do not define HAVE_STDBOOL_H
51308         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
51309         AC_HEADER_STDBOOL.  All uses changed.  Do not define
51310         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
51311         imported from the latest Autoconf git.  It was motivated by Emacs,
51312         which uses gnulib but does not need HAVE_STDBOOL_H.
51314 2011-02-04  Bruno Haible  <bruno@clisp.org>
51316         wcsnrtombs: Prepare for new module wwcsnrtombs.
51317         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
51318         * lib/wcsnrtombs.c: Include it.
51319         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
51321         wcsrtombs: Prepare for new module wwcsrtombs.
51322         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
51323         * lib/wcsrtombs.c: Include it.
51324         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
51326         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
51327         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
51328         * lib/mbsnrtowcs.c: Include it.
51329         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
51331         mbsrtowcs: Prepare for new module mbsrtowwcs.
51332         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
51333         * lib/mbsrtowcs.c: Include it.
51334         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
51336 2011-02-04  Bruno Haible  <bruno@clisp.org>
51338         vasnprintf: Reduce use of malloc for small format strings.
51339         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
51340         (arguments): Add room for the first 7 arguments.
51341         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
51342         (char_directives, u8_directives, u16_directives, u32_directives): Add
51343         room for the first 7 directives.
51344         * lib/printf-parse.c: Include <string.h>.
51345         (PRINTF_PARSE): Change memory handling code so that it uses the first
51346         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
51347         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
51348         Reported by Pádraig Brady <P@draigbrady.com>.
51350 2011-01-31  Eric Blake  <eblake@redhat.com>
51352         dup2: work around Haiku bug
51353         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
51354         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
51355         * doc/posix-functions/dup2.texi (dup2): Document the bug.
51356         * tests/test-dup2.c (main): Enhance test.
51358 2011-01-31  Simon Josefsson  <simon@josefsson.org>
51360         doc: off_t is not available in eglibc 2.11.2 stdio.h.
51361         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
51362         declared by eglibc 2.11.2.
51363         * lib/stdio.in.h: Likewise.
51365 2011-01-31  Eric Blake  <eblake@redhat.com>
51367         ignore-value: add missing test dependency
51368         * tests/test-ignore-value.c: Revert previous change; stdio.h
51369         provides off_t.
51370         * modules/ignore-value-tests (Depends-on): Add missing dependency.
51372 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
51374         mktime: clarify long_int width checking
51375         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
51376         the top level, to make it clearer that the assumption about
51377         long_int width is being checked.  See
51378         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
51380 2011-01-30  Simon Josefsson  <simon@josefsson.org>
51382         ignore-value: Fix self-test.
51383         * tests/test-ignore-value.c: Include sys/types.h for off_t.
51385 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
51387         TYPE_MAXIMUM: avoid theoretically undefined behavior
51388         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
51389         negative number, which the C Standard says has undefined behavior.
51390         In practice this is not a problem, but might as well do it by the book.
51391         Reported by Rich Felker and Eric Blake; see
51392         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
51393         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
51394         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51396         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
51397         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51398         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
51400         mktime: #undef mktime before #defining it
51401         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
51403         mktime: systematically normalize tm_isdst comparisons
51404         * lib/mktime.c (isdst_differ): New function.
51405         (__mktime_internal): Use it systematically for all isdst comparisons.
51406         This completes the fix for libc BZ #6723, and removes the need for
51407         normalizing tm_isdst.  See
51408         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
51409         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
51411         mktime: fix some integer overflow issues and sidestep the rest
51413         This was prompted by a bug report by Benjamin Lindner for MinGW
51414         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
51415         His bug is due to signed integer overflow (0 - INT_MIN), and I
51416         I scanned through mktime.c looking for other integer overflow
51417         problems, fixing all the bugs I found.
51419         Although the C Standard says the resulting code is still not safe
51420         in the presence of integer overflow, in practice it should be good
51421         enough for all real-world two's-complement implementations, except
51422         for debugging environments that deliberately trap on integer
51423         overflow (e.g., gcc -ftrapv).
51425         * lib/mktime.c (WRAPV): New macro.
51426         (SHR): Also check that long_int and time_t shift right in the
51427         usual way, before using the fast-but-unportable method.
51428         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
51429         used.  The code already assumed two's complement, so there's
51430         no need to test for alternatives.  All uses removed.
51431         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
51432         the C standard.  Problem reported by Rich Felker in
51433         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
51434         (twos_complement_arithmetic): Also check long_int and time_t.
51435         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
51436         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
51437         (__mktime_internal): Avoid integer overflow with unary subtraction
51438         in two instances where -1 - X is an adequate replacement for -X,
51439         since the calculations are approximate.
51441 2011-01-29  Eric Blake  <eblake@redhat.com>
51443         mktime: avoid infinite loop
51444         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
51445         type; behavior is still undefined but portable to all known targets.
51446         Reported by Rich Felker.
51448 2011-01-29  Simon Josefsson  <simon@josefsson.org>
51450         rename, unlink, same-inode: Relicense.
51451         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
51452         * modules/unlink (License): Likewise.
51453         * modules/same-inode (License): Likewise.
51455 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51457         mktime: avoid problems on NetBSD 5 / i386
51458         * lib/mktime.c (long_int): New type.  This works around a problem
51459         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
51460         but time_t is 64 bits, and where I expect the existing code is
51461         wrong in some cases.
51462         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
51463         (ydhms_diff): Bring back the compile-time check for wide-enough
51464         year and yday.
51466         mktime: fix misspelling in comment
51467         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
51468         This merges all recent glibc changes of importance.
51470 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51472         move-if-change: cope with concurrent mv of identical file.
51473         * build-aux/move-if-change (CMPPROG): Accept environment
51474         variable as an override for `cmp'.
51475         (usage): Document CMPPROG.
51476         Adjust comparison to drop stdout.  Cope with failure of mv if
51477         the target file exists and is identical to the source, for
51478         parallel builds.
51479         Report from H.J. Lu against binutils in PR binutils/12283.
51481 2011-01-28  Bruce Korb  <bkorb@gnu.org>
51483         * users.txt: Mention sharutils.
51485 2011-01-28  Simon Josefsson  <simon@josefsson.org>
51487         * users.txt: Mention OATH Toolkit.
51489 2011-01-27  Bruno Haible  <bruno@clisp.org>
51491         Prepare for supporting FreeBSD 10.
51492         * build-aux/config.libpath: Remove handling of freebsd1*.
51494 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
51496         Prepare for supporting FreeBSD 10.
51497         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
51498         match FreeBSD 10.0.
51500 2011-01-27  Bruno Haible  <bruno@clisp.org>
51502         vma-iter, get-rusage-as: Add OpenBSD support.
51503         * modules/vma-iter (configure.ac): Test for mquery.
51504         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
51505         * lib/vma-iter.c: Include <sys/mman.h>.
51506         (vma_iterate): Add an implementation based on mquery().
51507         * lib/resource-ext.h (get_rusage_as): Update comments.
51508         * lib/get-rusage-as.c: Likewise.
51509         * lib/get-rusage-data.c: Likewise.
51511 2011-01-26  Karl Berry  <karl@gnu.org>
51513         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
51514         variables to make it easier to override the makeinfo program used.
51516 2011-01-26  Eric Blake  <eblake@redhat.com>
51518         fcntl: work around Haiku F_DUPFD bugs
51519         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
51520         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
51521         cloexec bit on duplication.
51522         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
51524 2011-01-26  Bruno Haible  <bruno@clisp.org>
51526         Enable memory leak tests on AIX.
51527         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
51528         * tests/test-fprintf-posix3.c (main): Likewise.
51530 2011-01-26  Bruno Haible  <bruno@clisp.org>
51532         Tests for module 'get-rusage-data'.
51533         * modules/get-rusage-data-tests: New file.
51534         * tests/test-get-rusage-data.c: New file.
51536         New module 'get-rusage-data'.
51537         * lib/resource-ext.h (get_rusage_data): New declaration.
51538         * lib/get-rusage-data.c: New file.
51539         * modules/get-rusage-data: New file.
51541 2011-01-25  Bruno Haible  <bruno@clisp.org>
51543         get-rusage-as: Allow for easier testing.
51544         * lib/resource-ext.h (get_rusage_as): Add comment.
51545         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
51546         (main): New function for interactive testing.
51548 2011-01-25  Bruno Haible  <bruno@clisp.org>
51550         vma-iter: Treat Haiku like BeOS.
51551         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
51552         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
51554 2011-01-25  Eric Blake  <eblake@redhat.com>
51556         c-stack: fix regression on cygwin when libsigsegv is present
51557         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
51559 2011-01-24  Bruno Haible  <bruno@clisp.org>
51561         vma-iter: Avoid empty intervals.
51562         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
51563         on an empty interval.
51565 2011-01-24  Jim Meyering  <meyering@redhat.com>
51567         u64: remove unnecessary #include
51568         * lib/u64.h: Don't include <stddef.h>.  It was not used.
51570 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51572         Allow the user to avoid the HAVE_RAW_DECL_* macros.
51573         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
51575 2011-01-23  Bruno Haible  <bruno@clisp.org>
51577         New module 'vma-iter'.
51578         * lib/vma-iter.h: New file.
51579         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
51580         * modules/vma-iter: New file.
51581         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
51582         for get_rusage_as_via_iterator.
51583         (vma_iterate_callback): New function.
51584         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
51585         * modules/get-rusage-as (Depends-on): Add vma-iter.
51587 2011-01-23  Bruno Haible  <bruno@clisp.org>
51589         uninorm: Tweak includes.
51590         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
51591         Reported by Jim Meyering.
51593 2011-01-23  Bruno Haible  <bruno@clisp.org>
51595         get-rusage-as: Improve on NetBSD.
51596         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
51597         /proc, like on FreeBSD.
51599 2011-01-23  Jim Meyering  <meyering@redhat.com>
51601         xreadlink.h: remove unnecessary #include
51602         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
51604         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
51605         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
51607 2011-01-23  Bruno Haible  <bruno@clisp.org>
51609         get-rusage-as: Fix bug.
51610         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
51611         original limit when aborting the first loop.
51613 2011-01-23  Bruno Haible  <bruno@clisp.org>
51615         wctype: Ensure valid C syntax.
51616         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
51617         unconditionally, instead of gl_NEXT_HEADERS conditionally.
51619 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51621         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
51622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
51623         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
51624         as they are needed only for configure's test case.
51625         This removes two unnecessary symbols from config.h.
51627         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
51628         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
51629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
51630         AC_CHECK_HEADERS_ONCE on a header that we also invoke
51631         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
51632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
51633         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
51634         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
51635         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51636         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
51637         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
51638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51641         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
51642         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51643         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
51644         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
51646 2011-01-21  Eric Blake  <eblake@redhat.com>
51648         maintainer-makefile: work with older git for submodule check
51649         * top/maint.mk (public-submodule-commit): Rewrite to avoid
51650         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
51651         Reported by Matthias Bolte.
51653         bootstrap: minor portability fixes
51654         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
51655         (usage): Omit leading capital and trailing . on help phrases, per
51656         GNU Coding Standards.
51657         (check_versions, top level): Prefix messages with script name.
51659 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
51661         bootstrap: support --no-git option
51662         * build-aux/bootstrap: Add --no-git option, to be used when
51663         --gnulib-srcdir points to the exact desired checkout.
51665 2011-01-21  Eric Blake  <eblake@redhat.com>
51667         strerror_r-posix: work with glibc 2.13
51668         * lib/strerror_r.c (strerror_r): Fix return type.
51670 2011-01-21  Pádraig Brady  <P@draigBrady.com>
51671             Bruno Haible  <bruno@clisp.org>
51673         uN_strstr: New unit tests.
51674         * modules/unistr/u8-strstr-tests: New file.
51675         * modules/unistr/u16-strstr-tests: New file.
51676         * modules/unistr/u32-strstr-tests: New file.
51677         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
51678         * tests/unistr/test-u8-strstr.c: New file.
51679         * tests/unistr/test-u16-strstr.c: New file.
51680         * tests/unistr/test-u32-strstr.c: New file.
51682 2011-01-21  Pádraig Brady  <P@draigBrady.com>
51683             Bruno Haible  <bruno@clisp.org>
51685         Make uN_strstr functions O(n) worst-case.
51686         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
51687         16-bit and 32-bit unit cases, use the unibyte algorithm from
51688         lib/mbsstr.c.
51689         * lib/unistr/u8-strstr.c: Include <string.h>.
51690         (UNIT_IS_UINT8_T): New macro.
51691         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
51692         (U_STRLEN, U_STRNLEN): New macros.
51693         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
51694         (U_STRLEN, U_STRNLEN): New macros.
51695         * modules/unistr/u8-strstr (Depends-on): Add strstr.
51696         (configure.ac): Update required libunistring version.
51697         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
51698         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
51699         malloca.
51700         (configure.ac): Update required libunistring version.
51701         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
51702         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
51703         malloca.
51704         (configure.ac): Update required libunistring version.
51706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
51707             Bruno Haible  <bruno@clisp.org>
51709         Prepare for faster uN_strstr functions.
51710         * lib/str-kmp.h: Support definable UNITs.
51711         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
51712         needle_len argument.
51713         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
51714         * lib/mbscasestr.c (mbscasestr): Likewise.
51716 2011-01-21  Pádraig Brady  <P@draigBrady.com>
51718         malloca-tests: make faster by unsetting MALLOC_PERTURB_
51719         * tests/test-malloca.c (main): Unset the environment variable
51720         to greatly speed up the test.
51721         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
51722         * modules/malloca-tests: Depend on unsetenv.
51724 2011-01-21  Pádraig Brady  <P@draigBrady.com>
51726         ignore-value: remove stdint dependency
51727         * lib/ignore-value.h: Remove <stdint.h>
51728         * modules/ignore-value: Remove stdint dependency.
51730 2011-01-21  Jim Meyering  <meyering@redhat.com>
51732         maint.mk: adjust variable name to be consistent with other gl_ vars
51733         * top/maint.mk (gl_public_submodule_commit): Rename the variable
51734         to be lower case.
51736 2011-01-20  Jim Meyering  <meyering@redhat.com>
51738         maint.mk: make "check" depend on public-submodule-commit by default
51739         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
51741 2011-01-20  Bruno Haible  <bruno@clisp.org>
51743         mbfile, mbiter: Complete change from 2008-12-21.
51744         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
51745         * m4/mbiter.m4 (gl_MBITER): Likewise.
51747 2011-01-20  Jim Meyering  <meyering@redhat.com>
51749         init.sh: insert space between each function name and "()"
51750         * tests/init.sh: Make it a little easier to see that a function's
51751         name is "warn_", and not "warn" when looking at the first part of
51752         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
51754 2011-01-20  Jim Meyering  <meyering@redhat.com>
51756         mountlist: clean up code formatting
51757         * lib/mountlist.c (read_file_system_list): Split a long line,
51758         correct bracing style, use NULL in place of "(struct statfs *)0",
51759         don't parenthesize return value, add spaces around "=" and after
51760         ";-in-for-stmt".
51762 2011-01-14  Markus Duft  <mduft@gentoo.org>
51764         mountlist: add support for Interix
51765         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
51766         Apply statvfs to all entries of /dev/fs.
51767         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
51768         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
51770 2011-01-20  Jim Meyering  <meyering@redhat.com>
51772         maint.mk: improve the public-submodule-commit rule
51773         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
51774         to suppress printing of its commands... unless V=1.
51775         Add git submodule's --quiet option to suppress printing of e.g.,
51776         "Entering gnulib" output.
51777         "cd" into $(srcdir) before running git submodule.
51779 2011-01-20  Bruno Haible  <bruno@clisp.org>
51781         include_next: Fix bug introduced on 2011-01-18.
51782         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
51783         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
51784         ac_cv_header_... variable if the second argument is not 'check'.
51785         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
51786         gl_NEXT_HEADERS_INTERNAL.
51788 2011-01-20  Bruno Haible  <bruno@clisp.org>
51790         Allow the user to avoid the GNULIB_TEST_* macros.
51791         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
51792         Suggested by Paul Eggert.
51794 2011-01-14  Jim Meyering  <meyering@redhat.com>
51796         bootstrap: avoid failure when there is no .gitmodules file
51797         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
51798         has been assigned to, even when its value is the empty string.
51799         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
51800         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
51801         Reported by John W. Eaton <jwe@gnu.org>.
51803 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51805         assume <ctype.h>, ..., <time.h> exist
51806         For years gnulib has been assuming the existence of the headers
51807         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
51808         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
51809         them, since they don't appear to be needed.
51810         * README (Portability guidelines): Document this.
51811         * lib/flock.c: Assume <fcntl.h> exists.
51812         * lib/regex_internal.h: Assume <locale.h> exists.
51813         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
51814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
51815         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
51816         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
51817         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
51818         * m4/regex.m4 (gl_REGEX): Likewise.
51819         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
51820         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
51821         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
51822         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
51823         * tests/test-argp.c: Likewise.
51824         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
51826         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
51827         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
51828         AA_APPLE_UNIVERSAL_BUILD.  See
51829         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
51830         * NEWS: Document this.
51832 2011-01-19  Eric Blake  <eblake@redhat.com>
51834         c-stack: assume stack overflow if SA_SIGINFO unsupported
51835         * lib/c-stack.c (SIGACTION_WORKS): Rename...
51836         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
51837         sigaction will work.
51838         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
51839         behavior match Linux.
51840         * tests/test-c-stack.c (main): Prefer NULL for pointers.
51842         stdbool-tests: accommodate Haiku
51843         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
51845         binary-io: fix O_TEXT on Haiku
51846         * modules/binary-io (Depends-on): Add fcntl-h.
51847         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
51848         than blindly undefining O_TEXT.
51849         Reported by Scott McCreary.
51851 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51853         include_next: do not check for standard headers like stddef.h
51855         I found this problem when modifying Emacs to use gnulib.
51856         I noticed that it added HAVE_STDDEF_H to config.h, even though
51857         gnulib always assumes <stddef.h> exists as per README and this
51858         symbol is unnecessary.
51859         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
51860         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
51861         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
51862         faster for headers like stddef.h that are known to exist.
51863         (gl_CHECK_NEXT_HEADERS): Use it.
51864         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
51865         rather than gl_CHECK_NEXT_HEADERS.
51866         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
51867         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
51869 2011-01-18  Eric Blake  <eblake@redhat.com>
51871         ansi-c++-opt: skip C++ dependency style if C++ is unused
51872         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
51873         tests when we know C++ compilation is not desired.
51874         Reported by Scott McCreary.
51876 2011-01-18  Bruno Haible  <bruno@clisp.org>
51878         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
51879         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
51880         (main): Perform test also when getrlimit and setrlimit don't exist or
51881         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
51882         limiting the address space size using setrlimit, compare the address
51883         space size before and after the test.
51884         * tests/test-dprintf-posix2.c: Likewise.
51885         * tests/test-fprintf-posix3.sh: Update skip messages.
51886         * tests/test-dprintf-posix2.sh: Likewise.
51887         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
51888         * modules/dprintf-posix-tests (Depends-on): Likewise.
51889         Reported by Bruce Korb <bkorb@gnu.org> and
51890         Gary V. Vaughan <gary@gnu.org>.
51892 2011-01-18  Bruno Haible  <bruno@clisp.org>
51894         get-rusage-as: Improvement for Cygwin.
51895         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
51896         areas that are merely reserved.
51898 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51900         strftime: remove dependencies on multibyte modules
51902         strftime depended on mbrlen, mbsinit, and wchar, but these modules
51903         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
51904         only if __osf__ is defined, and I suspect OSF doesn't need these
51905         other modules.  If my guess is wrong, we'll need to come up with a
51906         variant of strftime that doesn't need the multibyte modules.
51908         I discovered this problem when attempting modify Emacs to use the
51909         strftime module.  With the previous gnulib, this caused Emacs to
51910         need 31 new files, ranging from lib/config.charset to
51911         m4/wint_t.m4.  This was overkill and I expect would be offputting
51912         to the Emacs maintainers.  After this change, only 6 new files are
51913         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
51914         stdbool.m4, and tm_gmtoff.m4.
51916         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
51917         Suggested by Bruno Haible in
51918         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
51919         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
51920         and do not check for wchar.h.
51921         * modules/strftime (Files): Remove m4/mbstate_t.m4.
51922         (Depends-on): Remove mbrlen, mbsinit, wchar.
51924 2011-01-18  Bruno Haible  <bruno@clisp.org>
51926         Tests for module 'get-rusage-as'.
51927         * modules/get-rusage-as-tests: New file.
51928         * tests/test-get-rusage-as.c: New file.
51930         New module 'get-rusage-as'.
51931         * modules/get-rusage-as: New file.
51932         * lib/resource-ext.h: New file.
51933         * lib/get-rusage-as.c: New file.
51935 2011-01-17  Eric Blake  <eblake@redhat.com>
51937         sigaction: relax license from LGPLv3+ to LGPLv2+
51938         * modules/sigaction (License): Relax to LGPLv2+.
51940 2011-01-14  Bruno Haible  <bruno@clisp.org>
51942         filemode: Make function declarations usable in C++ mode.
51943         * lib/filemode.h: Enclose function declarations in extern "C" block.
51944         Reported by John W. Eaton <jwe@gnu.org>.
51946 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
51948         save-cwd: no longer include "xgetcwd.h"
51949         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
51950         This avoids a compilation failure in projects that use save-cwd
51951         without also using the xgetcwd module.
51953 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51955         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
51956         This is so that a program like Emacs, which needs only dtoastr,
51957         does not have to bother with distributing and compiling ftoastr
51958         and ldtoastr.
51959         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
51960         * modules/dtoastr, modules/ldtoastr: New files.
51961         * modules/ftoastr: Now works just for 'float'.
51962         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
51963         (Makefile.am): Remove ftoastr.h (not needed and no effect),
51964         dtoastr.c, ldtoastr.c.
51966 2011-01-11  Jim Meyering  <meyering@redhat.com>
51968         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
51969         There is no need to work around the lack of the fchdir function,
51970         since gnulib can now provide a replacement when required.
51971         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
51972         * modules/save-cwd (Depends-on): Add fchdir.
51974 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51976         openat, save-cwd: avoid xmalloc
51978         This removes a direct (but undocumented) dependency of openat on
51979         xalloc, along with an indirect dependency via save-cwd.  It also
51980         removes a dependency of save-cwd on xgetcwd, and thereby
51981         indirectly on xalloc.  This change causes the openat substitute
51982         to fall back on save_cwd when memory is tight, and for save_cwd to
51983         fail instead of dying when memory is tight, but that's good enough.
51984         Problem and initial idea for fix reported by Bastien Roucaries in
51985         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
51987         * lib/openat-proc.c: Include stdlib.h (for malloc), not
51988         xalloc.h (for xmalloc).
51989         (openat_proc_name): Use malloc, not xmalloc.
51990         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
51991         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
51993         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
51994         This avoids heap allocation for file names whose lengths are in
51995         the range 512..1023, with the upper bound increasing to at most
51996         4031 depending on the platform's PATH_MAX.  (We do not want
51997         pathmax.h here as it might supply a non-constant PATH_MAX.)
51998         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
51999         Perhaps they should be moved to malloca.h?
52000         (OPENAT_BUFFER_SIZE): Use them.
52002 2011-01-10  Bruno Haible  <bruno@clisp.org>
52004         doc: Update users.txt.
52005         * users.txt: Add recutils.
52007 2011-01-09  Karl Berry  <karl@gnu.org>
52009         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
52011         * doc/configmake.texi: New file.
52012         * doc/gnulib.texi: Include it.
52013         * modules/configmake: Move documentation from here.
52015 2011-01-09  Bruno Haible  <bruno@clisp.org>
52017         Update to Unicode 6.0.0.
52018         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
52019         (get_lbp): Update for Unicode 6.0.0.
52020         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
52021         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
52022         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
52023         U+11001, U+11038..U+11046. Remove U+06DE.
52024         (uc_width): Fix bounds of planes.
52025         * tests/uniwidth/test-uc_width2.sh: Same updates as in
52026         lib/uniwidth/width.c.
52027         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
52028         trailing whitespace removed.
52029         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
52030         without comments, but with the original copyright notice.
52031         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
52032         * lib/unicase/ignorable.h: Likewise.
52033         * lib/unicase/tocasefold.h: Likewise.
52034         * lib/unicase/tolower.h: Likewise.
52035         * lib/unicase/totitle.h: Likewise.
52036         * lib/unicase/toupper.h: Likewise.
52037         * lib/unictype/bidi_of.h: Likewise.
52038         * lib/unictype/blocks.h: Likewise.
52039         * lib/unictype/categ_C.h: Likewise.
52040         * lib/unictype/categ_Cn.h: Likewise.
52041         * lib/unictype/categ_L.h: Likewise.
52042         * lib/unictype/categ_Ll.h: Likewise.
52043         * lib/unictype/categ_Lm.h: Likewise.
52044         * lib/unictype/categ_Lo.h: Likewise.
52045         * lib/unictype/categ_Lu.h: Likewise.
52046         * lib/unictype/categ_M.h: Likewise.
52047         * lib/unictype/categ_Mc.h: Likewise.
52048         * lib/unictype/categ_Me.h: Likewise.
52049         * lib/unictype/categ_Mn.h: Likewise.
52050         * lib/unictype/categ_N.h: Likewise.
52051         * lib/unictype/categ_Nd.h: Likewise.
52052         * lib/unictype/categ_No.h: Likewise.
52053         * lib/unictype/categ_P.h: Likewise.
52054         * lib/unictype/categ_Po.h: Likewise.
52055         * lib/unictype/categ_S.h: Likewise.
52056         * lib/unictype/categ_Sc.h: Likewise.
52057         * lib/unictype/categ_Sk.h: Likewise.
52058         * lib/unictype/categ_Sm.h: Likewise.
52059         * lib/unictype/categ_So.h: Likewise.
52060         * lib/unictype/categ_of.h: Likewise.
52061         * lib/unictype/combining.h: Likewise.
52062         * lib/unictype/ctype_alnum.h: Likewise.
52063         * lib/unictype/ctype_alpha.h: Likewise.
52064         * lib/unictype/ctype_graph.h: Likewise.
52065         * lib/unictype/ctype_lower.h: Likewise.
52066         * lib/unictype/ctype_print.h: Likewise.
52067         * lib/unictype/ctype_punct.h: Likewise.
52068         * lib/unictype/ctype_upper.h: Likewise.
52069         * lib/unictype/decdigit.h: Likewise.
52070         * lib/unictype/digit.h: Likewise.
52071         * lib/unictype/numeric.h: Likewise.
52072         * lib/unictype/pr_alphabetic.h: Likewise.
52073         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52074         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52075         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52076         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52077         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52078         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52079         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52080         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52081         * lib/unictype/pr_case_ignorable.h: Likewise.
52082         * lib/unictype/pr_cased.h: Likewise.
52083         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
52084         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
52085         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
52086         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
52087         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
52088         * lib/unictype/pr_combining.h: Likewise.
52089         * lib/unictype/pr_composite.h: Likewise.
52090         * lib/unictype/pr_currency_symbol.h: Likewise.
52091         * lib/unictype/pr_decimal_digit.h: Likewise.
52092         * lib/unictype/pr_deprecated.h: Likewise.
52093         * lib/unictype/pr_format_control.h: Likewise.
52094         * lib/unictype/pr_grapheme_base.h: Likewise.
52095         * lib/unictype/pr_grapheme_extend.h: Likewise.
52096         * lib/unictype/pr_grapheme_link.h: Likewise.
52097         * lib/unictype/pr_id_continue.h: Likewise.
52098         * lib/unictype/pr_id_start.h: Likewise.
52099         * lib/unictype/pr_ideographic.h: Likewise.
52100         * lib/unictype/pr_lowercase.h: Likewise.
52101         * lib/unictype/pr_math.h: Likewise.
52102         * lib/unictype/pr_numeric.h: Likewise.
52103         * lib/unictype/pr_other_alphabetic.h: Likewise.
52104         * lib/unictype/pr_other_id_continue.h: Likewise.
52105         * lib/unictype/pr_other_math.h: Likewise.
52106         * lib/unictype/pr_punctuation.h: Likewise.
52107         * lib/unictype/pr_sentence_terminal.h: Likewise.
52108         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52109         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52110         * lib/unictype/pr_unified_ideograph.h: Likewise.
52111         * lib/unictype/pr_uppercase.h: Likewise.
52112         * lib/unictype/pr_xid_continue.h: Likewise.
52113         * lib/unictype/pr_xid_start.h: Likewise.
52114         * lib/unictype/scripts.h: Likewise.
52115         * lib/unictype/scripts_byname.gperf: Likewise.
52116         * lib/unictype/sy_java_ident.h: Likewise.
52117         * lib/unigbrk/gbrkprop.h: Likewise.
52118         * lib/unilbrk/lbrkprop1.h: Likewise.
52119         * lib/unilbrk/lbrkprop2.h: Likewise.
52120         * lib/uninorm/decomposition-table2.h: Likewise.
52121         * lib/uniwbrk/wbrkprop.h: Likewise.
52122         * tests/unicase/test-cased.c: Likewise.
52123         * tests/unicase/test-ignorable.c: Likewise.
52124         * tests/unicase/test-uc_tolower.c: Likewise.
52125         * tests/unicase/test-uc_totitle.c: Likewise.
52126         * tests/unicase/test-uc_toupper.c: Likewise.
52127         * tests/unictype/test-categ_C.c: Likewise.
52128         * tests/unictype/test-categ_Cn.c: Likewise.
52129         * tests/unictype/test-categ_L.c: Likewise.
52130         * tests/unictype/test-categ_Ll.c: Likewise.
52131         * tests/unictype/test-categ_Lm.c: Likewise.
52132         * tests/unictype/test-categ_Lo.c: Likewise.
52133         * tests/unictype/test-categ_Lu.c: Likewise.
52134         * tests/unictype/test-categ_M.c: Likewise.
52135         * tests/unictype/test-categ_Mc.c: Likewise.
52136         * tests/unictype/test-categ_Me.c: Likewise.
52137         * tests/unictype/test-categ_Mn.c: Likewise.
52138         * tests/unictype/test-categ_N.c: Likewise.
52139         * tests/unictype/test-categ_Nd.c: Likewise.
52140         * tests/unictype/test-categ_No.c: Likewise.
52141         * tests/unictype/test-categ_P.c: Likewise.
52142         * tests/unictype/test-categ_Po.c: Likewise.
52143         * tests/unictype/test-categ_S.c: Likewise.
52144         * tests/unictype/test-categ_Sc.c: Likewise.
52145         * tests/unictype/test-categ_Sk.c: Likewise.
52146         * tests/unictype/test-categ_Sm.c: Likewise.
52147         * tests/unictype/test-categ_So.c: Likewise.
52148         * tests/unictype/test-ctype_alnum.c: Likewise.
52149         * tests/unictype/test-ctype_alpha.c: Likewise.
52150         * tests/unictype/test-ctype_graph.c: Likewise.
52151         * tests/unictype/test-ctype_lower.c: Likewise.
52152         * tests/unictype/test-ctype_print.c: Likewise.
52153         * tests/unictype/test-ctype_punct.c: Likewise.
52154         * tests/unictype/test-ctype_upper.c: Likewise.
52155         * tests/unictype/test-decdigit.h: Likewise.
52156         * tests/unictype/test-digit.h: Likewise.
52157         * tests/unictype/test-numeric.h: Likewise.
52158         * tests/unictype/test-pr_alphabetic.c: Likewise.
52159         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52160         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52161         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52162         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52163         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52164         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52165         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52166         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52167         * tests/unictype/test-pr_case_ignorable.c: Likewise.
52168         * tests/unictype/test-pr_cased.c: Likewise.
52169         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
52170         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
52171         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
52172         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
52173         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
52174         * tests/unictype/test-pr_combining.c: Likewise.
52175         * tests/unictype/test-pr_composite.c: Likewise.
52176         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52177         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52178         * tests/unictype/test-pr_deprecated.c: Likewise.
52179         * tests/unictype/test-pr_format_control.c: Likewise.
52180         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52181         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52182         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52183         * tests/unictype/test-pr_id_continue.c: Likewise.
52184         * tests/unictype/test-pr_id_start.c: Likewise.
52185         * tests/unictype/test-pr_ideographic.c: Likewise.
52186         * tests/unictype/test-pr_lowercase.c: Likewise.
52187         * tests/unictype/test-pr_math.c: Likewise.
52188         * tests/unictype/test-pr_numeric.c: Likewise.
52189         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52190         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52191         * tests/unictype/test-pr_other_math.c: Likewise.
52192         * tests/unictype/test-pr_punctuation.c: Likewise.
52193         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52195         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52196         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52197         * tests/unictype/test-pr_uppercase.c: Likewise.
52198         * tests/unictype/test-pr_xid_continue.c: Likewise.
52199         * tests/unictype/test-pr_xid_start.c: Likewise.
52200         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
52201         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
52202         changes.
52203         * lib/unictype/categ_Cc.h: Likewise.
52204         * lib/unictype/categ_Cf.h: Likewise.
52205         * lib/unictype/categ_Co.h: Likewise.
52206         * lib/unictype/categ_Cs.h: Likewise.
52207         * lib/unictype/categ_Lt.h: Likewise.
52208         * lib/unictype/categ_Nl.h: Likewise.
52209         * lib/unictype/categ_Pc.h: Likewise.
52210         * lib/unictype/categ_Pd.h: Likewise.
52211         * lib/unictype/categ_Pe.h: Likewise.
52212         * lib/unictype/categ_Pf.h: Likewise.
52213         * lib/unictype/categ_Pi.h: Likewise.
52214         * lib/unictype/categ_Ps.h: Likewise.
52215         * lib/unictype/categ_Z.h: Likewise.
52216         * lib/unictype/categ_Zl.h: Likewise.
52217         * lib/unictype/categ_Zp.h: Likewise.
52218         * lib/unictype/categ_Zs.h: Likewise.
52219         * lib/unictype/ctype_blank.h: Likewise.
52220         * lib/unictype/ctype_cntrl.h: Likewise.
52221         * lib/unictype/ctype_digit.h: Likewise.
52222         * lib/unictype/ctype_space.h: Likewise.
52223         * lib/unictype/ctype_xdigit.h: Likewise.
52224         * lib/unictype/mirror.h: Likewise.
52225         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52226         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52227         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52228         * lib/unictype/pr_bidi_control.h: Likewise.
52229         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52230         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52231         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52232         * lib/unictype/pr_bidi_pdf.h: Likewise.
52233         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52234         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52235         * lib/unictype/pr_dash.h: Likewise.
52236         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52237         * lib/unictype/pr_diacritic.h: Likewise.
52238         * lib/unictype/pr_extender.h: Likewise.
52239         * lib/unictype/pr_hex_digit.h: Likewise.
52240         * lib/unictype/pr_hyphen.h: Likewise.
52241         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52242         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52243         * lib/unictype/pr_ignorable_control.h: Likewise.
52244         * lib/unictype/pr_iso_control.h: Likewise.
52245         * lib/unictype/pr_join_control.h: Likewise.
52246         * lib/unictype/pr_left_of_pair.h: Likewise.
52247         * lib/unictype/pr_line_separator.h: Likewise.
52248         * lib/unictype/pr_logical_order_exception.h: Likewise.
52249         * lib/unictype/pr_non_break.h: Likewise.
52250         * lib/unictype/pr_not_a_character.h: Likewise.
52251         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52252         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52253         * lib/unictype/pr_other_id_start.h: Likewise.
52254         * lib/unictype/pr_other_lowercase.h: Likewise.
52255         * lib/unictype/pr_other_uppercase.h: Likewise.
52256         * lib/unictype/pr_paired_punctuation.h: Likewise.
52257         * lib/unictype/pr_paragraph_separator.h: Likewise.
52258         * lib/unictype/pr_pattern_syntax.h: Likewise.
52259         * lib/unictype/pr_pattern_white_space.h: Likewise.
52260         * lib/unictype/pr_private_use.h: Likewise.
52261         * lib/unictype/pr_quotation_mark.h: Likewise.
52262         * lib/unictype/pr_radical.h: Likewise.
52263         * lib/unictype/pr_soft_dotted.h: Likewise.
52264         * lib/unictype/pr_space.h: Likewise.
52265         * lib/unictype/pr_titlecase.h: Likewise.
52266         * lib/unictype/pr_variation_selector.h: Likewise.
52267         * lib/unictype/pr_white_space.h: Likewise.
52268         * lib/unictype/pr_zero_width.h: Likewise.
52269         * lib/unictype/sy_c_ident.h: Likewise.
52270         * lib/unictype/sy_c_whitespace.h: Likewise.
52271         * lib/unictype/sy_java_whitespace.h: Likewise.
52272         * lib/uninorm/composition-table.gperf: Likewise.
52273         * lib/uninorm/decomposition-table1.h: Likewise.
52274         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
52275         LB8.
52276         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52277         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52278         * modules/unictype/*: Bump version number of expected libunistring
52279         version.
52281 2011-01-09  Bruno Haible  <bruno@clisp.org>
52283         Update to Unicode 5.2.0.
52284         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
52285         trailing whitespace removed.
52287 2011-01-09  Bruno Haible  <bruno@clisp.org>
52289         New Unicode character properties, from Unicode 5.2.0.
52290         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
52291         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
52292         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
52293         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
52294         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
52295         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
52296         uc_is_property_cased, uc_is_property_case_ignorable,
52297         uc_is_property_changes_when_lowercased,
52298         uc_is_property_changes_when_uppercased,
52299         uc_is_property_changes_when_titlecased,
52300         uc_is_property_changes_when_casefolded,
52301         uc_is_property_changes_when_casemapped): New declarations.
52302         * lib/unictype/pr_byname.gperf: Add the new properties.
52303         * modules/unictype/property-byname (Depends-on): Depend on the new
52304         properties modules.
52305         * modules/unictype/property-all (Depends-on): Likewise.
52306         * MODULES.html.sh (Unicode string functions): Add
52307         unictype/property-case-ignorable, unictype/property-cased,
52308         unictype/property-changes-when-casefolded,
52309         unictype/property-changes-when-casemapped,
52310         unictype/property-changes-when-lowercased,
52311         unictype/property-changes-when-titlecased,
52312         unictype/property-changes-when-uppercased.
52314         New module 'unictype/property-changes-when-casemapped'.
52315         * modules/unictype/property-changes-when-casemapped: New file.
52316         * lib/unictype/pr_changes_when_casemapped.c: New file.
52317         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
52318         generated by gen-uni-tables.
52319         * modules/unictype/property-changes-when-casemapped-tests: New file.
52320         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
52321         automatically generated by gen-uni-tables.
52323         New module 'unictype/property-changes-when-casefolded'.
52324         * modules/unictype/property-changes-when-casefolded: New file.
52325         * lib/unictype/pr_changes_when_casefolded.c: New file.
52326         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
52327         generated by gen-uni-tables.
52328         * modules/unictype/property-changes-when-casefolded-tests: New file.
52329         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
52330         automatically generated by gen-uni-tables.
52332         New module 'unictype/property-changes-when-titlecased'.
52333         * modules/unictype/property-changes-when-titlecased: New file.
52334         * lib/unictype/pr_changes_when_titlecased.c: New file.
52335         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
52336         generated by gen-uni-tables.
52337         * modules/unictype/property-changes-when-titlecased-tests: New file.
52338         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
52339         automatically generated by gen-uni-tables.
52341         New module 'unictype/property-changes-when-uppercased'.
52342         * modules/unictype/property-changes-when-uppercased: New file.
52343         * lib/unictype/pr_changes_when_uppercased.c: New file.
52344         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
52345         generated by gen-uni-tables.
52346         * modules/unictype/property-changes-when-uppercased-tests: New file.
52347         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
52348         automatically generated by gen-uni-tables.
52350         New module 'unictype/property-changes-when-lowercased'.
52351         * modules/unictype/property-changes-when-lowercased: New file.
52352         * lib/unictype/pr_changes_when_lowercased.c: New file.
52353         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
52354         generated by gen-uni-tables.
52355         * modules/unictype/property-changes-when-lowercased-tests: New file.
52356         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
52357         automatically generated by gen-uni-tables.
52359         New module 'unictype/property-case-ignorable'.
52360         * modules/unictype/property-case-ignorable: New file.
52361         * lib/unictype/pr_case_ignorable.c: New file.
52362         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
52363         by gen-uni-tables.
52364         * modules/unictype/property-case-ignorable-tests: New file.
52365         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
52366         generated by gen-uni-tables.
52368         New module 'unictype/property-cased'.
52369         * modules/unictype/property-cased: New file.
52370         * lib/unictype/pr_cased.c: New file.
52371         * lib/unictype/pr_cased.h: New file, automatically generated by
52372         gen-uni-tables.
52373         * modules/unictype/property-cased-tests: New file.
52374         * tests/unictype/test-pr_cased.c: New file, automatically generated by
52375         gen-uni-tables.
52377 2011-01-09  Bruno Haible  <bruno@clisp.org>
52379         Update to Unicode 5.2.0.
52380         * lib/gen-uni-tables.c (output_predicate, output_category,
52381         output_combclass, output_bidi_category, output_decimal_digit_test,
52382         output_decimal_digit, output_digit_test, output_digit,
52383         output_numeric_test, output_numeric, output_mirror, output_scripts,
52384         output_scripts_byname, output_blocks, output_ident_category): Fix
52385         comment header.
52386         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
52387         get_wbp.
52388         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
52389         items.
52390         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
52391         Changes_When_Lowercased, Changes_When_Uppercased,
52392         Changes_When_Titlecased, Changes_When_Casefolded,
52393         Changes_When_Casemapped.
52394         (is_property_alphabetic, is_property_default_ignorable_code_point):
52395         Update for Unicode 5.2.0.
52396         (is_property_cased, is_property_case_ignorable,
52397         is_property_changes_when_lowercased,
52398         is_property_changes_when_uppercased,
52399         is_property_changes_when_titlecased,
52400         is_property_changes_when_casefolded,
52401         is_property_changes_when_casemapped): New functions.
52402         (output_properties): Output also the properties cased, case_ignorable,
52403         changes_when_lowercased, changes_when_uppercased,
52404         changes_when_titlecased, changes_when_casefolded,
52405         changes_when_casemapped.
52406         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
52407         Unicode TR#11 revision 17 -> 19.
52408         (LBP_CP): New enumeration value.
52409         (LBP_*): Adjust values accordingly.
52410         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52411         TR#14 revision 22 -> 24.
52412         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
52413         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
52414         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
52415         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
52416         is_WBP_MIDLETTER.
52417         (output_composition_tables): Allow for 24 bits instead of 16 bits in
52418         the code1 and code2 of each composition rule.
52419         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
52420         * lib/unicase/ignorable.h: Likewise.
52421         * lib/unicase/tocasefold.h: Likewise.
52422         * lib/unicase/tolower.h: Likewise.
52423         * lib/unicase/totitle.h: Likewise.
52424         * lib/unicase/toupper.h: Likewise.
52425         * lib/unictype/bidi_of.h: Likewise.
52426         * lib/unictype/blocks.h: Likewise.
52427         * lib/unictype/categ_C.h: Likewise.
52428         * lib/unictype/categ_Cf.h: Likewise.
52429         * lib/unictype/categ_Cn.h: Likewise.
52430         * lib/unictype/categ_L.h: Likewise.
52431         * lib/unictype/categ_Ll.h: Likewise.
52432         * lib/unictype/categ_Lm.h: Likewise.
52433         * lib/unictype/categ_Lo.h: Likewise.
52434         * lib/unictype/categ_Lu.h: Likewise.
52435         * lib/unictype/categ_M.h: Likewise.
52436         * lib/unictype/categ_Mc.h: Likewise.
52437         * lib/unictype/categ_Mn.h: Likewise.
52438         * lib/unictype/categ_N.h: Likewise.
52439         * lib/unictype/categ_Nd.h: Likewise.
52440         * lib/unictype/categ_Nl.h: Likewise.
52441         * lib/unictype/categ_No.h: Likewise.
52442         * lib/unictype/categ_P.h: Likewise.
52443         * lib/unictype/categ_Pd.h: Likewise.
52444         * lib/unictype/categ_Po.h: Likewise.
52445         * lib/unictype/categ_S.h: Likewise.
52446         * lib/unictype/categ_Sc.h: Likewise.
52447         * lib/unictype/categ_So.h: Likewise.
52448         * lib/unictype/categ_of.h: Likewise.
52449         * lib/unictype/combining.h: Likewise.
52450         * lib/unictype/ctype_alnum.h: Likewise.
52451         * lib/unictype/ctype_alpha.h: Likewise.
52452         * lib/unictype/ctype_graph.h: Likewise.
52453         * lib/unictype/ctype_lower.h: Likewise.
52454         * lib/unictype/ctype_print.h: Likewise.
52455         * lib/unictype/ctype_punct.h: Likewise.
52456         * lib/unictype/ctype_upper.h: Likewise.
52457         * lib/unictype/decdigit.h: Likewise.
52458         * lib/unictype/digit.h: Likewise.
52459         * lib/unictype/numeric.h: Likewise.
52460         * lib/unictype/pr_alphabetic.h: Likewise.
52461         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52462         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52463         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52464         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52465         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52466         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52467         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52468         * lib/unictype/pr_combining.h: Likewise.
52469         * lib/unictype/pr_composite.h: Likewise.
52470         * lib/unictype/pr_currency_symbol.h: Likewise.
52471         * lib/unictype/pr_dash.h: Likewise.
52472         * lib/unictype/pr_decimal_digit.h: Likewise.
52473         * lib/unictype/pr_deprecated.h: Likewise.
52474         * lib/unictype/pr_diacritic.h: Likewise.
52475         * lib/unictype/pr_extender.h: Likewise.
52476         * lib/unictype/pr_grapheme_base.h: Likewise.
52477         * lib/unictype/pr_grapheme_extend.h: Likewise.
52478         * lib/unictype/pr_grapheme_link.h: Likewise.
52479         * lib/unictype/pr_id_continue.h: Likewise.
52480         * lib/unictype/pr_id_start.h: Likewise.
52481         * lib/unictype/pr_ideographic.h: Likewise.
52482         * lib/unictype/pr_ignorable_control.h: Likewise.
52483         * lib/unictype/pr_logical_order_exception.h: Likewise.
52484         * lib/unictype/pr_lowercase.h: Likewise.
52485         * lib/unictype/pr_numeric.h: Likewise.
52486         * lib/unictype/pr_other_alphabetic.h: Likewise.
52487         * lib/unictype/pr_punctuation.h: Likewise.
52488         * lib/unictype/pr_sentence_terminal.h: Likewise.
52489         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52490         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52491         * lib/unictype/pr_unified_ideograph.h: Likewise.
52492         * lib/unictype/pr_uppercase.h: Likewise.
52493         * lib/unictype/pr_xid_continue.h: Likewise.
52494         * lib/unictype/pr_xid_start.h: Likewise.
52495         * lib/unictype/pr_zero_width.h: Likewise.
52496         * lib/unictype/scripts.h: Likewise.
52497         * lib/unictype/scripts_byname.gperf: Likewise.
52498         * lib/unictype/sy_java_ident.h: Likewise.
52499         * lib/unigbrk/gbrkprop.h: Likewise.
52500         * lib/unilbrk/lbrkprop1.h: Likewise.
52501         * lib/unilbrk/lbrkprop2.h: Likewise.
52502         * lib/unilbrk/lbrktables.h: Likewise.
52503         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
52504         LBP_CP. Implement rule LB30.
52505         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
52506         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
52507         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
52508         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
52509         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
52510         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
52511         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
52512         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
52513         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
52514         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
52515         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
52516         bits instead of 16 bits in the code1 and code2 of each composition
52517         rule.
52518         (uc_composition): Update for Unicode 5.2.0.
52519         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
52520         * lib/uninorm/decomposition-table2.h: Likewise.
52521         * lib/uniwbrk/wbrkprop.h: Likewise.
52522         * tests/unicase/test-cased.c: Likewise.
52523         * tests/unicase/test-ignorable.c: Likewise.
52524         * tests/unicase/test-uc_tolower.c: Likewise.
52525         * tests/unicase/test-uc_totitle.c: Likewise.
52526         * tests/unicase/test-uc_toupper.c: Likewise.
52527         * tests/unictype/test-categ_C.c: Likewise.
52528         * tests/unictype/test-categ_Cf.c: Likewise.
52529         * tests/unictype/test-categ_Cn.c: Likewise.
52530         * tests/unictype/test-categ_L.c: Likewise.
52531         * tests/unictype/test-categ_Ll.c: Likewise.
52532         * tests/unictype/test-categ_Lm.c: Likewise.
52533         * tests/unictype/test-categ_Lo.c: Likewise.
52534         * tests/unictype/test-categ_Lu.c: Likewise.
52535         * tests/unictype/test-categ_M.c: Likewise.
52536         * tests/unictype/test-categ_Mc.c: Likewise.
52537         * tests/unictype/test-categ_Mn.c: Likewise.
52538         * tests/unictype/test-categ_N.c: Likewise.
52539         * tests/unictype/test-categ_Nd.c: Likewise.
52540         * tests/unictype/test-categ_Nl.c: Likewise.
52541         * tests/unictype/test-categ_No.c: Likewise.
52542         * tests/unictype/test-categ_P.c: Likewise.
52543         * tests/unictype/test-categ_Pd.c: Likewise.
52544         * tests/unictype/test-categ_Po.c: Likewise.
52545         * tests/unictype/test-categ_S.c: Likewise.
52546         * tests/unictype/test-categ_Sc.c: Likewise.
52547         * tests/unictype/test-categ_So.c: Likewise.
52548         * tests/unictype/test-ctype_alnum.c: Likewise.
52549         * tests/unictype/test-ctype_alpha.c: Likewise.
52550         * tests/unictype/test-ctype_graph.c: Likewise.
52551         * tests/unictype/test-ctype_lower.c: Likewise.
52552         * tests/unictype/test-ctype_print.c: Likewise.
52553         * tests/unictype/test-ctype_punct.c: Likewise.
52554         * tests/unictype/test-ctype_upper.c: Likewise.
52555         * tests/unictype/test-decdigit.h: Likewise.
52556         * tests/unictype/test-digit.h: Likewise.
52557         * tests/unictype/test-numeric.h: Likewise.
52558         * tests/unictype/test-pr_alphabetic.c: Likewise.
52559         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52560         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52561         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52562         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52563         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52564         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52565         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52566         * tests/unictype/test-pr_combining.c: Likewise.
52567         * tests/unictype/test-pr_composite.c: Likewise.
52568         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52569         * tests/unictype/test-pr_dash.c: Likewise.
52570         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52571         * tests/unictype/test-pr_deprecated.c: Likewise.
52572         * tests/unictype/test-pr_diacritic.c: Likewise.
52573         * tests/unictype/test-pr_extender.c: Likewise.
52574         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52575         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52576         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52577         * tests/unictype/test-pr_id_continue.c: Likewise.
52578         * tests/unictype/test-pr_id_start.c: Likewise.
52579         * tests/unictype/test-pr_ideographic.c: Likewise.
52580         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52581         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52582         * tests/unictype/test-pr_lowercase.c: Likewise.
52583         * tests/unictype/test-pr_numeric.c: Likewise.
52584         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52585         * tests/unictype/test-pr_punctuation.c: Likewise.
52586         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52587         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52588         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52589         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52590         * tests/unictype/test-pr_uppercase.c: Likewise.
52591         * tests/unictype/test-pr_xid_continue.c: Likewise.
52592         * tests/unictype/test-pr_xid_start.c: Likewise.
52593         * tests/unictype/test-pr_zero_width.c: Likewise.
52594         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
52595         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
52596         changed behaviour: line breaking is now disallowed between a letter
52597         or '=' and '('.
52598         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52599         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52600         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52601         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
52602         * tests/uniwidth/test-uc_width2.sh: Same updates as in
52603         lib/uniwidth/width.c.
52604         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
52605         without comments, but with the original copyright notice.
52606         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
52607         changes.
52608         * lib/unictype/categ_Cc.h: Likewise.
52609         * lib/unictype/categ_Co.h: Likewise.
52610         * lib/unictype/categ_Cs.h: Likewise.
52611         * lib/unictype/categ_Lt.h: Likewise.
52612         * lib/unictype/categ_Me.h: Likewise.
52613         * lib/unictype/categ_Pc.h: Likewise.
52614         * lib/unictype/categ_Pe.h: Likewise.
52615         * lib/unictype/categ_Pf.h: Likewise.
52616         * lib/unictype/categ_Pi.h: Likewise.
52617         * lib/unictype/categ_Ps.h: Likewise.
52618         * lib/unictype/categ_Sk.h: Likewise.
52619         * lib/unictype/categ_Sm.h: Likewise.
52620         * lib/unictype/categ_Z.h: Likewise.
52621         * lib/unictype/categ_Zl.h: Likewise.
52622         * lib/unictype/categ_Zp.h: Likewise.
52623         * lib/unictype/categ_Zs.h: Likewise.
52624         * lib/unictype/ctype_blank.h: Likewise.
52625         * lib/unictype/ctype_cntrl.h: Likewise.
52626         * lib/unictype/ctype_digit.h: Likewise.
52627         * lib/unictype/ctype_space.h: Likewise.
52628         * lib/unictype/ctype_xdigit.h: Likewise.
52629         * lib/unictype/mirror.h: Likewise.
52630         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52631         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52632         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52633         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52634         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52635         * lib/unictype/pr_bidi_control.h: Likewise.
52636         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52637         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52638         * lib/unictype/pr_bidi_pdf.h: Likewise.
52639         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52640         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52641         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52642         * lib/unictype/pr_format_control.h: Likewise.
52643         * lib/unictype/pr_hex_digit.h: Likewise.
52644         * lib/unictype/pr_hyphen.h: Likewise.
52645         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52646         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52647         * lib/unictype/pr_iso_control.h: Likewise.
52648         * lib/unictype/pr_join_control.h: Likewise.
52649         * lib/unictype/pr_left_of_pair.h: Likewise.
52650         * lib/unictype/pr_line_separator.h: Likewise.
52651         * lib/unictype/pr_math.h: Likewise.
52652         * lib/unictype/pr_non_break.h: Likewise.
52653         * lib/unictype/pr_not_a_character.h: Likewise.
52654         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52655         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52656         * lib/unictype/pr_other_id_continue.h: Likewise.
52657         * lib/unictype/pr_other_id_start.h: Likewise.
52658         * lib/unictype/pr_other_lowercase.h: Likewise.
52659         * lib/unictype/pr_other_math.h: Likewise.
52660         * lib/unictype/pr_other_uppercase.h: Likewise.
52661         * lib/unictype/pr_paired_punctuation.h: Likewise.
52662         * lib/unictype/pr_paragraph_separator.h: Likewise.
52663         * lib/unictype/pr_pattern_syntax.h: Likewise.
52664         * lib/unictype/pr_pattern_white_space.h: Likewise.
52665         * lib/unictype/pr_private_use.h: Likewise.
52666         * lib/unictype/pr_quotation_mark.h: Likewise.
52667         * lib/unictype/pr_radical.h: Likewise.
52668         * lib/unictype/pr_soft_dotted.h: Likewise.
52669         * lib/unictype/pr_space.h: Likewise.
52670         * lib/unictype/pr_titlecase.h: Likewise.
52671         * lib/unictype/pr_variation_selector.h: Likewise.
52672         * lib/unictype/pr_white_space.h: Likewise.
52673         * lib/unictype/sy_c_ident.h: Likewise.
52674         * lib/unictype/sy_c_whitespace.h: Likewise.
52675         * lib/unictype/sy_java_whitespace.h: Likewise.
52676         * modules/uni*/*: Bump version number of expected libunistring version.
52677         Reported by Simon Josefsson.
52679 2011-01-09  Karl Heuer  <kwzh@gnu.org>
52681         useless-if-before-free: fix typo in --help and make the internal,
52682         automatic version date update process work once again.
52683         --help output contained a NUL character instead of the
52684         backslash-zero that was intended.  Also, the "must lie within
52685         the first 8 lines" line is on line 9, and hence not getting
52686         automatically updated.
52687         * build-aux/useless-if-before-free: Fix the former by adding a
52688         backslash, and the latter by condensing the three lines of what-it-does
52689         to a single line, leaving one line of slack for the future.
52691 2011-01-09  Bruno Haible  <bruno@clisp.org>
52693         uniwidth/width: Fix width of U+1D173..U+1D17A.
52694         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
52695         symbolic_width, output_width_property_test): New functions.
52696         (main): Invoke output_nonspacing_property, output_width_property_test.
52697         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
52698         U+1D173..U+1D17A.
52699         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
52700         1.
52701         * modules/uniwidth/*: Bump version number of expected libunistring
52702         version.
52703         * modules/unilbrk/*: Likewise.
52705 2011-01-08  Bruno Haible  <bruno@clisp.org>
52707         uninorm tests: Preserve copyright of Unicode data file.
52708         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
52709         Mention modifications.
52711 2011-01-08  Bruno Haible  <bruno@clisp.org>
52713         gen-uni-tables: Prepare for Unicode 5.2.0.
52714         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
52715         (debug_output_lbp, output_lbp): Update.
52717 2011-01-08  Bruno Haible  <bruno@clisp.org>
52719         unilbrk: Clarify gen-uni-tables.c code.
52720         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
52721         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
52722         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
52724 2011-01-07  Bruno Haible  <bruno@clisp.org>
52726         strtod: Restore errno when successfully parsing Infinity or NaN.
52727         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
52728         restore the original errno.
52730 2011-01-07  Bruno Haible  <bruno@clisp.org>
52732         remove test: Avoid failure on HP-UX 11.
52733         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
52735 2011-01-07  Bruno Haible  <bruno@clisp.org>
52737         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
52738         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
52739         error code.
52741 2011-01-07  Pádraig Brady  <P@draigBrady.com>
52743         ignore-value: fixup comments, and add Eric Blake
52744         as an author since he rewrote the macros.
52745         * lib/ignore-value.h (ignore_value):  State that
52746         we now support aggregates.  Also specify exactly
52747         when the GCC warn_unused_result feature was added.
52749 2011-01-06  Eric Blake  <eblake@redhat.com>
52751         ignore-value: support aggregate types
52752         * lib/ignore-value.h (ignore_value): Provide separate gcc
52753         definition.
52754         * modules/ignore-value-tests: New test module.
52755         * tests/test-ignore-value.c: New test.
52757         maint.mk: improve sc_prohibit_strcmp regex
52758         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
52759         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
52760         definition of STRNEQ.
52762         signal: work around Haiku issue with SIGBUS
52763         * lib/siglist.h: Add comment.
52764         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
52765         strsignal's favoring of SIGSEGV.
52766         * tests/test-signal.c (main): Avoid test failure.
52767         * doc/posix-headers/signal.texi (signal.h): Document the issue.
52768         Reported by Scott McCreary.
52770         maint.mk: add pre-release check to ensure submodule commits are public
52771         * top/maint.mk (public-submodule-commit): New rule.
52772         (submodule-checks): New variable.
52773         (alpha beta stable): Depend on the variable.
52775 2011-01-05  Pádraig Brady  <P@draigBrady.com>
52776         and Jim Meyering  <meyering@redhat.com>
52778         ignore-value: make ignore_value more generic; deprecate ignore_ptr
52779         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
52780         (ATTRIBUTE_DEPRECATED): Define.
52781         (_ignore_case): New function.
52782         (ignore_value): New macro, to replace the old function.
52783         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
52784         * modules/ignore-value (Depends-on): Add stdint.
52786 2011-01-04  Eric Blake  <eblake@redhat.com>
52788         doc: regenerate INSTALL
52789         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
52790         @firstparagraphindent support, now that autoconf dropped it.
52791         (INSTALL_PRELUDE): Reinstate old macro.
52792         * doc/install.texi: Resync from autoconf.
52793         * doc/INSTALL: Reflect recent autoconf update.
52794         * doc/INSTALL.ISO: Likewise.
52795         * doc/INSTALL.UTF-8: Likewise.
52796         Reported by Karl Berry.
52798 2011-01-04  Bruce Korb  <address@hidden>
52800         git-version-gen: avoid a sub-shell
52801         * build-aux/git-version-gen: Redirect stderr in `...` via
52802         "exec 2>...", rather than via an added sub-shell.
52804 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
52806         git-version-gen: use (...) rather than sh -c '...'
52807         * build-aux/git-version-gen: Rather than hard-coding a shell's name
52808         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
52810 2011-01-03  Jim Meyering  <meyering@redhat.com>
52812         git-version-gen: convert leading TABs to spaces
52813         * build-aux/git-version-gen: Expand leading TABs.
52815         git-version-gen: handle failed "git rev-list"
52816         * build-aux/git-version-gen: Rather than leaking a "fatal" error
52817         from git and proceeding as if it had succeeded but printed no SHA1
52818         checksums, suppress the diagnostic and handle the failure.
52819         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
52821         git-version-gen: include command name in one more diagnostic
52822         * build-aux/git-version-gen: When the required .tarball-version file
52823         was missing or unreadable, you might see the diagnostic from "cat",
52824         but no trace of the name of the invoking script.  Now, you still see
52825         the diagnostic from cat, but also get one from "git-version-gen: ".
52826         Inspired by a patch from Bruce Korb.
52828         update-copyright: adjust test to match changed code
52829         * tests/test-update-copyright.sh: Change test's expected output
52830         to match new actual output.
52832 2011-01-02  Bruno Haible  <bruno@clisp.org>
52834         getlogin_r: Avoid test failure on HP-UX 11.
52835         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
52836         ERANGE when the second argument is zero.
52837         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
52838         portability problem.
52840 2011-01-02  Bruce Korb  <bkorb@gnu.org>
52842         * build-aux/update-copyright: doc Simon's changes
52844 2011-01-02  Simon Josefsson  <simon@josefsson.org>
52846         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
52847         environment variable.
52849 2011-01-02  Bruno Haible  <bruno@clisp.org>
52851         unigbrk: Avoid gcc warnings.
52852         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
52853         unused variable.
52854         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
52855         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
52856         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
52857         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
52858         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
52859         Change type of first argument to 'const char *'.
52860         (main): Remove unused variable.
52861         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
52862         type of first argument to 'const char *'.
52863         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
52864         Likewise.
52865         (main): Change type of variable 's'.
52866         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
52867         to 'int'.
52869 2011-01-02  Bruno Haible  <bruno@clisp.org>
52871         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
52872         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
52873         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
52874         bug.
52875         * lib/pwrite.c: Undo 2010-12-31 patch.
52876         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
52878 2011-01-02  Bruno Haible  <bruno@clisp.org>
52880         pread: Fix test whether it works.
52881         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
52883 2011-01-02  Bruno Haible  <bruno@clisp.org>
52885         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
52886         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
52887         ends in "6". Don't require a specific month name. Try also the locale
52888         names found on HP-UX 11 and Solaris 7.
52890 2011-01-02  Bruno Haible  <bruno@clisp.org>
52892         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
52893         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
52894         C linkage.
52895         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
52897 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
52899         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
52900         for consistency, since the "cluster" term is not used elsewhere.
52901         * lib/unigbrk.in.h: Update name.
52902         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
52903         * lib/unigbrk/u16-grapheme-next.c: Update name.
52904         * lib/unigbrk/u16-grapheme-prev.c: Update name.
52905         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
52906         * lib/unigbrk/u32-grapheme-next.c: Update name.
52907         * lib/unigbrk/u32-grapheme-prev.c: Update name.
52908         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
52909         * lib/unigbrk/u8-grapheme-next.c: Update name.
52910         * lib/unigbrk/u8-grapheme-prev.c: Update name.
52911         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
52912         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
52913         Suggested by Bruno Haible.
52915 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
52917         Remove module 'u8-grapheme-len' as too redundant with
52918         'u8-grapheme-next'.
52919         * modules/unigbrk/u8-grapheme-len: Delete file.
52920         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
52921         * lib/unigbrk.in.h: Remove prototype for deleted function.
52922         * lib/unigbrk/u8-grapheme-len.c: Delete file.
52923         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
52925         Remove module 'u16-grapheme-len' as too redundant with
52926         'u16-grapheme-next'.
52927         * modules/unigbrk/u16-grapheme-len: Delete file.
52928         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
52929         * lib/unigbrk.in.h: Remove prototype for deleted function.
52930         * lib/unigbrk/u16-grapheme-len.c: Delete file.
52931         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
52933         Remove module 'u32-grapheme-len' as too redundant with
52934         'u32-grapheme-next'.
52935         * modules/unigbrk/u32-grapheme-len: Delete file.
52936         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
52937         * lib/unigbrk.in.h: Remove prototype for deleted function.
52938         * lib/unigbrk/u32-grapheme-len.c: Delete file.
52939         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
52941         Suggested by Bruno Haible.
52943 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
52945         * unigbrk.in.h: Fix typo: "ben" => "been".
52946         Reported by Bruno Haible.
52948 2011-01-01  Jim Meyering  <meyering@redhat.com>
52950         maint: update almost all copyright ranges to include 2011
52951         Run the new "make update-copyright" rule.
52953 2011-01-01  Jim Meyering  <meyering@redhat.com>
52955         maint: update-copyright: exempt doc/INSTALL*
52956         * Makefile (update-copyright): Also exclude doc/INSTALL*,
52957         since they are generated.  Suggested by Bruno Haible.
52959 2011-01-01  Jim Meyering  <meyering@redhat.com>
52961         maint: refine the update-copyright rule
52962         * Makefile (update-copyright): Also exclude any file that includes
52963         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
52964         code that merely generates the comment.
52966 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
52968         New module 'u8-grapheme-len'.
52969         * modules/unigbrk/u8-grapheme-len: New file.
52970         * modules/unigbrk/u8-grapheme-len-tests: New file.
52971         * lib/unigbrk.in.h: Add prototype for new function.
52972         * lib/unigbrk/u8-grapheme-len.c: New file.
52973         * tests/unigbrk/test-u8-grapheme-len.c: New file.
52975         New module 'u16-grapheme-len'.
52976         * modules/unigbrk/u16-grapheme-len: New file.
52977         * modules/unigbrk/u16-grapheme-len-tests: New file.
52978         * lib/unigbrk.in.h: Add prototype for new function.
52979         * lib/unigbrk/u16-grapheme-len.c: New file.
52980         * tests/unigbrk/test-u16-grapheme-len.c: New file.
52982         New module 'u32-grapheme-len'.
52983         * modules/unigbrk/u32-grapheme-len: New file.
52984         * modules/unigbrk/u32-grapheme-len-tests: New file.
52985         * lib/unigbrk.in.h: Add prototype for new function.
52986         * lib/unigbrk/u32-grapheme-len.c: New file.
52987         * tests/unigbrk/test-u32-grapheme-len.c: New file.
52989         New module 'u8-grapheme-next'.
52990         * modules/unigbrk/u8-grapheme-next: New file.
52991         * modules/unigbrk/u8-grapheme-next-tests: New file.
52992         * lib/unigbrk.in.h: Add prototype for new function.
52993         * lib/unigbrk/u8-grapheme-next.c: New file.
52994         * tests/unigbrk/test-u8-grapheme-next.c: New file.
52996         New module 'u16-grapheme-next'.
52997         * modules/unigbrk/u16-grapheme-next: New file.
52998         * modules/unigbrk/u16-grapheme-next-tests: New file.
52999         * lib/unigbrk.in.h: Add prototype for new function.
53000         * lib/unigbrk/u16-grapheme-next.c: New file.
53001         * tests/unigbrk/test-u16-grapheme-next.c: New file.
53003         New module 'u32-grapheme-next'.
53004         * modules/unigbrk/u32-grapheme-next: New file.
53005         * modules/unigbrk/u32-grapheme-next-tests: New file.
53006         * lib/unigbrk.in.h: Add prototype for new function.
53007         * lib/unigbrk/u32-grapheme-next.c: New file.
53008         * tests/unigbrk/test-u32-grapheme-next.c: New file.
53010         New module 'u8-grapheme-prev'.
53011         * modules/unigbrk/u8-grapheme-prev: New file.
53012         * modules/unigbrk/u8-grapheme-prev-tests: New file.
53013         * lib/unigbrk.in.h: Add prototype for new function.
53014         * lib/unigbrk/u8-grapheme-prev.c: New file.
53015         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
53017         New module 'u16-grapheme-prev'.
53018         * modules/unigbrk/u16-grapheme-prev: New file.
53019         * modules/unigbrk/u16-grapheme-prev-tests: New file.
53020         * lib/unigbrk.in.h: Add prototype for new function.
53021         * lib/unigbrk/u16-grapheme-prev.c: New file.
53022         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
53024         New module 'u32-grapheme-prev'.
53025         * modules/unigbrk/u32-grapheme-prev: New file.
53026         * modules/unigbrk/u32-grapheme-prev-tests: New file.
53027         * lib/unigbrk.in.h: Add prototype for new function.
53028         * lib/unigbrk/u32-grapheme-prev.c: New file.
53029         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
53031         New module 'u8-grapheme-breaks'.
53032         * modules/unigbrk/u8-grapheme-breaks: New file.
53033         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
53034         * lib/unigbrk.in.h: Add prototype for new function.
53035         * lib/unigbrk/u8-grapheme-breaks.c: New file.
53036         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
53038         New module 'u16-grapheme-breaks'.
53039         * modules/unigbrk/u16-grapheme-breaks: New file.
53040         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
53041         * lib/unigbrk.in.h: Add prototype for new function.
53042         * lib/unigbrk/u16-grapheme-breaks.c: New file.
53043         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
53045         New module 'u32-grapheme-breaks'.
53046         * modules/unigbrk/u32-grapheme-breaks: New file.
53047         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
53048         * lib/unigbrk.in.h: Add prototype for new function.
53049         * lib/unigbrk/u32-grapheme-breaks.c: New file.
53050         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
53052         New module 'ulc-grapheme-breaks'.
53053         * modules/unigbrk/ulc-grapheme-breaks: New file.
53054         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
53055         * m4/locale-ar.m4: New file.
53056         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
53057         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
53058         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
53060 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
53062         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
53063         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
53064         modified how this file was generated before I initially submitted
53065         the module, but failed to regenerate it.  This meant that several
53066         of the level2 entries were wrong.
53067         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
53068         Remove the division-by-2 that is folded into the table now that
53069         gbrkprop.h has been regenerated properly.  Now -1 entries are
53070         handled correctly.
53072         New module 'unigbrk/uc-gbrk-prop-tests'.
53073         * modules/unigbrk/uc-gbrk-prop-tests: New file.
53074         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
53075         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
53076         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
53078 2011-01-01  Bruno Haible  <bruno@clisp.org>
53080         Avoid use of hexadecimal escapes.
53081         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
53082         instead of hexadecimal escapes.
53084 2011-01-01  Jim Meyering  <meyering@redhat.com>
53086         maint: new rule to update copyright year ranges
53087         * Makefile (update-copyright): New rule.
53089         maint: indent with TABs in Makefile
53090         * Makefile: Expand leading sequences of spaces to TABs
53092         version-etc: update the copyright year it reports
53093         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
53095 2010-12-31  Bruno Haible  <bruno@clisp.org>
53097         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
53098         * lib/isfinite.c (zerof, zerod, zerol): New variables.
53099         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
53100         zero.
53102 2010-12-31  Bruno Haible  <bruno@clisp.org>
53104         pwrite: Work around HP-UX 11.11 bug.
53105         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
53106         works and set REPLACE_PWRITE if not.
53107         * lib/pwrite.c (pwrite): Add an implementation that uses the system
53108         function.
53109         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
53111 2010-12-31  Bruno Haible  <bruno@clisp.org>
53113         pread: Work around HP-UX 11 bugs.
53114         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
53115         and set REPLACE_PREAD if not.
53116         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
53118 2010-12-31  Eric Blake  <eblake@redhat.com>
53120         nl_langinfo: fix YESEXPR on Irix 6.5
53121         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
53122         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
53123         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
53124         it.
53126 2010-12-31  Bruno Haible  <bruno@clisp.org>
53128         iconv: Document HP-UX 11 bug.
53129         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
53131 2010-12-31  Bruno Haible  <bruno@clisp.org>
53133         ldexpl: Fix link error on HP-UX 11.
53134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
53135         LDEXPL_LIBM, using $ISNANL_LIBM.
53137 2010-12-31  Eric Blake  <eblake@redhat.com>
53139         ftello: avoid compilation failure with SunStudio c89
53140         * lib/ftello.c (ftello): Use lseek, not llseek.
53142         tests: avoid failing coreutils tests on cygwin
53143         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
53144         (create_exe_shims_): Return 0 when skipping.
53146 2010-12-31  Bruno Haible  <bruno@clisp.org>
53148         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
53149         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
53151 2010-12-31  Bruno Haible  <bruno@clisp.org>
53153         waitpid: Fix link error in C++ mode.
53154         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
53156 2010-12-31  Bruno Haible  <bruno@clisp.org>
53158         isnan: Use GCC built-ins when possible.
53159         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
53160         __builtin_isnan.
53161         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
53162         (isnan): Define using GCC built-ins for GCC >= 4.0.
53164 2010-12-31  Bruno Haible  <bruno@clisp.org>
53166         isnand: Fix mistake.
53167         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
53168         __builtin_isnand.
53170 2010-12-31  Bruno Haible  <bruno@clisp.org>
53172         open: Avoid C++ error on HP-UX 11.
53173         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
53175 2010-12-31  Bruno Haible  <bruno@clisp.org>
53177         time_r: Add missing declarations on HP-UX 11.
53178         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
53179         instead of HAVE_LOCALTIME_R.
53180         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
53181         HAVE_LOCALTIME_R always.
53182         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
53183         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
53184         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
53185         HAVE_LOCALTIME_R.
53186         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
53187         * doc/posix-functions/localtime_r.texi: Likewise.
53189 2010-12-29  Eric Blake  <eblake@redhat.com>
53191         mountlist: tweak previous commit
53192         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
53193         Reported by Paul Eggert.
53195         mountlist: fix local drive detection on cygwin
53196         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
53197         that works for cygwin.
53199 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53201         ftoastr, snprintf: ftoastr + snprintf module
53202         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
53203         since the snprintf module now should be good enough here.
53204         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
53205         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
53206         and gl_MODULE_INDICATOR([snprintf]), but the former enables
53207         GNULIB_SNPRINTF only for the test directory, and the latter
53208         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
53209         seems to suffice by itself.
53211 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53213         alloca: one step towards thread-safety
53214         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
53215         need for a static variable.  All callers changed.  This does not
53216         make the alloca replacement thread-safe, but it's one step.
53218         tests: minor indenting change
53219         * tests/init.sh: Sync from coreutils housekeeping patch
53220         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
53221         to keep lines within 80 columns.
53223 2010-12-28  Jim Meyering  <meyering@redhat.com>
53225         regex: don't infloop on persistent failing calloc
53226         * lib/regexec.c (build_trtable): Return failure indication upon
53227         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
53228         In glibc, this was fixed for version 2.13:
53229         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
53231 2010-12-28  Bruno Haible  <bruno@clisp.org>
53232             Paul Eggert <eggert@cs.ucla.edu>
53234         linkat: Make implementation robust against system behaviour variations.
53235         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
53236         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
53237         way, and to -2 if it needs a generic runtime test.
53238         * lib/linkat.c (solaris_optimized_link_immediate,
53239         solaris_optimized_link_follow): New functions.
53240         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
53241         (check_same_link): Use it.
53243 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
53245         New module 'unigbrk/base'.
53246         * modules/unigbrk/base: New file.
53247         * lib/unigbrk.in.h: New file.
53249         New module 'unigbrk/uc-gbrk-prop'.
53250         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
53251         * modules/unigbrk/uc-gbrk-prop: New file.
53252         * lib/unigbrk/gbrkprop.h: New file.
53253         * lib/unigbrk/uc-gbrk-prop.c: New file.
53255         New module 'unigbrk/uc-is-grapheme-break'.
53256         * modules/unigbrk/uc-is-grapheme-break: New file.
53257         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
53258         * lib/unigbrk/uc-is-grapheme-break.c: New file.
53259         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
53260         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
53261         * tests/unigbrk/GraphemeBreakTest.txt: New file.
53263         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
53265 2010-12-27  Bruno Haible  <bruno@clisp.org>
53267         linkat test: Avoid failure on Solaris 11 2010-11.
53268         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
53270 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53272         utimens: work around glibc rounding bug on more platforms
53273         * lib/utimens.c (fdutimens): Work around rounding bug even if
53274         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
53275         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
53277 2010-12-27  Bruno Haible  <bruno@clisp.org>
53279         select tests: Improve comments.
53280         * tests/test-select.c (do_select): Add comments.
53282 2010-12-27  Bruno Haible  <bruno@clisp.org>
53284         select tests: Safer way of handling timeout.
53285         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
53286         at every invocation.
53288 2010-12-27  Bruno Haible  <bruno@clisp.org>
53290         select tests: Use 'bool' where appropriate.
53291         * tests/test-select.c (connect_to_socket): Change argument type to
53292         'bool'.
53294 2010-12-27  Bruno Haible  <bruno@clisp.org>
53296         select tests: Use existing modules.
53297         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
53298         (configure.ac): Don't test for unistd.h.
53299         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
53300         declared in <unistd.h>.
53302 2010-12-27  Bruno Haible  <bruno@clisp.org>
53304         mbrtowc: Work around a Solaris 7 bug.
53305         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
53306         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
53307         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
53308         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
53309         MBRTOWC_NULL_ARG1_BUG.
53310         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
53311         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
53312         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
53313         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
53315 2010-12-27  Jim Meyering  <meyering@redhat.com>
53317         read-file.c: tweak syntax
53318         * lib/read-file.c (fread_file): Remove space after "*" in function
53319         definitions.
53321 2010-12-27  Bruno Haible  <bruno@clisp.org>
53323         times test: Avoid gcc warnings on OSF/1.
53324         * tests/test-times.c (main): Cast printf arguments from clock_t to
53325         'long int'.
53327 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
53329         utimens: work around glibc rounding bug on older Linux kernels
53330         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
53331         on Linux with a glibc whose utimes might not work, then work
53332         around a longstanding glibc bug involving rounding rather than
53333         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
53334         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53336 2010-12-26  Bruno Haible  <bruno@clisp.org>
53338         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
53339         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
53340         _GL_CXXALIAS_SYS.
53341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53343 2010-12-26  Bruno Haible  <bruno@clisp.org>
53345         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
53346         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
53347         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
53348         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
53349         looking for the declaration.
53350         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53351         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
53352         problem.
53353         * doc/posix-functions/inet_pton.texi: Likewise.
53355 2010-12-26  Bruno Haible  <bruno@clisp.org>
53357         arpa_inet: Use the common idioms with C++ support.
53358         * lib/arpa_inet.in.h: Include c++defs.h.
53359         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
53360         support.
53361         * modules/arpa_inet (Depends-on): Add c++defs.
53362         (Makefile.am): Substitute the contents of c++defs.h.
53363         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
53364         * modules/arpa_inet-c++-tests: New file.
53365         * tests/test-arpa_inet-c++.cc: New file.
53367 2010-12-25  Bruno Haible  <bruno@clisp.org>
53369         Fix more C++ link errors on Solaris 8.
53370         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
53371         $(LIB_EACCESS).
53372         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
53373         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
53374         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
53375         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
53376         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
53378 2010-12-25  Bruno Haible  <bruno@clisp.org>
53380         printf-posix: Fix link error when a non-GCC compiler is used.
53381         * lib/stdio.in.h (printf): When not using GCC, override printf
53382         correctly.
53383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53385 2010-12-25  Bruno Haible  <bruno@clisp.org>
53387         strerror_r-posix: Update doc.
53388         * doc/posix-functions/strerror_r.texi: Update doc about the return
53389         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
53391 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53393         utimens: simplify the logic of the previous change
53394         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
53395         This should not affect whether the test succeeds or fails.
53397         utimens: configure better on hosts with NFS clock skew
53398         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
53399         uses the clock of the local host.  It might use the clock of the
53400         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
53401         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
53403 2010-12-25  Bruno Haible  <bruno@clisp.org>
53405         ptsname test: Avoid failure on Solaris.
53406         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
53407         open a pseudo-terminal; don't use BSD-style ptys.
53408         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
53410 2010-12-25  Bruno Haible  <bruno@clisp.org>
53412         ptsname: Avoid ERANGE failure on some systems.
53413         * lib/ptsname.c (buffer): Increase size.
53415 2010-12-25  Bruno Haible  <bruno@clisp.org>
53417         rename, renameat: Avoid test failures at NFS mounted locations.
53418         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
53419         so that subsequent mkdir calls succeed.
53421 2010-12-25  Bruno Haible  <bruno@clisp.org>
53423         iswblank: Fix C++ link error on Solaris 8.
53424         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
53425         _GL_FUNCDECL_SYS.
53427 2010-12-25  Bruno Haible  <bruno@clisp.org>
53429         unistd: Fix C++ link error on Solaris 8.
53430         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
53432 2010-12-25  Bruno Haible  <bruno@clisp.org>
53434         readlink doc: Mention an old glibc bug.
53435         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
53437 2010-12-25  Bruno Haible  <bruno@clisp.org>
53439         fcntl-h: Fix for use of C++ on glibc systems.
53440         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
53441         also on glibc systems in C++ mode.
53442         Reported by Gary V. Vaughan <gary@gnu.org>.
53444 2010-12-25  Bruno Haible  <bruno@clisp.org>
53446         roundl-ieee: Make it work on OSF/1 5.1 with cc.
53447         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
53449 2010-12-25  Bruno Haible  <bruno@clisp.org>
53451         truncl-ieee: Make it work on OSF/1 5.1 with cc.
53452         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
53453         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
53454         test whether truncl works according to ISO C 99 with IEC 60559.
53455         * m4/truncl-ieee.m4: New file.
53456         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
53457         m4/signbit.m4.
53458         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
53460 2010-12-25  Bruno Haible  <bruno@clisp.org>
53462         ceill-ieee: Make it work on OSF/1 5.1 with cc.
53463         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
53464         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
53465         test whether ceill works according to ISO C 99 with IEC 60559.
53466         * m4/ceill-ieee.m4: New file.
53467         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
53468         m4/signbit.m4.
53469         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
53471 2010-12-25  Bruno Haible  <bruno@clisp.org>
53473         Ensure all prerequisites of <wchar.h> are included.
53474         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
53475         before <wchar.h>.
53476         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
53477         gl_MBRLEN_NUL_RETVAL): Likewise.
53478         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
53479         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
53480         AC_FUNC_MBRTOWC): Likewise.
53481         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
53482         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
53484         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
53485         Likewise.
53486         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
53487         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
53488         (gl_WCHAR_H): Improve comments.
53489         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
53491 2010-12-25  Bruno Haible  <bruno@clisp.org>
53493         strtok_r: Fix C syntax error in autoconf macro.
53494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
53495         characters in test program.
53497 2010-12-24  Bruno Haible  <bruno@clisp.org>
53499         ceil, trunc, round: Fix gcc warnings.
53500         * lib/ceil.c (MIN): Undefine before redefining.
53501         * lib/trunc.c (MIN): Likewise.
53502         * lib/round.c (MIN): Likewise.
53503         Include <math.h> first.
53505 2010-12-24  Bruno Haible  <bruno@clisp.org>
53507         select tests: Avoid failures on OSF/1 5.1.
53508         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
53509         failure of closing the last socket; it may fail with ECONNRESET.
53511 2010-12-24  Eric Blake  <eblake@redhat.com>
53513         stdint: avoid HP-UX 10.20 preprocessor bug
53514         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
53515         than #if.
53516         * tests/test-floor2.c (main): Likewise.
53517         Reported by Peter O'Gorman.
53519         pipe: make obsoletion transition easier
53520         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
53521         * modules/pipe (Files): Include revived file.
53522         (Include): Drop reference, to mirror getdate's behavior.
53524 2010-12-24  Bruno Haible  <bruno@clisp.org>
53526         sys_socket: Hide mismatch of declarations on NonStop Kernel.
53527         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
53528         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
53529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53531 2010-12-24  Bruno Haible  <bruno@clisp.org>
53533         gethostname: Ensure declaration on NonStop Kernel.
53534         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
53535         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53537 2010-12-24  Bruno Haible  <bruno@clisp.org>
53539         sys_select: Ensure all necessary types on NonStop Kernel.
53540         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
53541         include <sys/time.h>.
53542         * doc/posix-headers/sys_select.texi: Mention that it's missing on
53543         NonStop Kernel.
53544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53546 2010-12-24  Bruno Haible  <bruno@clisp.org>
53548         sys_select: Remove unneeded include.
53549         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
53550         have <sys/select.h>.
53552 2010-12-24  Bruno Haible  <bruno@clisp.org>
53554         gethostname: Provide a fallback for HOST_NAME_MAX.
53555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
53556         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
53557         instead.
53558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53560 2010-12-24  Bruno Haible  <bruno@clisp.org>
53562         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
53563         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
53564         (SA_RESTART): Likewise.
53565         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53567 2010-12-24  Bruno Haible  <bruno@clisp.org>
53569         signal: Define NSIG.
53570         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
53571         * tests/test-signal.c (nsig): New variable.
53572         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53574 2010-12-24  Bruno Haible  <bruno@clisp.org>
53576         rename, renameat: Avoid test failures on OSF/1 5.1.
53577         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
53578         alternative error codes.
53579         * tests/test-renameat.c (main): Likewise.
53581 2010-12-24  Bruno Haible  <bruno@clisp.org>
53583         *printf: Detect large precisions bug on Solaris 10/SPARC.
53584         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
53585         by Paul Eggert.
53586         * tests/test-snprintf-posix.h (test_function): Add this test code here
53587         too.
53588         * tests/test-sprintf-posix.h (test_function): Likewise.
53589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53590         * tests/test-vasprintf-posix.c (test_function): Likewise.
53591         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
53592         around by gnulib.
53593         * doc/posix-functions/printf.texi: Likewise.
53594         * doc/posix-functions/snprintf.texi: Likewise.
53595         * doc/posix-functions/sprintf.texi: Likewise.
53596         * doc/posix-functions/vfprintf.texi: Likewise.
53597         * doc/posix-functions/vprintf.texi: Likewise.
53598         * doc/posix-functions/vsnprintf.texi: Likewise.
53599         * doc/posix-functions/vsprintf.texi: Likewise.
53600         * doc/posix-functions/dprintf.texi: Undo last commit.
53601         * doc/posix-functions/vdprintf.texi: Likewise.
53603 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53605         tests: port test-fdutimensat.c to Solaris 8
53606         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
53607         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
53608         On Solaris 8, it fails with errno == ENOSYS, because there is no
53609         futimens (so it can't use the fd), and there is no lutimens (so it
53610         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
53612         vsnprintf: make more consistent with snprintf; doc fixes
53614         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
53615         the byte count return problem was promoted from the snprintf-posix
53616         to the snprintf module.
53617         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53618         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
53619         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
53620         * tests/test-snprintf.c (main): Check the byte count returned.
53621         * tests/test-vsnprintf.c (main): Likewise.
53623 2010-12-23  Eric Blake  <eblake@redhat.com>
53625         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
53626         * modules/sigpipe (License): Relax license.
53628 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53630         doc: document Solaris printf bug with large float precisions
53631         * doc/posix-functions/dprintf.texi (dprintf):
53632         * doc/posix-functions/fprintf.texi (fprintf):
53633         * doc/posix-functions/printf.texi (printf):
53634         * doc/posix-functions/snprintf.texi (snprintf):
53635         * doc/posix-functions/sprintf.texi (sprintf):
53636         * doc/posix-functions/vdprintf.texi (vdprintf):
53637         * doc/posix-functions/vfprintf.texi (vfprintf):
53638         * doc/posix-functions/vprintf.texi (vprintf):
53639         * doc/posix-functions/vsnprintf.texi (vsnprintf):
53640         * doc/posix-functions/vsprintf.texi (vsprintf):
53641         Mention that these functions mishandle large floating point
53642         precisions on Solaris 10.  The same bug is also present in Solaris
53643         8, and I assume earlier.  This causes "cd gnulib-tests; make
53644         check" to fail on Solaris 8 (and I assume, later) when building
53645         the latest coreutils, in test-vasprintf-posix's call to
53646         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
53647         the wide flavors (e.g., wprintf) so this patch just updates the
53648         documentation for the narrow ones.
53650         test-posixtm.c: add two tests
53651         * tests/test-posixtm.c: Add two tests, to highlight the
53652         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
53653         around this bug; this is merely to document it.
53655 2010-12-22  Bruno Haible  <bruno@clisp.org>
53657         getlogin_r: Work around portability problem on OSF/1.
53658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
53659         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
53660         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
53661         test for a truncated result.
53662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
53663         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
53664         * modules/getlogin_r (Depends-on): Add memchr.
53665         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
53667 2010-12-22  Bruno Haible  <bruno@clisp.org>
53669         ptsname: Avoid test failure on OSF/1 5.1.
53670         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
53671         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
53672         (same_slave): New function.
53673         (main): Use it to compare ptsname's result with the expected file name.
53675 2010-12-22  Bruno Haible  <bruno@clisp.org>
53677         Port extended stdio modules to HP NonStop Kernel.
53678         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
53679         macros.
53680         * lib/fbufmode.c: Update comments.
53681         * lib/fflush.c: Likewise.
53682         * lib/fpurge.c: Likewise.
53683         * lib/freadable.c: Likewise.
53684         * lib/freadahead.c: Likewise.
53685         * lib/freading.c: Likewise.
53686         * lib/freadptr.c: Likewise.
53687         * lib/freadseek.c: Likewise.
53688         * lib/fseeko.c: Likewise.
53689         * lib/fseterr.c: Likewise.
53690         * lib/fwritable.c: Likewise.
53691         * lib/fwriting.c: Likewise.
53692         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
53694 2010-12-22  Bruno Haible  <bruno@clisp.org>
53696         ttyname_r: Work around bug on OSF/1 5.1.
53697         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
53698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
53699         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
53700         present.
53701         * lib/ttyname_r.c (ttyname_r): Update comments.
53703 2010-12-22  Bruno Haible  <bruno@clisp.org>
53705         round: Implement result sign according to IEEE 754.
53706         * lib/round.c (MIN, MINUS_ZERO): New macros.
53707         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
53708         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
53709         * tests/test-round-ieee.c (main): Likewise.
53710         * tests/test-roundl-ieee.c (main): Likewise.
53712         trunc: Implement result sign according to IEEE 754.
53713         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
53714         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
53715         * tests/test-trunc2.c: Include minus-zero.h.
53716         (MINUS_ZERO): New macro.
53717         (trunc_reference): Keep in sync with lib/trunc.c.
53718         * tests/test-truncf2.c: Include minus-zero.h.
53719         (MINUS_ZERO): New macro.
53720         (truncf_reference): Keep in sync with lib/trunc.c.
53721         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
53722         * tests/test-trunc-ieee.c (main): Likewise.
53723         * tests/test-truncl-ieee.c (main): Likewise.
53725         ceil: Implement result sign according to IEEE 754.
53726         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
53727         (FUNC): Return -0.0 for -1 < x < 0.
53728         * tests/test-ceil2.c: Include minus-zero.h.
53729         (MINUS_ZERO): New macro.
53730         (ceil_reference): Keep in sync with lib/ceil.c.
53731         * tests/test-ceilf2.c: Include minus-zero.h.
53732         (MINUS_ZERO): New macro.
53733         (ceilf_reference): Keep in sync with lib/ceil.c.
53734         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
53735         * tests/test-ceil-ieee.c (main): Likewise.
53736         * tests/test-ceill-ieee.c (main): Likewise.
53738         floor: Implement result sign according to IEEE 754.
53739         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
53740         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
53741         * tests/test-floorf2.c (floorf_reference): Likewise.
53742         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
53743         * tests/test-floor-ieee.c (main): Likewise.
53744         * tests/test-floorl-ieee.c (main): Likewise.
53746 2010-12-22  Bruno Haible  <bruno@clisp.org>
53748         getaddrinfo: Update doc.
53749         * doc/posix-functions/gai_strerror.texi: Return type is also different
53750         on AIX and HP-UX.
53752 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
53754         getaddrinfo, inet_ntop: Update doc for Solaris.
53755         * doc/posix-functions/gai_strerror.texi: Return type is also an
53756         issue on Solaris 9 and earlier.
53757         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
53758         on Solaris 10 and earlier.
53760 2010-12-21  Bruno Haible  <bruno@clisp.org>
53762         New module 'roundl-ieee'.
53763         * modules/roundl-ieee: New file.
53764         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
53765         test whether roundl works according to ISO C 99 with IEC 60559.
53766         * m4/roundl-ieee.m4: New file.
53767         * modules/roundl-ieee-tests: New file.
53768         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
53769         * tests/test-roundl.c (main): Remove signbit tests.
53770         * modules/roundl-tests (Depends-on): Remove signbit.
53771         * doc/posix-functions/roundl.texi: Mention the new module.
53773 2010-12-21  Bruno Haible  <bruno@clisp.org>
53775         New module 'truncl-ieee'.
53776         * modules/truncl-ieee: New file.
53777         * modules/truncl-ieee-tests: New file.
53778         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
53779         * tests/test-truncl.c (main): Remove signbit tests.
53780         * modules/truncl-tests (Depends-on): Remove signbit.
53781         * doc/posix-functions/truncl.texi: Mention the new module.
53783 2010-12-21  Bruno Haible  <bruno@clisp.org>
53785         New module 'ceill-ieee'.
53786         * modules/ceill-ieee: New file.
53787         * modules/ceill-ieee-tests: New file.
53788         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
53789         * tests/test-ceill.c (main): Remove signbit tests.
53790         * modules/ceill-tests (Depends-on): Remove signbit.
53791         * doc/posix-functions/ceill.texi: Mention the new module.
53793 2010-12-21  Bruno Haible  <bruno@clisp.org>
53795         New module 'floorl-ieee'.
53796         * modules/floorl-ieee: New file.
53797         * modules/floorl-ieee-tests: New file.
53798         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
53799         * tests/test-floorl.c (main): Remove signbit tests.
53800         * modules/floorl-tests (Depends-on): Remove signbit.
53801         * doc/posix-functions/floorl.texi: Mention the new module.
53803 2010-12-21  Bruno Haible  <bruno@clisp.org>
53805         New module 'round-ieee'.
53806         * modules/round-ieee: New file.
53807         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
53808         whether round works according to ISO C 99 with IEC 60559.
53809         * m4/round-ieee.m4: New file.
53810         * modules/round-ieee-tests: New file.
53811         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
53812         * tests/test-round1.c (main): Remove signbit tests.
53813         * modules/round-tests (Depends-on): Remove 'signbit'.
53814         * doc/posix-functions/round.texi: Mention the new module.
53816 2010-12-21  Bruno Haible  <bruno@clisp.org>
53818         New module 'trunc-ieee'.
53819         * modules/trunc-ieee: New file.
53820         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
53821         whether trunc works according to ISO C 99 with IEC 60559.
53822         * m4/trunc-ieee.m4: New file.
53823         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
53824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
53825         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
53826         * modules/trunc-ieee-tests: New file.
53827         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
53828         * tests/test-trunc1.c (main): Remove signbit tests.
53829         * modules/trunc-tests (Depends-on): Remove 'signbit'.
53830         * doc/posix-functions/trunc.texi: Mention the new module.
53832 2010-12-21  Bruno Haible  <bruno@clisp.org>
53834         New module 'ceil-ieee'.
53835         * modules/ceil-ieee: New file.
53836         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
53837         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
53838         ISO C 99 with IEC 60559.
53839         * m4/ceil-ieee.m4: New file.
53840         * modules/ceil (Files): Add lib/ceil.c.
53841         (Depends-on): Add 'float'.
53842         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53843         * lib/math.in.h (ceil): New declaration.
53844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
53845         REPLACE_CEIL.
53846         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
53847         * modules/ceil-ieee-tests: New file.
53848         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
53849         * tests/test-math-c++.cc: Check the signature of 'ceil'.
53850         * doc/posix-functions/ceil.texi: Mention the new module.
53852 2010-12-21  Bruno Haible  <bruno@clisp.org>
53854         New module 'floor-ieee'.
53855         * modules/floor-ieee: New file.
53856         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
53857         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
53858         ISO C 99 with IEC 60559.
53859         * m4/floor-ieee.m4: New file.
53860         * modules/floor (Files): Add lib/floor.c.
53861         (Depends-on): Add 'float'.
53862         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53863         * lib/math.in.h (floor): New declaration.
53864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
53865         REPLACE_FLOOR.
53866         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
53867         * modules/floor-ieee-tests: New file.
53868         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
53869         * tests/test-math-c++.cc: Check the signature of 'floor'.
53870         * doc/posix-functions/floor.texi: Mention the new module.
53872 2010-12-21  Bruno Haible  <bruno@clisp.org>
53874         New module 'roundf-ieee'.
53875         * modules/roundf-ieee: New file.
53876         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
53877         test whether roundf works according to ISO C 99 with IEC 60559.
53878         * m4/roundf-ieee.m4: New file.
53879         * modules/roundf-ieee-tests: New file.
53880         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
53881         * tests/test-roundf1.c (main): Remove signbit tests.
53882         * modules/roundf-tests (Depends-on): Remove 'signbit'.
53883         * doc/posix-functions/roundf.texi: Mention the new module.
53885 2010-12-21  Bruno Haible  <bruno@clisp.org>
53887         New module 'truncf-ieee'.
53888         * modules/truncf-ieee: New file.
53889         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
53890         test whether truncf works according to ISO C 99 with IEC 60559.
53891         * m4/truncf-ieee.m4: New file.
53892         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
53893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
53894         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
53895         * modules/truncf-ieee-tests: New file.
53896         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
53897         * tests/test-truncf1.c (main): Remove signbit tests.
53898         * modules/truncf-tests (Depends-on): Remove 'signbit'.
53899         * doc/posix-functions/truncf.texi: Mention the new module.
53901 2010-12-21  Bruno Haible  <bruno@clisp.org>
53903         New module 'ceilf-ieee'.
53904         * modules/ceilf-ieee: New file.
53905         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
53906         test whether ceilf works according to ISO C 99 with IEC 60559.
53907         * m4/ceilf-ieee.m4: New file.
53908         * modules/ceilf-ieee-tests: New file.
53909         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
53910         * tests/test-ceilf1.c (main): Remove signbit tests.
53911         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
53912         * doc/posix-functions/ceilf.texi: Mention the new module.
53914 2010-12-21  Bruno Haible  <bruno@clisp.org>
53916         New module 'floorf-ieee'.
53917         * modules/floorf-ieee: New file.
53918         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
53919         test whether floorf works according to ISO C 99 with IEC 60559.
53920         * m4/floorf-ieee.m4: New file.
53921         * modules/floorf-ieee-tests: New file.
53922         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
53923         * tests/test-floorf1.c (main): Remove signbit tests.
53924         * modules/floorf-tests (Depends-on): Remove 'signbit'.
53925         * doc/posix-functions/floorf.texi: Mention the new module.
53927 2010-12-21  Bruno Haible  <bruno@clisp.org>
53929         Support for minus zero in autoconf macros.
53930         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
53931         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
53932         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
53933         * tests/minus-zero.h: Update comments.
53935 2010-12-21  Bruno Haible  <bruno@clisp.org>
53937         Tests for module 'ceil'.
53938         * modules/ceil-tests: New file.
53939         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
53940         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
53942 2010-12-21  Bruno Haible  <bruno@clisp.org>
53944         Tests for module 'floor'.
53945         * modules/floor-tests: New file.
53946         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
53947         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
53949 2010-12-21  Bruno Haible  <bruno@clisp.org>
53951         math: Fix indentation.
53952         * lib/math.in.h (floorf): Fix indentation.
53954 2010-12-21  Bruno Haible  <bruno@clisp.org>
53956         Fix cross-compilation guesses on Solaris.
53957         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
53958         not match "solaris2.10".
53959         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
53960         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
53961         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
53963 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
53965         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
53966         This fixes a problem observed with the latest coreutils snapshot
53967         that caused a test to fail on Solaris 8.  src/csplit.c's call
53968         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
53969         earlier, instead of returning the number of bytes that would have
53970         been generated; this causes csplit to incorrectly report memory
53971         exhaustion.
53972         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
53973         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
53974         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
53975         comments to match.
53976         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
53977         Fix typo in matching older versions of Solaris: "solaris2.10"
53978         is matched by the shell pattern "solaris2.[0-9]*".  This matters
53979         only for guessing while cross-compiling.
53980         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
53982 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
53984         ftoastr: fix comment again
53985         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
53986         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
53987         Also, simplify example a bit by using flags = 0.
53989 2010-12-20  Bruno Haible  <bruno@clisp.org>
53991         round*, trunc*: Update documentation regarding glibc.
53992         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
53993         * doc/posix-functions/round.texi: Likewise.
53994         * doc/posix-functions/roundl.texi: Likewise.
53995         * doc/posix-functions/truncf.texi: Likewise.
53996         * doc/posix-functions/trunc.texi: Likewise.
53997         * doc/posix-functions/truncl.texi: Likewise.
53999 2010-12-20  Bruno Haible  <bruno@clisp.org>
54001         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
54002         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
54003         * doc/posix-functions/round.texi: Likewise.
54004         * doc/posix-functions/roundl.texi: Likewise.
54006 2010-12-20  Bruno Haible  <bruno@clisp.org>
54008         ttyname_r: Add missing declaration on HP-UX 11.
54009         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
54010         HAVE_TTYNAME_R.
54011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
54012         declared. Set HAVE_TTYNAME_R always.
54013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54014         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
54015         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
54016         HAVE_TTYNAME_R.
54017         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
54019 2010-12-20  Bruno Haible  <bruno@clisp.org>
54021         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
54022         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
54023         * doc/posix-functions/getlogin_r.texi: Likewise.
54024         * tests/test-getlogin.c: Include <errno.h>.
54025         (main): Avoid test failure on HP-UX 11.11.
54026         * tests/test-getlogin_r.c (main): Likewise.
54028 2010-12-20  Bruno Haible  <bruno@clisp.org>
54030         getlogin_r: Add missing declaration on HP-UX 11.
54031         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
54032         declared also when it exists as a function.
54033         * doc/posix-functions/getlogin_r.texi: Document this workaround.
54035 2010-12-20  Bruno Haible  <bruno@clisp.org>
54037         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
54038         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
54039         through wcrtomb.
54041 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54043         ftoastr: fix comment
54044         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
54045         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
54047 2010-12-19  Bruno Haible  <bruno@clisp.org>
54049         isnan: Ensure it is a macro.
54050         * lib/math.in.h (isnan): Define as a macro if not already a macro.
54051         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
54052         Solaris.
54054 2010-12-19  Bruno Haible  <bruno@clisp.org>
54056         ldexpl test: Fix link error on OSF/1 5.1.
54057         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
54059 2010-12-19  Bruno Haible  <bruno@clisp.org>
54061         wctype: Make it work in C++ mode on OSF/1 5.1.
54062         * lib/wctype.in.h (iswblank): Declare but not define here.
54063         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
54064         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
54065         * modules/wctype (Files): Add lib/iswblank.c.
54067 2010-12-19  Bruno Haible  <bruno@clisp.org>
54069         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
54070         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
54071         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
54073 2010-12-19  Bruno Haible  <bruno@clisp.org>
54075         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
54076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
54077         _POSIX_PII_SOCKET.
54078         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
54079         * doc/posix-functions/recvfrom.texi: Likewise.
54080         * doc/posix-functions/send.texi: Likewise.
54081         * doc/posix-functions/sendto.texi: Likewise.
54083 2010-12-19  Bruno Haible  <bruno@clisp.org>
54085         tcgetsid: Add missing declaration on OSF/1 5.1.
54086         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
54087         HAVE_TCGETSID.
54088         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
54089         Don't set HAVE_TCGETSID.
54090         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
54091         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
54092         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
54093         HAVE_TCGETSID.
54094         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
54096 2010-12-19  Bruno Haible  <bruno@clisp.org>
54098         stdio: Fix problem with popen() declaration on OSF/1 5.1.
54099         * lib/stdio.in.h: During the include_next statement, let recursive
54100         includes of this file include only the system header file.
54102 2010-12-19  Bruno Haible  <bruno@clisp.org>
54104         iconv_open: Fix regression from 2010-12-04.
54105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
54106         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
54108 2010-12-19  Bruno Haible  <bruno@clisp.org>
54110         stdbool test: Avoid a gcc warning.
54111         * tests/test-stdbool.c (main): Fail if e1 is false.
54112         Reported by Jim Meyering.
54114 2010-12-19  Jim Meyering  <meyering@redhat.com>
54116         setenv: restore to working order
54117         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
54118         mistakenly removed.
54119         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
54120         HAVE_SETENV.
54121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
54122         HAVE_SETENV.
54124 2010-12-19  Bruno Haible  <bruno@clisp.org>
54126         Document some different function declarations on OSF/1 5.1.
54127         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
54128         * doc/posix-functions/inet_ntop.texi: Likewise.
54129         * doc/posix-functions/gethostname.texi: Likewise.
54130         * lib/unistd.in.h (gethostname): Update comment.
54132 2010-12-19  Bruno Haible  <bruno@clisp.org>
54134         doc: Mention vasprintf-posix module.
54135         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
54136         the 'vasprintf-posix' module.
54137         * doc/glibc-functions/vasprintf.texi: Likewise.
54139 2010-12-19  Bruno Haible  <bruno@clisp.org>
54141         unsetenv: Add missing declaration on OSF/1 5.1.
54142         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
54143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
54144         Don't set HAVE_UNSETENV. In the test program, set _BSD.
54145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
54146         not HAVE_UNSETENV.
54147         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
54148         HAVE_UNSETENV.
54149         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
54151 2010-12-19  Bruno Haible  <bruno@clisp.org>
54153         setenv: Add missing declaration on OSF/1 5.1.
54154         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
54155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
54156         declared. Don't set HAVE_SETENV.
54157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
54158         not HAVE_SETENV.
54159         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
54160         HAVE_SETENV.
54161         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
54163 2010-12-19  Bruno Haible  <bruno@clisp.org>
54165         nl_langinfo tests: Avoid gcc warning.
54166         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
54168 2010-12-19  Bruno Haible  <bruno@clisp.org>
54170         mknod: Avoid error in C++ mode on OSF/1 with GCC.
54171         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
54172         _GL_CXXALIAS_SYS.
54174 2010-12-19  Bruno Haible  <bruno@clisp.org>
54176         stdbool: Relax test.
54177         * tests/test-stdbool.c (e): Don't require that casts from a variable's
54178         address to 'bool' work in static initializer, for compilers other than
54179         GCC.
54181 2010-12-19  Bruno Haible  <bruno@clisp.org>
54183         ftello: Add missing declaration on OSF/1 5.1.
54184         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
54185         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
54186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
54187         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
54188         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
54190 2010-12-19  Bruno Haible  <bruno@clisp.org>
54192         fseeko: Add missing declaration on OSF/1 5.1.
54193         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
54194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
54195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
54196         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
54197         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
54199 2010-12-19  Bruno Haible  <bruno@clisp.org>
54201         fchdir: Add missing declaration on OSF/1 5.1.
54202         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
54203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
54204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
54205         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
54206         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
54208 2010-12-19  Bruno Haible  <bruno@clisp.org>
54210         relocatable-prog-wrapper: Separate from relocatable-prog.
54211         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
54212         uninstall-relocwrapper rule here.
54213         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
54214         Reported by Ian Beckwith <ianb@erislabs.net>.
54216 2010-12-19  Bruno Haible  <bruno@clisp.org>
54218         unistr/u8-mbsnlen: Add missing dependency.
54219         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
54220         Reported by Ian Beckwith <ianb@erislabs.net>.
54222 2010-12-19  Bruno Haible  <bruno@clisp.org>
54224         iconv: Make it possible again to use this module without 'iconv-h'.
54225         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
54226         if it is not defined.
54227         Reported by Ian Beckwith <ianb@erislabs.net>.
54229 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54231         acl: port to Solaris 8 when copying from tmpfs to ufs
54232         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
54233         error number.  Problem observed on Solaris 8 with latest
54234         coreutils, with "mv A B", where A is on a tmpfs file system and B
54235         is on a ufs file system.  This caused coreutils' mv/part-symlink
54236         test to fail.
54238         tests: set fail=0 at start
54239         * tests/init.sh (setup_): Move fail=0 initialization here ...
54240         (mktempd_): ... from here, so that tests can rely on fail being
54241         set to 0 initially.  This fixes a problem in coreutils; see:
54242         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
54244 2010-12-18  Bruno Haible  <bruno@clisp.org>
54246         memmem-simple: Stylistic changes.
54247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
54248         Fix preprocessor directive indentation.
54250 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54252         memmem, memmem-simple: reorganize and expand empty needle check
54253         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
54254         functional checks to memmem-simple so that one has a fully functional
54255         memmem by using just this module.
54256         Restrict the performance only check to the memmem module.
54257         Also expand the empty needle check to ensure the correct
54258         pointer is returned, not just a non NULL pointer.
54259         * doc/glibc-functions/memmem.texi: Rearrange the portability
54260         documentation to correlate with the rearranged checks.
54261         Clarify exactly how the memmem and memmem-simple modules
54262         relate to each other.
54264 2010-12-15  Pádraig Brady  <P@draigBrady.com>
54265             Bruno Haible  <bruno@clisp.org>
54267         Improve cross-compilation guesses for uClibc.
54268         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
54269         that uClibc does not have the glibc bug.
54270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
54271         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
54273 2010-12-14  Eric Blake  <eblake@redhat.com>
54275         configmake: provide fallbacks for oldest supported autotools
54276         * m4/configmake.m4: New file.
54277         * modules/configmake (Files): Ship it.
54278         (configure.ac): Use it to guarantee fallbacks.
54280 2010-12-13  Pádraig Brady  <P@draigBrady.com>
54282         read-file: Improve handling of large files
54283         * lib/read-file.c (fread_file): Minimize realloc()s
54284         for regular files, and better manage sizes around SIZE_MAX.
54286 2010-12-13  Eric Blake  <eblake@redhat.com>
54288         cloexec, fcntl: relax license
54289         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
54290         consent from all contributors.
54291         * modules/fcntl (License): Likewise.
54293 2010-12-10  Bruno Haible  <bruno@clisp.org>
54295         Tests for module 'pipe-posix'.
54296         * modules/pipe-posix-tests: New file.
54297         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
54299 2010-12-10  Bruno Haible  <bruno@clisp.org>
54301         pipe-posix: Make it work in C++ mode.
54302         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
54303         (pipe): Use common idiom, not a macro definition.
54304         * lib/pipe.c: New file.
54305         * m4/pipe.m4: New file.
54306         * modules/pipe-posix (Description): Enhance.
54307         (Files): Add lib/pipe.c, m4/pipe.m4.
54308         (configure.ac): Invoke gl_FUNC_PIPE.
54309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
54310         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
54311         * tests/test-unistd-c++.cc: Check the signature of pipe.
54313 2010-12-10  Bruno Haible  <bruno@clisp.org>
54315         Rename module 'pipe' to 'spawn-pipe'.
54316         * modules/spawn-pipe: New file, renamed from modules/pipe.
54317         (Files, configure.ac, Makefile.am): Update.
54318         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
54319         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
54320         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
54321         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
54322         "spawn-pipe.h" instead of "pipe.h".
54323         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
54324         to gl_SPAWN_PIPE.
54325         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
54326         (Files, Makefile.am): Update.
54327         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
54328         Update.
54329         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
54330         Include "spawn-pipe.h" instead of "pipe.h".
54331         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
54332         * lib/javacomp.c: Likewise.
54333         * lib/javaversion.c: Likewise.
54334         * lib/pipe-filter-gi.c: Likewise.
54335         * lib/pipe-filter-ii.c: Likewise.
54336         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
54337         * modules/javacomp (Depends-on): Likewise.
54338         * modules/javaversion (Depends-on): Likewise.
54339         * modules/pipe-filter-gi (Depends-on): Likewise.
54340         * modules/pipe-filter-ii (Depends-on): Likewise.
54341         * MODULES.html.sh (Executing programs): Update.
54342         * NEWS: Mention the change.
54344 2010-12-10  Eric Blake  <eblake@redhat.com>
54346         pipe-posix: new module
54347         * modules/pipe-posix: New file.
54348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
54349         (gl_UNISTD_H): Check for declaration.
54350         * modules/unistd (Makefile.am): Substitute it.
54351         * lib/unistd.in.h (pipe): Provide it for mingw.
54352         * doc/posix-functions/pipe.texi (pipe): Update documentation.
54353         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
54355 2010-12-07  Bruno Haible  <bruno@clisp.org>
54357         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
54358         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
54359         u8_strcmp_gnu.
54360         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
54362 2010-12-06  Bruno Haible  <bruno@clisp.org>
54364         Update internal documentation.
54365         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
54367 2010-12-04  Bruno Haible  <bruno@clisp.org>
54369         Put more information about failed tests into the test return codes.
54370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
54371         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
54372         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54373         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54374         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
54375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54376         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54377         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54378         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
54379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
54381         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54382         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
54383         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54384         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
54385         returns a bit mask.
54386         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
54387         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
54388         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
54389         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
54390         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
54391         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
54392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54394         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
54395         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
54396         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
54397         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
54398         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
54399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
54400         * m4/link.m4 (gl_FUNC_LINK): Likewise.
54401         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
54402         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
54403         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
54404         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
54405         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
54406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54407         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
54408         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
54409         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54410         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
54411         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
54412         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
54413         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
54414         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
54415         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
54416         gl_PRINTF_PRECISION): Likewise.
54417         * m4/regex.m4 (gl_REGEX): Likewise.
54418         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
54419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54420         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
54421         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54425         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
54426         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54427         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54428         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
54429         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
54430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
54431         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54432         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54433         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54434         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
54435         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
54436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54437         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
54438         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
54439         enumerated value.
54440         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
54442 2010-12-04  Bruno Haible  <bruno@clisp.org>
54444         Update for Solaris 11 2010-11.
54445         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
54446         Express, released in November 2010.
54448 2010-12-04  Bruno Haible  <bruno@clisp.org>
54450         nproc: Relax license.
54451         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
54452         and Paul Eggert.
54453         Requested by Ludovic Courtès <ludo@gnu.org>.
54455 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54457         utimecmp: fine-grained src to nearby coarse-grained dest
54459         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
54460         and the source is on a file system with higher-resolution time
54461         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
54462         not work, and the time stamps are close together, the algorithm to
54463         determine the exact resolution from the read-back mtime was buggy:
54464         it had a "!=" where it should have had an "==".  This bug has been
54465         in the code ever since it was introduced to gnulib.
54466         Problem reported by Dan Jacobson in
54467         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
54469 2010-11-30  Bruno Haible  <bruno@clisp.org>
54471         strerror_r-posix: Fix autoconf test.
54472         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
54474 2010-11-28  Bruno Haible  <bruno@clisp.org>
54475             Paul Eggert  <eggert@cs.ucla.edu>
54477         Tests for module 'getdomainname'.
54478         * modules/getdomainname-tests: New file.
54479         * tests/test-getdomainname.c: New file, based on
54480         tests/test-gethostname.c.
54482 2010-11-28  Bruno Haible  <bruno@clisp.org>
54483             Paul Eggert  <eggert@cs.ucla.edu>
54485         getdomainname: Use the system function when possible.
54486         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
54487         (getdomainname): Replace if needed. Provide the declaration if it is
54488         missing. Don't use _GL_CXXALIAS_SYS_CAST.
54489         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
54490         (getdomainname): When the system has getdomainname, call the system
54491         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
54492         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54493         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
54494         found in libnsl. Look for the declaration also in <netdb.h>. Replace
54495         the function if its second argument is of type 'int' or if it is found
54496         in libnsl.
54497         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
54498         <sys/systeminfo.h> and sysinfo().
54499         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
54500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54501         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
54502         HAVE_GETDOMAINNAME.
54503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
54504         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
54505         * doc/glibc-functions/getdomainname.texi: Document the problems with
54506         the getdomainname declaration.
54508 2010-11-28  Bruno Haible  <bruno@clisp.org>
54510         sys_socket: Ensure ss_family field on AIX.
54511         * lib/sys_socket.in.h (ss_family): New macro definition.
54512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
54513         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
54514         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54515         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
54516         * modules/sys_socket (Makefile.am): Substitute
54517         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
54518         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
54520 2010-11-27  Bruno Haible  <bruno@clisp.org>
54522         readline: Improve configure output.
54523         * m4/readline.m4 (gl_FUNC_READLINE): Make the
54524         "checking for readline..." result understandable.
54526 2010-11-27  Bruno Haible  <bruno@clisp.org>
54528         *printf-posix: Detect a bug on Solaris 10/x86.
54529         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
54530         for floating-point output.
54531         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
54532         directive.
54533         * tests/test-snprintf-posix.h (test_function): Likewise.
54534         * tests/test-sprintf-posix.h (test_function): Likewise.
54535         * tests/test-vasprintf-posix.c (test_function): Likewise.
54536         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
54537         * doc/posix-functions/printf.texi: Likewise.
54538         * doc/posix-functions/snprintf.texi: Likewise.
54539         * doc/posix-functions/sprintf.texi: Likewise.
54540         * doc/posix-functions/vfprintf.texi: Likewise.
54541         * doc/posix-functions/vprintf.texi: Likewise.
54542         * doc/posix-functions/vsnprintf.texi: Likewise.
54543         * doc/posix-functions/vsprintf.texi: Likewise.
54544         * doc/glibc-functions/obstack_printf.texi: Likewise.
54545         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
54547 2010-11-27  Bruno Haible  <bruno@clisp.org>
54549         Fix link error when module libunistring-optional is in use.
54550         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
54551         * modules/striconveha-tests (Makefile.am): Likewise.
54553 2010-11-27  Bruno Haible  <bruno@clisp.org>
54555         regex: Mention link dependencies.
54556         * modules/regex (Link): New section.
54557         * modules/rpmatch (Link): Likewise.
54558         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
54560 2010-11-27  Bruno Haible  <bruno@clisp.org>
54562         ftoastr: Fix compilation error on Solaris.
54563         * lib/ftoastr.c: Include <config.h>.
54565 2010-11-27  Bruno Haible  <bruno@clisp.org>
54567         getloadavg: Update documentation.
54568         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
54570 2010-11-27  Bruno Haible  <bruno@clisp.org>
54572         sys_socket: Fix test whether the functions are declared.
54573         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
54574         not <sys/select.h>.
54576 2010-11-27  Bruno Haible  <bruno@clisp.org>
54578         getpass: Make sure to get system declaration on some platforms.
54579         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
54580         gl_USE_SYSTEM_EXTENSIONS.
54581         * modules/getpass (Depends-on): Add extensions.
54583 2010-11-26  Bruno Haible  <bruno@clisp.org>
54585         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
54586         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
54587         'iconv' module is present.
54588         (ICONV_CONST): New macro.
54589         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
54590         ICONV_CONST.
54591         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
54592         set ICONV_CONST.
54593         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
54594         here.
54595         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
54596         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
54597         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
54598         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
54599         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
54600         present.
54602 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54604         ftoastr: comment fix
54605         * lib/ftoastr.c: "little" -> "little or no" in comment
54607 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
54609         stdint: port to GCC 4.3 + OSX + Octave
54610         On this platform, stdint.h is buggy and defines int64_t to long
54611         long int.  The replacement defined it to long int, causing
54612         problems with C++ style name mangling.  Instead, trust the system
54613         definition if INT64_MAX is defined, and likewise for the unsigned
54614         variant.   Problem reported by Jarno Rajahalme in
54615         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
54616         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
54617         and don't mess with int64_t and INT64_MAX in this case.
54618         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
54620 2010-11-24  Bruno Haible  <bruno@clisp.org>
54622         doc: Corrections regarding MacOS X 10.4 and 10.5.
54623         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
54624         MacOS X.
54625         Reported by Simon Josefsson.
54627 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
54629         Uninstall ".bin" files installed by relocwrapper.
54630         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
54631         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
54632         unless it is already there.
54634 2010-11-21  Bruno Haible  <bruno@clisp.org>
54636         Update for NetBSD 5.0.
54637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
54638         NetBSD; the test fails on NetBSD 5.0.
54639         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
54640         about NetBSD.
54642 2010-11-21  Bruno Haible  <bruno@clisp.org>
54644         Update for HP-UX 11.23 and HP-UX 11.31.
54645         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
54646         HP-UX.
54648 2010-11-21  Bruno Haible  <bruno@clisp.org>
54650         Update for MacOS X 10.5.
54651         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
54652         MacOS X; the test fails on MacOS X 10.5.8.
54653         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
54654         about MacOS X.
54656 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
54658         bootstrap: add bootstrap_sync option.
54659         See discussion at
54660         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
54661         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
54662         * build-aux/bootstrap: Accept --bootstrap-sync to update
54663         bootstrap if it is not identical to the local gnulib's
54664         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
54665         enable this by default.  Accept --no-bootstrap-sync to disable
54666         it.
54668 2010-11-20  Bruno Haible  <bruno@clisp.org>
54670         Ensure that <features.h> is included before __GLIBC__ is tested.
54671         * lib/printf-parse.h: Include <features.h>.
54672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
54673         Reported by Mike Frysinger <vapier@gentoo.org>.
54675         Ensure that <features.h> is included before __GLIBC__ is tested.
54676         * lib/wchar.in.h: Include <features.h>.
54677         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
54678         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
54679         Reported by Mike Frysinger <vapier@gentoo.org>.
54681         Ensure that <features.h> is included before __GLIBC__ is tested.
54682         * lib/arpa_inet.in.h: Include <features.h>.
54683         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
54684         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
54685         Reported by Mike Frysinger <vapier@gentoo.org>.
54687         Ensure that <features.h> is included before __GLIBC__ is tested.
54688         * build-aux/link-warning.h: Include <features.h>.
54689         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
54690         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
54691         Reported by Mike Frysinger <vapier@gentoo.org>.
54693         Ensure that <features.h> is included before __GLIBC__ is tested.
54694         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
54695         Reported by Mike Frysinger <vapier@gentoo.org>.
54697 2010-11-20  Bruno Haible  <bruno@clisp.org>
54699         memmem: Fix autoconf test.
54700         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
54702 2010-11-20  Bruno Haible  <bruno@clisp.org>
54704         Port to uClibc.
54705         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
54706         * lib/fcntl.in.h: Likewise.
54707         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
54708         * lib/mbrtowc.c (mbrtowc): Likewise.
54709         * lib/relocatable.c (find_shared_library_fullname): Likewise.
54710         * lib/strerror_r.c: Likewise.
54711         * lib/unistr/u8-strnlen.c: Likewise.
54712         * lib/vasnprintf.c (decimal_point_char): Likewise.
54713         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
54714         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
54715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
54716         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
54717         * tests/test-sigaction.c (handler, main): Likewise.
54718         * lib/freading.h: Treat uClibc like a non-glibc platform.
54719         * lib/freading.c: Likewise.
54720         * lib/gettext.h: Likewise.
54721         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
54722         Likewise.
54723         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
54724         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54725         * lib/propername.c (proper_name_utf8): Likewise.
54726         * lib/spawn.in.h: Likewise.
54727         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
54728         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
54729         mem_cd_iconveh_internal): Likewise.
54730         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
54731         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
54732         strstr, strcasestr): Likewise.
54733         * lib/unicodeio.c (unicode_to_mb): Likewise.
54734         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
54735         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
54736         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
54737         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
54738         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
54739         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
54740         * lib/unistr/u8-stpncpy.c: Likewise.
54741         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54742         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
54743         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54744         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54745         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
54746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
54747         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
54748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
54749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
54750         Likewise.
54751         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
54752         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54753         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54756         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54757         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54758         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
54759         * tests/test-getopt.h (OPTIND_MIN): Likewise.
54760         * tests/test-striconveha.c (main): Likewise.
54761         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54762         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
54763         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
54764         * doc/posix-functions/getline.texi: Likewise.
54765         Reported by Mike Frysinger <vapier@gentoo.org>.
54767 2010-11-20  Bruno Haible  <bruno@clisp.org>
54769         nproc: Fix condition.
54770         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
54771         HAVE_PTHREAD_AFFINITY_NP.
54773 2010-11-20  Bruno Haible  <bruno@clisp.org>
54775         Fix a comment.
54776         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
54778 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
54780         ftoastr: don't assume snprintf
54781         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
54782         Implement a subset of snprintf here, by using sprintf safely.
54783         * modules/ftoastr (Depends-on): Remove snprintf.
54785 2010-11-19  Jim Meyering  <meyering@redhat.com>
54787         test-rename.h: fix compilation failure
54788         * tests/test-rename.h (test_rename): Add omitted "}".
54790 2010-11-17  Jim Meyering  <meyering@redhat.com>
54792         maint.mk: add a URL discussing the no-@acronym policy
54793         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
54795 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
54797         ftoastr: depend on snprintf, improve comments
54798         * lib/ftoastr.c: Also mention Loitsch's draft.
54799         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
54800         needed in the current implementation, but it might simplify
54801         speeding up the code later.
54802         * modules/ftoastr: Depend on snprintf; this improves portability.
54803         Suggested by Bruno Haible in the same email.
54805         ftoastr: port to hosts lacking strtof and strtold
54806         Problem reported by Bruno Haible in
54807         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
54808         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
54809         environment and strtold (and presumably strtof) are not available.
54810         * modules/ftoastr (Files): Add m4/c-strtod.m4.
54811         (configure.ac): Require gl_C99_STRTOLD.
54813 2010-11-18  Bruno Haible  <bruno@clisp.org>
54815         c-strtold: Avoid link error on AIX 7.
54816         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
54817         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
54818         (gl_C_STRTOLD): Test whether strtold_l exists.
54819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54821 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54823         intprops: new macro INT_BITS_STRLEN_BOUND
54824         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
54825         ftoastr.h.  This exposes an internal of intprops.h that was formerly
54826         not exposed.  Also, it uses a slightly tighter bound than before;
54827         though this makes no practical difference, we might as well be as
54828         tight as we easily can.
54830         ftoastr: new module, for lossless conversion of floats to short strings
54831         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
54832         * modules/ftoastr: New files.
54834 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54836         bootstrap: port to Solaris sed
54837         * build-aux/bootstrap (get_version): Port to Solaris sed.
54838         See Ralf Wildenhues's note in
54839         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
54841 2010-11-14  Jim Meyering  <meyering@redhat.com>
54843         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
54844         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
54845         and move definition closer to sole use.
54847 2010-11-13  Jim Meyering  <meyering@redhat.com>
54849         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
54850         Now we require at least autoconf-2.59, which means the work-around
54851         is no longer needed.
54852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
54853         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
54854         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54855         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
54856         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
54858 2010-11-13  Bruno Haible  <bruno@clisp.org>
54860         rename, renameat: Avoid test failures at NFS mounted locations.
54861         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
54862         functions.
54863         (test_rename): Use assert_nonexistent.
54864         * tests/test-rename.c: Include <dirent.h>.
54865         * tests/test-renameat.c: Likewise.
54866         Reported by Gary V. Vaughan <gary@gnu.org>.
54868         rename, renameat: Document Linux bug with NFS
54869         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
54870         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
54871         * doc/posix-functions/renameat.texi: Likewise.
54872         Suggested by Eric Blake.
54874 2010-11-13  Bruno Haible  <bruno@clisp.org>
54876         rename test: Add comments.
54877         * tests/test-rename.h (test_rename): Add structure and comments.
54879 2010-11-13  Eric Blake  <eblake@redhat.com>
54881         maintainer-makefile: cover a few more files
54882         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
54883         scripts generated within C files, for libvirt.
54885 2010-11-13  Bruno Haible  <bruno@clisp.org>
54887         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
54888         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
54889         character, return the number of bytes that belong together, not always
54890         1.
54891         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
54892         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
54893         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
54894         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
54895         number of bytes of an invalid character.
54896         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
54897         (main): Invoke it.
54898         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
54899         results.
54900         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
54901         malformed byte sequences.
54902         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
54903         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
54904         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
54905         Reported by Ben Pfaff and Paolo Bonzini.
54907 2010-11-13  Bruno Haible  <bruno@clisp.org>
54909         openat: Work around glibc bug with fchownat() and empty file names.
54910         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
54911         (gl_FUNC_FCHOWNAT): Invoke it.
54912         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
54913         * doc/posix-functions/fchownat.texi: Document the glibc bug.
54914         Reported by Gary V. Vaughan <gary@gnu.org>.
54916 2010-11-13  Bruno Haible  <bruno@clisp.org>
54918         openat: Ensure autoconf macro ordering.
54919         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
54920         gl_USE_SYSTEM_EXTENSIONS.
54921         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
54923 2010-11-13  Bruno Haible  <bruno@clisp.org>
54925         Update comments.
54926         * lib/unistr/u8-check.c: Update file name in comments.
54927         * lib/unistr/u8-mblen.c: Likewise.
54928         * lib/unistr/u8-prev.c: Likewise.
54929         * lib/unistr/u8-strmblen.c: Likewise.
54930         * lib/unistr/u8-strmbtouc.c: Likewise.
54932 2010-11-13  Jim Meyering  <meyering@redhat.com>
54934         tests: avoid test failure on Solaris 10 due to lack of PATH export
54935         * tests/test-update-copyright.sh: Don't forget to export PATH.
54937         init.sh: ensure that IFS is defined, just in case...
54938         * tests/init.sh (setup_): Ensure that IFS is defined,
54939         so that saving and restoring it works as expected.  This
54940         appears to be useful at least for an old version of dash
54941         from a long time ago (RH 6).  See here for details:
54942         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
54944         maint.mk: tighten "test a == b" check
54945         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
54946         test to files that contain something like #!/bin/sh.
54947         Without this, coreutils would get two false positives in
54948         the comments of C source files.
54950 2010-11-12  Eric Blake  <eblake@redhat.com>
54952         bootstrap: fix typo in previous attempt
54953         * build-aux/bootstrap (buildreq): Correct the grouping.
54954         Reported by Paul Eggert.
54956         maintainer-makefile: prohibit test x == x
54957         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
54958         Based on a report by Matthias Bolte.
54960         bootstrap: allow FreeBSD gzip
54961         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
54962         which has no '.' and goes to stderr.
54963         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
54964         Reported by Matthias Bolte.
54966         maintainer-makefile: check for i18n setup
54967         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
54968         will likely work.
54970 2010-11-12  Bruno Haible  <bruno@clisp.org>
54972         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
54973         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
54974         * lib/nanosleep.c (nanosleep): Likewise.
54976 2010-11-11  Bruno Haible  <bruno@clisp.org>
54978         fcntl-h: Fix for use of C++ on glibc systems.
54979         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
54980         also on glibc systems in C++ mode.
54981         Reported by Gary V. Vaughan <gary@gnu.org>.
54983 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
54985         mknod: avoid false failure with dash
54986         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
54988 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54990         unlink: Fix "is it should" typo in diagnostic.
54991         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
54992         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
54994 2010-11-11  Bruno Haible  <bruno@clisp.org>
54996         Tests for module 'strerror_r-posix'.
54997         * modules/strerror_r-posix-tests: New file.
54998         * tests/test-strerror_r.c: New file.
54999         * tests/test-string-c++.cc: Check the signature of strerror_r.
55001         New module 'strerror_r-posix'.
55002         * lib/string.in.h (strerror_r): New declaration.
55003         * lib/strerror_r.c: New file.
55004         * m4/strerror_r.m4: New file.
55005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
55006         of strerror_r.
55007         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
55008         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55009         * modules/strerror_r-posix: New file.
55010         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
55011         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
55012         * doc/posix-functions/strerror_r.texi: Mention the new module and the
55013         portability problems.
55015 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
55017         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
55018         line is also considered for output. Quoted function name in shell
55019         command, so temporary files for functions like MyClass::operator()
55020         are removed correctly without errors.
55022 2010-11-09  Bruno Haible  <bruno@clisp.org>
55024         * doc/posix-functions/strerror.texi: List more failing platforms.
55026         * doc/posix-functions/strerror.texi: Add a comment.
55028 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55030         fdopendir: fix bug on MacOS X when low on file descriptors
55032         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
55033         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
55034         All callers changed.
55035         (fdopendir): Invoke save_cwd at the top level, not after using
55036         multiple dup() calls to use up file descriptors.  Then retry
55037         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
55038         less than the maximum number of open file descriptors, because
55039         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
55040         on Mac OS X 10.6.4 for tar 1.24
55041         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
55042         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
55043         and for tar 1.25
55044         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
55046 2010-11-07  Bruno Haible  <bruno@clisp.org>
55048         vasnprintf: Support I flag on glibc systems.
55049         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
55050         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
55051         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
55052         snprintf function.
55053         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
55054         glibc systems.
55055         * tests/test-vasnprintf-posix3.c: New file.
55056         * modules/vasnprintf-posix-tests (Files): Add it.
55057         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
55059 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55061         [html] Fix copy/paste bug: Use unique name for compiler warnings.
55062         * MODULES.html.sh: For compiler warnings, use name
55063         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
55065 2010-11-05  Eric Blake  <eblake@redhat.com>
55067         ceil, floor: avoid spurious failure with icc
55068         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
55069         [denormals-as-zero] when optimizing without -mieee-fp option.
55070         * tests/test-floorf2.c (floorf_reference): Likewise.
55071         * tests/test-ceilf1.c (dummy): New function.
55072         (main): Use it to outsmart icc's optimization.
55073         * tests/test-floorf1.c (dummy, main): Likewise.
55075         tests: require working signbit
55076         * modules/ceilf-tests (Depends-on): Add signbit.
55077         * modules/ceill-tests (Depends-on): Likewise.
55078         * modules/floorf-tests (Depends-on): Likewise.
55079         * modules/floorl-tests (Depends-on): Likewise.
55080         * modules/round-tests (Depends-on): Likewise.
55081         * modules/roundf-tests (Depends-on): Likewise.
55082         * modules/roundl-tests (Depends-on): Likewise.
55083         * modules/trunc-tests (Depends-on): Likewise.
55084         * modules/truncf-tests (Depends-on): Likewise.
55085         * modules/truncl-tests (Depends-on): Likewise.
55087         strtod: work around icc bug
55088         * lib/strtod.c (minus_zero): Define to working value.
55089         (strtod): Use it to avoid icc bug.
55091         copysign: enhance tests
55092         * modules/copysign-tests (Files): Add minus-zero.h.
55093         * tests/test-copysign.c (main): Also test zeros.
55095 2010-11-04  Eric Blake  <eblake@redhat.com>
55097         ceil, floor, round, trunc: enhance tests of -0
55098         * tests/test-ceilf1.c (main): Ensure correct sign of result.
55099         * tests/test-ceill.c (main): Likewise.
55100         * tests/test-floorf1.c (main): Likewise.
55101         * tests/test-floorl.c (main): Likewise.
55102         * tests/test-round1.c (main): Likewise.
55103         * tests/test-roundf1.c (main): Likewise.
55104         * tests/test-roundl.c (main): Likewise.
55105         * tests/test-trunc1.c (main): Likewise.
55106         * tests/test-truncf1.c (main): Likewise.
55107         * tests/test-truncl.c (main): Likewise.
55109 2010-11-04  Eric Blake  <eblake@redhat.com>
55111         frexp, tests: work around ICC bug with -zero
55112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
55113         works with more compilers.
55114         * tests/minus-zero.h: New file.
55115         * modules/ceilf-tests (Files): Include it.
55116         * modules/ceill-tests (Files): Likewise.
55117         * modules/floorf-tests (Files): Likewise.
55118         * modules/floorl-tests (Files): Likewise.
55119         * modules/frexp-nolibm-tests (Files): Likewise.
55120         * modules/frexp-tests (Files): Likewise.
55121         * modules/frexpl-nolibm-tests (Files): Likewise.
55122         * modules/frexpl-tests (Files): Likewise.
55123         * modules/isnan-tests (Files): Likewise.
55124         * modules/isnand-nolibm-tests (Files): Likewise.
55125         * modules/isnand-tests (Files): Likewise.
55126         * modules/isnanf-nolibm-tests (Files): Likewise.
55127         * modules/isnanf-tests (Files): Likewise.
55128         * modules/isnanl-nolibm-tests (Files): Likewise.
55129         * modules/isnanl-tests (Files): Likewise.
55130         * modules/round-tests (Files): Likewise.
55131         * modules/roundf-tests (Files): Likewise.
55132         * modules/roundl-tests (Files): Likewise.
55133         * modules/ldexpl-tests (Files): Likewise.
55134         * modules/signbit-tests (Files): Likewise.
55135         * modules/snprintf-posix-tests (Files): Likewise.
55136         * modules/sprintf-posix-tests (Files): Likewise.
55137         * modules/strtod-tests (Files): Likewise.
55138         * modules/trunc-tests (Files): Likewise.
55139         * modules/truncf-tests (Files): Likewise.
55140         * modules/truncl-tests (Files): Likewise.
55141         * modules/vsnprintf-posix-tests (Files): Likewise.
55142         * modules/vsprintf-posix-tests (Files): Likewise.
55143         * modules/vasnprintf-posix-tests (Files): Likewise.
55144         * modules/vasprintf-posix-tests (Files): Likewise.
55145         * tests/test-ceilf1.c (main): Use it.
55146         * tests/test-ceill.c (main): Likewise.
55147         * tests/test-floorf1.c (main): Likewise.
55148         * tests/test-floorl.c (main): Likewise.
55149         * tests/test-frexp.c (main): Likewise.
55150         * tests/test-frexpl.c (main): Likewise.
55151         * tests/test-isnan.c (main): Likewise.
55152         * tests/test-isnand.h (main): Likewise.
55153         * tests/test-isnanf.h (main): Likewise.
55154         * tests/test-isnanl.h (main): Likewise.
55155         * tests/test-ldexpl.c (main): Likewise.
55156         * tests/test-round.c (main): Likewise.
55157         * tests/test-roundf.c (main): Likewise.
55158         * tests/test-roundl.c (main): Likewise.
55159         * tests/test-signbit.c (test_signbitf, test_signbitd)
55160         (test_signbitl): Likewise.
55161         * tests/test-snprintf-posix.h (test_function): Likewise.
55162         * tests/test-sprintf-posix.h (test_function): Likewise.
55163         * tests/test-strtod.c (main): Likewise.
55164         * tests/test-trunc1.c (main): Likewise.
55165         * tests/test-truncf1.c (main): Likewise.
55166         * tests/test-truncl.c (main): Likewise.
55168         isnanl: work around icc bug
55169         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
55171 2010-11-03  Eric Blake  <eblake@redhat.com>
55173         tests: fix compiler warnings
55174         * tests/test-getopt.h (test_getopt): Fix condition.
55175         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55176         * tests/test-pipe2.c (main): Likewise.
55177         * tests/test-quotearg-simple.c (main): Avoid icc warning.
55179         utimens: fix broken m4 test
55180         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
55182 2010-10-28  Bruno Haible  <bruno@clisp.org>
55184         posix_spawn*, getdtablesize: Relax license.
55185         * modules/posix_spawn (License): Change to LGPLv2+.
55186         * modules/posix_spawnp (License): Likewise.
55187         * modules/posix_spawn-internal (License): Likewise.
55188         * modules/posix_spawnattr_init (License): Likewise.
55189         * modules/posix_spawnattr_getflags (License): Likewise.
55190         * modules/posix_spawnattr_setflags (License): Likewise.
55191         * modules/posix_spawnattr_getpgroup (License): Likewise.
55192         * modules/posix_spawnattr_setpgroup (License): Likewise.
55193         * modules/posix_spawnattr_getschedparam (License): Likewise.
55194         * modules/posix_spawnattr_setschedparam (License): Likewise.
55195         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
55196         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
55197         * modules/posix_spawnattr_getsigdefault (License): Likewise.
55198         * modules/posix_spawnattr_setsigdefault (License): Likewise.
55199         * modules/posix_spawnattr_getsigmask (License): Likewise.
55200         * modules/posix_spawnattr_setsigmask (License): Likewise.
55201         * modules/posix_spawnattr_destroy (License): Likewise.
55202         * modules/posix_spawn_file_actions_init (License): Likewise.
55203         * modules/posix_spawn_file_actions_addclose (License): Likewise.
55204         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
55205         * modules/posix_spawn_file_actions_addopen (License): Likewise.
55206         * modules/posix_spawn_file_actions_destroy (License): Likewise.
55207         * modules/getdtablesize (License): Likewise.
55208         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
55210 2010-10-26  Bruno Haible  <bruno@clisp.org>
55212         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
55213         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
55214         Cygwin and mingw.
55215         Suggested by Eric Blake.
55217 2010-10-26  Bruno Haible  <bruno@clisp.org>
55219         stdio: Work around compilation error due to renameat() on Solaris 10.
55220         * lib/stdio.in.h: Include <unistd.h> on Solaris.
55221         * lib/renameat.c: Don't include <unistd.h> here.
55222         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
55223         Reported by Paul Eggert and Eric Blake.
55225 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55227         renameat: port to Solaris 10, which declares renameat in unistd.h
55229         * lib/renameat.c: Include unistd.h before stdio.h, because
55230         Solaris 10 declares renameat in unistd.h.  Problem encountered
55231         when building GNU tar 1.24 on Solaris 10.
55233 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
55235         fdopendir: fix C89 compilation
55236         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
55237         compilers.
55239 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
55241         inttostr: simplify by removing unnecessary redundancy
55242         * lib/anytostr.c: Don't include verify.h.
55243         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
55244         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
55245         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
55246         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
55247         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
55248         Likewise.
55249         * modules/inttostr (Depends-on): Remove 'verify'.
55251 2010-10-23  Bruno Haible  <bruno@clisp.org>
55253         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
55254         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
55255         Reported by Eric Blake.
55257 2010-10-23  Bruno Haible  <bruno@clisp.org>
55259         Tests: Fix LOCALE_JA on MirBSD 10.
55260         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
55261         to an UTF-8 locale.
55262         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
55263         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55264         Reported by Eric Blake.
55266 2010-10-21  Bruno Haible  <bruno@clisp.org>
55268         nl_langinfo test: Avoid test failure on NetBSD 5.
55269         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
55270         Reported by Eric Blake.
55272 2010-10-21  Eric Blake  <eblake@redhat.com>
55274         c-stack: work around libsigsegv 2.8 bug
55275         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
55276         overflow on at least PowerPC64.
55278 2010-10-17  Bruno Haible  <bruno@clisp.org>
55280         userspec: Drop redundant file.
55281         * modules/userspec (Files): Remove lib/inttostr.h.
55283 2010-10-17  Bruno Haible  <bruno@clisp.org>
55285         nl_langinfo tests: Silence some warnings.
55286         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
55287         Reported by Jim Meyering.
55289 2010-10-17  Bruno Haible  <bruno@clisp.org>
55291         Make use of GCC's attribute __alloc_size__.
55292         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
55293         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
55294         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
55295         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
55296         __alloc_size__.
55297         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55298         Suggested by Jim Meyering.
55300 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
55302         bootstrap: anchor .gitignore entries.
55303         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
55304         with...
55305         (insert_vc_ignore): ... this new function, which prepends `/' to
55306         all .gitignore entries before passing them to
55307         insert_sorted_if_absent.
55309 2010-10-16  Bruno Haible  <bruno@clisp.org>
55311         nextafter: Fix configure check.
55312         * modules/nextafter (configure.ac): Correct expected prototype.
55314 2010-10-16  Bruno Haible  <bruno@clisp.org>
55316         termios: Update documentation.
55317         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
55319 2010-10-16  Bruno Haible  <bruno@clisp.org>
55321         tests: Make them compile with TinyCC.
55322         * tests/test-strstr.c (main): Remove parentheses around array
55323         initializer.
55325 2010-10-15  Eric Blake  <eblake@redhat.com>
55327         ignore-value: make header idempotent
55328         * lib/ignore-value.h: Add double-inclusion guards.
55329         Reported by Stefan Berger.
55331 2010-10-15  Jim Meyering  <meyering@redhat.com>
55333         GNUmakefile: handle "stable" target, not "major"
55334         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
55335         lists in maint.mk and announce-gen.  Without this, "make stable"
55336         would fail to ensure that $(VERSION) is up to date.
55338 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
55340         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
55341         & co.
55343 2010-10-14  Bruno Haible  <bruno@clisp.org>
55345         vasnprintf: Don't set errno to 0.
55346         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
55347         block that sets it to 0.
55348         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
55350 2010-10-14  Bruno Haible  <bruno@clisp.org>
55352         socketlib: Fix.
55353         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
55354         gl_PREREQ_SYS_H_WINSOCK2.
55355         Reported by Ian Beckwith <ianb@erislabs.net>.
55357 2010-10-13  Jim Meyering  <meyering@redhat.com>
55359         test-select-stdin.c: avoid warn_unused_result warnings
55360         * tests/test-select-stdin.c: Include "macros.h".
55361         ASSERT that read and fflush succeed.
55363 2010-10-13  Jim Meyering  <meyering@redhat.com>
55365         git-version-gen: do require git-VC'd files in cwd
55366         * build-aux/git-version-gen: Reject a git version string
55367         if there are no commits associated with the current directory.
55368         This avoids an unlikely false-positive (unrelated dir whose parent
55369         repository also contains a tag matching v*), as pointed out
55370         by Giuseppe Scrivano in
55371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
55373 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55375         argv-iter: omit nonconforming declaration
55376         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
55377         enum arg_iter_err declaration, which doesn't conform to C99.
55378         Solaris 10 cc warns about this.
55380 2010-10-13  Eric Blake  <eblake@redhat.com>
55382         termios: fix compilation on mingw
55383         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
55384         (gl_TERMIOS_H): Adjust it on mingw.
55385         * modules/termios (Makefile.am): Substitute new key.
55386         * lib/termios.in.h (includes): Make include_next conditional.
55387         * doc/posix-headers/termios.texi (termios.h): Update
55388         documentation.
55389         Reported by Daniel P. Berrange.
55391 2010-10-13  Jim Meyering  <meyering@redhat.com>
55393         git-version-gen: don't require that .git/ be in the current dir
55394         * build-aux/git-version-gen: Adjust this script so that it works
55395         when run from any working directory beneath the top-level .git/-
55396         containing directory.  Inspired by a patch from Giuseppe Scrivano,
55397         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
55399         test-select: avoid warn_unused_result warnings
55400         * tests/test-select.c: Include "macros.h".
55401         ASSERT that each call to read, write, and pipe succeeds.
55402         While not technically required, also check each "close".
55403         * modules/select-tests (Files): Add tests/macros.h.
55405         test-symlinkat: remove declaration of unused local
55406         * tests/test-symlinkat.c (main): Remove unused local, "buf".
55408         test-inttostr: avoid shadowing warnings
55409         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
55410         and use malloc rather than the stack for the same reason as
55411         mentioned in the comment justifying the other allocation.
55413 2010-10-11  Bruno Haible  <bruno@clisp.org>
55415         stdlib: Allow multiple gnulib generated replacements to coexist.
55416         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
55417         Reported by Sam Steingold <sds@gnu.org>.
55419 2010-10-11  Jim Meyering  <meyering@redhat.com>
55421         fix a documentation typo
55422         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
55424 2010-10-11  Eric Blake  <eblake@redhat.com>
55426         futimens: work around Solaris 11 bug
55427         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
55428         * tests/test-futimens.h (test_futimens): Enhance, rather than
55429         weaken test.
55430         * doc/posix-functions/futimens.texi (futimens): Document the bug.
55432 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55434         Indentation.
55435         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
55436         higher-level operators more to the left.
55438 2010-10-11  Jim Meyering  <meyering@redhat.com>
55440         test-futimens: avoid unwarranted test failure on Solaris 5.11
55441         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
55442         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
55443         because it tries to dereference the NULL name argument.
55445 2010-10-11  Bruno Haible  <bruno@clisp.org>
55447         Indentation.
55448         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
55449         indentation.
55451 2010-10-11  Jim Meyering  <meyering@redhat.com>
55453         spawn.in.h: make indentation consistent with parentheses
55454         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
55455         Make indentation consistent with parentheses.
55457 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
55459         Fix mismatched parens in previous commit
55460         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
55461         parens.
55463 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55465         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
55467         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
55468         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
55469         * lib/malloca.c: Include "verify.h".
55470         (verify1): Remove, replacing with a verify call.
55471         * lib/relocwrapper.c (verify1): Likewise.
55472         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
55473         Likewise.
55474         * modules/malloca (Depends-on): Add 'verify'.
55475         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
55476         * modules/vasnprintf (Depends-on): Add 'verify'.
55477         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55479         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55480         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55481         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55482         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55483         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55485         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
55487         Formerly the style was sometimes 2*X - 1, because the C standard
55488         was wrongly thought to disallow ?: in integral constant expressions.
55489         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
55490         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
55491         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55492         * lib/stdint.in.h (_verify_intmax_size): Likewise.
55493         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
55494         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
55495         verify that time_t cannot be floating.
55497 2010-10-08  Eric Blake  <eblake@redhat.com>
55499         time: enforce recent POSIX ruling that time_t is integral
55500         * lib/time.in.h (__time_t_must_be_integral): Detect any
55501         problematic systems, allowing the rest of gnulib to assume POSIX.
55503 2010-10-08  Jim Meyering  <meyering@redhat.com>
55505         fdopendir: fix a bug on systems lacking openat and /proc support
55506         OpenBSD 4.7 is one such system.  The most noticeable effect was
55507         failure of any application making nontrivial use of fts: rm, du,
55508         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
55509           ./rm: traversal failed: `a': Bad file descriptor
55510         Debugging that, you see that even though FD 6 was closed just
55511         prior to the opendir call in fd_clone_opendir, its resulting
55512         dir->dd_fd was 8, rather than the expected value of 6:
55514         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
55515         93                close (fd);
55516         (gdb) n
55517         94                dir = fd_clone_opendir (dupfd);
55518         (gdb) n
55519         95                saved_errno = errno;
55520         (gdb) p dir->dd_fd
55521         $11 = 8
55523         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
55524         The problem is that on OpenBSD, fd_clone_opendir has to resort
55525         to using the old-style save/restore CWD mechanism, due to its
55526         lack of openat/proc support, and *that* would steal the FD (6)
55527         that opendir was supposed to use.
55529         The fix is to squirrel away the desired FD so that save_cwd uses a
55530         different one, and then free the dest FD right before calling opendir.
55531         That guarantees opendir will use the required file descriptor.
55533         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
55535 2010-10-08  Bruno Haible  <bruno@clisp.org>
55537         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
55538         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
55540 2010-10-08  Bruno Haible  <bruno@clisp.org>
55542         nanosleep: Make replacement POSIX compliant.
55543         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
55544         is out of range.
55545         Reported by Jim Meyering.
55547 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55549         bootstrap: add hook for altering gnulib.mk, for Bison
55550         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
55551         the Bison bootstrapping process can rewrite file names and variables
55552         in this file before later parts of 'bootstrap' use the file.
55553         Bison wants to include lib/gnulib.mk from the top-level makefile,
55554         so it needs the file names in this file to be relative to the top
55555         level, not relative to lib; plus it needs variable names to be
55556         rewritten.
55557         (slurp): Use the new function.
55559         bootstrap: reformat for readability
55560         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
55562 2010-10-08  Eric Blake  <eblake@redhat.com>
55564         docs: update cygwin progress
55565         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
55566         1.7.7.
55567         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
55568         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
55569         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
55570         * doc/posix-functions/carg.texi (carg): Likewise.
55571         * doc/posix-functions/cargf.texi (cargf): Likewise.
55572         * doc/posix-functions/casin.texi (casin): Likewise.
55573         * doc/posix-functions/casinf.texi (casinf): Likewise.
55574         * doc/posix-functions/casinh.texi (casinh): Likewise.
55575         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
55576         * doc/posix-functions/catan.texi (catan): Likewise.
55577         * doc/posix-functions/catanf.texi (catanf): Likewise.
55578         * doc/posix-functions/catanh.texi (catanh): Likewise.
55579         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
55580         * doc/posix-functions/ccos.texi (ccos): Likewise.
55581         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
55582         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
55583         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
55584         * doc/posix-functions/cexp.texi (cexp): Likewise.
55585         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
55586         * doc/posix-functions/cimag.texi (cimag): Likewise.
55587         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
55588         * doc/posix-functions/clog.texi (clog): Likewise.
55589         * doc/posix-functions/clogf.texi (clogf): Likewise.
55590         * doc/posix-functions/conj.texi (conj): Likewise.
55591         * doc/posix-functions/conjf.texi (conjf): Likewise.
55592         * doc/posix-functions/cpow.texi (cpow): Likewise.
55593         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
55594         * doc/posix-functions/cproj.texi (cproj): Likewise.
55595         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
55596         * doc/posix-functions/creal.texi (creal): Likewise.
55597         * doc/posix-functions/crealf.texi (crealf): Likewise.
55598         * doc/posix-functions/csin.texi (csin): Likewise.
55599         * doc/posix-functions/csinf.texi (csinf): Likewise.
55600         * doc/posix-functions/csinh.texi (csinh): Likewise.
55601         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
55602         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
55603         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
55604         * doc/posix-functions/ctan.texi (ctan): Likewise.
55605         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
55606         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
55607         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
55608         * doc/posix-headers/complex.texi (complex.h): Likewise.
55610 2010-10-07  Jim Meyering  <meyering@redhat.com>
55612         parse-datetime: avoid compilation failure on OpenBSD 4.7
55613         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
55614         This works around a compilation failure on OpenBSD 4.7:
55615         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
55617 2010-10-07  Eric Blake  <eblake@redhat.com>
55619         docs: update cygwin progress
55620         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
55621         1.7.6.
55622         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
55623         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
55624         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
55625         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
55626         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
55627         Likewise.
55628         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
55629         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
55630         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
55631         Likewise.
55632         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
55633         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
55634         Likewise.
55635         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
55636         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
55637         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
55638         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
55639         Likewise.
55640         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
55641         Likewise.
55642         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
55644         docs: update parse-datetime history
55645         * doc/parse-datetime.texi (Authors of parse_datetime): Better
55646         documentation of this function's history and alternatives.
55648         cygwin: use more robust version check
55649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
55650         exclude an eventual cygwin 1.9.1.
55651         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
55652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
55653         (gl_FUNC_STRCASESTR): Likewise.
55654         Reported by Bruno Haible.
55656 2010-10-06  Bruno Haible  <bruno@clisp.org>
55658         string, sys_select: Avoid #including large headers unless necessary.
55659         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
55660         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
55661         OSF/1, BeOS, Haiku.
55662         Reported by Jim Meyering.
55664 2010-10-05  Eric Blake  <eblake@redhat.com>
55666         memmem, strstr, strcasestr: fix bug with long periodic needle
55667         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
55668         periodic needle having false positive.
55669         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
55670         and cygwin 1.7.7.
55671         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
55672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
55673         (gl_FUNC_STRCASESTR): Likewise.
55674         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
55675         * tests/test-memmem.c (main): Expose the bug.
55676         * tests/test-strcasestr.c (main): Likewise.
55677         * tests/test-strstr.c (main): Likewise.
55678         * tests/test-c-strcasestr.c (main): Likewise.
55679         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
55680         * doc/posix-functions/strstr.texi (strstr): Likewise.
55681         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55682         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
55684 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55686         parse-datetime: do some more renaming
55687         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
55688         parse_datetime, not get_date.  Mention the renaming.
55689         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
55690         in comments.
55691         * m4/bison.m4: Likewise.
55693 2010-10-05  Eric Blake  <eblake@redhat.com>
55695         parse-datetime: better name than get_date
55696         * NEWS: Reword the deprecation notice.
55697         * modules/get_date: Rename to modules/parse-datetime.
55698         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
55699         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
55700         * lib/get_date.y: Rename to lib/parse-datetime.y.
55701         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
55702         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
55703         * doc/getdate.texi: Provide fallback wrapper.
55704         * lib/getdate.h: Move guts, and wrap...
55705         * lib/parse-datetime.h: ...new file.
55706         * lib/parse-datetime.y (get_date): Rename...
55707         (parse_datetime): ...to this.
55708         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
55709         (gl_PARSE_DATETIME): ...to this.
55710         * doc/posix-functions/getdate.texi (get_date): Provide fallback
55711         documentation.
55712         * modules/getdate (Files): Provide fallback docs and header.
55713         (Notice, Depends-on): Update references.
55714         * tests/test-parse-datetime.c: Likewise.
55715         * DEPENDENCIES: Likewise.
55716         * MODULES.html.sh (Date and time <time.h>): Likewise.
55717         * doc/parse-datetime.texi (Date input formats)
55718         (Authors of parse_datetime): Likewise.
55719         * modules/parse-datetime (Files, configure.ac, Makefile.am)
55720         (Include): Likewise.
55721         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
55722         * gnulib-tool: Likewise.
55723         * m4/bison.m4 (gl_BISON): Likewise.
55724         Suggested by Bruno Haible.
55726 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55728         more ports to Solaris tr, which needs [] around ranges
55729         * gnulib-tool: Solaris tr needs [] around ranges.
55730         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
55731         * tests/test-pipe-filter-gi1.c (main): Likewise.
55732         * tests/test-pipe-filter-ii1.c (main): Likewise.
55734 2010-10-05  Eric Blake  <eblake@redhat.com>
55736         bootstrap: fix Solaris regression
55737         * build-aux/bootstrap (check_versions): Solaris tr still needs []
55738         around ranges.
55739         Reported by Pádraig Brady.
55741         bootstrap: work with pkg-config
55742         * build-aux/bootstrap (check_versions): Also transliterate - in
55743         prerequisite name.
55744         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
55745         prerequisites that were already found, to avoid confusion.
55746         Reported by Justin Clift.
55748         faccessat: remove unused wrappers
55749         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
55750         presence of these wrappers dragged in -lgen on Solaris.
55751         Reported by Clemens Brogi; fix suggested by Paul Eggert.
55753 2010-10-05  Jim Meyering  <meyering@redhat.com>
55755         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
55756         * Makefile (sc_pragma_columns): New syntax-check rule.
55758 2010-10-04  Bruno Haible  <bruno@clisp.org>
55760         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
55761         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
55762         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
55763         Reported by Bruce Korb and Eric Blake.
55765 2010-10-04  Bruno Haible  <bruno@clisp.org>
55767         threadlib: Make option --with-libpth-prefix work.
55768         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
55769         use $LIBPTH, not just -lpth.
55771 2010-10-04  Bruno Haible  <bruno@clisp.org>
55773         Avoid line length limitation from HP NonStop system header files.
55774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
55775         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
55776         * lib/ctype.in.h: Likewise.
55777         * lib/dirent.in.h: Likewise.
55778         * lib/errno.in.h: Likewise.
55779         * lib/fcntl.in.h: Likewise.
55780         * lib/float.in.h: Likewise.
55781         * lib/getopt.in.h: Likewise.
55782         * lib/iconv.in.h: Likewise.
55783         * lib/inttypes.in.h: Likewise.
55784         * lib/langinfo.in.h: Likewise.
55785         * lib/locale.in.h: Likewise.
55786         * lib/math.in.h: Likewise.
55787         * lib/netdb.in.h: Likewise.
55788         * lib/netinet_in.in.h: Likewise.
55789         * lib/poll.in.h: Likewise.
55790         * lib/pthread.in.h: Likewise.
55791         * lib/pty.in.h: Likewise.
55792         * lib/sched.in.h: Likewise.
55793         * lib/se-selinux.in.h: Likewise.
55794         * lib/search.in.h: Likewise.
55795         * lib/signal.in.h: Likewise.
55796         * lib/spawn.in.h: Likewise.
55797         * lib/stdarg.in.h: Likewise.
55798         * lib/stddef.in.h: Likewise.
55799         * lib/stdint.in.h: Likewise.
55800         * lib/stdio.in.h: Likewise.
55801         * lib/stdlib.in.h: Likewise.
55802         * lib/string.in.h: Likewise.
55803         * lib/strings.in.h: Likewise.
55804         * lib/sys_file.in.h: Likewise.
55805         * lib/sys_ioctl.in.h: Likewise.
55806         * lib/sys_select.in.h: Likewise.
55807         * lib/sys_socket.in.h: Likewise.
55808         * lib/sys_stat.in.h: Likewise.
55809         * lib/sys_time.in.h: Likewise.
55810         * lib/sys_times.in.h: Likewise.
55811         * lib/sys_utsname.in.h: Likewise.
55812         * lib/sys_wait.in.h: Likewise.
55813         * lib/sysexits.in.h: Likewise.
55814         * lib/termios.in.h: Likewise.
55815         * lib/time.in.h: Likewise.
55816         * lib/unistd.in.h: Likewise.
55817         * lib/wchar.in.h: Likewise.
55818         * lib/wctype.in.h: Likewise.
55819         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
55820         * modules/ctype (Makefile.am): Likewise.
55821         * modules/dirent (Makefile.am): Likewise.
55822         * modules/errno (Makefile.am): Likewise.
55823         * modules/fcntl-h (Makefile.am): Likewise.
55824         * modules/float (Makefile.am): Likewise.
55825         * modules/getopt-posix (Makefile.am): Likewise.
55826         * modules/iconv-h (Makefile.am): Likewise.
55827         * modules/inttypes (Makefile.am): Likewise.
55828         * modules/langinfo (Makefile.am): Likewise.
55829         * modules/locale (Makefile.am): Likewise.
55830         * modules/math (Makefile.am): Likewise.
55831         * modules/netdb (Makefile.am): Likewise.
55832         * modules/netinet_in (Makefile.am): Likewise.
55833         * modules/poll-h (Makefile.am): Likewise.
55834         * modules/pthread (Makefile.am): Likewise.
55835         * modules/pty (Makefile.am): Likewise.
55836         * modules/sched (Makefile.am): Likewise.
55837         * modules/search (Makefile.am): Likewise.
55838         * modules/selinux-h (Makefile.am): Likewise.
55839         * modules/signal (Makefile.am): Likewise.
55840         * modules/spawn (Makefile.am): Likewise.
55841         * modules/stdarg (Makefile.am): Likewise.
55842         * modules/stddef (Makefile.am): Likewise.
55843         * modules/stdint (Makefile.am): Likewise.
55844         * modules/stdio (Makefile.am): Likewise.
55845         * modules/stdlib (Makefile.am): Likewise.
55846         * modules/string (Makefile.am): Likewise.
55847         * modules/strings (Makefile.am): Likewise.
55848         * modules/sys_file (Makefile.am): Likewise.
55849         * modules/sys_ioctl (Makefile.am): Likewise.
55850         * modules/sys_select (Makefile.am): Likewise.
55851         * modules/sys_socket (Makefile.am): Likewise.
55852         * modules/sys_stat (Makefile.am): Likewise.
55853         * modules/sys_time (Makefile.am): Likewise.
55854         * modules/sys_times (Makefile.am): Likewise.
55855         * modules/sys_utsname (Makefile.am): Likewise.
55856         * modules/sys_wait (Makefile.am): Likewise.
55857         * modules/sysexits (Makefile.am): Likewise.
55858         * modules/termios (Makefile.am): Likewise.
55859         * modules/time (Makefile.am): Likewise.
55860         * modules/unistd (Makefile.am): Likewise.
55861         * modules/wchar (Makefile.am): Likewise.
55862         * modules/wctype (Makefile.am): Likewise.
55864 2010-10-04  Bruno Haible  <bruno@clisp.org>
55866         read-file tests: Avoid a test failure on NonStop Kernel.
55867         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
55868         a regular file.
55869         Reported by Joachim Schmitz <schmitz@hp.com>.
55871 2010-10-03  Bruno Haible  <bruno@clisp.org>
55873         gnulib-tool: Fixes for --create-testdir with --libtool.
55874         * gnulib-tool (func_get_automake_snippet): Don't augment
55875         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
55876         an executable.
55877         (func_create_testdir): Handle module 'alloca' like func_import.
55878         Reported by Bruce Korb <bruce.korb@gmail.com>.
55880 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55882         Avoid some lines longer than 80 characters.
55883         * lib/stdint.in.h: Break long comment lines.
55884         * lib/math.in.h: Likewise.
55885         (_GL_NUM_UINT_WORDS): New macro, for readability.
55886         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
55887         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
55888         * lib/stdlib.in.h: Likewise.
55889         * lib/spawn.in.h: Likewise.
55890         * lib/sys_socket.in.h: Update an URL.
55891         * lib/sys_stat.in.h: Break long line.
55893 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
55895         Improve pmccabe2html.
55896         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
55897         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
55898         when the sources change. Remove the line in the HTML about "Used
55899         ranges" (which implied that there might be other unused ranges),
55900         rename "Resume" to "Summary" (easier to understand for more users).
55901         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
55902         styles, and some unnecessary blank lines.
55904 2010-10-03  Bruno Haible  <bruno@clisp.org>
55905             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
55907         acl: Add support for ACLs on NonStop Kernel.
55908         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
55909         Check whether the function aclsort() exists.
55910         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
55911         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
55912         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
55913         (acl_nontrivial [HAVE_ACLSORT]: New function.
55914         (file_has_acl): Implement for NonStop Kernel.
55915         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
55916         (qset_acl): Implement for NonStop Kernel.
55917         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
55918         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
55919         (main): Implement for NonStop Kernel.
55920         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
55921         Kernel. Handle this flavor.
55922         * tests/test-set-mode-acl.sh: Likewise.
55923         * tests/test-copy-acl.sh: Likewise.
55924         * tests/test-copy-file.sh: Likewise.
55926 2010-10-03  Bruno Haible  <bruno@clisp.org>
55928         Info about ACLs on NonStop Kernel.
55929         * doc/acl-resources.txt: Add info about NonStop Kernel.
55930         References by Joachim Schmitz <schmitz@hp.com>.
55932 2010-10-02  Bruno Haible  <bruno@clisp.org>
55934         Define missing EDQUOT on NonStop Kernel.
55935         * lib/errno.in.h (EDQUOT): Assign a value if missing.
55936         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
55937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
55938         missing.
55939         * doc/posix-headers/errno.texi: Mention the NSK bug.
55940         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
55941         Reported by Joachim Schmitz <schmitz@hp.com>.
55943 2010-10-02  Bruno Haible  <bruno@clisp.org>
55945         Update doc for POSIX:2008.
55946         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
55947         Update URL of POSIX specification.
55949 2010-10-02  Bruno Haible  <bruno@clisp.org>
55951         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
55952         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
55953         from gnulib, not from Automake.
55955 2010-10-02  Bruno Haible  <bruno@clisp.org>
55957         New module 'system-posix'.
55958         * modules/system-posix: New file.
55959         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
55960         module is present.
55961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55962         GNULIB_SYSTEM_POSIX.
55963         * modules/stdlib (Depends-on): Remove sys_wait.
55964         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
55965         * doc/posix-functions/system.texi: Mention the new module.
55966         * doc/posix-headers/stdlib.texi: Likewise.
55967         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
55968         define test_sys_wait_macros to a no-op.
55969         Reported by Sam Steingold <sds@gnu.org>.
55971 2010-09-30  Bruno Haible  <bruno@clisp.org>
55973         More renaming from 'getdate' to 'get_date'.
55974         * doc/get_date.texi: Renamed from doc/getdate.texi.
55975         * modules/get_date (Files): Update.
55976         * MODULES.html.sh (Date and time <time.h>): Update.
55977         * DEPENDENCIES: Update.
55978         * gnulib-tool: Update comment.
55979         * m4/bison.m4 (gl_BISON): Likewise.
55980         * m4/get_date.m4 (gl_GET_DATE): Likewise.
55982 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
55984         bootstrap: support ACLOCAL_FLAGS during aclocal
55985         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
55986         can add additional -I dir for third-party .m4 files.
55988 2010-09-30  Eric Blake  <eblake@redhat.com>
55990         bootstrap: use glibtoolize on MacOS
55991         * build-aux/bootstrap (check_versions): Convert libtool into
55992         libtoolize.
55993         (tool search): Move libtool check earlier, and look for
55994         glibtoolize for MacOS.
55995         (gnulib_tool_options): Auto-add --libtool when appropriate.
55996         Reported by Justin Clift.
55998         poll: fix typo that broke test on MacOS
55999         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
56000         Reported by Justin Clift.
56002         getdate: rename to get_date
56003         Note: getdate.h is not renamed, to minimize client impact.
56004         * modules/getdate: Mark obsolete.  Move old contents...
56005         * modules/get_date: ...to new module name.
56006         * modules/getdate-tests: Move...
56007         * modules/get_date-tests: ...here.
56008         * m4/getdate.m4: Move...
56009         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
56010         * lib/getdate.y: Move...
56011         * lib/get_date.y: ...here.
56012         * tests/test-getdate.c: Move...
56013         * tests/test-get_date.c: ...here.
56014         * doc/posix-functions/getdate.texi (getdate): Update name.
56015         * NEWS: Mention the change.
56017 2010-09-29  Bruno Haible  <bruno@clisp.org>
56019         Separate the module 'waitpid' from the module 'sys_wait'.
56020         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
56021         present.
56022         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
56023         gl_MODULE_INDICATOR_FOR_TESTS.
56024         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
56025         * modules/sys_wait (Depends-on): Remove waitpid.
56026         (Makefile.am): Substitute GNULIB_WAITPID.
56027         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
56028         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
56029         signature only if the 'waitpid' module is present.
56030         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
56031         * NEWS: Mention the change.
56032         * modules/grantpt (Depends-on): Add waitpid.
56033         * modules/wait-process (Depends-on): Likewise.
56035 2010-09-29  Bruno Haible  <bruno@clisp.org>
56037         More tests for module 'sys_wait'.
56038         * modules/sys_wait-c++-tests: New file.
56039         * tests/test-sys_wait-c++.cc: New file.
56040         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
56041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56043 2010-09-29  Bruno Haible  <bruno@clisp.org>
56045         New module 'waitpid'.
56046         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
56047         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
56048         Don't include <process.h>.
56049         (waitpid): Declare only, using modern idiom.
56050         * m4/waitpid.m4: New file.
56051         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
56052         * modules/waitpid: New file.
56053         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
56054         (Makefile.am): Update.
56055         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
56057 2010-09-28  Bruno Haible  <bruno@clisp.org>
56059         poll: Assume ANSI C.
56060         * lib/poll.c (poll): Use an ANSI C declaration.
56062 2010-09-28  Bruno Haible  <bruno@clisp.org>
56064         poll-h: Create poll.h on all platforms.
56065         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
56066         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
56067         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
56068         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
56069         (gl_REPLACE_POLL_H): Don't set POLL_H.
56070         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
56071         * modules/poll-h (Depends-on): Add include_next.
56072         (Makefile.am): Create poll.h unconditionally. Substitute also
56073         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
56075 2010-09-28  Bruno Haible  <bruno@clisp.org>
56077         Tests for module 'poll-h'.
56078         * modules/poll-h-c++-tests: New file.
56079         * tests/test-poll-h-c++.cc: New file.
56081         Tests for module 'poll-h'.
56082         * modules/poll-h-tests: New file.
56083         * tests/test-poll-h.c: New file.
56085 2010-09-28  Bruno Haible  <bruno@clisp.org>
56087         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
56088         * modules/poll-h (Depends-on): Add 'extensions'.
56090 2010-09-28  Bruno Haible  <bruno@clisp.org>
56092         New module 'poll-h'.
56093         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
56094         (poll): Use modern idiom.
56095         * modules/poll-h: New file.
56096         * modules/poll (Files): Remove lib/poll.in.h.
56097         (Depends-on): Add poll-h.
56098         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
56099         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
56100         * m4/poll_h.m4: New file.
56101         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
56102         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
56103         and invoke gl_REPLACE_POLL_H.
56104         * lib/poll.c: Use common idiom.
56105         * tests/test-poll.c: Likewise.
56106         * doc/posix-headers/poll.texi: Mention the poll-h module.
56107         Suggested by Eric Blake.
56109 2010-09-26  Bruno Haible  <bruno@clisp.org>
56111         sys_wait: Implement WSTOPSIG.
56112         * lib/sys_wait.in.h (WSTOPSIG): New macro.
56113         Reported by Simon Josefsson.
56115 2010-09-26  Simon Josefsson  <simon@josefsson.org>
56117         stdlib, sys_wait: Avoid compilation error on mingw.
56118         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
56120 2010-09-26  Bruno Haible  <bruno@clisp.org>
56122         stdlib tests: Avoid code duplication.
56123         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
56124         * modules/sys_wait-tests (Files): Likewise.
56125         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
56126         * tests/test-stdlib.c: Include test-sys_wait.h.
56127         (main): Invoke test_sys_wait_macros.
56128         * tests/test-sys_wait.c: Include test-sys_wait.h.
56129         (main): Invoke test_sys_wait_macros.
56131 2010-09-25  Simon Josefsson  <simon@josefsson.org>
56133         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
56134         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
56135         sure Windows sockets are working before calling getaddrinfo.
56136         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
56137         * doc/gnulib.texi (Windows sockets): Fix typo.
56139 2010-09-25  Bruno Haible  <bruno@clisp.org>
56141         Tests for module 'regex-quote'.
56142         * modules/regex-quote-tests: New file.
56143         * tests/test-regex-quote.c: New file.
56145         New module 'regex-quote'.
56146         * lib/regex-quote.h: New file.
56147         * lib/regex-quote.c: New file.
56148         * modules/regex-quote: New file.
56149         Suggested by Reuben Thomas <rrt@sc3d.org>.
56151 2010-09-24  Bruno Haible  <bruno@clisp.org>
56153         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
56154         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
56156 2010-09-23  Bruno Haible  <bruno@clisp.org>
56158         setenv: Relax license.
56159         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
56160         Blake.
56161         Requested by Eric Blake.
56163 2010-09-22  Bruno Haible  <bruno@clisp.org>
56165         termios: Relax license.
56166         * modules/termios (License): Change to LGPLv2+.
56167         Requested by Eric Blake.
56169 2010-09-22  Bruno Haible  <bruno@clisp.org>
56171         threadlib: Allow the package to change the default to 'no'.
56172         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
56173         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
56174         Reported by Paul Eggert.
56176 2010-09-22  Pádraig Brady  <P@draigbrady.com>
56177             Bruno Haible  <bruno@clisp.org>
56179         Fix endless loop in mbmemcasecoll.
56180         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
56181         byte.
56182         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
56184 2010-09-22  Bruno Haible  <bruno@clisp.org>
56186         Tests for module 'memcoll'.
56187         * modules/memcoll-tests: New file.
56188         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
56190         memcoll, xmemcoll: Clarify size vs. length.
56191         * modules/memcoll.c (memcoll0): Clarify specification.
56192         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
56193         passed to collate_error.
56195 2010-09-22  Bruno Haible  <bruno@clisp.org>
56197         Tests for module 'memcasecmp'.
56198         * modules/memcasecmp-tests: New file.
56199         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
56201 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56203         * lib/pthread.in.h: Add split double-inclusion guard, and include
56204         system <pthread.h> if there is one.  Use @@-style as in other
56205         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
56206         pthread.h doesn't.
56207         (pthread_mutexattr_destroy, pthread_mutexattr_init):
56208         (pthread_mutexattr_settype, pthread_mutex_trylock):
56209         New static inline functions, if there's no system <pthread.h>.
56210         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
56211         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
56212         Approximate with mutexes if the system lacks spinlocks, as in
56213         MacOS.
56214         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
56215         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
56216         @@-style.  Check for spinlocks separately.
56217         (gl_PTHREAD_DEFAULTS): New macro.
56218         * modules/pthread: Redo to use a more typical style for in.h files.
56220 2010-09-21  Eric Blake  <eblake@redhat.com>
56222         net_if: enhance tests
56223         * tests/test-net_if.c (main): Move signature checks earlier.
56224         Print failures to stderr.
56225         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
56226         Document the bug that we do not yet fix.
56228 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56230         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
56231         about gnulib, not GSS.
56233 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
56235         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
56236         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
56237         for Emacs.
56238         * build-aux/pmccabe2html: Make Makefile.am example code more
56239         cut-and-paste friendly.
56241 2010-09-21  Simon Josefsson  <simon@josefsson.org>
56243         * tests/test-net_if.c: New file.
56244         * modules/net_if-tests: New file.
56246 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56248         pthread: add pthread_spin_destroy
56249         * lib/pthread.in.h (pthread_spin_destroy): New function.
56251 2010-09-19  Bruno Haible  <bruno@clisp.org>
56253         gnulib-tool: Fix --help output.
56254         * gnulib-tool (func_usage): Fix help message.
56255         Reported by Reuben Thomas <rrt@sc3d.org>.
56257 2010-09-18  Jim Meyering  <meyering@redhat.com>
56259         maint.mk: avoid unexpanded \n in two diagnostics
56260         * top/maint.mk (sc_prohibit_always_true_header_tests):
56261         Don't use a literal \n in a halt=... assignment.  It would not be
56262         expanded, and the two \n bytes would appear in the diagnostic output
56263         rather than the desired newline.  Use halt=$$(printf ... instead.
56264         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
56266 2010-09-18  Bruno Haible  <bruno@clisp.org>
56268         netinet_in: Doc tweak.
56269         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
56270         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56272 2010-09-18  Jim Meyering  <meyering@redhat.com>
56274         init.sh: correct an outdated comment
56275         * tests/init.sh (create_exe_shims_):  s/function/alias/
56277         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
56278         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
56279         a file named "*.exe" is removed between the glob expansion and the
56280         processing of that oddly named file.
56282 2010-09-17  Eric Blake  <eblake@redhat.com>
56284         mirbsd: add some more support
56285         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
56286         in BSD family.
56287         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
56288         devices as OpenBSD.
56289         * m4/host-os.m4 (mirbsd): Add MirBSD.
56291         tests: fix unportable assumption on sys/wait.h
56292         * tests/test-sys_wait.c (main): Relax test.
56293         * tests/test-stdlib.c (main): Likewise.
56295         init.sh: accommodate directory with no .exes
56296         * tests/init.sh: Accomodate directory containing only scripts.
56298         tests: avoid compiler warning
56299         * tests/test-stdlib.c (main): Use the variable.
56301         fdutimens, fdutimensat: update signature, again
56302         * lib/utimens.h (gl_futimens): Delete, and move signature...
56303         (fdutimens): ...here.
56304         (fdutimensat): Rearrange signature.
56305         (lutimensat): Rename variable for clarity.
56306         * lib/fdutimensat.c (fdutimensat): Update signature.
56307         * lib/utimens.c (fdutimens): Likewise.
56308         (gl_futimens): Delete.
56309         (utimens, lutimens): Update callers.
56310         * lib/futimens.c (futimens): Likewise.
56311         * tests/test-fdutimensat.c: Likewise.
56312         * tests/test-utimens.c: Likewise.
56313         * tests/test-futimens.h: Update comment.
56314         * NEWS: Mention this.
56315         Suggested by Paul Eggert.
56317 2010-09-17  Bruno Haible  <bruno@clisp.org>
56319         Take over the maintenance of some older macros from Autoconf.
56320         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
56321         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
56322         GNU Autoconf.
56323         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
56324         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
56326 2010-09-17  Eric Blake  <eblake@redhat.com>
56328         fdutimensat: drop atflag validation
56329         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
56330         with valid fd, to close a race scenario where futimens is
56331         unsupported and FILE was replaced by a symlink.
56332         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
56333         accordingly.
56334         Suggested by Paul Eggert.
56336 2010-09-16  Bruno Haible  <bruno@clisp.org>
56338         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
56339         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
56341 2010-09-16  Bruno Haible  <bruno@clisp.org>
56343         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
56344         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
56345         login_tty exists.
56346         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56348 2010-09-16  Bruno Haible  <bruno@clisp.org>
56350         login_tty: Make the replacement code work on BSD systems.
56351         * lib/login_tty.c: Include <sys/ioctl.h>.
56352         (login_tty): Use ioctl TIOCSCTTY when available.
56353         * modules/login_tty (Depends-on): Add sys_ioctl.
56354         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56356 2010-09-16  Bruno Haible  <bruno@clisp.org>
56358         login_tty: Stricter unit test.
56359         * modules/login_tty-tests (Depends-on): Add tcgetsid.
56360         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
56361         and tcgetsid() after login_tty.
56362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56364 2010-09-16  Bruno Haible  <bruno@clisp.org>
56366         New module 'tcgetsid'.
56367         * lib/tcgetsid.c: New file.
56368         * m4/tcgetsid.m4: New file.
56369         * modules/tcgetsid: New file.
56370         * modules/termios (Depends-on): Add c++defs, warn-on-use.
56371         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
56372         GNULIB_TCGETSID, HAVE_TCGETSID.
56373         * lib/termios.in.h: Include <sys/types.h>.
56374         (tcgetsid): New declaration.
56375         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
56376         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
56377         * doc/posix-functions/tcgetsid.texi: Mention the new module.
56378         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
56380 2010-09-16  Bruno Haible  <bruno@clisp.org>
56382         Tests for module 'termios'.
56383         * modules/termios-c++-tests: New file.
56384         * modules/termios-tests: New file.
56385         * tests/test-termios-c++.cc: New file.
56386         * tests/test-termios.c: New file.
56388         New module 'termios'.
56389         * modules/termios: New file.
56390         * lib/termios.in.h: New file.
56391         * m4/termios_h.m4: New file.
56392         * doc/posix-headers/termios.texi: Mention the new module.
56394 2010-09-16  Eric Blake  <eblake@redhat.com>
56396         fdutimensat: add an atflag parameter
56397         * lib/fdutimensat.c (fdutimensat): Add new parameter.
56398         * lib/utimens.h (fdutimensat): Update prototype.
56399         * tests/test-fdutimensat.c: Adjust test to match.
56400         * NEWS: Document the change.
56401         Suggested by Paul Eggert.
56403 2010-09-16  Bruno Haible  <bruno@clisp.org>
56405         Fix typos in comments.
56406         * lib/striconveh.h: Fix typo in comment.
56407         * lib/login_tty.c (login_tty): Likewise.
56409 2010-09-15  Bruno Haible  <bruno@clisp.org>
56411         stdlib: clarify MirBSD WEXITSTATUS bug
56412         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
56413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56415 2010-09-15  Eric Blake  <eblake@redhat.com>
56417         stdlib: work around MirBSD WEXITSTATUS bug
56418         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
56419         * modules/stdlib (Depends-on): Add sys_wait.
56420         * tests/test-sys_wait.c (main): Enhance test.
56421         * tests/test-stdlib.c (main): Likewise.
56422         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
56424         docs: mention MacOS issue with WEXITSTATUS(constant)
56425         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
56426         issue.
56427         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
56429         strnlen: add tests
56430         * modules/strnlen-tests: New file.
56431         * tests/test-strnlen.c: Likewise.
56433 2010-09-14  Bruno Haible  <bruno@clisp.org>
56435         unistr/base: Avoid link errors when module 'libunistring' is also used.
56436         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
56437         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
56438         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
56439         Declare also when HAVE_LIBUNISTRING is set.
56440         Reported by Pádraig Brady <P@draigbrady.com>.
56442 2010-09-14  Eric Blake  <eblake@redhat.com>
56444         test-rawmemchr: make more robust
56445         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
56446         (Depends-on, configure.ac): Add needed prerequisites to use it.
56447         * modules/memchr-tests (Files, Depends-on, configure.ac):
56448         Likewise, to avoid implicit reliance on memchr module prereqs.
56449         * tests/test-memchr.c (main): Ensure proper masking.
56450         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
56451         reads.
56453         memchr: detect glibc Alpha bug
56454         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
56455         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
56456         Alpha.
56457         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
56458         * tests/test-memchr.c (main): Enhance test.
56459         Reported by Nelson H. F. Beebe.
56461 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56463         fts, getcwd, glob: audit for dirfd returning -1
56464         * lib/fts.c (opendir): Remove #define; no longer used.
56465         (opendirat): New arg PDIR_FD.  All callers changed.
56466         (fts_build, _opendir2): Use new opendirat to avoid the need for
56467         dirfd, or for checking whether dirfd returns a negative value.
56468         Don't use opendir; always use openat followed by fdopendir.
56469         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
56470         it.
56471         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
56472         returns -1 here.
56473         * modules/fts (Depends-on): Remove dirfd.
56474         * modules/getcwd (Depends-on): Likewise.
56476 2010-09-13  Eric Blake  <eblake@redhat.com>
56478         float: fix broken MirBSD header
56479         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
56480         * doc/posix-headers/float.texi (float.h): Document it.
56482 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56484         fts: use O_NOFOLLOW to avoid race condition when opening a directory
56485         * lib/fts.c (opendirat): New arg extra_flags.
56486         (__opendir2): Use it to avoid following symlinks when opening
56487         a directory, if symlinks are not supposed to be followed.  See
56488         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
56490         fdopendir: preserve argument fd before returning
56491         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
56492         (fdopendir_with_dup, fd_clone_opendir): New static functions.
56493         (fdopendir): Use them, arranging for FD to be open to the same
56494         directory that it was when it started.  (It might be temporarily
56495         closed while fdopendir is running, so this not thread- or
56496         signal-safe.)  Be careful to do the right thing even when file
56497         descriptors are scarce and dup fails with errno == EMFILE.  See
56498         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
56500 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
56502         regex: Pass the system regex if its only problem is 32-bit regoff_t.
56503         * NEWS: Document change.
56504         * m4/regex.m4: Disable test for regoff_t size.
56506 2010-09-13  Jim Meyering  <meyering@redhat.com>
56508         fts: don't operate on an invalid file descriptor after failed dup
56509         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
56510         negative file descriptor.
56512 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56514         savedir: add streamsavedir, deprecate fdsavedir
56515         * NEWS: Mention deprecation of fdsavedir.
56516         * lib/savedir.c (streamsavedir): New extern function, whose name
56517         ends in "savedir" to be consistent with the others.  This differs
56518         from savedirstream in that it doesn't close its argument.  The
56519         next version of GNU tar will use this instead of fdsavedir, to
56520         avoid some race conditions and conserve file descriptors.
56521         (savedirstream): Reimplement as a wrapper around streamsavedir.
56522         (fdsavedir): Add a comment deprecating this function.  As far as
56523         I know, only GNU tar used it, and GNU tar doesn't need it any more.
56524         * lib/savedir.h (streamsavedir): New decl.
56525         (fdsavedir): Add a comment deprecating this.
56527 2010-09-10  Bruno Haible  <bruno@clisp.org>
56529         langinfo: Fix last commit.
56530         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
56531         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
56532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56534 2010-09-10  Bruno Haible  <bruno@clisp.org>
56536         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
56537         * lib/progreloc.c (O_EXEC): Define fallback.
56539 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
56541         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
56542         * NEWS: Document recent changes to fcntl-h.
56543         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
56544         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
56545         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
56546         Similarly for O_SEARCH; this last was already true, but not documented.
56547         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
56548         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
56549         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
56550         Likewise.
56551         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
56552         is zero, not whether it is defined.
56553         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
56554         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
56555         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
56557 2010-09-10  Bruno Haible  <bruno@clisp.org>
56559         langinfo, nl_langinfo: Fix for IRIX 5.3.
56560         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
56561         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
56562         HAVE_LANGINFO_YESEXPR.
56563         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
56564         HAVE_LANGINFO_YESEXPR.
56565         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
56566         HAVE_LANGINFO_T_FMT_AMPM is 0.
56567         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
56568         HAVE_LANGINFO_YESEXPR is 0.
56569         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
56570         NOEXPR.
56571         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
56572         * doc/posix-functions/nl_langinfo.texi: Likewise.
56573         Reported by Eric Blake.
56575 2010-09-10  Bruno Haible  <bruno@clisp.org>
56577         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
56578         * doc/glibc-functions/login_tty.texi: Mention the include file problem
56579         on FreeBSD 8.0 and OpenBSD 4.6.
56580         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
56581         * m4/pty_h.m4 (gl_PTY_H): Likewise.
56582         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
56583         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
56584         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
56585         ac_includes_default.
56586         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
56588 2010-09-09  Eric Blake  <eblake@redhat.com>
56590         strsignal: work around NetBSD bug
56591         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
56592         * lib/string.in.h (includes): Likewise.
56593         * doc/posix-functions/strsignal.texi (strsignal): Document the
56594         bug.
56595         Reported by Nelson H. F. Beebe.
56597         gnulib-tool: work with NetBSD /bin/sh
56598         * gnulib-tool (func_cache_var, func_cache_lookup_module)
56599         (func_get_description, func_get_comment, func_get_status)
56600         (func_get_notice, func_get_applicability, func_get_filelist)
56601         (func_get_dependencies, func_get_autoconf_early_snippet)
56602         (func_get_autoconf_snippet, func_get_automake_snippet)
56603         (func_get_include_directive, func_get_link_directive)
56604         (func_get_license, func_get_maintainer, func_import): Avoid
56605         shell syntax errors from parsing syntax extensions.
56607 2010-09-09  Bruno Haible  <bruno@clisp.org>
56609         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
56610         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
56611         a reliable way to determine whether the 'alias' command works.
56613 2010-09-08  Jim Meyering  <meyering@redhat.com>
56615         init.sh: penalize a set-x-impaired shell; don't disqualify it
56616         * tests/init.sh: Too many shells corrupt application stderr when
56617         you set -x, so we can't afford to disqualify them, since at least
56618         on Irix-6.5, that would disqualify all bourne shells.
56619         Instead, use a two-pass approach.
56620         On the first pass, try to find a shell that meets the stricter
56621         condition that set -x does not corrupt stderr.
56622         If no shell meets the stricter condition, retest each candidate
56623         shell, but without that extra condition.  Finally, when
56624         VERBOSE=yes is requested and set -x might cause trouble, simply
56625         issue a warning and refrain from enabling debug output.
56627 2010-09-08  Eric Blake  <eblake@redhat.com>
56629         unsetenv: fix OpenBSD bug
56630         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
56631         * doc/posix-functions/unsetenv.texi (unsetenv): Update
56632         documentation.
56633         Reported by Jim Meyering.
56635         strtod: work around IRIX 6.5 bug
56636         * lib/strtod.c (strtod): Reparse number on shorter string if
56637         exponent parse was invalid.
56638         * tests/test-strtod.c (main): Add check for "0x1p 2".
56639         Reported by Tom G. Christensen.
56641         getopt: optimize previous patch
56642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
56643         empty variable.  Speed up awk script.
56644         Reported by Paolo Bonzini.
56646 2010-09-08  Jim Meyering  <meyering@redhat.com>
56648         test.sh: disqualify shells for which set -x corrupts stderr
56649         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
56650         and OpenBSD 4.7.  They make it so with "set -x", environment settings
56651         appear in stderr output.  For example, this command:
56652             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
56653         prints "P=1" on those two systems:
56655 2010-09-08  Bruno Haible  <bruno@clisp.org>
56657         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
56658         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
56659         commands, because some shells ignore redirections when there is an
56660         error in the command lookup.
56661         Reported by Eric Blake.
56663 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
56665         * lib/regex.h: Fix a mention of `regex_compile' (should be
56666         `re_compile_pattern').
56667         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
56668         (re_set_registers): Correct name of parameter in comment.
56670         * doc/regex.texi: Add documentation for missing syntax flags.
56671         Remove commented-out documentation of defunct syntax option
56672         RE_NO_EMPTY_ALTS.
56673         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
56674         Add documentation of re_set_registers.
56675         Document trick to re-use a pattern buffer by setting fastmap manually.
56676         Update documentation of struct re_pattern_buffer per public members.
56677         Uncomment documentation of equivalence class operators and
56678         collating symbol operators, since they are now implemented,
56679         Explain leftmost-longest matching in relation to alternatives.
56680         Tidy documentation of substring matching.
56681         Remove POSIX documentation, which is done better in
56682         glibc, and refer the reader there. Keep BSD API documentation, as
56683         that is not readily available elsewhere.
56685 2010-09-07  Eric Blake  <eblake@redhat.com>
56687         getopt: handle POSIXLY_CORRECT set but not exported
56688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
56689         export state of POSIXLY_CORRECT, due to bash set -o posix.
56690         Reported by Dustin J. Mitchell.
56692 2010-09-05  Bruno Haible  <bruno@clisp.org>
56694         gnulib-tool: Highlight the changed options.
56695         * gnulib-tool (func_usage): Display the --import, --add-import,
56696         --remove-import explanations in bold font.
56698 2010-09-06  Karl Berry  <karl@gnu.org>
56700         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
56702 2010-09-05  Bruno Haible  <bruno@clisp.org>
56704         uniwidth/width: Update comment.
56705         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
56706         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
56708 2010-09-05  Bruno Haible  <bruno@clisp.org>
56710         isinf, isnan: Relax license.
56711         * modules/isinf (License): Change from GPL to LGPL, with consent from
56712         Ben Pfaff.
56713         * modules/isnan (License): Likewise.
56714         Requested by Ludovic Courtès.
56716 2010-09-04  Bruno Haible  <bruno@clisp.org>
56718         gnulib-tool: Help migration from --import to --add-import or --update.
56719         * gnulib-tool: Emit a verbose error message when --import is used
56720         without any module name.
56722 2010-09-04  Bruno Haible  <bruno@clisp.org>
56724         Update doc about gnulib-tool.
56725         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
56726         'gnulib-tool --update' in more detail.
56727         Reported by Eric Blake.
56729 2010-09-04  Bruno Haible  <bruno@clisp.org>
56731         gnulib-tool: Change --import. New options --add/remove-import.
56732         * gnulib-tool: New options --add-import, --remove-import.
56733         (func_usage): Document them.
56734         (have_associative): Define always.
56735         (func_import): In import mode, don't merge the specified settings with
56736         the cached settings. Implement remove-import mode.
56737         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
56738         Explain when to use them versus --import.
56739         (Simple update): Use --add-import instead of --import.
56740         * NEWS: Mention the change.
56742 2010-09-04  Bruno Haible  <bruno@clisp.org>
56744         * doc/gnulib-tool.texi (Initial import): Update paragraph about
56745         separate gnulib.mk.
56747 2010-09-04  Bruno Haible  <bruno@clisp.org>
56749         gnulib-tool: Don't talk about CVS any more.
56750         * gnulib-tool (func_usage, func_import): Write "version control"
56751         instead of CVS.
56753 2010-09-04  Jim Meyering  <meyering@redhat.com>
56755         maint.mk: avoid obscure sc_copyright_check failure in coreutils
56756         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
56757         false positives (whose names may be ill-chosen) when searching
56758         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
56759         would cause a false-positive.
56761         avoid coreutils "make distcheck" failure
56762         Coreutils tests with an absolute build directory name that contains
56763         a space.  Not quoting this directory name caused a failure.
56764         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
56765         * tests/test-vc-list-files-cvs.sh: Likewise.
56767 2010-09-04  Bruno Haible  <bruno@clisp.org>
56769         gnulib-tool: Avoid error when run in a package without Makefile.am.
56770         * gnulib-tool: When collecting the m4dirs in a package that does not
56771         have a Makefile.am, eliminate those directories that contain no
56772         gnulib-cache.m4. Fix expression that counts these directories.
56774 2010-09-04  Bruno Haible  <bruno@clisp.org>
56776         update-copyright test: Improve output when perl is missing or too old.
56777         * tests/test-update-copyright.sh: Move test of Perl version down after
56778         the test whether Perl exists. Provide an explanation relating Perl's
56779         error message to Automake's SKIP: message.
56781 2010-09-04  Bruno Haible  <bruno@clisp.org>
56783         Don't augment PATH in TESTS_ENVIRONMENT.
56784         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
56785         set abs_aux_dir instead of augmenting PATH.
56786         * modules/vc-list-files-tests (Makefile.am): Likewise.
56787         * tests/test-update-copyright.sh: Augment PATH here.
56788         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
56789         path_prepend_.
56790         * tests/test-vc-list-files-git.sh: Likewise.
56792 2010-09-04  Jim Meyering  <meyering@redhat.com>
56794         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
56795         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
56797 2010-09-04  Bruno Haible  <bruno@clisp.org>
56799         strdup: Fix compilation error in C++ mode.
56800         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
56801         the macro.
56803 2010-09-04  Bruno Haible  <bruno@clisp.org>
56805         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
56806         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
56807         macro into a function.
56808         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
56810 2010-09-04  Bruno Haible  <bruno@clisp.org>
56812         Set PATH_SEPARATOR the same way autoconf does.
56813         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
56814         the value of PATH_SEPARATOR the same way autoconf-generated configure
56815         scripts do.
56816         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
56817         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
56819 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
56821         Set PATH_SEPARATOR the same way autoconf does.
56822         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
56823         the same way autoconf-generated configure scripts do.
56824         * posix-modules: Likewise.
56826 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56828         hash: fix safe_hasher const typo
56829         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
56830         const; otherwise, there is a type error later.
56832 2010-09-02  Jim Meyering  <meyering@redhat.com>
56834         test-update-copyright.sh: require perl 5.8.0
56835         * tests/test-update-copyright.sh: Require 5.8.0,
56836         which Tom G. Christensen has confirmed is adequate,
56837         while 5.6.1 is not.
56839 2010-09-02  Eric Blake  <eblake@redhat.com>
56841         tests: init.sh improvements for re-exec'ing with zsh
56842         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
56843         -vx through shell re-exec.
56844         Reported by Tom G. Christensen.
56846         wctype: fix typo in previous commit
56847         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
56848         Reported by Ludovic Courtès.
56850 2010-09-02  Jim Meyering  <meyering@redhat.com>
56852         test-update-copyright.sh: skip test if Perl is too old
56853         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
56854         Reported by Tom G. Christensen.
56856 2010-09-02  Bruno Haible  <bruno@clisp.org>
56858         wctype: Avoid compilation error on IRIX 6.5.30.
56859         * lib/wctype.in.h (iswblank): Declare with a replacement if
56860         REPLACE_ISWBLANK is set.
56861         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
56862         declared. Set REPLACE_ISWBLANK.
56863         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
56864         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
56865         * doc/posix-headers/wctype.texi: Likewise.
56866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56868 2010-09-01  Bruno Haible  <bruno@clisp.org>
56870         New module 'socketlib'.
56871         * modules/socketlib: New file.
56872         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
56873         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
56874         * modules/sockets (Depends-on): Add socketlib.
56875         Suggested by Sam Steingold <sds@gnu.org>.
56877 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56879         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
56881         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
56882         when one needs search access to a directory but not read access.
56883         On systems where it is available, it works in some cases where
56884         O_RDONLY does not, namely on directories that are searchable but
56885         not readable, and which need only to be searchable.  If O_SEARCH
56886         is not available, fall back to the traditional method of using
56887         O_RDONLY.
56889         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
56890         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
56891         when opening a directory that needs only to be searchable.
56892         * lib/chdir-safer.c (chdir_no_follow): Likewise.
56893         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
56894         * lib/openat-proc.c (openat_proc_name): Likewise.
56895         * lib/openat.c (openat_needs_fchdir): Likewise.
56896         * lib/save-cwd.c (save_cwd): Likewise.
56897         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
56899 2010-08-28  Bruno Haible  <bruno@clisp.org>
56901         New module 'host-cpu-c-abi'.
56902         * modules/host-cpu-c-abi: New file.
56903         * m4/host-cpu-c-abi.m4: New file, based on part of
56904         clisp/src/m4/general.m4.
56905         Requested by Sam Steingold <sds@gnu.org>.
56907 2010-08-31  Eric Blake  <eblake@redhat.com>
56908         and Jim Meyering  <meyering@redhat.com>
56910         hash: factor, and guard against misbehaving hasher function
56911         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
56912         of table->hasher's return value.  Also protect against a hash value
56913         so large that adding it to table->bucket results in a NULL pointer.
56914         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
56915         Use it in place of open-coded check-and-abort.
56917 2010-08-30  Bruno Haible  <bruno@clisp.org>
56919         hash: silence spurious clang warning
56920         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
56921         Reported by Eric Blake.
56923 2010-08-30  Eric Blake  <eblake@redhat.com>
56925         strstr, memmem, strcasestr: avoid leaked shell message
56926         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
56927         FreeBSD.
56928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56931         tests: silence clang warning
56932         * tests/test-malloca.c (do_allocation): Avoid dead store.
56934 2010-08-29  Bruno Haible  <bruno@clisp.org>
56936         gettext: Fix recent mistake.
56937         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
56939 2010-08-29  Bruno Haible  <bruno@clisp.org>
56941         selinux-h: Offer a --without-selinux option.
56942         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
56943         --without-selinux was specified, skip all tests and define
56944         HAVE_SELINUX_SELINUX_H to 0.
56945         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
56946         set LIB_SELINUX to empty.
56947         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
56948         gl_LIBSELINUX. If --without-selinux was specified, replace
56949         selinux/context.h.
56950         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
56952 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56953             Bruno Haible  <bruno@clisp.org>
56955         Make the module 'realloc-gnu' work again on AIX and OSF/1.
56956         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
56957         of HAVE_REALLOC.
56958         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
56959         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
56960         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
56961         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
56963 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56964             Bruno Haible  <bruno@clisp.org>
56966         Make the module 'calloc-gnu' work again on AIX and OSF/1.
56967         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
56968         HAVE_CALLOC.
56969         * lib/xmalloc.c: Update accordingly.
56970         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
56971         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
56972         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
56974 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56975             Bruno Haible  <bruno@clisp.org>
56977         Make the module 'malloc-gnu' work again on AIX and OSF/1.
56978         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
56979         HAVE_MALLOC.
56980         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
56981         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
56982         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
56984 2010-08-29  Bruno Haible  <bruno@clisp.org>
56986         Update modules list.
56987         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
56988         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
56989         (String handling <string.h>): Add astrxfrm.
56990         (File system functions): Add readlinkat.
56992 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56994         Tests for module 'realloc-gnu'.
56995         * modules/realloc-gnu-tests: New file.
56996         * tests/test-realloc-gnu.c: New file.
56998         Tests for module 'calloc-gnu'.
56999         * modules/calloc-gnu-tests: New file.
57000         * tests/test-calloc-gnu.c: New file.
57002         Tests for module 'malloc-gnu'.
57003         * modules/malloc-gnu-tests: New file.
57004         * tests/test-malloc-gnu.c: New file.
57006 2010-08-28  Bruno Haible  <bruno@clisp.org>
57008         Rename module 'realloc' -> 'realloc-gnu'.
57009         * modules/realloc-gnu: New file, copied from modules/realloc.
57010         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
57011         obsolete.
57012         * modules/mgetgroups (Depends-on): Update.
57013         * doc/posix-functions/realloc.texi: Update.
57014         * NEWS: Mention the change.
57016         Rename module 'calloc' -> 'calloc-gnu'.
57017         * modules/calloc-gnu: New file, copied from modules/calloc.
57018         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
57019         obsolete.
57020         * doc/posix-functions/calloc.texi: Update.
57021         * NEWS: Mention the change.
57023         Rename module 'malloc' -> 'malloc-gnu'.
57024         * modules/malloc-gnu: New file, copied from modules/malloc.
57025         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
57026         obsolete.
57027         * modules/argp (Depends-on): Update.
57028         * modules/regex (Depends-on): Update.
57029         * doc/posix-functions/malloc.texi: Update.
57030         * NEWS: Mention the change.
57032 2010-08-28  Eric Blake  <eblake@redhat.com>
57034         pread, pwrite: add missing dependency
57035         * modules/pread (Depends-on): Add extensions.
57036         * modules/pwrite (Depends-on): Likewise.
57038 2010-08-28  Bruno Haible  <bruno@clisp.org>
57040         unistr/u*-strchr: Fix tests dependencies.
57041         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
57042         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
57043         Reported by Ian Beckwith <ianb@erislabs.net>.
57045 2010-08-28  Bruno Haible  <bruno@clisp.org>
57047         read-file: Don't occupy too much unused memory.
57048         * lib/read-file.c (fread_file): Shrink the buffer at the end.
57050 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
57051             Eric Blake  <eblake@redhat.com>
57052             Bruno Haible  <bruno@clisp.org>
57054         read-file: Avoid memory reallocations with regular files.
57055         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
57056         (fread_file): With regular files, use the remaining length as the
57057         initial buffer size.  Check against overflow.
57058         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
57059         sys_stat.
57061 2010-08-28  Bruno Haible  <bruno@clisp.org>
57063         ftello: Relax license.
57064         * modules/ftello (License): Relax to LGPLv2+.
57065         Reported by Eric Blake.
57067 2010-08-28  Bruno Haible  <bruno@clisp.org>
57069         Avoid relocwrapper link errors due to gnulib replacement functions.
57070         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
57071         function.
57072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57074 2010-08-28  Bruno Haible  <bruno@clisp.org>
57076         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
57077         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
57078         defined.
57079         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
57080         Suggested by Eric Blake.
57082 2010-08-28  Bruno Haible  <bruno@clisp.org>
57084         sys_socket, netdb: Ensure socklen_t gets defined.
57085         * modules/sys_socket (Depends-on): Add socklen.
57086         * modules/netdb (Depends-on): Likewise.
57087         * modules/getaddrinfo (Depends-on): Remove socklen.
57088         * modules/getsockopt (Depends-on): Likewise.
57089         * modules/setsockopt (Depends-on): Likewise.
57090         * tests/test-sys_socket.c: Check that socklen_t is defined.
57091         * tests/test-netdb.c: Likewise.
57092         * m4/socklen.m4: Update comments.
57093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57095 2010-08-27  Eric Blake  <eblake@redhat.com>
57097         login_tty: add missing dependency
57098         * modules/login_tty (Depends-on): Add pty.
57100 2010-08-26  Eric Blake  <eblake@redhat.com>
57102         lib-symbol-versions: fix m4 quoting
57103         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
57104         format for AC_LINK_IFELSE.
57106         glob: fix compile test
57107         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
57109         btowc: fix missing file
57110         * modules/btowc (Files): Also ship locale-fr.m4.
57112         lseek: fix link test
57113         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
57114         AC_LINK_IFELSE.
57116         include_next: silence autoconf 2.68 warning
57117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
57118         AC_COMPILE_IFELSE as special.
57119         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
57120         autoconf < 2.68.
57122         acl: fix compilation test
57123         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
57124         AC_COMPILE_IFELSE.
57126 2010-08-26  Bruno Haible  <bruno@clisp.org>
57128         Modernize AC_TRY_RUN invocations.
57129         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
57130         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
57131         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
57132         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
57133         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
57134         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
57135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
57136         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57137         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57138         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57139         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
57140         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
57141         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
57142         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
57143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
57144         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57145         gl_MBRLEN_NUL_RETVAL): Likewise.
57146         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57147         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
57148         Likewise.
57149         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57150         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
57151         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
57152         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
57153         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
57154         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
57155         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
57156         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
57157         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
57158         Likewise.
57159         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
57160         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
57161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57162         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57163         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57164         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
57165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57166         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
57167         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57170 2010-08-26  Bruno Haible  <bruno@clisp.org>
57172         Modernize AC_TRY_LINK invocations.
57173         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
57174         AC_TRY_LINK.
57175         * m4/argp.m4 (gl_ARGP): Likewise.
57176         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
57177         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57179         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57180         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57181         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
57182         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
57183         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
57184         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57185         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
57186         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57187         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
57188         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
57189         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
57190         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57191         * m4/hostent.m4 (gl_HOSTENT): Likewise.
57192         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57193         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
57194         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
57195         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
57196         Likewise.
57197         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
57198         Likewise.
57199         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
57200         Likewise.
57201         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
57202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
57203         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
57204         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
57205         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
57206         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
57207         * m4/servent.m4 (gl_SERVENT): Likewise.
57208         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
57209         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
57210         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
57211         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
57212         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
57213         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
57214         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
57215         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
57216         * modules/tsearch-tests (configure.ac): Likewise.
57218 2010-08-26  Bruno Haible  <bruno@clisp.org>
57220         Modernize AC_TRY_COMPILE invocations.
57221         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
57222         AC_TRY_COMPILE.
57223         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
57224         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
57225         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
57226         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57227         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
57228         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57229         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57230         * m4/lock.m4 (gl_LOCK): Likewise.
57231         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
57232         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57233         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
57234         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
57235         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
57236         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
57237         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
57238         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
57239         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
57240         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
57241         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
57242         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57243         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
57244         extraneous semicolon.
57246 2010-08-26  Jim Meyering  <meyering@redhat.com>
57248         stat-time: relax license LGPL
57249         * modules/stat-time (License): Change from GPL to LGPL,
57250         with consent from all contributors, for use in libguile.
57251         Requested by Ludovic Courtès.
57253 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
57255         poll: return immediately on POLLHUP.
57256         * lib/poll.c (poll): Always set timeout before wait_timeout is
57257         computed.
57259 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57261         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
57262         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
57263         rmdir ("dir/.//"), unlinkat.
57265 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57267         stdbool: avoid spurious failure with modern xlc
57268         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57270 2010-08-24  Bruno Haible  <bruno@clisp.org>
57272         getloadavg: simplify code
57273         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
57274         gl_have_func. Update comments.
57276 2010-08-24  Eric Blake  <eblake@redhat.com>
57278         getloadavg: don't define SVR4 on cygwin
57279         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
57280         only define SVR4 when -lkvm is required.
57281         Reported by Yaakov Selkowitz.
57283 2010-08-24  Bruno Haible  <bruno@clisp.org>
57285         priv-set: fix comment
57286         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
57288 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57290         priv-set: fix comments
57291         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
57292         to match code, as suggested by David Bartley in:
57293         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
57295 2010-08-23  Eric Blake  <eblake@redhat.com>
57297         stdbool: avoid rejecting clang
57298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
57299         * tests/test-stdbool.c: Enable more tests if using the system
57300         <stdbool.h> instead of the gnulib replacement.
57301         (main): Move xlc bug test to a runtime test for all compilers.
57302         Reported by Anders Kaseorg.
57304         argz: fix shell quoting issue
57305         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
57306         Reported by Charles Wilson.
57308 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
57309             Erik Faye-Lund <kusmabite@gmail.com>
57311         poll, select: handle ERROR_BROKEN_PIPE.
57312         * lib/poll.c (win32_compute_revents): Return POLLHUP when
57313         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57314         * lib/select.c (win32_compute_revents): Do not mark a pipe
57315         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
57317 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
57319         fts: allow compilation with C++
57320         * lib/fts_.h: Specify extern "C" linkage with C++.
57322 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57324         Fix gnulib-tool sed script de-commentation for AIX sed.
57325         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
57326         sed.
57328 2010-08-17  Eric Blake  <eblake@redhat.com>
57330         test-stddef: test for (some) offsetof bugs
57331         * tests/test-stddef.c: Enhance test to ensure correct type of
57332         offsetof.
57333         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
57334         that we are not fixing at this time.
57336 2010-08-15  Bruno Haible  <bruno@clisp.org>
57338         stpncpy: Allow stpncpy to be defined as a macro.
57339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
57340         if it's already correctly declared.
57341         * lib/string.in.h (stpncpy): Undefine before redefining.
57342         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
57344 2010-08-14  Bruno Haible  <bruno@clisp.org>
57346         Rename module 'memxfrm' to 'amemxfrm'.
57347         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
57348         (amemxfrm): Renamed from memxfrm.
57349         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
57350         (amemxfrm): Renamed from memxfrm.
57351         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
57352         * NEWS: Mention the change.
57353         * MODULES.html.sh (String handling <string.h>): Update.
57354         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
57355         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
57356         * lib/unicase/u16-casexfrm.c: Likewise.
57357         * lib/unicase/u32-casexfrm.c: Likewise.
57358         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
57359         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
57360         * lib/uninorm/u16-normxfrm.c: Likewise.
57361         * lib/uninorm/u32-normxfrm.c: Likewise.
57362         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
57363         memxfrm.
57364         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
57365         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
57366         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
57367         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
57368         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
57369         Suggested by Paul Eggert.
57371 2010-08-14  Bruno Haible  <bruno@clisp.org>
57373         Tests for module 'astrxfrm'.
57374         * modules/astrxfrm-tests: New file.
57375         * tests/test-astrxfrm.c: New file.
57377         New module 'astrxfrm'.
57378         * lib/astrxfrm.h: New file.
57379         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
57380         * modules/astrxfrm: New file.
57382 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
57384         regex: Tweak doc.
57385         * doc/regex.texi (Overview): Don't mention regex.c.
57386         (GNU Regular Expression Compiling): Likewise.
57387         (Match-end-of-line Operator): Mention 'not_eol'.
57389 2010-08-14  Brian Gough  <bjg@gnu.org>
57390             Bruno Haible  <bruno@clisp.org>
57392         git-merge-changelog: add doc relating to use with bzr and hg.
57393         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
57395 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
57397         pthread: fix pthread.h creation for srcdir != builddir
57398         * modules/pthread (Makefile.am): Fix the rule to work also in a
57399         non-srcdir build.
57401 2010-08-13  Karl Berry  <karl@gnu.org>
57403         * doc/regex.texi (Predefined Syntaxes): @smallexample.
57404         * doc/posix-*/*: force line break before @url of POSIX
57405         specifications.
57406         Suggested by Werner Lemberg.
57408 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57410         strtod: fix const diagnostic
57411         * lib/strtod.c (strtod): Don't assign const char * to char *,
57412         as this elicits a warning from GCC when warnings are enabled.
57414 2010-08-10  Pádraig Brady  <P@draigbrady.com>
57415         and Eric Blake  <eblake@redhat.com>
57417         copy-acl: ignore ENOTSUP on HP-UX
57418         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
57419         so that it is available for HP-UX.
57420         * lib/copy-acl.c (qcopy_acl): Use it.
57421         Reported by Patrick M. Callahan.
57423 2010-08-10  Eric Blake  <eblake@redhat.com>
57425         open, chown: relax license
57426         * modules/open (License): Change to LGPLv2+, with consent by all
57427         authors, for use in augeas.
57428         * modules/chown (License): Likewise.
57429         * modules/lchown (Likewise): Likewise.
57430         Requested by Adam Stokes.
57432 2010-08-09  Karl Berry  <karl@gnu.org>
57434         * build-aux/ar-lib: new file, import from Automake.
57435         * config/srclist.txt: autocheck for updates.
57437 2010-08-09  Eric Blake  <eblake@redhat.com>
57439         readlinkat: adjust client modules
57440         * modules/areadlinkat (Depends-on): Use readlinkat, not
57441         symlinkat.
57442         * modules/areadlinkat-with-size (Depends-on): Likewise.
57444         mknod: be more vocal about danger of running tests as root
57445         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
57446         root, since that is just asking for problems.
57447         Suggested by Bruno Haible, based on a report by Rainer Tammer.
57449         readlinkat: split into its own module
57450         * modules/symlinkat: Split readlinkat...
57451         * modules/readlinkat: ...into separate module.
57452         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
57453         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
57454         * lib/symlinkat.c (readlinkat): Move...
57455         * lib/readlinkat.c: ...into new file.
57456         * modules/symlinkat-tests: Split readlinkat test...
57457         * modules/readlinkat-tests: ...into separate module.
57458         * tests/test-symlinkat.c: Split...
57459         * tests/test-readlinkat.c: ...into new file.
57460         * NEWS: Document the split.
57461         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57462         * lib/unistd.in.h (readlinkat): Likewise.
57463         Suggested by Bruno Haible.
57465 2010-08-08  Bruno Haible  <bruno@clisp.org>
57467         memxfrm: Speed up.
57468         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
57469         that usually only one call to strxfrm is necessary for each string
57470         part.
57471         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57473 2010-08-07  Karl Berry  <karl@gnu.org>
57475         * doc/posix-headers/limits.texi,
57476         * doc/posix-functions/malloc.texi,
57477         * doc/posix-functions/strsignal.texi: missing @item.
57478         * doc/ld-version-script.texi: spurious leading i.
57479         * doc/regex.texi (Interval Operators): no commas inside @var.
57481 2010-08-01  Bruno Haible  <bruno@clisp.org>
57483         Integrate the regex documentation.
57484         * doc/gnulib.texi: Define 'cn' index.
57485         (Regular expressions): New a chapter that includes regex.texi and
57486         regexprops-generic.texi.
57487         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
57488         syntax.
57490         Whitespace cleanup.
57491         * doc/regex.texi: Remove trailing spaces.
57493         Add regex documentation.
57494         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
57495         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
57496         Written by Kathy A. Hargreaves and Karl Berry.
57498 2010-08-01  Bruno Haible  <bruno@clisp.org>
57500         link: Update documentation.
57501         * doc/posix-functions/link.texi: Update regarding Solaris.
57503 2010-07-31  Bruno Haible  <bruno@clisp.org>
57505         Update modules list.
57506         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
57507         (String handling <string.h>): Add memcmp2, memxfrm.
57508         (Container data structures): Add xlist, xsublist, xoset.
57509         (Core language properties): Add alignof, unused-parameter.
57510         (Process control, Numeric conversion functions <stdlib.h>): Renamed
57511         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
57512         (Unibyte characters <ctype.h>): New section.
57513         (String handling <string.h>): New section.
57514         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
57515         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
57516         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
57517         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
57518         tan, tanh, tanl, y0, y1, yn.
57519         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
57520         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
57521         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
57522         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
57523         unlockpt, vdprintf, vdprintf-posix.
57524         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
57525         (File system functions): Add concat-filename, sys_file, sys_ioctl,
57526         xconcat-filename.
57527         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
57528         getdtablesize, pipe2, pipe2-safer.
57529         (Security): New section.
57530         (Networking functions): Add accept4.
57531         (Signal handling): Add sigpipe.
57532         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
57533         mbmemcasecoll.
57534         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
57535         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
57536         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
57537         pipe-filter-ii.
57538         (Misc): Add argp-version-etc, login_tty, parse-duration.
57540 2010-07-31  Bruno Haible  <bruno@clisp.org>
57542         Improve doc in MODULES.html.
57543         * modules/linkat (Description): Add the word "function".
57544         * modules/mkfifo (Description): Likewise.
57545         * modules/mknod (Description): Likewise.
57546         * modules/remove (Description): Likewise.
57547         * modules/renameat (Description): Likewise.
57548         * modules/stat (Description): Likewise.
57549         * modules/symlink (Description): Likewise.
57550         * modules/unlink (Description): Likewise.
57552 2010-07-31  Bruno Haible  <bruno@clisp.org>
57554         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
57555         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
57556         option --enable/disable-c++ instead of --enable/disable-cxx.
57557         * NEWS: Mention the change.
57559 2010-07-31  Bruno Haible  <bruno@clisp.org>
57561         readlink, areadlink: Relax test a bit.
57562         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
57563         alternative to ENOTDIR.
57564         * tests/test-areadlink.h (test_areadlink): Likewise.
57565         Reported by Rainer Tammer.
57567 2010-07-31  Bruno Haible  <bruno@clisp.org>
57569         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
57570         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
57571         character, perform the search using U_STRCHR.
57572         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
57573         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
57574         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
57575         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
57576         Suggested by Paolo Bonzini.
57578 2010-07-31  Bruno Haible  <bruno@clisp.org>
57580         unistr/u*-strstr: Fix dependencies.
57581         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
57582         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
57583         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
57585 2010-07-31  Bruno Haible  <bruno@clisp.org>
57587         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
57588         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
57589         the beginning of the loop.
57590         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
57591         cases in 'switch' statement.
57593         unistr/u8-strchr: Fix several bugs.
57594         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
57595         the string. When not found, return NULL, not a pointer near the end.
57597         More tests for unistr/u8-strchr.
57598         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
57599         that the function does not read past the first occurrence of the byte
57600         being searched.
57601         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
57602         * tests/unistr/test-u16-strchr.c (main): New function.
57603         * tests/unistr/test-u32-strchr.c (main): New function.
57605 2010-07-31  Bruno Haible  <bruno@clisp.org>
57607         posix-modules: Ignore backup files of documentation files.
57608         * posix-modules: grep only through files named *.texi.
57610 2010-07-31  Bruno Haible  <bruno@clisp.org>
57612         symlinkat: Fix documentation.
57613         * doc/posix-functions/readlinkat.texi: Fix module name.
57615 2010-07-31  Bruno Haible  <bruno@clisp.org>
57617         fchownat: Replace also when chown has the trailing slash bug.
57618         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
57619         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
57620         introduced on 2010-04-10.
57621         Reported by Rainer Tammer.
57623 2010-07-31  Bruno Haible  <bruno@clisp.org>
57625         linkat: Work around AIX 7.1 bug.
57626         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
57627         whether linkat handles trailing slash correctly. If not, replace linkat
57628         and define LINKAT_TRAILING_SLASH_BUG.
57629         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
57630         check whether (fd1,file1) points to a directory if file1 or file2 ends
57631         in a slash. Code taken from lib/link.c.
57632         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
57633         Reported by Rainer Tammer.
57635 2010-07-31  Bruno Haible  <bruno@clisp.org>
57637         Correctly determine whether pow is available in libc on AIX 7 with xlc.
57638         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
57639         This disables an xlc optimization that was causing wrong test results.
57640         Reported by Rainer Tammer.
57642 2010-07-31  Bruno Haible  <bruno@clisp.org>
57644         iconv: Work around AIX 6.1..7.1 bug.
57645         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
57646         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
57647         cross-compiling, guess no on all versions of AIX.
57648         Reported by Rainer Tammer.
57650 2010-07-31  Bruno Haible  <bruno@clisp.org>
57652         readlink: Relax test a bit.
57653         * tests/test-readlink.h (test_readlink): Allow different errno value
57654         when readlink is called with a file name that ends in / and refers to
57655         a file.
57656         Suggested by Eric Blake.
57657         Reported by Rainer Tammer.
57659 2010-07-31  Bruno Haible  <bruno@clisp.org>
57661         copysign: Does not require -lm on glibc systems.
57662         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
57663         gl_COMMON_DOUBLE_MATHFUNC.
57664         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
57666 2010-07-31  Bruno Haible  <bruno@clisp.org>
57668         duplocale: Work around AIX 7.1 bug.
57669         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
57670         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
57671         * lib/duplocale.c (rpl_duplocale): Update comment.
57672         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
57673         Reported by Rainer Tammer.
57675 2010-07-30  Bruno Haible  <bruno@clisp.org>
57677         dirfd: Avoid link error on AIX 7.1.
57678         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
57679         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
57680         exist, set REPLACE_DIRFD.
57681         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
57682         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
57683         * doc/posix-functions/dirfd.texi: Update.
57684         Reported by Rainer Tammer.
57686 2010-07-30  Eric Blake  <eblake@redhat.com>
57688         strtod: next round of AIX fixes
57689         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
57690         exponent.
57691         * tests/test-strtod.c (main): Enhance tests.
57692         * doc/posix-functions/strtod.texi (strtod): Document next bug.
57693         Reported by Rainer Tammer.
57695         futimens: fix configure check
57696         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
57697         Reported by Bruno Haible.
57699 2010-07-30  Bruno Haible  <bruno@clisp.org>
57701         getline: Update regarding AIX.
57702         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
57703         Reported by Rainer Tammer.
57705 2010-07-30  Bruno Haible  <bruno@clisp.org>
57707         wcwidth: Drop replacement on AIX 7.
57708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
57709         AIX 7.
57710         Reported by Rainer Tammer.
57712 2010-07-30  Bruno Haible  <bruno@clisp.org>
57714         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
57715         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
57716         a 'char *'.
57717         Reported by Rainer Tammer.
57719 2010-07-30  Bruno Haible  <bruno@clisp.org>
57721         unlink: Update regarding AIX.
57722         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
57723         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
57724         Reported by Rainer Tammer.
57726 2010-07-30  Bruno Haible  <bruno@clisp.org>
57728         symlink: Update regarding AIX.
57729         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
57730         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
57731         Reported by Rainer Tammer.
57733 2010-07-30  Bruno Haible  <bruno@clisp.org>
57735         strndup: Update regarding AIX.
57736         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
57737         AIX 7.
57738         Reported by Rainer Tammer.
57740 2010-07-30  Bruno Haible  <bruno@clisp.org>
57742         stat: Update regarding AIX.
57743         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
57744         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
57745         Reported by Rainer Tammer.
57747 2010-07-30  Bruno Haible  <bruno@clisp.org>
57749         truncl: Fix autoconf test.
57750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
57751         whether truncl works.
57752         Reported by Rainer Tammer.
57754 2010-07-30  Bruno Haible  <bruno@clisp.org>
57756         round: Update regarding AIX.
57757         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
57758         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
57759         Reported by Rainer Tammer.
57761 2010-07-30  Bruno Haible  <bruno@clisp.org>
57763         rename: Update regarding AIX.
57764         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
57765         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
57766         Reported by Rainer Tammer.
57768 2010-07-30  Bruno Haible  <bruno@clisp.org>
57770         printf.m4: Update regarding AIX.
57771         * m4/printf.m4: Update comments regarding AIX.
57772         Reported by Rainer Tammer.
57774 2010-07-30  Bruno Haible  <bruno@clisp.org>
57776         iconv: Update regarding AIX.
57777         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
57778         AIX 7.
57779         Reported by Rainer Tammer.
57781 2010-07-30  Bruno Haible  <bruno@clisp.org>
57783         getopt: Update regarding AIX.
57784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
57785         no on AIX.
57786         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
57787         Reported by Rainer Tammer.
57789 2010-07-30  Bruno Haible  <bruno@clisp.org>
57791         ldexpl; Update regarding AIX.
57792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
57793         on AIX 7.
57794         Reported by Rainer Tammer.
57796 2010-07-30  Bruno Haible  <bruno@clisp.org>
57798         frexpl: Update regarding AIX.
57799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
57800         on AIX 7.
57801         Reported by Rainer Tammer.
57803 2010-07-30  Bruno Haible  <bruno@clisp.org>
57805         open, fopen: Update regarding AIX.
57806         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
57807         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
57808         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
57809         * doc/posix-functions/fopen.texi: Likewise.
57810         Reported by Rainer Tammer.
57812 2010-07-30  Bruno Haible  <bruno@clisp.org>
57814         chown: Update doc regarding AIX.
57815         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
57816         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
57817         Reported by Rainer Tammer.
57819 2010-07-30  Eric Blake  <eblake@redhat.com>
57821         strtod: fix bug in replacement function on AIX
57822         * lib/strtod.c (strtod): Special case broken "0x" parse in
57823         underlying strtod.
57824         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
57825         * doc/posix-functions/strtod.texi (strtod): Likewise.
57826         Reported by Rainer Tammer.
57828 2010-07-30  Bruno Haible  <bruno@clisp.org>
57830         mbrlen: Fix cross-compilation guess for AIX.
57831         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
57832         guess. Leftover from 2008-12-22.
57834 2010-07-30  Bruno Haible  <bruno@clisp.org>
57836         mbrtowc: Fix cross-compilation guess for AIX.
57837         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
57838         guess. Leftover from 2008-12-21.
57840 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
57842         init.sh: work around trap limitation of some shells
57843         * tests/init.sh (setup_): Move exit trap outside of shell function.
57845 2010-07-29  Eric Blake  <eblake@redhat.com>
57847         strtod: aid debugging
57848         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
57849         understanding why strtod is rejected.
57851 2010-07-28  Bruno Haible  <bruno@clisp.org>
57853         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
57854         * lib/unistr/u8-chr.c: Include <string.h>.
57855         * tests/unistr/test-u8-chr.c: Likewise.
57856         * tests/unistr/test-u16-chr.c: Likewise.
57857         * tests/unistr/test-u32-chr.c: Likewise.
57858         * tests/unistr/test-u8-strchr.c: Likewise.
57859         * tests/unistr/test-u16-strchr.c: Likewise.
57860         * tests/unistr/test-u32-strchr.c: Likewise.
57861         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
57862         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
57863         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
57864         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
57866 2010-07-28  Bruno Haible  <bruno@clisp.org>
57868         Use spaces for indentation, not tabs.
57869         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
57871 2010-07-27  Bruno Haible  <bruno@clisp.org>
57873         mbspcasecmp: Fix function specification.
57874         * lib/string.in.h (mbspcasecmp): Fix specification comment.
57875         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
57876         Reported by Eric Blake <eblake@redhat.com>.
57878 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
57880         timespec: use cast and not conditional, as truncation isn't possible
57881         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
57882         instead of a conditional.  Comment about the situation in more detail.
57883         This undoes most of the 2009-10-29 patch.
57885 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
57887         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
57888         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
57889         * lib/unistr/u8-strchr.c: Likewise.
57890         * modules/unistr/u8-chr: Depend on memchr.
57892         unistr/u*-strchr: add tests
57893         * modules/unistr/u8-strchr-tests: New file.
57894         * modules/unistr/u16-strchr-tests: New file.
57895         * modules/unistr/u32-strchr-tests: New file.
57896         * tests/unistr/test-strchr.h: New file.
57897         * tests/unistr/test-u8-strchr.c: New file.
57898         * tests/unistr/test-u16-strchr.c: New file.
57899         * tests/unistr/test-u32-strchr.c: New file.
57901         unistr/u*-chr: test multibyte sequences more
57902         * tests/unistr/test-chr.h: Do complete testing of the characters in the
57903         test vector.
57904         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
57905         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
57906         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
57908         unistr/u*-chr: test multibyte sequences
57909         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
57911         unistr/u*-chr: prepare for multibyte tests
57912         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
57913         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
57914         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
57915         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
57916         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
57917         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
57919 2010-07-18  Bruno Haible  <bruno@clisp.org>
57921         unistr/u8-strchr: Optimize non-ASCII argument case.
57922         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
57923         because the first byte often matches anyway.
57924         Reported by Pádraig Brady <P@draigbrady.com>.
57926 2010-07-15  Karl Berry  <karl@gnu.org>
57928         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
57930 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
57932         getcwd: on Solaris, work better if ancestors are inaccessible
57933         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
57934         buffer and size, try again with a large buffer.  This works better
57935         on Solaris, since its getcwd succeeds even if the path to the root
57936         is inaccessible, and this is helpful in common cases such as .zfs
57937         hidden directories.  Problem reported by J Chapman Flack in
57938         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
57939         Use system getcwd if it's declared, not merely if it's partly
57940         working; use the partly-working test only to avoid needless effort
57941         if the system getcwd fails.
57942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
57943         comment that was already obsolete and is now even more obsolete.
57944         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
57945         now might call strdup.
57947 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
57949         pthread: Add enough so that coreutils/src/sort.c compiles.
57950         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
57951         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
57952         gnulib. Include <sched.h> and <time.h>, as per POSIX.
57953         Include <sys/types.h>, in case it defines pthread_t.
57954         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
57955         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
57956         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
57957         (pthread_rwlockattr_t, pthread_spinlock_t):
57958         New typedefs, if HAVE_PTHREAD_T is not defined.
57959         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
57960         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
57961         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
57962         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
57963         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
57964         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
57965         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
57966         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
57967         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
57968         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
57969         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
57970         New macros.
57971         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
57972         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
57973         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
57974         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
57975         (pthread_spin_unlock): New dummy functions.
57976         (pthread_create): Return EAGAIN; don't set errno.
57977         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
57978         require AC_C_INLINE.
57979         * modules/pthread (Depends-on): Add sched, time.
57980         (pthread.h): Use AM_V_GEN.
57982 2010-07-13  Bruno Haible  <bruno@clisp.org>
57984         striconveh: Don't malloc memory if the result buffer is sufficient.
57985         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
57986         buffer if its size is sufficient.
57987         Reported by Ludovic Courtès <ludo@gnu.org>.
57989 2010-07-13  Bruno Haible  <bruno@clisp.org>
57991         strtod: Add safety check.
57992         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
57994 2010-07-12  Bruno Haible  <bruno@clisp.org>
57996         Unify tests that set gl_cv_func_ldexpl_no_libm.
57997         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
57998         gl_FUNC_LDEXPL.
57999         (gl_FUNC_LDEXPL): Invoke it.
58000         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58002 2010-07-12  Bruno Haible  <bruno@clisp.org>
58004         Unify tests that set gl_cv_func_ldexp_no_libm.
58005         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
58006         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
58007         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
58008         (configure.ac): Simply invoke gl_FUNC_LDEXP.
58009         * modules/strtod (Files): Add m4/ldexp.m4.
58011 2010-07-12  Bruno Haible  <bruno@clisp.org>
58013         Unify tests that set gl_cv_func_frexpl_no_libm.
58014         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
58015         gl_FUNC_FREXPL_NO_LIBM.
58016         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
58017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58019 2010-07-12  Bruno Haible  <bruno@clisp.org>
58021         Unify tests that set gl_cv_func_frexp_no_libm.
58022         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
58023         gl_FUNC_FREXP_NO_LIBM.
58024         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
58025         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
58027 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58029         memcoll: clarify sizes versus lengths, document better, and tweak perf
58030         * lib/memcoll.c (strcoll_loop, memcoll0):
58031         Improve quality of descriptive comments.  Name variables
58032         consistently as to whether they are lengths (which do not include
58033         terminating null) versus sizes (which do).
58034         * lib/xmemcoll.c (xmemcoll0): Likewise.
58035         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
58036         returned when s1size == 0; this is easier to compile and saves
58037         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
58039 2010-07-12  Bruno Haible  <bruno@clisp.org>
58041         Tests for module '_Exit'.
58042         * modules/_Exit-tests: New file.
58043         * tests/test-_Exit.sh: New file.
58044         * tests/test-_Exit.c: New file.
58046         New module '_Exit'.
58047         * lib/stdlib.in.h (__attribute__): New macro.
58048         (_Exit): New declaration.
58049         * lib/_Exit.c: New file.
58050         * m4/_Exit.m4: New file.
58051         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
58052         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
58053         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
58054         * modules/_Exit: New file.
58055         * tests/test-stdlib-c++.cc (_Exit): Check signature.
58056         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
58058 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
58060         strtod: make it more-accurate typically, and don't require libm
58061         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
58062         Include limits.h.  Don't include string.h.
58063         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
58064         (locale_isspace): New function, so that no casts are needed to
58065         check whether *s is a space.
58066         (ldexp): Provide an unused dummy if not available.
58067         (scale_radix_exp, parse_number, underlying_strtod): New functions.
58068         (strtod): Use them.  This implementation prefers to use the
58069         underlying strtod if available, falling back on our own code
58070         only to fix known bugs.  This is more likely to produce an
58071         accurate result.  Also, it avoids the use of libm functions.
58072         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
58073         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
58074         was absent, but it caused a test failure with coreutils.
58075         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
58076         with libm.
58077         * modules/strtod (Makefile.am, Link): libm is no longer needed.
58078         * modules/strtod-tests (Makefile.am): Likewise.
58080 2010-07-11  Pádraig Brady  <P@draigBrady.com>
58081             Bruno Haible  <bruno@clisp.org>
58083         unistr/u8-strchr: Optimize ASCII argument case.
58084         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
58086 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58088         (x)memcoll: minor tweaks
58089         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
58090         is after the type that it qualifies.
58091         (memcoll0): Likewise.
58092         * lib/memcoll.h (memcoll0): Likewise.
58093         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
58094         * lib/xmemcoll.h (xmemcoll0): Likewise.
58095         * lib/memcoll.c (memcoll0): Correct the comment.  This function
58096         differs from memcoll in that the NUL byte is part of the argument.
58097         Omit the abort-checks, as performance is a real issue here.  Plus,
58098         the checks were wrong anyway (an off-by-one error).  Omit local
58099         variable 'diff', as it's a bit clearer that way.
58100         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
58101         no longer needed.
58103 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
58105         (x)memcoll: speedup when input is known to be NUL delimited
58106         * lib/memcoll.c: Include stdlib.
58107         (memcoll0): New function.
58108         (strcoll_loop): New function, refactored for use in both memcoll
58109         and memcoll0.
58110         * lib/memcoll.h (memcoll0): Add prototype.
58111         * lib/xmemcoll.c (xmemcoll0): New function.
58112         (collate_error): New function, refactored for use in both xmemcoll
58113         and xmemcoll0.
58114         * lib/xmemcoll.h (xmemcoll0): Add prototype.
58115         * m4/memcoll.m4: add inline invocation.
58117 2010-07-06  Pádraig Brady  <P@draigBrady.com>
58119         * build-aux/bootstrap: Remove any local translations
58120         from the translation project synchronization directory,
58121         so that local only translations are not distributed.
58123 2010-07-04  Bruno Haible  <bruno@clisp.org>
58125         fsusage: Clarify which code applies to which platforms.
58126         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
58127         platform.
58128         * lib/fsusage.c (get_fs_usage): Likewise.
58130 2010-07-04  Bruno Haible  <bruno@clisp.org>
58132         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
58133         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
58134         Reported by Martin Lambers <marlam@marlam.de>.
58136 2010-07-04  Jim Meyering  <meyering@redhat.com>
58138         hash: once again explicitly disallow insertion of NULL
58139         * lib/hash.c (hash_insert0): Reinstate just-removed test:
58140         inserting a NULL pointer cannot work with these functions.
58141         Add a comment with details.
58142         This reverts part of the 2010-07-01 commit, 5bef1a35
58143         "hash: extend module to deal with non-pointer keys".
58145 2010-07-01  Bruno Haible  <bruno@clisp.org>
58147         stdbool: Update doc.
58148         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
58149         Info from Christian Weisgerber <naddy@mips.inka.de>.
58151 2010-07-01  Jim Meyering  <meyering@redhat.com>
58153         hash: extend module to deal with non-pointer keys
58154         * lib/hash.c (hash_insert0): New interface, much like hash_insert
58155         but that allows insertion of non-pointer entries.
58156         Do not disallow an ENTRY value of NULL.
58157         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
58158         * lib/hash.h (hash_insert0): Declare.
58160 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
58162         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
58163         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
58164         not present (i.e. with autoconf 2.59 and when using gettextize, not
58165         gnulib), require AC_GNU_SOURCE instead.
58167 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
58169         idpriv-drop: Fix tests.
58170         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
58171         not to the test-idpriv-droptemp program.
58173 2010-06-29  Bruno Haible  <bruno@clisp.org>
58175         string: Fix syntax error with g++ 2.96.
58176         * lib/string.in.h (__pure__): Remove definition.
58177         (_GL_ATTRIBUTE_PURE): New macro.
58178         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
58179         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
58180         Reported by Christian Weisgerber <naddy@mips.inka.de>.
58182 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
58184         unitypes: Fix bug introduced on 2010-05-18.
58185         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
58187 2010-06-22  Eric Blake  <eblake@redhat.com>
58189         memmem: slight optimization
58190         * lib/str-two-way.h (critical_factorization): Update comments.
58191         Reduce work during factorization phase.
58192         Reported by Carlos Bueno <carlos@bueno.org>.
58194 2010-06-21  Bruno Haible  <bruno@clisp.org>
58196         Fix HAVE_CALLOC_POSIX misnomer.
58197         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
58198         !HAVE_CALLOC_POSIX.
58199         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
58200         HAVE_CALLOC_POSIX.
58201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
58202         instead of HAVE_CALLOC_POSIX.
58203         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
58204         HAVE_CALLOC_POSIX.
58206         Use modern idiom for calloc() replacement.
58207         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
58208         AC_FUNC_CALLOC.
58209         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
58210         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
58211         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58212         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
58213         (gl_REPLACE_CALLOC): New macro.
58215 2010-06-21  Bruno Haible  <bruno@clisp.org>
58217         Fix HAVE_REALLOC_POSIX misnomer.
58218         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
58219         !HAVE_REALLOC_POSIX.
58220         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
58221         HAVE_REALLOC_POSIX.
58222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
58223         instead of HAVE_REALLOC_POSIX.
58224         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
58225         HAVE_REALLOC_POSIX.
58227         Use modern idiom for realloc() replacement.
58228         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
58229         AC_FUNC_REALLOC.
58230         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
58231         Autoconf's AC_FUNC_REALLOC.
58232         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58233         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
58234         (gl_REPLACE_REALLOC): New macro.
58235         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58237 2010-06-21  Bruno Haible  <bruno@clisp.org>
58239         Fix HAVE_MALLOC_POSIX misnomer.
58240         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
58241         !HAVE_MALLOC_POSIX.
58242         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
58243         HAVE_MALLOC_POSIX.
58244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
58245         instead of HAVE_MALLOC_POSIX.
58246         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
58247         HAVE_MALLOC_POSIX.
58249         Use modern idiom for malloc() replacement.
58250         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
58251         AC_FUNC_MALLOC.
58252         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
58253         Autoconf's AC_FUNC_MALLOC.
58254         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
58255         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
58256         (gl_REPLACE_MALLOC): New macro.
58257         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
58259 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
58261         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
58262         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
58263         This macro takes 3 arguments, not 4.
58265 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
58267         ipv6: fix detection under mingw
58268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
58269         in6_addr.
58271 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
58273         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
58274         that strtod() works when cross-compiling to a glibc version known
58275         to work.
58277 2010-06-15  Bruno Haible  <bruno@clisp.org>
58279         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
58281 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
58283         select: Correct timeout.
58284         * lib/select.c (rpl_select): Compute wait_timeout correctly.
58286 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58288         git-version-gen: init shell var to avoid env var influence
58289         * build-aux/git-version-gen (v): Init shell var to empty.
58291 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
58293         priv-set: Don't assume that priv.h exists merely because getppriv does.
58294         See Jan Andersen's bug report about AIX 5L in
58295         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
58296         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
58297         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
58298         * lib/priv-set.h: Likewise.
58299         * tests/test-priv-set.c: Likewise.
58301 2010-06-13  Bruno Haible  <bruno@clisp.org>
58303         relocatable: Make it easier to test whether to install wrappers.
58304         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
58305         RELOCATABLE_VIA_WRAPPER.
58307 2010-06-13  Bruno Haible  <bruno@clisp.org>
58309         gnulib-tool: Display specified modules and dependencies differently.
58310         * gnulib-tool (func_show_module_list): New function.
58311         (func_import, func_create_testdir): Invoke it.
58312         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58314 2010-06-13  Bruno Haible  <bruno@clisp.org>
58316         gnulib-tool: Align code of func_import and func_create_testdir.
58317         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
58318         specified_modules.
58320 2010-06-12  Jim Meyering  <meyering@redhat.com>
58322         test-inttostr: avoid spurious failure on Solaris 9
58323         * tests/test-inttostr.c (main): Skip the test when snprintf fails
58324         to accept "%ju".  Reported by Bruno Haible.
58326 2010-06-11  Jim Meyering  <meyering@redhat.com>
58328         test-sys_socket: mark variables as used more readably
58329         * tests/test-sys_socket.c (main): Mark otherwise unused variables
58330         as "used" explicitly via (void) statement casts.  This is more
58331         readable than using them in an artificial return expression.
58332         Suggestion from Bruno Haible.
58334 2010-06-11  Bruno Haible  <bruno@clisp.org>
58336         Avoid some more warnings from "gcc -Wwrite-strings".
58337         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
58338         to 'const char *'.
58339         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
58340         * tests/test-c-strcasestr.c (main): Likewise.
58341         * tests/test-mbscasestr1.c (main): Likewise.
58342         * tests/test-mbscasestr2.c (main): Likewise.
58343         * tests/test-memmem.c (main): Likewise.
58344         * tests/test-strstr.c (main): Likewise.
58345         * tests/test-strcasestr.c (main): Likewise.
58347 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58349         init.sh: change framework_failure_ to fail with status 99, not 1
58350         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
58351         automake's parallel-tests rule that this is an unexpected failure,
58352         even if the test is listed in XFAIL_TESTS.
58354 2010-06-11  Jim Meyering  <meyering@redhat.com>
58356         test-inttostr: avoid warnings about 4-6KB literal strings
58357         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
58358         Include "macros.h", for its definition of ASSERT.
58359         (CK): s/assert/ASSERT/
58360         * modules/inttostr-tests (Files): Add macros.h.
58362         init.sh: don't use $ME_ or skip_ before they are defined
58363         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
58364         their first uses.  Also hoist their companions: warn_, fail_,
58365         framework_failure_, $stderr_fileno.  Prompted by a patch from
58366         Stefano Lattarini.
58368         test-sys_socket: avoid set-but-not-used warnings from gcc
58369         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
58370         avoid warning about set-but-not-used variables.
58372         test-xvasprintf: avoid 'const' discard warnings
58373         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
58374         "const" when assigning from literal strings.
58375         (test_xasprintf): Add "void" in function argument list to placate
58376         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
58378         tests: avoid compilation warnings in argmatch and exclude tests...
58379         in packages that define ARGMATCH_DIE_DECL, like coreutils.
58380         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
58381         Since it always exits, declare with the "noreturn" attribute.
58382         * tests/test-argmatch.c: Likewise.
58384         tests: avoid 'const' discard warnings in mbsstr tests
58385         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
58386         * tests/test-mbsstr2.c (main): Likewise.
58388         test-verify: avoid warning from gcc's -Wmissing-declarations
58389         * tests/test-verify.c (function): Declare to be static.
58391         test-inttostr.c: include <string.h> for use of strcmp
58392         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
58394         test-linkat: avoid failed assertion on "other" architectures
58395         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
58396         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
58397         sparc: https://bugs.launchpad.net/bugs/591968
58399 2010-06-11  Jim Meyering  <meyering@redhat.com>
58401         printf.m4: avoid autoconf's "Expanded Before Required" warning
58402         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
58403         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
58404         autoconf warning.
58406 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
58408         Replacement header templates are now named with ".in", not "_".
58409         * doc/gnulib-intro.texi: Correct.
58411 2010-06-10  Jim Meyering  <meyering@redhat.com>
58413         inttostr-tests: depend on snprintf, not snprintf-posix
58414         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
58415         snprintf-posix, to avoid this aclocal failure:
58416           missing file gnulib-tests/vasnprintf.c
58417           configure.ac:45: error: expected source file, required through \
58418           AC_LIBSOURCES, not found
58420 2010-06-10  Jim Meyering  <meyering@redhat.com>
58422         inttostr: add a new function, inttostr, and tests
58423         The namesake function was not available.  The existence of the
58424         template file, inttostr.c makes its addition nontrivial.
58425         * lib/anytostr.c: Rename from inttostr.c.
58426         (anytostr): Rename from inttostr.
58427         * lib/inttostr.c: New file.
58428         * modules/inttostr (Files): Add anytostr.c.
58429         (Makefile.am): Set lib_SOURCES instead of ...
58430         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
58431         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
58432         * lib/offtostr.c: Likewise.
58433         * lib/uinttostr.c: Likewise.
58434         * lib/umaxtostr.c: Likewise.
58435         * modules/inttostr-tests: New file.
58436         * tests/test-inttostr.c: New file.  Test these functions.
58438 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
58439             Bruno Haible  <bruno@clisp.org>
58441         Add "Extending Gnulib" chapter to manual.
58442         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
58443         chapter.
58444         (Extending Gnulib): New chapter.
58445         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
58446         chapter.
58448 2010-06-09  Bruno Haible  <bruno@clisp.org>
58450         Avoid relocwrapper link errors due to gnulib replacement functions.
58451         * lib/areadlink.c: Use the system's malloc, realloc functions.
58452         (areadlink): Set errno to ENOMEM explicitly.
58453         * modules/areadlink (Depends-on): Remove malloc-posix.
58454         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58456 2010-06-09  Bruno Haible  <bruno@clisp.org>
58458         Avoid relocwrapper link errors due to gnulib replacement functions.
58459         * lib/canonicalize-lgpl.c: Use the system's malloc function.
58460         * lib/malloca.c: Likewise.
58461         * lib/relocatable.c: Likewise.
58462         * lib/progreloc.c: Use the system's malloc, sprintf functions.
58463         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
58464         * lib/setenv.c: Use the system's malloc, realloc functions.
58465         * lib/strerror.c: Use the system's sprintf function.
58466         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58468 2010-06-04  Bruno Haible  <bruno@clisp.org>
58470         Prefer documented low-level autoconf macro names.
58471         * m4/lib-link.m4: Use m4_translit instead of translit.
58472         * m4/environ.m4: Likewise.
58473         * m4/mathfunc.m4: Likewise.
58474         * m4/onceonly.m4: Likewise.
58475         * m4/stdint.m4: Likewise.
58476         Suggested by Eric Blake.
58478 2010-06-04  Martin Lambers  <marlam@marlam.de>
58479             Bruno Haible  <bruno@clisp.org>
58481         havelib: Allow library names with '+' characters.
58482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58483         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
58485 2010-06-09  Bruno Haible  <bruno@clisp.org>
58487         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
58488         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
58489         realloc failed.
58491 2010-06-08  Peter Simons  <simons@cryp.to>
58493         maint.mk: make the news-check rule more configurable
58494         * top/maint.mk (news-check-lines-spec): New variable.
58495         (news-check): Use "sed -n 1,10p" in place of "head".
58497 2010-06-07  Jim Meyering  <meyering@redhat.com>
58499         do-release-commit-and-tag: fix typo in --help
58500         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
58502         regex: avoid new dead-code warning with gcc-4.6.0
58503         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
58504         if-block containing a while-loop.  It's been unused for at least
58505         5 years.
58507 2010-06-05  Bruno Haible  <bruno@clisp.org>
58509         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
58510         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
58512 2010-06-04  Bruno Haible  <bruno@clisp.org>
58514         Update to GNU gettext 0.18.1.
58515         * modules/gettext (configure.ac): Require gettext infrastructure from
58516         version 0.18.1.
58518 2010-06-03  Bruno Haible  <bruno@clisp.org>
58520         Don't use AC_LIBOBJ with file names in subdirectories.
58521         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
58522         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
58523         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
58524         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
58525         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
58526         gl_LIBUNISTRING_LIBSOURCE.
58527         (Makefile.am): Augment lib_SOURCES here, conditionally.
58528         * NEWS: Drop requirement for Automake option 'subdir-objects'.
58530 2010-06-03  Bruno Haible  <bruno@clisp.org>
58532         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
58533         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
58534         expansion does not end with a newline.
58535         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
58536         unnecessary newline.
58538 2010-06-03  Bruno Haible  <bruno@clisp.org>
58540         Reduce dependencies.
58541         * tests/test-quotearg.h: New file, extracted from
58542         tests/test-quotearg.c.
58543         * tests/test-quotearg-simple.c: New file, extracted from
58544         tests/test-quotearg.c.
58545         * tests/test-quotearg.c: Don't include <ctype.h>.
58546         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
58547         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
58548         use_quote_double_quotes, use_quotearg_colon): Moved to
58549         tests/test-quotearg.h.
58550         (results_g, flag_results, custom_quotes, custom_results): Moved
58551         to tests/test-quotearg-simple.c.
58552         (main): Moved the part that does not depend on gettext to
58553         tests/test-quotearg-simple.c. Return 77 if the test cannot be
58554         performed.
58555         * modules/quotearg-simple: New file.
58556         * modules/quotearg-simple-tests: New file.
58557         * modules/quotearg (Depends-on): Add quotearg-simple.
58558         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
58559         (Files): Add tests/test-quotearg.h.
58560         Reported by Paolo Bonzini.
58562 2010-06-03  Bruno Haible  <bruno@clisp.org>
58564         Reduce dependencies.
58565         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
58567 2010-06-03  Bruno Haible  <bruno@clisp.org>
58569         time: Undefine more broken macros.
58570         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
58571         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
58572         Reported by Eric Blake.
58574 2010-06-03  Bruno Haible  <bruno@clisp.org>
58576         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
58577         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
58578         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
58579         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
58580         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
58581         Reported by Ludovic Courtès <ludo@gnu.org>.
58583 2010-06-02  Eric Blake  <eblake@redhat.com>
58585         time: work with mingw + pthreads-win32 library
58586         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
58587         if timespec is defined only in pthread.h.
58588         * modules/time (Makefile.am): Substitute it.
58589         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
58590         <pthread.h>, when needed.
58591         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
58592         from the library.
58594 2010-05-31  Bruno Haible  <bruno@clisp.org>
58596         Avoid expanding two macros in the wrong order.
58597         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
58598         gl_LIBUNISTRING if it is defined.
58599         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
58600         autoconf >= 2.64.
58601         Reported by Ludovic Courtès <ludo@gnu.org>.
58603 2010-05-27  Jim Meyering  <meyering@redhat.com>
58605         maint.mk: also prohibit "#undef" of always-defined symbols
58606         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
58607         Allow more than one space before the symbol name.
58608         (sc_prohibit_always-defined_macros): Use grep's -E, now that
58609         the regexp uses alternation.
58611 2010-05-26  Eric Blake  <eblake@redhat.com>
58613         maint.mk: avoid echo -e
58614         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
58615         Convert all uses of echo -* to printf.
58616         Reported by Matthias Bolte.
58618 2010-05-25  Bruno Haible  <bruno@clisp.org>
58620         Update to GNU gettext 0.18, part 2.
58621         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
58622         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
58624 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58626         Add missing include in test-pwrite.c.
58627         * tests/test-pwrite.c: Include string.h, for strcmp.
58629 2010-05-24  Bruno Haible  <bruno@clisp.org>
58631         * NEWS: Mention requirement for Automake option 'subdir-objects'.
58633 2010-05-24  Bruno Haible  <bruno@clisp.org>
58635         Don't use conversion with transliteration in u{8,16,32}_strcoll.
58636         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
58637         iconveh_error argument.
58638         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
58639         U_STRCONV_TO_LOCALE.
58640         * lib/unistr/u16-strcoll.c: Likewise.
58641         * lib/unistr/u32-strcoll.c: Likewise.
58642         * modules/unistr/u8-strcoll (Depends-on): Add
58643         uniconv/u8-strconv-to-enc, localcharset. Remove
58644         uniconv/u8-strconv-to-locale.
58645         (configure.ac): Bump version number.
58646         * modules/unistr/u16-strcoll (Depends-on): Add
58647         uniconv/u16-strconv-to-enc, localcharset. Remove
58648         uniconv/u16-strconv-to-locale.
58649         (configure.ac): Bump version number.
58650         * modules/unistr/u32-strcoll (Depends-on): Add
58651         uniconv/u32-strconv-to-enc, localcharset. Remove
58652         uniconv/u32-strconv-to-locale.
58653         (configure.ac): Bump version number.
58655 2010-05-24  Bruno Haible  <bruno@clisp.org>
58657         Avoid a test failure on NetBSD 5.0.
58658         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
58659         an iconv() bug.
58661 2010-05-24  Bruno Haible  <bruno@clisp.org>
58663         Adjust #include directive style.
58664         * modules/regex (Includes): Recommend to write <regex.h>.
58666 2010-05-24  Bruno Haible  <bruno@clisp.org>
58668         regex: Don't require alloca.
58669         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
58670         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
58671         only inside if (0).
58673 2010-05-23  Jim Meyering  <meyering@redhat.com>
58675         test-renameat.c: include <sys/stat.h>
58676         * tests/test-renameat.c: Include <sys/stat.h>; required for
58677         definition of S_IS* macros.
58679 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
58681         Update maintainer documentation for 'relocatable-prog' module.
58682         * doc/relocatable-maint.texi: Update.
58683         Comments by Bruno Haible.
58685 2010-05-23  Bruno Haible  <bruno@clisp.org>
58687         git-merge-changelog: Enable --split-merged-entry by default.
58688         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
58689         (usage): Don't mention this option any more.
58690         Reported by Ralf Wildenhues.
58692 2010-05-23  Jim Meyering  <meyering@redhat.com>
58694         test-pwrite: do not leave behind a test file named "out"
58695         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
58696         The trivial-looking use of init.sh is really necessary.
58697         It ensures that the temporary file, "out", is created in
58698         a temporary directory, and removed upon termination.
58699         * tests/test-pwrite.sh: Re-add file.
58700         * modules/pwrite-tests: Reference it.
58702 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58704         Fix output redirection buglet in init.sh.
58705         * tests/init.sh: Fix redirection of stderr.
58707 2010-05-20  Simon Josefsson  <simon@josefsson.org>
58709         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
58711 2010-05-17  Simon Josefsson  <simon@josefsson.org>
58713         * modules/valgrind-tests: New file.
58714         * m4/valgrind-tests.m4: New file.
58715         * doc/valgrind-tests.texi: New file.
58716         * doc/gnulib.texi (Running self-tests under valgrind): New
58717         section.
58719 2010-05-19  Bruno Haible  <bruno@clisp.org>
58721         Clean up dead code in recent commit.
58722         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
58723         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
58724         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
58725         Suggested by Paolo Bonzini.
58727 2010-05-19  Bruno Haible  <bruno@clisp.org>
58729         Avoid valgrind error reports from libunistring.
58730         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
58731         * modules/libunistring (Files): Add it.
58732         * modules/libunistring-optional (Files): Likewise.
58734 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
58735             Bruno Haible  <bruno@clisp.org>
58737         New module 'libunistring-optional'.
58738         * modules/libunistring-optional: New file.
58739         * m4/libunistring-base.m4: New file.
58740         * m4/libunistring-optional.m4: New file.
58741         * lib/unicase.in.h: Renamed from lib/unicase.h.
58742         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
58743         * lib/unictype.in.h: Renamed from lib/unictype.h.
58744         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
58745         * lib/uniname.in.h: Renamed from lib/uniname.h.
58746         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
58747         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
58748         * lib/unistr.in.h: Renamed from lib/unistr.h.
58749         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
58750         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
58751         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
58752         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
58753         gl_LIBUNISTRING. If the library was found, determine the installed
58754         version and set LIBUNISTRING_VERSION.
58755         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
58756         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
58757         handle a configuration option --with-included-libunistring.
58758         * modules/libunistring (Files): Add m4/absolute-header.m4.
58759         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
58760         Add m4/libunistring-base.m4.
58761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58762         (Makefile.am): Build unicase.h from unicase.in.h.
58763         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
58764         Add m4/libunistring-base.m4.
58765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58766         (Makefile.am): Build uniconv.h from uniconv.in.h.
58767         * modules/unictype/base (Files): Use unictype.in.h instead of
58768         unictype.h. Add m4/libunistring-base.m4.
58769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58770         (Makefile.am): Build unictype.h from unictype.in.h.
58771         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
58772         Add m4/libunistring-base.m4.
58773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58774         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
58775         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
58776         Add m4/libunistring-base.m4.
58777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58778         (Makefile.am): Build uniname.h from uniname.in.h.
58779         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
58780         Add m4/libunistring-base.m4.
58781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58782         (Makefile.am): Build uninorm.h from uninorm.in.h.
58783         * modules/unistdio/base (Files): Use unistdio.in.h instead of
58784         unistdio.h. Add m4/libunistring-base.m4.
58785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58786         (Makefile.am): Build unistdio.h from unistdio.in.h.
58787         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
58788         Add m4/libunistring-base.m4.
58789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58790         (Makefile.am): Build unistr.h from unistr.in.h.
58791         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
58792         Add m4/libunistring-base.m4.
58793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58794         (Makefile.am): Build unitypes.h from unitypes.in.h.
58795         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
58796         Add m4/libunistring-base.m4.
58797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58798         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
58799         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
58800         uniwidth.h. Add m4/libunistring-base.m4.
58801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
58802         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
58803         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
58804         instead of augmenting lib_SOURCES.
58805         * modules/unicase/empty-suffix-context: Likewise.
58806         * modules/unicase/locale-language: Likewise.
58807         * modules/unicase/tolower: Likewise.
58808         * modules/unicase/totitle: Likewise.
58809         * modules/unicase/toupper: Likewise.
58810         * modules/unicase/u8-casecmp: Likewise.
58811         * modules/unicase/u8-casecoll: Likewise.
58812         * modules/unicase/u8-casefold: Likewise.
58813         * modules/unicase/u8-casexfrm: Likewise.
58814         * modules/unicase/u8-ct-casefold: Likewise.
58815         * modules/unicase/u8-ct-tolower: Likewise.
58816         * modules/unicase/u8-ct-totitle: Likewise.
58817         * modules/unicase/u8-ct-toupper: Likewise.
58818         * modules/unicase/u8-is-cased: Likewise.
58819         * modules/unicase/u8-is-casefolded: Likewise.
58820         * modules/unicase/u8-is-lowercase: Likewise.
58821         * modules/unicase/u8-is-titlecase: Likewise.
58822         * modules/unicase/u8-is-uppercase: Likewise.
58823         * modules/unicase/u8-prefix-context: Likewise.
58824         * modules/unicase/u8-suffix-context: Likewise.
58825         * modules/unicase/u8-tolower: Likewise.
58826         * modules/unicase/u8-totitle: Likewise.
58827         * modules/unicase/u8-toupper: Likewise.
58828         * modules/unicase/u16-casecmp: Likewise.
58829         * modules/unicase/u16-casecoll: Likewise.
58830         * modules/unicase/u16-casefold: Likewise.
58831         * modules/unicase/u16-casexfrm: Likewise.
58832         * modules/unicase/u16-ct-casefold: Likewise.
58833         * modules/unicase/u16-ct-tolower: Likewise.
58834         * modules/unicase/u16-ct-totitle: Likewise.
58835         * modules/unicase/u16-ct-toupper: Likewise.
58836         * modules/unicase/u16-is-cased: Likewise.
58837         * modules/unicase/u16-is-casefolded: Likewise.
58838         * modules/unicase/u16-is-lowercase: Likewise.
58839         * modules/unicase/u16-is-titlecase: Likewise.
58840         * modules/unicase/u16-is-uppercase: Likewise.
58841         * modules/unicase/u16-prefix-context: Likewise.
58842         * modules/unicase/u16-suffix-context: Likewise.
58843         * modules/unicase/u16-tolower: Likewise.
58844         * modules/unicase/u16-totitle: Likewise.
58845         * modules/unicase/u16-toupper: Likewise.
58846         * modules/unicase/u32-casecmp: Likewise.
58847         * modules/unicase/u32-casecoll: Likewise.
58848         * modules/unicase/u32-casefold: Likewise.
58849         * modules/unicase/u32-casexfrm: Likewise.
58850         * modules/unicase/u32-ct-casefold: Likewise.
58851         * modules/unicase/u32-ct-tolower: Likewise.
58852         * modules/unicase/u32-ct-totitle: Likewise.
58853         * modules/unicase/u32-ct-toupper: Likewise.
58854         * modules/unicase/u32-is-cased: Likewise.
58855         * modules/unicase/u32-is-casefolded: Likewise.
58856         * modules/unicase/u32-is-lowercase: Likewise.
58857         * modules/unicase/u32-is-titlecase: Likewise.
58858         * modules/unicase/u32-is-uppercase: Likewise.
58859         * modules/unicase/u32-prefix-context: Likewise.
58860         * modules/unicase/u32-suffix-context: Likewise.
58861         * modules/unicase/u32-tolower: Likewise.
58862         * modules/unicase/u32-totitle: Likewise.
58863         * modules/unicase/u32-toupper: Likewise.
58864         * modules/unicase/ulc-casecmp: Likewise.
58865         * modules/unicase/ulc-casecoll: Likewise.
58866         * modules/unicase/ulc-casexfrm: Likewise.
58867         * modules/uniconv/u8-conv-from-enc: Likewise.
58868         * modules/uniconv/u8-conv-to-enc: Likewise.
58869         * modules/uniconv/u8-strconv-from-enc: Likewise.
58870         * modules/uniconv/u8-strconv-from-locale: Likewise.
58871         * modules/uniconv/u8-strconv-to-enc: Likewise.
58872         * modules/uniconv/u8-strconv-to-locale: Likewise.
58873         * modules/uniconv/u16-conv-from-enc: Likewise.
58874         * modules/uniconv/u16-conv-to-enc: Likewise.
58875         * modules/uniconv/u16-strconv-from-enc: Likewise.
58876         * modules/uniconv/u16-strconv-from-locale: Likewise.
58877         * modules/uniconv/u16-strconv-to-enc: Likewise.
58878         * modules/uniconv/u16-strconv-to-locale: Likewise.
58879         * modules/uniconv/u32-conv-from-enc: Likewise.
58880         * modules/uniconv/u32-conv-to-enc: Likewise.
58881         * modules/uniconv/u32-strconv-from-enc: Likewise.
58882         * modules/uniconv/u32-strconv-from-locale: Likewise.
58883         * modules/uniconv/u32-strconv-to-enc: Likewise.
58884         * modules/uniconv/u32-strconv-to-locale: Likewise.
58885         * modules/unictype/bidicategory-byname: Likewise.
58886         * modules/unictype/bidicategory-name: Likewise.
58887         * modules/unictype/bidicategory-of: Likewise.
58888         * modules/unictype/bidicategory-test: Likewise.
58889         * modules/unictype/block-list: Likewise.
58890         * modules/unictype/block-test: Likewise.
58891         * modules/unictype/category-C: Likewise.
58892         * modules/unictype/category-Cc: Likewise.
58893         * modules/unictype/category-Cf: Likewise.
58894         * modules/unictype/category-Cn: Likewise.
58895         * modules/unictype/category-Co: Likewise.
58896         * modules/unictype/category-Cs: Likewise.
58897         * modules/unictype/category-L: Likewise.
58898         * modules/unictype/category-Ll: Likewise.
58899         * modules/unictype/category-Lm: Likewise.
58900         * modules/unictype/category-Lo: Likewise.
58901         * modules/unictype/category-Lt: Likewise.
58902         * modules/unictype/category-Lu: Likewise.
58903         * modules/unictype/category-M: Likewise.
58904         * modules/unictype/category-Mc: Likewise.
58905         * modules/unictype/category-Me: Likewise.
58906         * modules/unictype/category-Mn: Likewise.
58907         * modules/unictype/category-N: Likewise.
58908         * modules/unictype/category-Nd: Likewise.
58909         * modules/unictype/category-Nl: Likewise.
58910         * modules/unictype/category-No: Likewise.
58911         * modules/unictype/category-P: Likewise.
58912         * modules/unictype/category-Pc: Likewise.
58913         * modules/unictype/category-Pd: Likewise.
58914         * modules/unictype/category-Pe: Likewise.
58915         * modules/unictype/category-Pf: Likewise.
58916         * modules/unictype/category-Pi: Likewise.
58917         * modules/unictype/category-Po: Likewise.
58918         * modules/unictype/category-Ps: Likewise.
58919         * modules/unictype/category-S: Likewise.
58920         * modules/unictype/category-Sc: Likewise.
58921         * modules/unictype/category-Sk: Likewise.
58922         * modules/unictype/category-Sm: Likewise.
58923         * modules/unictype/category-So: Likewise.
58924         * modules/unictype/category-Z: Likewise.
58925         * modules/unictype/category-Zl: Likewise.
58926         * modules/unictype/category-Zp: Likewise.
58927         * modules/unictype/category-Zs: Likewise.
58928         * modules/unictype/category-and: Likewise.
58929         * modules/unictype/category-and-not: Likewise.
58930         * modules/unictype/category-byname: Likewise.
58931         * modules/unictype/category-name: Likewise.
58932         * modules/unictype/category-none: Likewise.
58933         * modules/unictype/category-of: Likewise.
58934         * modules/unictype/category-or: Likewise.
58935         * modules/unictype/category-test: Likewise.
58936         * modules/unictype/combining-class: Likewise.
58937         * modules/unictype/ctype-alnum: Likewise.
58938         * modules/unictype/ctype-alpha: Likewise.
58939         * modules/unictype/ctype-blank: Likewise.
58940         * modules/unictype/ctype-cntrl: Likewise.
58941         * modules/unictype/ctype-digit: Likewise.
58942         * modules/unictype/ctype-graph: Likewise.
58943         * modules/unictype/ctype-lower: Likewise.
58944         * modules/unictype/ctype-print: Likewise.
58945         * modules/unictype/ctype-punct: Likewise.
58946         * modules/unictype/ctype-space: Likewise.
58947         * modules/unictype/ctype-upper: Likewise.
58948         * modules/unictype/ctype-xdigit: Likewise.
58949         * modules/unictype/decimal-digit: Likewise.
58950         * modules/unictype/digit: Likewise.
58951         * modules/unictype/mirror: Likewise.
58952         * modules/unictype/numeric: Likewise.
58953         * modules/unictype/property-alphabetic: Likewise.
58954         * modules/unictype/property-ascii-hex-digit: Likewise.
58955         * modules/unictype/property-bidi-arabic-digit: Likewise.
58956         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
58957         * modules/unictype/property-bidi-block-separator: Likewise.
58958         * modules/unictype/property-bidi-boundary-neutral: Likewise.
58959         * modules/unictype/property-bidi-common-separator: Likewise.
58960         * modules/unictype/property-bidi-control: Likewise.
58961         * modules/unictype/property-bidi-embedding-or-override: Likewise.
58962         * modules/unictype/property-bidi-eur-num-separator: Likewise.
58963         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
58964         * modules/unictype/property-bidi-european-digit: Likewise.
58965         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
58966         * modules/unictype/property-bidi-left-to-right: Likewise.
58967         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
58968         * modules/unictype/property-bidi-other-neutral: Likewise.
58969         * modules/unictype/property-bidi-pdf: Likewise.
58970         * modules/unictype/property-bidi-segment-separator: Likewise.
58971         * modules/unictype/property-bidi-whitespace: Likewise.
58972         * modules/unictype/property-byname: Likewise.
58973         * modules/unictype/property-combining: Likewise.
58974         * modules/unictype/property-composite: Likewise.
58975         * modules/unictype/property-currency-symbol: Likewise.
58976         * modules/unictype/property-dash: Likewise.
58977         * modules/unictype/property-decimal-digit: Likewise.
58978         * modules/unictype/property-default-ignorable-code-point: Likewise.
58979         * modules/unictype/property-deprecated: Likewise.
58980         * modules/unictype/property-diacritic: Likewise.
58981         * modules/unictype/property-extender: Likewise.
58982         * modules/unictype/property-format-control: Likewise.
58983         * modules/unictype/property-grapheme-base: Likewise.
58984         * modules/unictype/property-grapheme-extend: Likewise.
58985         * modules/unictype/property-grapheme-link: Likewise.
58986         * modules/unictype/property-hex-digit: Likewise.
58987         * modules/unictype/property-hyphen: Likewise.
58988         * modules/unictype/property-id-continue: Likewise.
58989         * modules/unictype/property-id-start: Likewise.
58990         * modules/unictype/property-ideographic: Likewise.
58991         * modules/unictype/property-ids-binary-operator: Likewise.
58992         * modules/unictype/property-ids-trinary-operator: Likewise.
58993         * modules/unictype/property-ignorable-control: Likewise.
58994         * modules/unictype/property-iso-control: Likewise.
58995         * modules/unictype/property-join-control: Likewise.
58996         * modules/unictype/property-left-of-pair: Likewise.
58997         * modules/unictype/property-line-separator: Likewise.
58998         * modules/unictype/property-logical-order-exception: Likewise.
58999         * modules/unictype/property-lowercase: Likewise.
59000         * modules/unictype/property-math: Likewise.
59001         * modules/unictype/property-non-break: Likewise.
59002         * modules/unictype/property-not-a-character: Likewise.
59003         * modules/unictype/property-numeric: Likewise.
59004         * modules/unictype/property-other-alphabetic: Likewise.
59005         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
59006         * modules/unictype/property-other-grapheme-extend: Likewise.
59007         * modules/unictype/property-other-id-continue: Likewise.
59008         * modules/unictype/property-other-id-start: Likewise.
59009         * modules/unictype/property-other-lowercase: Likewise.
59010         * modules/unictype/property-other-math: Likewise.
59011         * modules/unictype/property-other-uppercase: Likewise.
59012         * modules/unictype/property-paired-punctuation: Likewise.
59013         * modules/unictype/property-paragraph-separator: Likewise.
59014         * modules/unictype/property-pattern-syntax: Likewise.
59015         * modules/unictype/property-pattern-white-space: Likewise.
59016         * modules/unictype/property-private-use: Likewise.
59017         * modules/unictype/property-punctuation: Likewise.
59018         * modules/unictype/property-quotation-mark: Likewise.
59019         * modules/unictype/property-radical: Likewise.
59020         * modules/unictype/property-sentence-terminal: Likewise.
59021         * modules/unictype/property-soft-dotted: Likewise.
59022         * modules/unictype/property-space: Likewise.
59023         * modules/unictype/property-terminal-punctuation: Likewise.
59024         * modules/unictype/property-test: Likewise.
59025         * modules/unictype/property-titlecase: Likewise.
59026         * modules/unictype/property-unassigned-code-value: Likewise.
59027         * modules/unictype/property-unified-ideograph: Likewise.
59028         * modules/unictype/property-uppercase: Likewise.
59029         * modules/unictype/property-variation-selector: Likewise.
59030         * modules/unictype/property-white-space: Likewise.
59031         * modules/unictype/property-xid-continue: Likewise.
59032         * modules/unictype/property-xid-start: Likewise.
59033         * modules/unictype/property-zero-width: Likewise.
59034         * modules/unictype/scripts: Likewise.
59035         * modules/unictype/syntax-c-ident: Likewise.
59036         * modules/unictype/syntax-c-whitespace: Likewise.
59037         * modules/unictype/syntax-java-ident: Likewise.
59038         * modules/unictype/syntax-java-whitespace: Likewise.
59039         * modules/unilbrk/u8-possible-linebreaks: Likewise.
59040         * modules/unilbrk/u8-width-linebreaks: Likewise.
59041         * modules/unilbrk/u16-possible-linebreaks: Likewise.
59042         * modules/unilbrk/u16-width-linebreaks: Likewise.
59043         * modules/unilbrk/u32-possible-linebreaks: Likewise.
59044         * modules/unilbrk/u32-width-linebreaks: Likewise.
59045         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
59046         * modules/unilbrk/ulc-width-linebreaks: Likewise.
59047         * modules/uniname/uniname: Likewise.
59048         * modules/uninorm/canonical-decomposition: Likewise.
59049         * modules/uninorm/composition: Likewise.
59050         * modules/uninorm/decomposing-form: Likewise.
59051         * modules/uninorm/decomposition: Likewise.
59052         * modules/uninorm/filter: Likewise.
59053         * modules/uninorm/nfc: Likewise.
59054         * modules/uninorm/nfd: Likewise.
59055         * modules/uninorm/nfkc: Likewise.
59056         * modules/uninorm/nfkd: Likewise.
59057         * modules/uninorm/u8-normalize: Likewise.
59058         * modules/uninorm/u8-normcmp: Likewise.
59059         * modules/uninorm/u8-normcoll: Likewise.
59060         * modules/uninorm/u8-normxfrm: Likewise.
59061         * modules/uninorm/u16-normalize: Likewise.
59062         * modules/uninorm/u16-normcmp: Likewise.
59063         * modules/uninorm/u16-normcoll: Likewise.
59064         * modules/uninorm/u16-normxfrm: Likewise.
59065         * modules/uninorm/u32-normalize: Likewise.
59066         * modules/uninorm/u32-normcmp: Likewise.
59067         * modules/uninorm/u32-normcoll: Likewise.
59068         * modules/uninorm/u32-normxfrm: Likewise.
59069         * modules/unistdio/u8-asnprintf: Likewise.
59070         * modules/unistdio/u8-asprintf: Likewise.
59071         * modules/unistdio/u8-snprintf: Likewise.
59072         * modules/unistdio/u8-sprintf: Likewise.
59073         * modules/unistdio/u8-u8-asnprintf: Likewise.
59074         * modules/unistdio/u8-u8-asprintf: Likewise.
59075         * modules/unistdio/u8-u8-snprintf: Likewise.
59076         * modules/unistdio/u8-u8-sprintf: Likewise.
59077         * modules/unistdio/u8-u8-vasnprintf: Likewise.
59078         * modules/unistdio/u8-u8-vasprintf: Likewise.
59079         * modules/unistdio/u8-u8-vsnprintf: Likewise.
59080         * modules/unistdio/u8-u8-vsprintf: Likewise.
59081         * modules/unistdio/u8-vasnprintf: Likewise.
59082         * modules/unistdio/u8-vasprintf: Likewise.
59083         * modules/unistdio/u8-vsnprintf: Likewise.
59084         * modules/unistdio/u8-vsprintf: Likewise.
59085         * modules/unistdio/u16-asnprintf: Likewise.
59086         * modules/unistdio/u16-asprintf: Likewise.
59087         * modules/unistdio/u16-snprintf: Likewise.
59088         * modules/unistdio/u16-sprintf: Likewise.
59089         * modules/unistdio/u16-u16-asnprintf: Likewise.
59090         * modules/unistdio/u16-u16-asprintf: Likewise.
59091         * modules/unistdio/u16-u16-snprintf: Likewise.
59092         * modules/unistdio/u16-u16-sprintf: Likewise.
59093         * modules/unistdio/u16-u16-vasnprintf: Likewise.
59094         * modules/unistdio/u16-u16-vasprintf: Likewise.
59095         * modules/unistdio/u16-u16-vsnprintf: Likewise.
59096         * modules/unistdio/u16-u16-vsprintf: Likewise.
59097         * modules/unistdio/u16-vasnprintf: Likewise.
59098         * modules/unistdio/u16-vasprintf: Likewise.
59099         * modules/unistdio/u16-vsnprintf: Likewise.
59100         * modules/unistdio/u16-vsprintf: Likewise.
59101         * modules/unistdio/u32-asnprintf: Likewise.
59102         * modules/unistdio/u32-asprintf: Likewise.
59103         * modules/unistdio/u32-snprintf: Likewise.
59104         * modules/unistdio/u32-sprintf: Likewise.
59105         * modules/unistdio/u32-u32-asnprintf: Likewise.
59106         * modules/unistdio/u32-u32-asprintf: Likewise.
59107         * modules/unistdio/u32-u32-snprintf: Likewise.
59108         * modules/unistdio/u32-u32-sprintf: Likewise.
59109         * modules/unistdio/u32-u32-vasnprintf: Likewise.
59110         * modules/unistdio/u32-u32-vasprintf: Likewise.
59111         * modules/unistdio/u32-u32-vsnprintf: Likewise.
59112         * modules/unistdio/u32-u32-vsprintf: Likewise.
59113         * modules/unistdio/u32-vasnprintf: Likewise.
59114         * modules/unistdio/u32-vasprintf: Likewise.
59115         * modules/unistdio/u32-vsnprintf: Likewise.
59116         * modules/unistdio/u32-vsprintf: Likewise.
59117         * modules/unistdio/ulc-asnprintf: Likewise.
59118         * modules/unistdio/ulc-asprintf: Likewise.
59119         * modules/unistdio/ulc-fprintf: Likewise.
59120         * modules/unistdio/ulc-snprintf: Likewise.
59121         * modules/unistdio/ulc-sprintf: Likewise.
59122         * modules/unistdio/ulc-vasnprintf: Likewise.
59123         * modules/unistdio/ulc-vasprintf: Likewise.
59124         * modules/unistdio/ulc-vfprintf: Likewise.
59125         * modules/unistdio/ulc-vsnprintf: Likewise.
59126         * modules/unistdio/ulc-vsprintf: Likewise.
59127         * modules/unistr/u8-check: Likewise.
59128         * modules/unistr/u8-chr: Likewise.
59129         * modules/unistr/u8-cmp: Likewise.
59130         * modules/unistr/u8-cmp2: Likewise.
59131         * modules/unistr/u8-cpy: Likewise.
59132         * modules/unistr/u8-cpy-alloc: Likewise.
59133         * modules/unistr/u8-endswith: Likewise.
59134         * modules/unistr/u8-mblen: Likewise.
59135         * modules/unistr/u8-mbsnlen: Likewise.
59136         * modules/unistr/u8-mbtouc: Likewise.
59137         * modules/unistr/u8-mbtouc-unsafe: Likewise.
59138         * modules/unistr/u8-mbtoucr: Likewise.
59139         * modules/unistr/u8-move: Likewise.
59140         * modules/unistr/u8-next: Likewise.
59141         * modules/unistr/u8-prev: Likewise.
59142         * modules/unistr/u8-set: Likewise.
59143         * modules/unistr/u8-startswith: Likewise.
59144         * modules/unistr/u8-stpcpy: Likewise.
59145         * modules/unistr/u8-stpncpy: Likewise.
59146         * modules/unistr/u8-strcat: Likewise.
59147         * modules/unistr/u8-strchr: Likewise.
59148         * modules/unistr/u8-strcmp: Likewise.
59149         * modules/unistr/u8-strcoll: Likewise.
59150         * modules/unistr/u8-strcpy: Likewise.
59151         * modules/unistr/u8-strcspn: Likewise.
59152         * modules/unistr/u8-strdup: Likewise.
59153         * modules/unistr/u8-strlen: Likewise.
59154         * modules/unistr/u8-strmblen: Likewise.
59155         * modules/unistr/u8-strmbtouc: Likewise.
59156         * modules/unistr/u8-strncat: Likewise.
59157         * modules/unistr/u8-strncmp: Likewise.
59158         * modules/unistr/u8-strncpy: Likewise.
59159         * modules/unistr/u8-strnlen: Likewise.
59160         * modules/unistr/u8-strpbrk: Likewise.
59161         * modules/unistr/u8-strrchr: Likewise.
59162         * modules/unistr/u8-strspn: Likewise.
59163         * modules/unistr/u8-strstr: Likewise.
59164         * modules/unistr/u8-strtok: Likewise.
59165         * modules/unistr/u8-to-u16: Likewise.
59166         * modules/unistr/u8-to-u32: Likewise.
59167         * modules/unistr/u8-uctomb: Likewise.
59168         * modules/unistr/u16-check: Likewise.
59169         * modules/unistr/u16-chr: Likewise.
59170         * modules/unistr/u16-cmp: Likewise.
59171         * modules/unistr/u16-cmp2: Likewise.
59172         * modules/unistr/u16-cpy: Likewise.
59173         * modules/unistr/u16-cpy-alloc: Likewise.
59174         * modules/unistr/u16-endswith: Likewise.
59175         * modules/unistr/u16-mblen: Likewise.
59176         * modules/unistr/u16-mbsnlen: Likewise.
59177         * modules/unistr/u16-mbtouc: Likewise.
59178         * modules/unistr/u16-mbtouc-unsafe: Likewise.
59179         * modules/unistr/u16-mbtoucr: Likewise.
59180         * modules/unistr/u16-move: Likewise.
59181         * modules/unistr/u16-next: Likewise.
59182         * modules/unistr/u16-prev: Likewise.
59183         * modules/unistr/u16-set: Likewise.
59184         * modules/unistr/u16-startswith: Likewise.
59185         * modules/unistr/u16-stpcpy: Likewise.
59186         * modules/unistr/u16-stpncpy: Likewise.
59187         * modules/unistr/u16-strcat: Likewise.
59188         * modules/unistr/u16-strchr: Likewise.
59189         * modules/unistr/u16-strcmp: Likewise.
59190         * modules/unistr/u16-strcoll: Likewise.
59191         * modules/unistr/u16-strcpy: Likewise.
59192         * modules/unistr/u16-strcspn: Likewise.
59193         * modules/unistr/u16-strdup: Likewise.
59194         * modules/unistr/u16-strlen: Likewise.
59195         * modules/unistr/u16-strmblen: Likewise.
59196         * modules/unistr/u16-strmbtouc: Likewise.
59197         * modules/unistr/u16-strncat: Likewise.
59198         * modules/unistr/u16-strncmp: Likewise.
59199         * modules/unistr/u16-strncpy: Likewise.
59200         * modules/unistr/u16-strnlen: Likewise.
59201         * modules/unistr/u16-strpbrk: Likewise.
59202         * modules/unistr/u16-strrchr: Likewise.
59203         * modules/unistr/u16-strspn: Likewise.
59204         * modules/unistr/u16-strstr: Likewise.
59205         * modules/unistr/u16-strtok: Likewise.
59206         * modules/unistr/u16-to-u32: Likewise.
59207         * modules/unistr/u16-to-u8: Likewise.
59208         * modules/unistr/u16-uctomb: Likewise.
59209         * modules/unistr/u32-check: Likewise.
59210         * modules/unistr/u32-chr: Likewise.
59211         * modules/unistr/u32-cmp: Likewise.
59212         * modules/unistr/u32-cmp2: Likewise.
59213         * modules/unistr/u32-cpy: Likewise.
59214         * modules/unistr/u32-cpy-alloc: Likewise.
59215         * modules/unistr/u32-endswith: Likewise.
59216         * modules/unistr/u32-mblen: Likewise.
59217         * modules/unistr/u32-mbsnlen: Likewise.
59218         * modules/unistr/u32-mbtouc: Likewise.
59219         * modules/unistr/u32-mbtouc-unsafe: Likewise.
59220         * modules/unistr/u32-mbtoucr: Likewise.
59221         * modules/unistr/u32-move: Likewise.
59222         * modules/unistr/u32-next: Likewise.
59223         * modules/unistr/u32-prev: Likewise.
59224         * modules/unistr/u32-set: Likewise.
59225         * modules/unistr/u32-startswith: Likewise.
59226         * modules/unistr/u32-stpcpy: Likewise.
59227         * modules/unistr/u32-stpncpy: Likewise.
59228         * modules/unistr/u32-strcat: Likewise.
59229         * modules/unistr/u32-strchr: Likewise.
59230         * modules/unistr/u32-strcmp: Likewise.
59231         * modules/unistr/u32-strcoll: Likewise.
59232         * modules/unistr/u32-strcpy: Likewise.
59233         * modules/unistr/u32-strcspn: Likewise.
59234         * modules/unistr/u32-strdup: Likewise.
59235         * modules/unistr/u32-strlen: Likewise.
59236         * modules/unistr/u32-strmblen: Likewise.
59237         * modules/unistr/u32-strmbtouc: Likewise.
59238         * modules/unistr/u32-strncat: Likewise.
59239         * modules/unistr/u32-strncmp: Likewise.
59240         * modules/unistr/u32-strncpy: Likewise.
59241         * modules/unistr/u32-strnlen: Likewise.
59242         * modules/unistr/u32-strpbrk: Likewise.
59243         * modules/unistr/u32-strrchr: Likewise.
59244         * modules/unistr/u32-strspn: Likewise.
59245         * modules/unistr/u32-strstr: Likewise.
59246         * modules/unistr/u32-strtok: Likewise.
59247         * modules/unistr/u32-to-u16: Likewise.
59248         * modules/unistr/u32-to-u8: Likewise.
59249         * modules/unistr/u32-uctomb: Likewise.
59250         * modules/uniwbrk/u8-wordbreaks: Likewise.
59251         * modules/uniwbrk/u16-wordbreaks: Likewise.
59252         * modules/uniwbrk/u32-wordbreaks: Likewise.
59253         * modules/uniwbrk/ulc-wordbreaks: Likewise.
59254         * modules/uniwbrk/wordbreak-property: Likewise.
59255         * modules/uniwidth/u8-strwidth: Likewise.
59256         * modules/uniwidth/u8-width: Likewise.
59257         * modules/uniwidth/u16-strwidth: Likewise.
59258         * modules/uniwidth/u16-width: Likewise.
59259         * modules/uniwidth/u32-strwidth: Likewise.
59260         * modules/uniwidth/u32-width: Likewise.
59261         * modules/uniwidth/width: Likewise.
59262         * modules/unicase/cased-tests (Makefile.am): Link all test programs
59263         with $(LIBUNISTRING).
59264         * modules/unicase/ignorable-tests: Likewise.
59265         * modules/unicase/locale-language-tests: Likewise.
59266         * modules/unicase/tolower-tests: Likewise.
59267         * modules/unicase/totitle-tests: Likewise.
59268         * modules/unicase/toupper-tests: Likewise.
59269         * modules/unicase/u8-casecmp-tests: Likewise.
59270         * modules/unicase/u8-casecoll-tests: Likewise.
59271         * modules/unicase/u8-casefold-tests: Likewise.
59272         * modules/unicase/u8-is-cased-tests: Likewise.
59273         * modules/unicase/u8-is-casefolded-tests: Likewise.
59274         * modules/unicase/u8-is-lowercase-tests: Likewise.
59275         * modules/unicase/u8-is-titlecase-tests: Likewise.
59276         * modules/unicase/u8-is-uppercase-tests: Likewise.
59277         * modules/unicase/u8-tolower-tests: Likewise.
59278         * modules/unicase/u8-totitle-tests: Likewise.
59279         * modules/unicase/u8-toupper-tests: Likewise.
59280         * modules/unicase/u16-casecmp-tests: Likewise.
59281         * modules/unicase/u16-casecoll-tests: Likewise.
59282         * modules/unicase/u16-casefold-tests: Likewise.
59283         * modules/unicase/u16-is-cased-tests: Likewise.
59284         * modules/unicase/u16-is-casefolded-tests: Likewise.
59285         * modules/unicase/u16-is-lowercase-tests: Likewise.
59286         * modules/unicase/u16-is-titlecase-tests: Likewise.
59287         * modules/unicase/u16-is-uppercase-tests: Likewise.
59288         * modules/unicase/u16-tolower-tests: Likewise.
59289         * modules/unicase/u16-totitle-tests: Likewise.
59290         * modules/unicase/u16-toupper-tests: Likewise.
59291         * modules/unicase/u32-casecmp-tests: Likewise.
59292         * modules/unicase/u32-casecoll-tests: Likewise.
59293         * modules/unicase/u32-casefold-tests: Likewise.
59294         * modules/unicase/u32-is-cased-tests: Likewise.
59295         * modules/unicase/u32-is-casefolded-tests: Likewise.
59296         * modules/unicase/u32-is-lowercase-tests: Likewise.
59297         * modules/unicase/u32-is-titlecase-tests: Likewise.
59298         * modules/unicase/u32-is-uppercase-tests: Likewise.
59299         * modules/unicase/u32-tolower-tests: Likewise.
59300         * modules/unicase/u32-totitle-tests: Likewise.
59301         * modules/unicase/u32-toupper-tests: Likewise.
59302         * modules/unicase/ulc-casecmp-tests: Likewise.
59303         * modules/unicase/ulc-casecoll-tests: Likewise.
59304         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
59305         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
59306         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
59307         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
59308         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
59309         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
59310         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
59311         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
59312         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
59313         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
59314         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
59315         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
59316         * modules/unictype/bidicategory-byname-tests: Likewise.
59317         * modules/unictype/bidicategory-name-tests: Likewise.
59318         * modules/unictype/bidicategory-of-tests: Likewise.
59319         * modules/unictype/bidicategory-test-tests: Likewise.
59320         * modules/unictype/block-list-tests: Likewise.
59321         * modules/unictype/block-of-tests: Likewise.
59322         * modules/unictype/block-test-tests: Likewise.
59323         * modules/unictype/category-C-tests: Likewise.
59324         * modules/unictype/category-Cc-tests: Likewise.
59325         * modules/unictype/category-Cf-tests: Likewise.
59326         * modules/unictype/category-Cn-tests: Likewise.
59327         * modules/unictype/category-Co-tests: Likewise.
59328         * modules/unictype/category-Cs-tests: Likewise.
59329         * modules/unictype/category-L-tests: Likewise.
59330         * modules/unictype/category-Ll-tests: Likewise.
59331         * modules/unictype/category-Lm-tests: Likewise.
59332         * modules/unictype/category-Lo-tests: Likewise.
59333         * modules/unictype/category-Lt-tests: Likewise.
59334         * modules/unictype/category-Lu-tests: Likewise.
59335         * modules/unictype/category-M-tests: Likewise.
59336         * modules/unictype/category-Mc-tests: Likewise.
59337         * modules/unictype/category-Me-tests: Likewise.
59338         * modules/unictype/category-Mn-tests: Likewise.
59339         * modules/unictype/category-N-tests: Likewise.
59340         * modules/unictype/category-Nd-tests: Likewise.
59341         * modules/unictype/category-Nl-tests: Likewise.
59342         * modules/unictype/category-No-tests: Likewise.
59343         * modules/unictype/category-P-tests: Likewise.
59344         * modules/unictype/category-Pc-tests: Likewise.
59345         * modules/unictype/category-Pd-tests: Likewise.
59346         * modules/unictype/category-Pe-tests: Likewise.
59347         * modules/unictype/category-Pf-tests: Likewise.
59348         * modules/unictype/category-Pi-tests: Likewise.
59349         * modules/unictype/category-Po-tests: Likewise.
59350         * modules/unictype/category-Ps-tests: Likewise.
59351         * modules/unictype/category-S-tests: Likewise.
59352         * modules/unictype/category-Sc-tests: Likewise.
59353         * modules/unictype/category-Sk-tests: Likewise.
59354         * modules/unictype/category-Sm-tests: Likewise.
59355         * modules/unictype/category-So-tests: Likewise.
59356         * modules/unictype/category-Z-tests: Likewise.
59357         * modules/unictype/category-Zl-tests: Likewise.
59358         * modules/unictype/category-Zp-tests: Likewise.
59359         * modules/unictype/category-Zs-tests: Likewise.
59360         * modules/unictype/category-and-not-tests: Likewise.
59361         * modules/unictype/category-and-tests: Likewise.
59362         * modules/unictype/category-byname-tests: Likewise.
59363         * modules/unictype/category-name-tests: Likewise.
59364         * modules/unictype/category-none-tests: Likewise.
59365         * modules/unictype/category-of-tests: Likewise.
59366         * modules/unictype/category-or-tests: Likewise.
59367         * modules/unictype/category-test-withtable-tests: Likewise.
59368         * modules/unictype/combining-class-tests: Likewise.
59369         * modules/unictype/ctype-alnum-tests: Likewise.
59370         * modules/unictype/ctype-alpha-tests: Likewise.
59371         * modules/unictype/ctype-blank-tests: Likewise.
59372         * modules/unictype/ctype-cntrl-tests: Likewise.
59373         * modules/unictype/ctype-digit-tests: Likewise.
59374         * modules/unictype/ctype-graph-tests: Likewise.
59375         * modules/unictype/ctype-lower-tests: Likewise.
59376         * modules/unictype/ctype-print-tests: Likewise.
59377         * modules/unictype/ctype-punct-tests: Likewise.
59378         * modules/unictype/ctype-space-tests: Likewise.
59379         * modules/unictype/ctype-upper-tests: Likewise.
59380         * modules/unictype/ctype-xdigit-tests: Likewise.
59381         * modules/unictype/decimal-digit-tests: Likewise.
59382         * modules/unictype/digit-tests: Likewise.
59383         * modules/unictype/mirror-tests: Likewise.
59384         * modules/unictype/numeric-tests: Likewise.
59385         * modules/unictype/property-alphabetic-tests: Likewise.
59386         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
59387         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
59388         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
59389         * modules/unictype/property-bidi-block-separator-tests: Likewise.
59390         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
59391         * modules/unictype/property-bidi-common-separator-tests: Likewise.
59392         * modules/unictype/property-bidi-control-tests: Likewise.
59393         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
59394         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
59395         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
59396         * modules/unictype/property-bidi-european-digit-tests: Likewise.
59397         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
59398         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
59399         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
59400         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
59401         * modules/unictype/property-bidi-pdf-tests: Likewise.
59402         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
59403         * modules/unictype/property-bidi-whitespace-tests: Likewise.
59404         * modules/unictype/property-byname-tests: Likewise.
59405         * modules/unictype/property-combining-tests: Likewise.
59406         * modules/unictype/property-composite-tests: Likewise.
59407         * modules/unictype/property-currency-symbol-tests: Likewise.
59408         * modules/unictype/property-dash-tests: Likewise.
59409         * modules/unictype/property-decimal-digit-tests: Likewise.
59410         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
59411         * modules/unictype/property-deprecated-tests: Likewise.
59412         * modules/unictype/property-diacritic-tests: Likewise.
59413         * modules/unictype/property-extender-tests: Likewise.
59414         * modules/unictype/property-format-control-tests: Likewise.
59415         * modules/unictype/property-grapheme-base-tests: Likewise.
59416         * modules/unictype/property-grapheme-extend-tests: Likewise.
59417         * modules/unictype/property-grapheme-link-tests: Likewise.
59418         * modules/unictype/property-hex-digit-tests: Likewise.
59419         * modules/unictype/property-hyphen-tests: Likewise.
59420         * modules/unictype/property-id-continue-tests: Likewise.
59421         * modules/unictype/property-id-start-tests: Likewise.
59422         * modules/unictype/property-ideographic-tests: Likewise.
59423         * modules/unictype/property-ids-binary-operator-tests: Likewise.
59424         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
59425         * modules/unictype/property-ignorable-control-tests: Likewise.
59426         * modules/unictype/property-iso-control-tests: Likewise.
59427         * modules/unictype/property-join-control-tests: Likewise.
59428         * modules/unictype/property-left-of-pair-tests: Likewise.
59429         * modules/unictype/property-line-separator-tests: Likewise.
59430         * modules/unictype/property-logical-order-exception-tests: Likewise.
59431         * modules/unictype/property-lowercase-tests: Likewise.
59432         * modules/unictype/property-math-tests: Likewise.
59433         * modules/unictype/property-non-break-tests: Likewise.
59434         * modules/unictype/property-not-a-character-tests: Likewise.
59435         * modules/unictype/property-numeric-tests: Likewise.
59436         * modules/unictype/property-other-alphabetic-tests: Likewise.
59437         * modules/unictype/property-other-default-ignorable-code-point-tests:
59438         Likewise.
59439         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
59440         * modules/unictype/property-other-id-continue-tests: Likewise.
59441         * modules/unictype/property-other-id-start-tests: Likewise.
59442         * modules/unictype/property-other-lowercase-tests: Likewise.
59443         * modules/unictype/property-other-math-tests: Likewise.
59444         * modules/unictype/property-other-uppercase-tests: Likewise.
59445         * modules/unictype/property-paired-punctuation-tests: Likewise.
59446         * modules/unictype/property-paragraph-separator-tests: Likewise.
59447         * modules/unictype/property-pattern-syntax-tests: Likewise.
59448         * modules/unictype/property-pattern-white-space-tests: Likewise.
59449         * modules/unictype/property-private-use-tests: Likewise.
59450         * modules/unictype/property-punctuation-tests: Likewise.
59451         * modules/unictype/property-quotation-mark-tests: Likewise.
59452         * modules/unictype/property-radical-tests: Likewise.
59453         * modules/unictype/property-sentence-terminal-tests: Likewise.
59454         * modules/unictype/property-soft-dotted-tests: Likewise.
59455         * modules/unictype/property-space-tests: Likewise.
59456         * modules/unictype/property-terminal-punctuation-tests: Likewise.
59457         * modules/unictype/property-test-tests: Likewise.
59458         * modules/unictype/property-titlecase-tests: Likewise.
59459         * modules/unictype/property-unassigned-code-value-tests: Likewise.
59460         * modules/unictype/property-unified-ideograph-tests: Likewise.
59461         * modules/unictype/property-uppercase-tests: Likewise.
59462         * modules/unictype/property-variation-selector-tests: Likewise.
59463         * modules/unictype/property-white-space-tests: Likewise.
59464         * modules/unictype/property-xid-continue-tests: Likewise.
59465         * modules/unictype/property-xid-start-tests: Likewise.
59466         * modules/unictype/property-zero-width-tests: Likewise.
59467         * modules/unictype/scripts-tests: Likewise.
59468         * modules/unictype/syntax-c-ident-tests: Likewise.
59469         * modules/unictype/syntax-c-whitespace-tests: Likewise.
59470         * modules/unictype/syntax-java-ident-tests: Likewise.
59471         * modules/unictype/syntax-java-whitespace-tests: Likewise.
59472         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
59473         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
59474         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
59475         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
59476         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
59477         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
59478         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
59479         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
59480         * modules/uniname/uniname-tests: Likewise.
59481         * modules/uninorm/canonical-decomposition-tests: Likewise.
59482         * modules/uninorm/compat-decomposition-tests: Likewise.
59483         * modules/uninorm/composition-tests: Likewise.
59484         * modules/uninorm/decomposing-form-tests: Likewise.
59485         * modules/uninorm/decomposition-tests: Likewise.
59486         * modules/uninorm/filter-tests: Likewise.
59487         * modules/uninorm/nfc-tests: Likewise.
59488         * modules/uninorm/nfd-tests: Likewise.
59489         * modules/uninorm/nfkc-tests: Likewise.
59490         * modules/uninorm/nfkd-tests: Likewise.
59491         * modules/uninorm/u8-normcmp-tests: Likewise.
59492         * modules/uninorm/u8-normcoll-tests: Likewise.
59493         * modules/uninorm/u16-normcmp-tests: Likewise.
59494         * modules/uninorm/u16-normcoll-tests: Likewise.
59495         * modules/uninorm/u32-normcmp-tests: Likewise.
59496         * modules/uninorm/u32-normcoll-tests: Likewise.
59497         * modules/unistdio/u8-asnprintf-tests: Likewise.
59498         * modules/unistdio/u8-vasnprintf-tests: Likewise.
59499         * modules/unistdio/u8-vasprintf-tests: Likewise.
59500         * modules/unistdio/u8-vsnprintf-tests: Likewise.
59501         * modules/unistdio/u8-vsprintf-tests: Likewise.
59502         * modules/unistdio/u16-asnprintf-tests: Likewise.
59503         * modules/unistdio/u16-vasnprintf-tests: Likewise.
59504         * modules/unistdio/u16-vasprintf-tests: Likewise.
59505         * modules/unistdio/u16-vsnprintf-tests: Likewise.
59506         * modules/unistdio/u16-vsprintf-tests: Likewise.
59507         * modules/unistdio/u32-asnprintf-tests: Likewise.
59508         * modules/unistdio/u32-vasnprintf-tests: Likewise.
59509         * modules/unistdio/u32-vasprintf-tests: Likewise.
59510         * modules/unistdio/u32-vsnprintf-tests: Likewise.
59511         * modules/unistdio/u32-vsprintf-tests: Likewise.
59512         * modules/unistdio/ulc-asnprintf-tests: Likewise.
59513         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
59514         * modules/unistdio/ulc-vasprintf-tests: Likewise.
59515         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
59516         * modules/unistdio/ulc-vsprintf-tests: Likewise.
59517         * modules/unistr/u8-check-tests: Likewise.
59518         * modules/unistr/u8-chr-tests: Likewise.
59519         * modules/unistr/u8-cmp-tests: Likewise.
59520         * modules/unistr/u8-cmp2-tests: Likewise.
59521         * modules/unistr/u8-cpy-alloc-tests: Likewise.
59522         * modules/unistr/u8-cpy-tests: Likewise.
59523         * modules/unistr/u8-mblen-tests: Likewise.
59524         * modules/unistr/u8-mbsnlen-tests: Likewise.
59525         * modules/unistr/u8-mbtouc-tests: Likewise.
59526         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
59527         * modules/unistr/u8-mbtoucr-tests: Likewise.
59528         * modules/unistr/u8-move-tests: Likewise.
59529         * modules/unistr/u8-next-tests: Likewise.
59530         * modules/unistr/u8-prev-tests: Likewise.
59531         * modules/unistr/u8-set-tests: Likewise.
59532         * modules/unistr/u8-stpcpy-tests: Likewise.
59533         * modules/unistr/u8-stpncpy-tests: Likewise.
59534         * modules/unistr/u8-strcat-tests: Likewise.
59535         * modules/unistr/u8-strcmp-tests: Likewise.
59536         * modules/unistr/u8-strcoll-tests: Likewise.
59537         * modules/unistr/u8-strcpy-tests: Likewise.
59538         * modules/unistr/u8-strdup-tests: Likewise.
59539         * modules/unistr/u8-strlen-tests: Likewise.
59540         * modules/unistr/u8-strmblen-tests: Likewise.
59541         * modules/unistr/u8-strmbtouc-tests: Likewise.
59542         * modules/unistr/u8-strncat-tests: Likewise.
59543         * modules/unistr/u8-strncmp-tests: Likewise.
59544         * modules/unistr/u8-strncpy-tests: Likewise.
59545         * modules/unistr/u8-strnlen-tests: Likewise.
59546         * modules/unistr/u8-to-u16-tests: Likewise.
59547         * modules/unistr/u8-to-u32-tests: Likewise.
59548         * modules/unistr/u8-uctomb-tests: Likewise.
59549         * modules/unistr/u16-check-tests: Likewise.
59550         * modules/unistr/u16-chr-tests: Likewise.
59551         * modules/unistr/u16-cmp-tests: Likewise.
59552         * modules/unistr/u16-cmp2-tests: Likewise.
59553         * modules/unistr/u16-cpy-alloc-tests: Likewise.
59554         * modules/unistr/u16-cpy-tests: Likewise.
59555         * modules/unistr/u16-mblen-tests: Likewise.
59556         * modules/unistr/u16-mbsnlen-tests: Likewise.
59557         * modules/unistr/u16-mbtouc-tests: Likewise.
59558         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
59559         * modules/unistr/u16-mbtoucr-tests: Likewise.
59560         * modules/unistr/u16-move-tests: Likewise.
59561         * modules/unistr/u16-next-tests: Likewise.
59562         * modules/unistr/u16-prev-tests: Likewise.
59563         * modules/unistr/u16-set-tests: Likewise.
59564         * modules/unistr/u16-stpcpy-tests: Likewise.
59565         * modules/unistr/u16-stpncpy-tests: Likewise.
59566         * modules/unistr/u16-strcat-tests: Likewise.
59567         * modules/unistr/u16-strcmp-tests: Likewise.
59568         * modules/unistr/u16-strcoll-tests: Likewise.
59569         * modules/unistr/u16-strcpy-tests: Likewise.
59570         * modules/unistr/u16-strdup-tests: Likewise.
59571         * modules/unistr/u16-strlen-tests: Likewise.
59572         * modules/unistr/u16-strmblen-tests: Likewise.
59573         * modules/unistr/u16-strmbtouc-tests: Likewise.
59574         * modules/unistr/u16-strncat-tests: Likewise.
59575         * modules/unistr/u16-strncmp-tests: Likewise.
59576         * modules/unistr/u16-strncpy-tests: Likewise.
59577         * modules/unistr/u16-strnlen-tests: Likewise.
59578         * modules/unistr/u16-to-u32-tests: Likewise.
59579         * modules/unistr/u16-to-u8-tests: Likewise.
59580         * modules/unistr/u16-uctomb-tests: Likewise.
59581         * modules/unistr/u32-check-tests: Likewise.
59582         * modules/unistr/u32-chr-tests: Likewise.
59583         * modules/unistr/u32-cmp-tests: Likewise.
59584         * modules/unistr/u32-cmp2-tests: Likewise.
59585         * modules/unistr/u32-cpy-alloc-tests: Likewise.
59586         * modules/unistr/u32-cpy-tests: Likewise.
59587         * modules/unistr/u32-mblen-tests: Likewise.
59588         * modules/unistr/u32-mbsnlen-tests: Likewise.
59589         * modules/unistr/u32-mbtouc-tests: Likewise.
59590         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
59591         * modules/unistr/u32-mbtoucr-tests: Likewise.
59592         * modules/unistr/u32-move-tests: Likewise.
59593         * modules/unistr/u32-next-tests: Likewise.
59594         * modules/unistr/u32-prev-tests: Likewise.
59595         * modules/unistr/u32-set-tests: Likewise.
59596         * modules/unistr/u32-stpcpy-tests: Likewise.
59597         * modules/unistr/u32-stpncpy-tests: Likewise.
59598         * modules/unistr/u32-strcat-tests: Likewise.
59599         * modules/unistr/u32-strcmp-tests: Likewise.
59600         * modules/unistr/u32-strcoll-tests: Likewise.
59601         * modules/unistr/u32-strcpy-tests: Likewise.
59602         * modules/unistr/u32-strdup-tests: Likewise.
59603         * modules/unistr/u32-strlen-tests: Likewise.
59604         * modules/unistr/u32-strmblen-tests: Likewise.
59605         * modules/unistr/u32-strmbtouc-tests: Likewise.
59606         * modules/unistr/u32-strncat-tests: Likewise.
59607         * modules/unistr/u32-strncmp-tests: Likewise.
59608         * modules/unistr/u32-strncpy-tests: Likewise.
59609         * modules/unistr/u32-strnlen-tests: Likewise.
59610         * modules/unistr/u32-to-u16-tests: Likewise.
59611         * modules/unistr/u32-to-u8-tests: Likewise.
59612         * modules/unistr/u32-uctomb-tests: Likewise.
59613         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
59614         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
59615         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
59616         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
59617         * modules/uniwidth/u8-strwidth-tests: Likewise.
59618         * modules/uniwidth/u8-width-tests: Likewise.
59619         * modules/uniwidth/u16-strwidth-tests: Likewise.
59620         * modules/uniwidth/u16-width-tests: Likewise.
59621         * modules/uniwidth/u32-strwidth-tests: Likewise.
59622         * modules/uniwidth/u32-width-tests: Likewise.
59623         * modules/uniwidth/width-tests: Likewise.
59625 2010-05-18  Richard Jones  <rjones@redhat.com>
59627         doc: users.txt: list hivex
59628         * users.txt: Add hivex.
59630 2010-05-18  Richard Jones  <rjones@redhat.com>
59632         doc: users.txt: list febootstrap
59633         * users.txt: Add febootstrap.
59635 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
59637         bootstrap: fix an error when gnulib is not used as a git submodule
59638         * build-aux/bootstrap (gnulib_path): If its length is zero then
59639         assign "gnulib" to it.
59640         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
59642 2010-05-16  Bruno Haible  <bruno@clisp.org>
59644         Avoid autoconf warnings about AM_ICONV.
59645         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
59646         2.64.
59648 2010-05-16  Bruno Haible  <bruno@clisp.org>
59650         absolute-header: Make the macro usable in more situations.
59651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
59652         from gl_ABSOLUTE_HEADER.
59653         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
59655 2010-05-16  James Youngman  <jay@gnu.org>
59657         doc: update users.txt
59658         * users.txt: Add CSSC.
59660 2010-05-16  Jim Meyering  <meyering@redhat.com>
59662         init.sh: fix an error in the previous change; add more comments
59663         * tests/init.sh: Compare exit code in loop against 9, not 2.
59664         Patch by Bruno Haible.
59665         Make the two tests more similar by adding an empty "then" clause.
59666         Add comments.
59668         init.sh: avoid unnecessary shell re-exec
59669         * tests/init.sh: Improve the re-exec-required check to first test the
59670         current shell.  If it passes the test, do not search for a shell that
59671         does pass, and do not re-exec.  This test is particularly contorted to
59672         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
59673         of $(...) evokes a syntax error and causes immediate shell exit with
59674         status 2.  Bruno Haible reported that the re-exec made it impossible
59675         to single-step through any init.sh-using script.
59677 2010-05-16  Bruno Haible  <bruno@clisp.org>
59679         Fix collision between gnulib's and libintl's printf replacements.
59680         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
59681         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
59682         (printf): When using GNU C, map the __printf__ function to rpl_printf
59683         via __asm__. When not using GNU C, define rpl_printf instead of
59684         __printf__.
59685         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
59686         commit.
59687         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
59688         commit.
59689         * m4/asm-underscore.m4: New file.
59690         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
59691         * modules/stdio (Files): Add m4/asm-underscore.m4.
59692         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
59693         Reported by Ben Pfaff.
59695 2010-05-16  Bruno Haible  <bruno@clisp.org>
59697         verify: Avoid skipping the test on openSUSE 11.0.
59698         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
59700 2010-05-13  Bruno Haible  <bruno@clisp.org>
59702         Avoid useless warnings from G++.
59703         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
59704         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
59705         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59707 2010-05-11  Jim Meyering  <meyering@redhat.com>
59709         maint.mk: tweak preceding change
59710         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
59711         regexps tighter by anchoring at EOL, and make the new group "shy"
59712         for slightly decreased overhead.
59714 2010-05-11  Eric Blake  <eblake@redhat.com>
59716         maint.mk: gnulib doesn't guarantee NSIG
59717         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
59719 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
59721         test-pwrite.c: Remove unused variable declaration.
59722         * tests/test-pwrite.c (main): Remove read_buf declaration.
59724         Remove useless test-pwrite.sh file.
59725         * tests/test-pwrite.sh: Delete file.
59726         * modules/pwrite-tests: Remove references.
59727         Reported by Bruno Haible.
59729 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
59731         init.sh: fix a typo
59732         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
59734 2010-05-10  Jim Meyering  <meyering@redhat.com>
59736         maint.mk: avoid using a temporary file in the always-defined-macros check
59737         * top/maint.mk (.re-defmac): Remove rule.
59738         (gl_trap_): Remove definition.
59739         (sc_prohibit_always-defined_macros): Rewrite not to create and
59740         depend on a temporary file.  Instead, depend on GNU grep's ability
59741         to read a list of regular expressions from stdin when given "-f -".
59743 2010-05-09  Bruno Haible  <bruno@clisp.org>
59745         Update to GNU gettext 0.18, part 1.
59746         * m4/gettext.m4: Update to GNU gettext 0.18.
59747         * m4/intl.m4: Likewise.
59748         * m4/po.m4: Likewise.
59749         * modules/gettext (Files): Add m4/fcntl-o.m4.
59750         (configure.ac): Require gettext infrastructure from version 0.18.
59752 2010-05-09  Jim Meyering  <meyering@redhat.com>
59754         init.sh: enable MALLOC_PERTURB_
59755         * tests/init.sh: Enable glibc's malloc-perturbing option.
59757         maint.mk: improve sc_cross_check_PATH_usage_in_tests
59758         With my recent change in init.sh from the two-line form:
59759             -#   : ${srcdir=.}
59760             -#   . "$srcdir/init.sh"; path_prepend_ .
59761             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
59762         I noticed that using the one-line form would cause this test
59763         to fail with a false-positive, or to stop working altogether,
59764         depending on whether help-version changed or all the tests did.
59765         * top/maint.mk (_hv_regex): Remove this definition.
59766         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
59767         (_hv_regex_strong): Use a stronger regex to check for conformance.
59768         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
59769         Give a separate diagnostic for lack of conforming use.
59771         maint.mk: prohibit definition of symbols defined by gnulib
59772         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
59773         definition of symbols defined by gnulib.
59775 2010-05-09  Bruno Haible  <bruno@clisp.org>
59777         acl: Avoid test failure on Cygwin-hosted mingw.
59778         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
59780 2010-05-09  Bruno Haible  <bruno@clisp.org>
59782         error: Use system's fcntl function.
59783         * lib/error.c (fcntl): Undefine.
59785 2010-05-09  Jim Meyering  <meyering@redhat.com>
59787         verify: adjust formatting to be more consistent
59788         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
59789         argument-list '('s, and after one comma.
59791 2010-05-09  Bruno Haible  <bruno@clisp.org>
59793         error: More reliable output on mingw.
59794         * lib/error.c: Include <windows.h>.
59795         (is_open): New function.
59796         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
59797         defined.
59799 2010-05-09  Bruno Haible  <bruno@clisp.org>
59801         vasnprintf: Fix syntax errors in libintl build on mingw.
59802         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
59803         pad_ourselves and prec_ourselves after use.
59805 2010-05-08  Bruno Haible  <bruno@clisp.org>
59807         * lib/config.charset: Update comments for Cygwin 1.7.
59808         * lib/localcharset.c: Likewise.
59810 2010-05-07  Jim Meyering  <meyering@redhat.com>
59812         init.sh: improve comments
59813         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
59814         . "${srcdir=.}/init.sh"; path_prepend_ .
59815         Add a note about path_prepend_ and the alternative of using
59816         TESTS_ENVIRONMENT.
59818 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
59820         exclude: Unescape hashed patterns in wildcard mode.
59821         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
59822         to the hash list.
59823         * tests/test-exclude8.sh: New test case.
59824         * modules/exclude-tests: Add new test.
59826 2010-05-05  Eric Blake  <eblake@redhat.com>
59828         verify: automate tests
59829         * modules/verify-tests: New module.
59830         * tests/test-verify.sh: New file.
59831         * tests/test-verify.c: Guard each negative test with a unique id.
59832         Also avoid warning about unused left hand of comma expressions.
59834 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59836         Further improvements to verify.h, suggested by Eric Blake.
59837         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
59838         the GL_* versions, to avoid collision with OpenGL.
59839         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
59840         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
59841         than testing merely whether it's defined.
59843         Modify verify.h to pacify gcc -Wredundant_decls.
59844         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
59845         These use the prefix "GL_" since they're likely to be useful elsewhere.
59846         We may need to break them out into a different .h file.
59847         (__COUNTER__): Define to 0 if the compiler doesn't support it.
59848         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
59849         of verify_function__.
59851 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
59853         Tests for module pwrite.
59854         * modules/pwrite-tests: New file.
59855         * tests/test-pwrite.sh: New file.
59856         * tests/test-pwrite.c: New file.
59858         New module pwrite.
59859         * lib/unistd.in.h (pwrite): New declaration.
59860         * lib/pwrite.c: New file, from glibc with modifications.
59861         * m4/pwrite.m4: New file.
59862         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
59863         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
59864         REPLACE_PWRITE.
59865         * modules/pwrite: New file.
59866         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
59867         REPLACE_PWRITE.
59868         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
59869         * doc/posix-functions/pwrite.texi: Mention the new module.
59871 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
59873         pread: Update documentation.
59874         * doc/posix-functions/pread.texi: Mention the 'pread' module.
59876 2010-05-04  Eric Blake  <eblake@redhat.com>
59878         docs: update cygwin progress
59879         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
59880         this bug.
59881         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
59882         Added in cygwin 1.7.2.
59883         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
59884         Likewise.
59885         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
59886         Likewise.
59887         * doc/glibc-functions/dup3.texi (dup3): Likewise.
59888         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
59889         * doc/glibc-functions/accept4.texi (accept4): Likewise.
59890         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
59891         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
59892         Mention nproc module.
59893         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
59894         bug in cygwin 1.7.5 addition.
59895         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
59896         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
59897         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
59898         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
59899         1.7.5.
59900         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
59901         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
59902         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
59903         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
59904         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
59905         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
59906         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
59907         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
59908         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
59909         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
59910         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
59911         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
59912         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
59913         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
59914         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
59915         Likewise.
59916         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
59917         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
59918         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
59919         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
59920         Likewise.
59921         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
59922         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
59923         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
59924         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
59925         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
59926         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
59927         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
59928         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
59929         Likewise.
59930         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
59931         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
59932         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
59933         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
59934         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
59935         Likewise.
59936         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
59937         Likewise.
59938         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
59939         Likewise.
59940         * doc/glibc-functions/xdrrec_endofrecord.texi
59941         (xdrrec_endofrecord): Likewise.
59942         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
59943         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
59944         Likewise.
59945         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
59946         Likewise.
59948 2010-05-04  Jim Meyering  <meyering@redhat.com>
59950         gendocs.sh: make its "-s FILE" option more useful
59951         * build-aux/gendocs.sh: When honoring the -s FILE option, update
59952         $PACKAGE to reflect the probably-different basename of "FILE".
59954 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
59956         bootstrap: don't ignore download_po_files failure
59957         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
59958         failure.
59960 2010-05-03  Jim Meyering  <meyering@redhat.com>
59962         maint.mk: allow to pass options to gendocs.sh
59963         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
59964         (gendocs_options_): New overridable variable.
59966         gnu-web-doc-update: don't ignore configure or build failure
59967         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
59969         announce-gen: backslash-escape '@'s in --help output
59970         * build-aux/announce-gen: Fix syntax errors.
59972         maint.mk, announce-gen: allow project-specific announcement mail headers
59973         * top/maint.mk (translation_project_): Define default.
59974         (announcement_Cc_, announcement_mail_headers_): Likewise.
59975         (announcement): Invoke announce-gen with new --mail-headers option.
59976         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
59978         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
59979         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
59980         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
59981         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
59982         line in the "err2" output file when running "make check" in verbose
59983         mode (i.e., with set -x enabled).
59985 2010-05-03  Bruno Haible  <bruno@clisp.org>
59987         wctob: Fix for weird platforms.
59988         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
59989         argument value.
59991 2010-05-03  Jim Meyering  <meyering@redhat.com>
59993         maint.mk: prohibit unwarranted use of <strings.h>
59994         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
59995         strings.h in a file that does not also use strcasecmp, strncasecmp,
59996         ffs or ffsll.
59998         maint.mk: remove obsolete comments
59999         * top/maint.mk: Remove stale, commented-out rules.
60001 2010-05-02  Bruno Haible  <bruno@clisp.org>
60003         wcwidth: Declare also when it's aliased.
60004         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
60005         macro.
60007 2010-05-02  Bruno Haible  <bruno@clisp.org>
60009         Fix regression from 2010-04-25.
60010         * gnulib-tool (func_modules_transitive_closure): Check the status of
60011         all modules, not only of the tests that are of the form foo-tests where
60012         foo is a module.
60014 2010-05-02  Bruno Haible  <bruno@clisp.org>
60016         wctob: Work around nasty Cygwin 1.7.2 bug.
60017         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
60018         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
60020 2010-05-01  Bruno Haible  <bruno@clisp.org>
60022         fpurge: Sharper test.
60023         * tests/test-fpurge.c (main): Add one more ftell check.
60024         * modules/fpurge-tests (Depends-on): Add ftell.
60025         Suggested by Eric Blake.
60027 2010-05-01  Bruno Haible  <bruno@clisp.org>
60029         ftello: Another test.
60030         * tests/test-ftello3.c: New file.
60031         * modules/ftello-tests (Files): Add it.
60032         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60033         MOSTLYCLEANFILES.
60035         ftell: Another test.
60036         * tests/test-ftell3.c: New file.
60037         * modules/ftell-tests (Files): Add it.
60038         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
60039         MOSTLYCLEANFILES.
60041 2010-05-01  Bruno Haible  <bruno@clisp.org>
60043         ftell, ftello: Work around Solaris bug.
60044         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
60045         * lib/ftello.c: Include stdio-impl.h.
60046         (ftello): On Solaris, when _IOWRT is set, compute the result without
60047         looking at _IOREAD.
60048         * modules/ftello (Files): Add lib/stdio-impl.h.
60049         * doc/posix-functions/ftell.texi: Mention Solaris bug.
60050         * doc/posix-functions/ftello.texi: Likewise.
60051         Reported by Eric Blake.
60053 2010-05-01  Bruno Haible  <bruno@clisp.org>
60055         freading: Adapt to special meaning of _IOREAD flag on Solaris.
60056         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
60057         the _IOWRT flag is also set.
60059 2010-05-01  Bruno Haible  <bruno@clisp.org>
60061         Fix doc about a HP-UX stdio bug.
60062         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
60063         * doc/posix-functions/ftello.texi: Likewise.
60065 2010-05-01  Bruno Haible  <bruno@clisp.org>
60067         lseek test: Fix failure on Solaris.
60068         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
60069         output.
60071 2010-04-30  Jim Meyering  <meyering@redhat.com>
60073         bootstrap: don't ignore failure to generate po*/Makevars
60074         * build-aux/bootstrap (with_gettext): Don't ignore failure
60075         to create po/Makevars or runtime-po/Makevars.
60077 2010-04-29  Eric Blake  <eblake@redhat.com>
60079         headers: relax license to LGPLv2+
60080         * modules/fcntl-h (License): Relax license.
60081         * modules/getopt-posix (License): Likewise.
60082         * modules/locale (License): Likewise.
60083         * modules/math (License): Likewise.
60084         * modules/pty (License): Likewise.
60085         * modules/sched (License): Likewise.
60086         * modules/search (License): Likewise.
60087         * modules/spawn (License): Likewise.
60088         * modules/stdarg (License): Likewise.
60089         * modules/sysexits (License): Likewise.
60091 2010-04-29  Jim Meyering  <meyering@redhat.com>
60093         inttypes: relax license to LGPLv2+
60094         * modules/inttypes (License): Relax license.
60096 2010-04-29  Simon Josefsson  <simon@josefsson.org>
60098         * top/maint.mk (indent): Run twice to produce idempotent results.
60100 2010-04-28  Bruno Haible  <bruno@clisp.org>
60102         getdate: Generate getdate.c in the source directory.
60103         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
60104         MOSTLYCLEANFILES.
60105         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
60107 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
60109         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
60110         is not declared as a const *; avoid warnings in that case.
60112 2010-04-28  Eric Blake  <eblake@redhat.com>
60114         canonicalize-lgpl: avoid compiler warning
60115         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
60116         declaration' / 'extraneous semicolon' warning with some compilers.
60117         Reported by Andreas Gruenbacher.
60119 2010-04-28  Jim Meyering  <meyering@redhat.com>
60121         init.sh: ensure a more reliable exit status when exiting via trap
60122         * tests/init.sh (setup_): Don't rely on $? in signal handler.
60123         Inspired by patches from Dmitry V. Levin.
60124         Also trap on signal 3 (SIGQUIT).
60126 2010-04-27  Bruno Haible  <bruno@clisp.org>
60128         Update doc about utimes().
60129         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
60130         'utimens' module.
60131         Reported by Andreas Gruenbacher <agruen@suse.de>.
60133 2010-04-27  Eric Blake  <eblake@redhat.com>
60135         full-read, full-write: relax license
60136         * modules/full-read (License): Drop to LGPLv2+.
60137         * modules/full-write (License): Likewise.
60138         * modules/safe-read (License): Likewise.
60139         * modules/safe-write (License): Likewise.
60141         pthread: mention library for linking
60142         * modules/pthread (Link): Mention $(LIB_PTHREAD).
60144 2010-04-27  Jim Meyering  <meyering@redhat.com>
60146         maint.mk: fix a bug introduced in last change
60147         * top/maint.mk (gl_assured_headers_): Now that all names are on
60148         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
60149         is not anchored to end of word, it should be adequate.
60151         maint.mk: avoid side-effect in latest syntax-check
60152         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
60153         to run commands via $(shell...), and hence to incur cost only when
60154         the new rule is actually run.
60156         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
60157         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
60158         and use that to create a regexp used to detect all #if HAVE_..._H uses.
60159         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
60160         (gl_assured_headers_, az_, AZ_): Define.
60161         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
60163 2010-04-26  Jim Meyering  <jim@meyering.net>
60164             Bruno Haible  <bruno@clisp.org>
60166         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
60167         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
60168         Prompted by an exchange with Gilles Espinasse.
60170 2010-04-26  Jim Meyering  <meyering@redhat.com>
60172         git-version-gen: aesthetic tweak
60173         * build-aux/git-version-gen: Use "$nl" rather than a literal,
60174         so that the command remains on a single line.
60176 2010-04-26  Eric Blake  <eblake@redhat.com>
60178         git-version-gen: allow use on EBCDIC hosts
60179         * build-aux/git-version-gen (dirty): Use literal rather than tying
60180         ourselves to ascii.
60181         Reported by Steve Goetze.
60183 2010-04-25  Bruno Haible  <bruno@clisp.org>
60185         netdb: Add support for GNULIB_POSIXCHECK.
60186         * lib/netdb.in.h: Include warn-on-use.h.
60187         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
60188         functions are used when GNULIB_POSIXCHECK is defined and the
60189         getaddrinfo module is not in use.
60190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
60191         freeaddrinfo, gai_strerror, getnameinfo are declared.
60192         * modules/netdb (Depends-on): Add warn-on-use.
60193         (Makefile.am): Include warn-on-use.h in netdb.h.
60195 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
60197         build: avoid "make check" failure without .git/ directory
60198         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
60199         there is no .git/ directory.
60201 2010-04-25  Bruno Haible  <bruno@clisp.org>
60203         ptsname: Fix misuse of ttyname_r.
60204         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
60205         of errno.
60207 2010-04-25  Bruno Haible  <bruno@clisp.org>
60209         ttyname_r: Make it work on Solaris 10.
60210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
60211         if the system function has the POSIX declaration. Test whether the
60212         function fails if the buffer is less than 128 bytes large.
60213         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
60214         system's ttyname_r function. Provide a reasonably large buffer.
60215         * modules/ttyname_r (Depends-on): Add extensions.
60216         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
60218 2010-04-25  Bruno Haible  <bruno@clisp.org>
60220         Use the 'extensions' module for some more functions on Solaris.
60221         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
60222         module.
60223         * doc/posix-functions/ctime_r.texi: Likewise.
60224         * doc/posix-functions/getgrgid_r.texi: Likewise.
60225         * doc/posix-functions/getgrnam_r.texi: Likewise.
60226         * doc/posix-functions/getpwnam_r.texi: Likewise.
60227         * doc/posix-functions/getpwuid_r.texi: Likewise.
60228         * doc/posix-functions/readdir_r.texi: Likewise.
60229         * doc/posix-functions/sigwait.texi: Likewise.
60230         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
60231         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
60233 2010-04-25  Bruno Haible  <bruno@clisp.org>
60235         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
60236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
60237         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
60238         * lib/ttyname_r.c: Include <limits.h>.
60239         (ttyname_r): Define using the system's ttyname_r function, if it exists
60240         and not on Solaris.
60241         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
60242         set.
60243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
60244         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
60245         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
60246         Reported by Simon Josefsson.
60248 2010-04-25  Bruno Haible  <bruno@clisp.org>
60250         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
60251         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
60252         * doc/posix-functions/ctime_r.texi: Likewise.
60253         * doc/posix-functions/getgrgid_r.texi: Likewise.
60254         * doc/posix-functions/getgrnam_r.texi: Likewise.
60255         * doc/posix-functions/getlogin_r.texi: Likewise.
60256         * doc/posix-functions/getpwnam_r.texi: Likewise.
60257         * doc/posix-functions/getpwuid_r.texi: Likewise.
60258         * doc/posix-functions/readdir_r.texi: Likewise.
60259         * doc/posix-functions/sigwait.texi: Likewise.
60260         * doc/posix-functions/ttyname_r.texi: Likewise.
60261         Reported by Simon Josefsson.
60263 2010-04-25  Bruno Haible  <bruno@clisp.org>
60265         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
60266         * gnulib-tool (func_usage): Document that --with-*-tests options apply
60267         also to --create-testdir.
60268         (func_acceptable): Don't consider the status of *-tests modules here.
60269         (func_modules_transitive_closure): Consider it here, before including a
60270         test module.
60271         (func_import, func_create_testdir): Set inc_all_direct_tests,
60272         inc_all_indirect_tests.
60273         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
60274         --create-testdir and --create-megatestdir.
60276 2010-04-25  Bruno Haible  <bruno@clisp.org>
60278         gnulib-tool: Add --without-*-tests options.
60279         * gnulib-tool (func_usage): Document the --without-*-tests options.
60280         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
60281         excl_unportable_tests): New variables.
60282         Fail if they are specified with --import or --update.
60283         (func_acceptable): Respect the excl_*_tests variables.
60284         (func_import): Set the excl_*_tests variables to empty.
60286 2010-04-25  Simon Josefsson  <simon@josefsson.org>
60287             Bruno Haible  <bruno@clisp.org>
60289         Work around a MacOS X 10.4 bug with openpty.
60290         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
60291         * tests/test-openpty.c (main): Close the master side explicitly.
60293 2010-04-25  Bruno Haible  <bruno@clisp.org>
60295         strnlen: Fix a C++ test error on MacOS X and Solaris.
60296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
60297         the function is not declared.
60298         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
60299         Simon Josefsson.
60301 2010-04-24  Bruno Haible  <bruno@clisp.org>
60303         Avoid a gcc warning.
60304         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
60305         of correct type for %08lx directive.
60306         Reported by Eric Blake.
60308 2010-04-24  Bruno Haible  <bruno@clisp.org>
60310         vasnprintf: Correct errno value in case of out-of-memory.
60311         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
60312         or sprintf. Use the errno value from SNPRINTF or sprintf.
60313         Reported by Ian Beckwith <ianb@erislabs.net>.
60315 2010-04-24  Bruno Haible  <bruno@clisp.org>
60317         ansi-c++-opt: Find correct compiler when cross-compiling.
60318         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
60319         AC_CHECK_PROGS.
60320         Reported by Simon Josefsson.
60322 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
60324         vc-list-files: Add support for subversion
60325         * build-aux/vc-list-files: Use "svn list" to generate the list of
60326         files controlled by subversion.
60328 2010-04-23  Jim Meyering  <meyering@redhat.com>
60330         vc-list-files tests: convert to use init.sh
60331         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
60332         path_prepend_.
60333         Use Exit, not exit.
60334         Use skip_ rather than open coding it.
60335         Remove trap set-up and compare definitions.
60336         * tests/test-vc-list-files-git.sh: Likewise.
60337         * modules/vc-list-files-tests (Files): Add tests/init.sh.
60339 2010-04-22  Simon Josefsson  <simon@josefsson.org>
60341         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
60342         backup files.
60344 2010-04-21  Simon Josefsson  <simon@josefsson.org>
60346         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
60348 2010-04-20  Eric Blake  <eblake@redhat.com>
60350         tests: be robust to ignored SIGPIPE
60351         * tests/test-select-in.sh: Consume all output.
60352         * tests/test-lseek.sh: Check correct exit status, while avoiding
60353         EPIPE.
60355 2010-04-20  Simon Josefsson  <simon@josefsson.org>
60356             Bruno Haible  <bruno@clisp.org>
60358         visibility: Don't use -fvisibility if it leads to a warning.
60359         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
60360         yes, don't pretend that visibility works if it leads to a warning.
60361         Reported by Mike Gran <spk121@yahoo.com>.
60363 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
60365         * build-aux/bootstrap: Use "git -h" for testing for supported options
60366         instead of "git --help".  The short-form option only shows a summary,
60367         and doesn't layout the full man page.  Grep for the full option name
60368         in the summary, too.
60370 2010-04-19  Bruno Haible  <bruno@clisp.org>
60372         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
60373         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
60374         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
60375         mention of RELOCATABLE_STRIP.
60376         Reported by Sylvain Beucler <beuc@beuc.net>.
60378 2010-04-19  Bruno Haible  <bruno@clisp.org>
60380         * lib/diffseq.h: Fix typo in comment.
60381         Reported by Eric Blake.
60383 2010-04-19  Bruno Haible  <bruno@clisp.org>
60385         ioctl: Move autoconf macro to a .m4 file.
60386         * m4/ioctl.m4: New file, extracted from modules/ioctl.
60387         * modules/ioctl (Files): Add it.
60388         (configure.ac): Simply invoke gl_FUNC_IOCTL.
60389         Reported by Ian Beckwith <ianb@erislabs.net>.
60391 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
60392             Bruno Haible  <bruno@clisp.org>
60394         diffseq: Accommodate use-case with abstract arrays.
60395         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
60396         is not defined.
60397         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
60398         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
60400 2010-04-18  Bruno Haible  <bruno@clisp.org>
60402         * doc/posix-headers/stdbool.texi: More precise wording.
60404 2010-04-17  Jim Meyering  <meyering@redhat.com>
60406         maint.mk: use gnu-style indentation in an embedded perl script
60407         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
60408         Rename variable: s/two/last_two_bytes/
60410 2010-04-16  Eric Blake  <eblake@redhat.com>
60412         test-stdbool: skip test that fails with Solaris CC
60413         * tests/test-stdbool.c (f): Skip test that causes compilation
60414         error under buggy C++ compiler.
60415         * lib/stdbool.in.h: Document the limitation.
60416         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
60418         setenv: allow compilation with C++
60419         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
60420         register keyword.
60422         stdint: allow test to pass with C++
60423         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
60425         getopt: allow compilation with C++
60426         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
60427         struct.
60428         * lib/getopt.c (_getopt_internal_r): Use correct type.
60429         Reported by Dagobert Michelson, via Joel E. Denny.
60431 2010-04-16  Bruno Haible  <bruno@clisp.org>
60433         Override netdb.h always.
60434         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
60435         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
60436         Reported by Ludovic Courtès <ludo@gnu.org>.
60438 2010-04-15  Bruno Haible  <bruno@clisp.org>
60440         openpty: Fix mistake from 2010-03-21.
60441         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
60442         Reported by Simon Josefsson.
60444 2010-04-15  Eric Blake  <eblake@redhat.com>
60446         test-forkpty: fix expected signature
60447         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
60448         Reported by Simon Josefsson.
60450 2010-04-15  Jim Meyering  <meyering@redhat.com>
60452         maint.mk: texinfo_suffix_re_: correct the default regexp
60453         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
60455         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
60456         make it configurable via texinfo_suffix_re_.
60458 2010-04-14  Eric Blake  <eblake@redhat.com>
60460         strtok_r: relax license to LGPLv2+
60461         * modules/strtok_r (License): Relax license.
60462         Reported by Matthias Bolte.
60464 2010-04-14  Simon Josefsson  <simon@josefsson.org>
60466         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
60467         version 1.4.4 by default instead of requiring the libgcrypt
60468         version used during build.  This makes it possible to use the
60469         application with older but still binary compatible libgcrypt
60470         versions.
60472 2010-04-13  Eric Blake  <eblake@redhat.com>
60474         getopt-gnu: match recent glibc fixes and posix ruling
60475         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
60476         '+' handling, when requesting extensions.
60477         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
60478         'W;' handling.
60479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
60480         * doc/posix-functions/getopt.texi (getopt): Document this.
60481         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
60482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60483         Likewise.
60485         getopt: merge bug fixes from glibc
60486         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
60487         diagnostics.  Honor '+:' correctly.  Reject ';'.
60489         getopt-posix: detect MacOS bug
60490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
60491         optind when missing a required argument.
60492         * doc/posix-functions/getopt.texi (getopt): Document the bug.
60493         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
60494         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60495         Likewise.
60497         getopt-posix: avoid spurious failure on Solaris
60498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
60499         an indicator that setting optind=1 is sufficient for reset.
60501         getopt-posix: avoid spurious failure on FreeBSD
60502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
60503         in POSIX mode, since the m4 test uses it.
60505         gnulib-tool: silence warning on BSD sh
60506         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
60508 2010-04-13  Jim Meyering  <meyering@redhat.com>
60510         doc: users.txt: GNU patch now uses gnulib
60511         * users.txt: Add patch.
60513 2010-04-12  Jim Meyering  <meyering@redhat.com>
60515         maint.mk: generate more concise timing data for syntax-check rules
60516         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
60517         " done" from each line that reports a syntax-check test duration.
60519 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
60521         git-version-gen: use "git update-index..." rather than "git status"
60522         * build-aux/git-version-gen: Use git update-index --refresh, not
60523         "git status".  With some versions of git, "git status" would fail
60524         to update the index and result in an unwarranted "-dirty" suffix.
60526 2010-04-11  Jim Meyering  <meyering@redhat.com>
60528         openat: correct formatting (no semantic change)
60529         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
60530         Suggested by Bruno Haible.
60532 2010-04-11  Bruno Haible  <bruno@clisp.org>
60534         Stricter declaration checking in testdirs.
60535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60536         If for_tests is true, augment AM_CPPFLAGS to define
60537         GNULIB_STRICT_CHECKING.
60538         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
60539         GNULIB_STRICT_CHECKING is defined, verify that the function is
60540         declared.
60542 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
60543             Bruno Haible  <bruno@clisp.org>
60545         libunistring: Improve configure output.
60546         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
60547         Don't say "consider installing GNU libunistring" when checking again
60548         with libiconv.
60550 2010-04-11  Bruno Haible  <bruno@clisp.org>
60552         libunistring: Correct value of $LTLIBUNISTRING.
60553         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
60554         correct the value of $LTLIBUNISTRING.
60556 2010-04-11  Bruno Haible  <bruno@clisp.org>
60558         havelib: Add static libraries to LIBS in the right order.
60559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
60560         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
60562 2010-04-11  Bruno Haible  <bruno@clisp.org>
60564         libunistring: Detect libunistring also when it depends on libiconv.
60565         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
60566         the second AC_LIB_HAVE_LINKFLAGS invocation.
60568 2010-04-11  James Youngman  <jay@gnu.org>
60570         close-stream: declare local scalars to be "const"
60571         * lib/close-stream.c (close_stream): Make boolean variables const
60572         to document the fact that we set but do not change them.
60574 2010-04-11  Bruno Haible  <bruno@clisp.org>
60576         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
60578 2010-04-11  Jim Meyering  <meyering@redhat.com>
60580         maint.mk: don't include dist-check.mk
60581         * top/maint.mk: Remove bogus include directive.
60583         maint.mk: improve empty-line-at-EOF check
60584         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
60585         solution, rather than tail+Perl-based one.  The latter would read
60586         a few kilobytes from the end of each file, and did not handle empty
60587         files properly.
60589         maint.mk: print the elapsed time for each syntax-check rule
60590         * top/maint.mk (sc_m_rules_): Save start time in a file.
60591         (sc_z_rules_): New rules: remove temp file and print elapsed time.
60592         (local-check): Interpose the .z rules
60594 2010-04-11  Jim Meyering  <meyering@redhat.com>
60596         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
60597         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
60598         empty file with one that ends in an empty line.
60600 2010-04-10  Bruno Haible  <bruno@clisp.org>
60602         mkdir: Make it work on mingw64.
60603         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
60604         * lib/mkdir.c: Update comment.
60605         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
60607 2010-04-10  Bruno Haible  <bruno@clisp.org>
60609         Don't override improved macro from newer autoconf.
60610         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
60611         autoconf >= 2.62.
60612         Reported by Joel E. Denny <jdenny@clemson.edu>.
60614 2010-04-10  Jim Meyering  <meyering@redhat.com>
60616         maint.mk: new syntax-check rule: prohibit empty lines at end of file
60617         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
60619         maint.mk: correct a diagnostic
60620         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
60621         in diagnostic; now use $prohibit.
60623 2010-04-10  Bruno Haible  <address@hidden>
60625         fchownat: Fix a C++ test error on Solaris 8.
60626         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
60627         the function does not exist.
60629 2010-04-10  Bruno Haible  <bruno@clisp.org>
60631         vasnprintf: Add more tests.
60632         * tests/test-vasnprintf-posix.c: Include <errno.h>.
60633         (test_function): Test converting an invalid wide string.
60635         vasnprintf: Correct handling of unconvertible wide string arguments.
60636         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
60637         VASNPRINTF.
60638         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
60639         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
60640         smaller than the expected maximum need for the directive. Set errno to
60641         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
60642         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
60643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
60644         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
60645         * modules/vasnprintf (Files): Add m4/printf.m4.
60646         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60648 2010-04-10  Bruno Haible  <bruno@clisp.org>
60650         vasnprintf: Fix crash in %ls directive.
60651         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
60652         string is passed as argument to %ls, with no precision and no width.
60653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60655 2010-04-10  Bruno Haible  <bruno@clisp.org>
60657         vasnprintf: Fix multiple test failures on mingw.
60658         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
60659         _snprintf, or snwprintf, not _snwprintf.
60661 2010-04-10  Bruno Haible  <bruno@clisp.org>
60663         write: Fix a C++ test error on mingw.
60664         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
60666 2010-04-10  Bruno Haible  <bruno@clisp.org>
60668         vasnprintf test: Reduce code duplication.
60669         * tests/test-vasnprintf.c (test_function): New function, extracted from
60670         test_vasnprintf.
60671         (test_vasnprintf, test_asnprintf): Invoke it.
60673 2010-04-10  Bruno Haible  <bruno@clisp.org>
60675         strnlen: Fix warning in C++ mode on MacOS X.
60676         * lib/string.in.h (strnlen): Use the modern idiom.
60677         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
60678         defining strnlen as a macro already in <config.h>.
60679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60680         REPLACE_STRNLEN.
60681         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
60682         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60684 2010-04-08  James Youngman  <jay@gnu.org>
60686         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
60687         the example.
60689 2010-04-09  Jim Meyering  <meyering@redhat.com>
60691         maint.mk: print better diagnostic when there is no $(_hv_file)
60692         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
60693         announce that when $(_hv_file) (aka help-version) does not exist.
60695         init.sh: run tr in the "C" locale to avoid multibyte interpretation
60696         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
60697         not try to interpret its random input bytes.  Jarno Rajahalme reported
60698         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
60699         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
60700         (mktempd_): Likewise, just in case.
60702         ftruncate: add two years to projected module removal date: 2012
60703         * m4/ftruncate.m4: Adjust comments.
60705         ftruncate: mark module as obsolete; even MinGW provides it, now
60706         * modules/ftruncate (Status): Obsolete.
60707         (Notice): Say that.
60708         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
60709         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
60711 2010-04-08  Bruno Haible  <bruno@clisp.org>
60713         Fix side effects from tests-related modules.
60714         * modules/dprintf-posix (Comment): New section.
60715         * modules/fprintf-posix (Comment): Likewise.
60716         * modules/obstack-printf-posix (Comment): Likewise.
60717         * modules/printf-posix (Comment): Likewise.
60718         * modules/snprintf-posix (Comment): Likewise.
60719         * modules/sprintf-posix (Comment): Likewise.
60720         * modules/vasnprintf-posix (Comment): Likewise.
60721         * modules/vasprintf-posix (Comment): Likewise.
60722         * modules/vdprintf-posix (Comment): Likewise.
60723         * modules/vfprintf-posix (Comment): Likewise.
60724         * modules/vprintf-posix (Comment): Likewise.
60725         * modules/vsnprintf-posix (Comment): Likewise.
60726         * modules/vsprintf-posix (Comment): Likewise.
60727         * modules/xprintf-posix (Comment): Likewise.
60728         * modules/xvasprintf-posix (Comment): Likewise.
60729         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
60730         * modules/floorf-tests (Depends-on): Likewise.
60731         * modules/round-tests (Depends-on): Likewise.
60732         * modules/roundf-tests (Depends-on): Likewise.
60733         * modules/trunc-tests (Depends-on): Likewise.
60734         * modules/truncf-tests (Depends-on): Likewise.
60735         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
60736         'fprintf-posix' module is not present.
60737         * tests/test-floorf2.c (check): Likewise.
60738         * tests/test-trunc2.c (check): Likewise.
60739         * tests/test-truncf2.c (check): Likewise.
60740         * tests/test-round2.c (equal): Likewise.
60741         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
60743 2010-04-07  Karl Berry  <karl@gnu.org>
60745         * config/srclist.txt,
60746         * config/srclistvars.sh,
60747         * config/srclist-update: doc fixes.
60749 2010-04-07  Jim Meyering  <meyering@redhat.com>
60751         maint.mk: add a PATH crosschecking syntax-check rule
60752         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
60753         Useful if you use a test like the one in help-version (coreutils,
60754         diffutils, grep, gzip) that ensures $(VERSION) matches what is
60755         printed by prog --version.
60757 2010-04-06  Bruno Haible  <bruno@clisp.org>
60759         Fix link error on mingw.
60760         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
60761         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
60763 2010-04-06  Bruno Haible  <bruno@clisp.org>
60765         Assume rmdir exists.
60766         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
60768 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
60770         doc: update users.txt
60771         * users.txt: Add gcal.
60773 2010-04-06  Jim Meyering  <meyering@redhat.com>
60775         init.sh: simply unset TMPDIR rather than risking env -i
60776         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
60777         although it probably works fine on all Unix-based systems, some
60778         systems (Cygwin?) cannot tolerate a totally cleared environment.
60779         Suggestion from Eric Blake.
60781 2010-04-06  Jim Meyering  <meyering@redhat.com>
60783         init.sh: portability fix: use env's POSIX-specified -i option not -u
60784         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
60785         than unportable env -u.  Solaris 5.11's env lacks support for -u.
60787 2010-04-05  Bruno Haible  <bruno@clisp.org>
60789         btowc: Work around Cygwin 1.7.2 bug.
60790         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
60791         does not map NUL to 0.
60792         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
60794 2010-04-05  Bruno Haible  <bruno@clisp.org>
60796         Make the multithread modules work on Cygwin 1.7.2.
60797         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
60798         imported symbols can be declared weak, so that it returns "no" on
60799         Cygwin 1.7.2.
60801 2010-04-05  Bruno Haible  <bruno@clisp.org>
60803         Use the module 'strncat'.
60804         * modules/unistr/u8-strncat (Depends-on): Add strncat.
60806         Tests for module 'strncat'.
60807         * modules/strncat-tests: New file.
60808         * tests/test-strncat.c: New file.
60810         New module 'strncat'.
60811         * lib/string.in.h (strncat): New declaration.
60812         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
60813         * m4/strncat.m4: New file, based on m4/memchr.m4.
60814         * modules/strncat: New file.
60815         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
60816         is declared.
60817         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
60818         REPLACE_STRNCAT.
60819         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
60820         REPLACE_STRNCAT.
60821         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
60822         module.
60823         * tests/test-string-c++.cc: Check signature of strncat.
60825 2010-04-05  Jim Meyering  <meyering@redhat.com>
60827         xstrtoumax-tests: convert to use init.sh
60828         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
60829         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
60830         Use Exit, not exit.
60831         Remove uses of $EXEEXT and "./" to run a program in the current dir.
60833         xstrtoimax-tests: convert to use init.sh
60834         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
60835         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
60836         Use Exit, not exit.
60837         Remove uses of $EXEEXT and "./" to run a program in the current dir.
60839 2010-04-05  Bruno Haible  <bruno@clisp.org>
60841         sys_socket: Avoid #define replacements in C++ mode.
60842         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
60843         warning to the function if possible, rather than #defining the symbol
60844         to a dysfunctional alias.
60846 2010-04-05  Bruno Haible  <bruno@clisp.org>
60848         fseeko: Fix C++ test error on mingw.
60849         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
60850         gl_FUNC_FSEEKO.
60851         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
60852         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
60853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
60854         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
60856 2010-04-05  Bruno Haible  <bruno@clisp.org>
60858         duplocale: Improve test output.
60859         * tests/test-duplocale.c (main): Print reason for skipped test.
60861 2010-04-05  Bruno Haible  <bruno@clisp.org>
60863         Assume rmdir exists.
60864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
60865         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
60867 2010-04-05  Bruno Haible  <bruno@clisp.org>
60869         Fix link error on Solaris 8 with cc.
60870         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
60872 2010-04-05  Bruno Haible  <bruno@clisp.org>
60874         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
60875         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
60877 2010-04-05  Bruno Haible  <bruno@clisp.org>
60879         vasprintf: Update documentation.
60880         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
60882 2010-04-05  Bruno Haible  <bruno@clisp.org>
60884         ptsname: Improve test.
60885         * tests/test-ptsname.c (main): Also try the various master names of BSD
60886         systems.
60888 2010-04-05  Bruno Haible  <bruno@clisp.org>
60890         memchr: Avoid a possible C++ test error.
60891         * lib/string.in.h (memchr): Provide declaration if function is missing.
60892         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
60893         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
60894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
60895         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
60897 2010-04-05  Bruno Haible  <bruno@clisp.org>
60899         strtok_r: Improve idiom.
60900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
60901         AC_LIBOBJ is used.
60903 2010-04-05  Bruno Haible  <bruno@clisp.org>
60905         strdup: Improve idiom.
60906         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
60907         AC_LIBOBJ is used.
60908         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
60909         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
60910         when AC_LIBOBJ is used.
60912 2010-04-05  Bruno Haible  <bruno@clisp.org>
60914         mbsinit, mbrtowc, wcrtomb: Improve idioms.
60915         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
60916         don't set REPLACE_MBSINIT to 1.
60917         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
60918         don't set REPLACE_MBRTOWC to 1.
60919         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
60920         exist, don't set REPLACE_MBSRTOWCS to 1.
60921         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
60922         exist, don't set REPLACE_MBSNRTOWCS to 1.
60923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
60924         don't set REPLACE_WCRTOMB to 1.
60925         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
60926         exist, don't set REPLACE_WCSRTOMBS to 1.
60927         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
60928         exist, don't set REPLACE_WCSNRTOMBS to 1.
60930 2010-04-05  Bruno Haible  <bruno@clisp.org>
60932         ldexpl: Improve idiom.
60933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
60934         make sure to set HAVE_DECL_LDEXPL to 0.
60936 2010-04-05  Jim Meyering  <meyering@redhat.com>
60938         xstrtol-tests: convert to use init.sh
60939         * modules/xstrtol-tests (Files): Add tests/init.sh.
60940         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
60941         Use Exit, not exit.
60942         Remove uses of $EXEEXT and "./" to run a program in the current dir.
60944         atexit-tests: convert to use init.sh
60945         * modules/atexit-tests (Files): Add tests/init.sh.
60946         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
60947         Use Exit, not exit.
60948         Remove uses of $EXEEXT and "./" to run a program in the current dir.
60950         init.sh: fix typo
60951         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
60953         init.sh: make it easier for a test script to write to the tty, ...
60954         when using automake's parallel-tests mode.
60955         * tests/init.sh (stderr_fileno_): Define overridable variable.
60956         (warn_): New function, to use it.
60957         (fail_, skip_, framework_failure_): Use warn_.
60959 2010-04-04  Bruno Haible  <bruno@clisp.org>
60961         btowc: Avoid warning.
60962         * lib/btowc.c: Include <stdlib.h>.
60963         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
60965 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
60966             Bruno Haible  <bruno@clisp.org>
60968         wchar: Port to NetBSD 1.5.
60969         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
60970         * lib/wctype.in.h (WEOF): Likewise.
60972 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
60973             Bruno Haible  <bruno@clisp.org>
60975         Port extended stdio to NetBSD 1.5.
60976         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
60977         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
60978         older.
60980 2010-04-04  Bruno Haible  <bruno@clisp.org>
60982         string: Remove unused substitution.
60983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60984         HAVE_DECL_STRERROR.
60985         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
60987 2010-04-04  Bruno Haible  <bruno@clisp.org>
60989         strtod: Avoid a possible C++ test error.
60990         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
60991         set REPLACE_STRTOD.
60993 2010-04-04  Bruno Haible  <bruno@clisp.org>
60995         strerror: Update documentation.
60996         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
60998 2010-04-04  Bruno Haible  <bruno@clisp.org>
61000         stdio: Fix some C++ test errors on Solaris 8 with GCC.
61001         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
61002         _GL_CXXALIAS_SYS_CAST.
61004 2010-04-04  Bruno Haible  <bruno@clisp.org>
61006         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
61007         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
61008         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
61009         REPLACE_FREXPL to 1.
61010         * doc/posix-functions/frexpl.texi: Update documentation.
61012 2010-04-04  Bruno Haible  <bruno@clisp.org>
61014         math: Fix some C++ test errors on Solaris 8 and Cygwin.
61015         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
61017 2010-04-04  Bruno Haible  <bruno@clisp.org>
61019         Implement nanosleep for native Windows.
61020         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
61022 2010-04-04  Bruno Haible  <bruno@clisp.org>
61024         math: Fix some C++ test errors on Solaris 8.
61025         * lib/math.in.h (truncf, trunc): Use simpler idiom.
61027 2010-04-04  Bruno Haible  <bruno@clisp.org>
61029         math: Fix some C++ test errors on Cygwin.
61030         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
61031         truncl): Provide declaration if the system does not have it.
61032         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
61033         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
61034         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
61035         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
61036         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
61037         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
61038         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
61039         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
61040         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
61041         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
61042         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
61043         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
61044         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
61045         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
61046         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
61047         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
61048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
61049         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61050         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61051         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
61052         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
61053         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
61055 2010-04-04  Bruno Haible  <bruno@clisp.org>
61057         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
61058         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
61059         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
61060         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61061         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
61062         * m4/isinf.m4 (gl_ISINF): Likewise.
61063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61065 2010-04-04  Bruno Haible  <bruno@clisp.org>
61067         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
61068         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61070 2010-04-04  Bruno Haible  <bruno@clisp.org>
61072         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
61073         * modules/tmpfile (configure.ac): Update.
61075         tmpfile: Fix C++ test error on mingw.
61076         * lib/stdio.in.h (tmpfile): New declaration.
61077         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
61078         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
61079         * modules/tmpfile (Depends-on): Add stdio.
61080         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61081         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
61082         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
61083         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
61084         REPLACE_TMPFILE.
61085         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
61087 2010-04-04  Bruno Haible  <bruno@clisp.org>
61089         ioctl: Fix C++ test error on mingw.
61090         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
61091         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
61092         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
61094 2010-04-03  Bruno Haible  <bruno@clisp.org>
61096         wcwidth: Fix C++ test error on mingw.
61097         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
61098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
61099         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
61101 2010-04-03  Bruno Haible  <bruno@clisp.org>
61103         nanosleep: Fix C++ test error on mingw.
61104         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
61105         * lib/time.in.h (nanosleep): Use modern idiom.
61106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
61107         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
61108         REPLACE_NANOSLEEP to 1.
61109         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
61110         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
61112 2010-04-03  Bruno Haible  <bruno@clisp.org>
61114         strptime: Fix C++ test error on mingw.
61115         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
61116         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
61117         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
61118         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
61119         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
61120         not REPLACE_STRPTIME.
61121         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
61122         REPLACE_STRPTIME.
61124 2010-04-03  Bruno Haible  <bruno@clisp.org>
61126         timegm: Fix C++ test error on mingw.
61127         * lib/time.in.h (timegm): Use modern idiom.
61128         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
61129         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
61130         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
61131         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
61133 2010-04-03  Bruno Haible  <bruno@clisp.org>
61135         timegm: Assume declaration if function exists.
61136         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
61137         if it exists. Don't clobber ac_cv_func_timegm.
61139 2010-04-03  Bruno Haible  <bruno@clisp.org>
61141         time_r: Fix C++ test error on mingw.
61142         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
61143         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
61144         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
61145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
61146         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
61148 2010-04-03  Bruno Haible  <bruno@clisp.org>
61150         time_r: Minor updates.
61151         * modules/time_r (Description): Mention the provided functions.
61152         * lib/time_r.c: Don't include <string.h>.
61153         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
61154         * doc/posix-functions/localtime_r.texi: Likewise.
61156 2010-04-03  Bruno Haible  <bruno@clisp.org>
61158         time: Fix regression introduced on 2010-03-08.
61159         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
61160         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
61162 2010-04-03  Jim Meyering  <meyering@redhat.com>
61164         maint.mk: don't silently disable project-specific syntax-check rules
61165         * top/maint.mk (_prohibit_regexp): Define, to help people realize
61166         that they need to convert their project-specific syntax-check rules
61167         to use the new _sc_search_regexp.
61169 2010-04-03  Bruno Haible  <bruno@clisp.org>
61171         fchdir: Fix regression introduced on 2010-03-08.
61172         * lib/unistd.in.h (fchdir): Fix declaration.
61173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
61174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
61175         REPLACE_FCHDIR.
61176         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
61177         REPLACE_FCHDIR.
61179 2010-04-03  Bruno Haible  <bruno@clisp.org>
61181         getpagesize: Fix C++ test error on mingw.
61182         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
61183         system does not declare the function.
61184         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
61185         declared.
61186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61187         HAVE_DECL_GETPAGESIZE.
61188         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
61190 2010-04-03  Bruno Haible  <bruno@clisp.org>
61192         stdio: Make C++ tests work on mingw.
61193         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
61194         does not declare the function.
61196 2010-04-03  Bruno Haible  <bruno@clisp.org>
61198         ftello: Fix C++ test error on mingw.
61199         * lib/stdio.in.h (ftello): Use modern idiom.
61200         * lib/ftello.c (ftello): Renamed from rpl_ftello.
61201         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
61202         is missing and that it needs to be replaced.
61203         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
61204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
61205         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
61207 2010-04-03  Bruno Haible  <bruno@clisp.org>
61209         fseeko: Fix C++ test error on mingw.
61210         * lib/stdio.in.h (fseeko): Use modern idiom.
61211         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
61212         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
61213         is missing and that it needs to be replaced.
61214         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
61215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
61216         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
61218 2010-04-03  Bruno Haible  <bruno@clisp.org>
61220         mkstemp: Fix C++ test error on mingw.
61221         * lib/stdlib.in.h (mkstemp): Use modern idiom.
61222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
61223         function is missing and that it needs to be replaced.
61224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
61225         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
61227 2010-04-03  Bruno Haible  <bruno@clisp.org>
61229         stpncpy: Fix C++ test error on mingw.
61230         * lib/string.in.h (stpncpy): Use modern idiom.
61231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
61232         function is missing and that it needs to be replaced.
61233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61234         REPLACE_STPNCPY.
61235         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
61237 2010-04-03  Bruno Haible  <bruno@clisp.org>
61239         sys_stat: Fix C++ test error on mingw.
61240         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
61241         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
61243 2010-04-03  Bruno Haible  <bruno@clisp.org>
61245         pty: Update doc.
61246         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
61248 2010-04-03  Bruno Haible  <bruno@clisp.org>
61250         unistd: Fix C++ test error on mingw.
61251         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
61253 2010-04-03  Bruno Haible  <bruno@clisp.org>
61255         Update doc regarding mingw.
61256         * doc/glibc-functions/openpty.texi: Update regarding mingw.
61257         * doc/glibc-functions/login_tty.texi: Likewise.
61258         * doc/glibc-functions/forkpty.texi: Likewise.
61260 2010-04-03  Bruno Haible  <bruno@clisp.org>
61262         stdlib: Avoid compilation failure of c-strtold on mingw.
61263         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
61265 2010-04-03  Bruno Haible  <bruno@clisp.org>
61267         locale: Make C++ tests work on Cygwin and mingw.
61268         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
61269         cannot provide the function.
61270         Reported by Simon Josefsson.
61272 2010-04-03  Bruno Haible  <bruno@clisp.org>
61274         localename: Port to MacOS X 10.6.
61275         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
61276         memory layout of the locales in MacOS X 10.6 as well.
61277         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
61279 2010-04-02  Bruno Haible  <bruno@clisp.org>
61281         gnulib-tool: Ensure that long-running tests are executed last.
61282         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
61283         running tests after the one for the other tests.
61285 2010-04-02  Bruno Haible  <bruno@clisp.org>
61287         gnulib-tool: Ensure the tests in the main directory are executed first.
61288         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
61289         start with the current directory.
61291 2010-04-02  Bruno Haible  <bruno@clisp.org>
61293         Tests for module 'havelib', moved here from GNU gettext.
61294         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
61295         modifications.
61296         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
61297         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
61298         with modifications.
61299         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
61300         modifications.
61301         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
61302         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
61303         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
61304         with modifications.
61305         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
61306         with modifications.
61307         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
61308         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
61309         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
61310         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
61311         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
61312         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
61313         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
61314         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
61315         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
61316         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
61317         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
61318         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
61319         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
61320         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
61321         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
61322         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
61323         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
61324         with modifications.
61325         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
61326         with modifications.
61327         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
61328         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
61329         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
61330         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
61331         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
61332         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
61333         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
61334         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
61335         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
61336         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
61337         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
61338         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
61339         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
61340         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
61341         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
61342         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
61343         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
61344         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
61345         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
61346         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
61347         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
61348         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
61349         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
61350         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
61351         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
61352         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
61353         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
61354         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
61355         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
61356         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
61357         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
61358         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
61359         * tests/havelib/rpathx/rpathx.c: New file, from
61360         gettext/autoconf-lib-link.
61361         * tests/havelib/rpathx/Makefile.am: New file, from
61362         gettext/autoconf-lib-link.
61363         * tests/havelib/rpathx/configure.ac: New file, from
61364         gettext/autoconf-lib-link with modifications.
61365         * tests/havelib/rpathy/rpathy.c: New file, from
61366         gettext/autoconf-lib-link.
61367         * tests/havelib/rpathy/Makefile.am: New file, from
61368         gettext/autoconf-lib-link.
61369         * tests/havelib/rpathy/configure.ac: New file, from
61370         gettext/autoconf-lib-link with modifications.
61371         * tests/havelib/rpathz/rpathz.c: New file, from
61372         gettext/autoconf-lib-link.
61373         * tests/havelib/rpathz/Makefile.am: New file, from
61374         gettext/autoconf-lib-link.
61375         * tests/havelib/rpathz/configure.ac: New file, from
61376         gettext/autoconf-lib-link with modifications.
61377         * tests/havelib/rpathlx/usex.c: New file, from
61378         gettext/autoconf-lib-link.
61379         * tests/havelib/rpathlx/Makefile.am: New file, from
61380         gettext/autoconf-lib-link.
61381         * tests/havelib/rpathlx/configure.ac: New file, from
61382         gettext/autoconf-lib-link with modifications.
61383         * tests/havelib/rpathly/usey.c: New file, from
61384         gettext/autoconf-lib-link.
61385         * tests/havelib/rpathly/Makefile.am: New file, from
61386         gettext/autoconf-lib-link.
61387         * tests/havelib/rpathly/configure.ac: New file, from
61388         gettext/autoconf-lib-link with modifications.
61389         * tests/havelib/rpathlz/usez.c: New file, from
61390         gettext/autoconf-lib-link.
61391         * tests/havelib/rpathlz/Makefile.am: New file, from
61392         gettext/autoconf-lib-link.
61393         * tests/havelib/rpathlz/configure.ac: New file, from
61394         gettext/autoconf-lib-link with modifications.
61395         * tests/havelib/rpathlyx/usey.c: New file, from
61396         gettext/autoconf-lib-link.
61397         * tests/havelib/rpathlyx/Makefile.am: New file, from
61398         gettext/autoconf-lib-link.
61399         * tests/havelib/rpathlyx/configure.ac: New file, from
61400         gettext/autoconf-lib-link with modifications.
61401         * tests/havelib/rpathlzyx/usez.c: New file, from
61402         gettext/autoconf-lib-link.
61403         * tests/havelib/rpathlzyx/Makefile.am: New file, from
61404         gettext/autoconf-lib-link.
61405         * tests/havelib/rpathlzyx/configure.ac: New file, from
61406         gettext/autoconf-lib-link with modifications.
61407         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
61408         with modifications.
61410 2010-04-02  Bruno Haible  <bruno@clisp.org>
61412         gnulib-tool: Create distributed built sources also for the tests.
61413         * gnulib-tool (func_create_testdir): Also generate distributed built
61414         sources in the tests directory.
61416 2010-04-02  Bruno Haible  <bruno@clisp.org>
61418         gnulib-tool: Obey user's environment variables.
61419         * gnulib-tool (func_create_testdir): When creating built sources,
61420         respect the environment variables for autoconf, automake, etc. given by
61421         the user.
61423 2010-04-02  Bruno Haible  <bruno@clisp.org>
61425         gnulib-tool: Provide the value of --m4-base to modules.
61426         * gnulib-tool (func_import, func_create_testdir): Emit a definition
61427         of gl_m4_base.
61429 2010-04-02  Eric Blake  <eblake@redhat.com>
61431         maint.mk: fix some fallout
61432         * NEWS: Document the incompatible change, and its effect on cfg.mk.
61433         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
61435 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
61437         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
61438         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
61439         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
61440         (sc_cast_of_x_alloc_return_value): Likewise.
61441         (sc_cast_of_alloca_return_value): Likewise.
61442         (sc_space_tab): Likewise.
61443         (sc_prohibit_atoi_atof): Likewise.
61444         (sc_prohibit_magic_number_exit): Likewise.
61445         (sc_error_exit_success): Likewise.
61446         (sc_file_system): Likewise.
61447         (sc_prohibit_have_config_h): Likewise.
61448         (sc_require_config_h): Likewise.
61449         (sc_prohibit_HAVE_MBRTOWC): Likewise.
61450         (sc_obsolete_symbols): Likewise.
61451         (sc_changelog): Likewise.
61452         (sc_program_name): Likewise.
61453         (sc_the_the): Likewise.
61454         (sc_trailing_blank): Likewise.
61455         (sc_two_space_separator_in_usage): Likewise.
61456         (sc_useless_cpp_parens): Likewise.
61457         (sc_GPL_version): Likewise.
61458         (sc_GFDL_version): Likewise.
61459         (sc_texinfo_acronym): Likewise.
61460         (sc_prohibit_cvs_keyword): Likewise.
61461         (sc_prohibit_stat_st_blocks): Likewise.
61462         (sc_prohibit_S_IS_definition): Likewise.
61463         (sc_redundant_const): Likewise.
61464         (sc_makefile_TAB_only_indentation): Likewise.
61465         (sc_m4_quote_check): Likewise.
61466         (sc_makefile_path_separator_check): Likewise.
61467         (sc_copyright_check): Likewise.
61468         (sc_Wundef_boolean): Likewise.
61469         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61471         maint.mk: match 0 or more whitespace-before-function-call '('
61472         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
61473         that have zero or two-and-more spaces between the function name
61474         and the open parenthesis.
61475         (sc_error_message_warn_fatal): Likewise.
61476         (sc_error_message_uppercase): Likewise.
61477         (sc_error_message_period): Likewise.
61479 2010-03-31  Eric Blake  <eblake@redhat.com>
61481         maint.mk: check for [ as well as test
61482         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
61483         Based on a libvirt report by Matthias Bolte.
61485         gnumakefile: don't squelch _version output
61486         * top/GNUmakefile (_version): Create one-shot dependency rather
61487         than using $(shell) when version must be regenerated.
61488         (_autoreconf): Run verbosely, by default.
61490         sys_time: avoid compiler warnings
61491         * lib/sys_time.in.h (includes): Ensure gcc pragma is
61492         unconditional, fixing regression from 2010-03-29.
61493         Reported by Simon Josefsson.
61495 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
61497         maint.mk: s/_header_without_use/_sc_header_without_use/
61498         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
61499         (sc_prohibit_assert_without_use): Use the new name.
61500         (sc_prohibit_close_stream_without_use): Likewise.
61501         (sc_prohibit_getopt_without_use): Likewise.
61502         (sc_prohibit_quotearg_without_use): Likewise.
61503         (sc_prohibit_quote_without_use): Likewise.
61504         (sc_prohibit_long_options_without_use): Likewise.
61505         (sc_prohibit_inttostr_without_use): Likewise.
61506         (sc_prohibit_ignore_value_without_use): Likewise.
61507         (sc_prohibit_error_without_use): Likewise.
61508         (sc_prohibit_xalloc_without_use): Likewise.
61509         (sc_prohibit_hash_without_use): Likewise.
61510         (sc_prohibit_hash_pjw_without_use): Likewise.
61511         (sc_prohibit_safe_read_without_use): Likewise.
61512         (sc_prohibit_argmatch_without_use): Likewise.
61513         (sc_prohibit_canonicalize_without_use): Likewise.
61514         (sc_prohibit_root_dev_ino_without_use): Likewise.
61515         (sc_prohibit_openat_without_use): Likewise.
61516         (sc_prohibit_c_ctype_without_use): Likewise.
61517         (sc_prohibit_signal_without_use): Likewise.
61518         (sc_prohibit_intprops_without_use): Likewise.
61520 2010-03-30  Eric Blake  <eblake@redhat.com>
61522         maint: improve module indicators
61523         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
61524         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
61525         columns, and avoid extra macro expansion.
61527         fdopendir: work around FreeBSD bug
61528         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
61529         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
61530         * modules/dirent (Makefile.am): Substitute it.
61531         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
61532         declaration.
61533         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
61534         fix.
61535         Reported by Christian Weisgerber <naddy@mips.inka.de>.
61537 2010-03-29  Bruno Haible  <bruno@clisp.org>
61539         Emit #pragma system_header after the inclusion guard, not before.
61540         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
61541         guard that spans the entire file, not before. This enables an
61542         optimization in GCC's preprocessor.
61543         * lib/ctype.in.h: Likewise.
61544         * lib/dirent.in.h: Likewise.
61545         * lib/errno.in.h: Likewise.
61546         * lib/float.in.h: Likewise.
61547         * lib/getopt.in.h: Likewise.
61548         * lib/iconv.in.h: Likewise.
61549         * lib/langinfo.in.h: Likewise.
61550         * lib/locale.in.h: Likewise.
61551         * lib/math.in.h: Likewise.
61552         * lib/netdb.in.h: Likewise.
61553         * lib/netinet_in.in.h: Likewise.
61554         * lib/pty.in.h: Likewise.
61555         * lib/sched.in.h: Likewise.
61556         * lib/se-selinux.in.h: Likewise.
61557         * lib/search.in.h: Likewise.
61558         * lib/spawn.in.h: Likewise.
61559         * lib/stdarg.in.h: Likewise.
61560         * lib/stdint.in.h: Likewise.
61561         * lib/string.in.h: Likewise.
61562         * lib/strings.in.h: Likewise.
61563         * lib/sys_file.in.h: Likewise.
61564         * lib/sys_ioctl.in.h: Likewise.
61565         * lib/sys_time.in.h: Likewise.
61566         * lib/sys_times.in.h: Likewise.
61567         * lib/sys_utsname.in.h: Likewise.
61568         * lib/sys_wait.in.h: Likewise.
61569         * lib/sysexits.in.h: Likewise.
61570         * lib/wctype.in.h: Likewise.
61572 2010-03-28  James Youngman  <jay@gnu.org>
61574         save-cwd: don't leak a file descriptor when the caller execs.
61575         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
61576         saved file descriptor.
61577         * modules/save-cwd (Depends-on): Depend on cloexec.
61579 2010-03-29  Bruno Haible  <bruno@clisp.org>
61581         Remove vestiges of fts-lgpl module.
61582         * lib/fts_.h: Assume GNULIB_FTS is 1.
61583         * lib/fts.c: Likewise.
61584         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
61586 2010-03-28  Bruno Haible  <bruno@clisp.org>
61588         Fix definition of tests witness macro.
61589         * gnulib-tool (func_import): Fix definition of witness macro.
61591 2010-03-28  Bruno Haible  <bruno@clisp.org>
61593         Fix ioctl's protoype on glibc systems.
61594         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
61595         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
61596         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
61597         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
61598         signature. If not, arrange to replace the ioctl function.
61599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
61600         REPLACE_IOCTL.
61601         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
61602         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
61603         Reported by Ludovic Courtès <ludo@gnu.org>.
61605 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
61607         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
61608         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
61609         made it so grep -r --include=GLOB* ... did not work.
61611 2010-03-26  Jim Meyering  <meyering@redhat.com>
61612             Eric Blake  <eblake@redhat.com>
61614         maint.mk: prohibit use of test's -o and -a operators
61615         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
61617 2010-03-28  Bruno Haible  <bruno@clisp.org>
61619         Remove unused GNULIB_XYZ macro definitions.
61620         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
61621         invocation.
61623 2010-03-28  Bruno Haible  <bruno@clisp.org>
61625         Mark privileged tests modules.
61626         * modules/idpriv-drop-tests (Status): New section.
61627         * modules/idpriv-droptemp-tests (Status): New section.
61629 2010-03-28  Bruno Haible  <bruno@clisp.org>
61631         Split C++ tests into separate tests modules.
61632         * modules/dirent-c++-tests: New file, extracted from
61633         modules/dirent-tests.
61634         * modules/dirent-tests: Depend on it.
61635         * modules/fcntl-h-c++-tests: New file, extracted from
61636         modules/fcntl-h-tests.
61637         * modules/fcntl-h-tests: Depend on it.
61638         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
61639         * modules/glob-tests: Depend on it.
61640         * modules/iconv-h-c++-tests: New file, extracted from
61641         modules/iconv-h-tests.
61642         * modules/iconv-h-tests: Depend on it.
61643         * modules/langinfo-c++-tests: New file, extracted from
61644         modules/langinfo-tests.
61645         * modules/langinfo-tests: Depend on it.
61646         * modules/locale-c++-tests: New file, extracted from
61647         modules/locale-tests.
61648         * modules/locale-tests: Depend on it.
61649         * modules/math-c++-tests: New file, extracted from modules/math-tests.
61650         * modules/math-tests: Depend on it.
61651         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
61652         * modules/pty-tests: Depend on it.
61653         * modules/search-c++-tests: New file, extracted from
61654         modules/search-tests.
61655         * modules/search-tests: Depend on it.
61656         * modules/signal-c++-tests: New file, extracted from
61657         modules/signal-tests.
61658         * modules/signal-tests: Depend on it.
61659         * modules/spawn-c++-tests: New file, extracted from
61660         modules/spawn-tests.
61661         * modules/spawn-tests: Depend on it.
61662         * modules/stdio-c++-tests: New file, extracted from
61663         modules/stdio-tests.
61664         * modules/stdio-tests: Depend on it.
61665         * modules/stdlib-c++-tests: New file, extracted from
61666         modules/stdlib-tests.
61667         * modules/stdlib-tests: Depend on it.
61668         * modules/string-c++-tests: New file, extracted from
61669         modules/string-tests.
61670         * modules/string-tests: Depend on it.
61671         * modules/sys_ioctl-c++-tests: New file, extracted from
61672         modules/sys_ioctl-tests.
61673         * modules/sys_ioctl-tests: Depend on it.
61674         * modules/sys_select-c++-tests: New file, extracted from
61675         modules/sys_select-tests.
61676         * modules/sys_select-tests: Depend on it.
61677         * modules/sys_socket-c++-tests: New file, extracted from
61678         modules/sys_socket-tests.
61679         * modules/sys_socket-tests: Depend on it.
61680         * modules/sys_stat-c++-tests: New file, extracted from
61681         modules/sys_stat-tests.
61682         * modules/sys_stat-tests: Depend on it.
61683         * modules/sys_time-c++-tests: New file, extracted from
61684         modules/sys_time-tests.
61685         * modules/sys_time-tests: Depend on it.
61686         * modules/time-c++-tests: New file, extracted from modules/time-tests.
61687         * modules/time-tests: Depend on it.
61688         * modules/unistd-c++-tests: New file, extracted from
61689         modules/unistd-tests.
61690         * modules/unistd-tests: Depend on it.
61691         * modules/wchar-c++-tests: New file, extracted from
61692         modules/wchar-tests.
61693         * modules/wchar-tests: Depend on it.
61694         * modules/wctype-c++-tests: New file, extracted from
61695         modules/wctype-tests.
61696         * modules/wctype-tests: Depend on it.
61697         Reported by Simon Josefsson.
61699 2010-03-28  Bruno Haible  <bruno@clisp.org>
61701         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
61702         * gnulib-tool (func_exists_module): New function, extracted from
61703         func_verify_module.
61704         (func_verify_module): Use it.
61705         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
61706         'foo' only if 'foo' exists.
61707         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
61708         module.
61710 2010-03-28  Bruno Haible  <bruno@clisp.org>
61712         gnulib-tool: Add support for special categories of tests.
61713         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
61714         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
61715         (func_usage): Document them.
61716         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
61717         inc_unportable_tests, inc_all_tests): New variables.
61718         (func_acceptable): Consider these variables.
61719         (func_modules_transitive_closure): Make it work when the 'Status' field
61720         consists of multiple words.
61721         (func_import): Store and restore the values of inc_cxx_tests,
61722         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
61723         inc_all_tests in gnulib-comp.m4.
61724         (func_create_testdir): Set inc_all_tests to true.
61725         * doc/gnulib.texi (Extra tests modules): New section.
61726         Suggested by Jim Meyering.
61728 2010-03-28  Bruno Haible  <bruno@clisp.org>
61730         ansi-c++-opt: Allow turning off the C++ build by default.
61731         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
61732         gl_CXX_CHOICE_DEFAULT_NO is defined.
61733         Requested by Eric Blake.
61735 2010-03-28  Bruno Haible  <bruno@clisp.org>
61737         unistd: Avoid #define replacements in C++ mode.
61738         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
61739         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
61740         setsockopt, shutdown, select): In C++, attach a warning to the function
61741         if possible, rather than #defining the symbol to a dysfunctional alias.
61742         Reported by John W. Eaton <jwe@gnu.org>.
61744 2010-03-28  Bruno Haible  <bruno@clisp.org>
61746         Fix link errors on mingw.
61747         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
61748         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
61749         $(LIBSOCKET).
61750         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
61751         $(LIBSOCKET).
61753 2010-03-28  Bruno Haible  <bruno@clisp.org>
61754             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61756         lib-ignore: Determine different options for different compilers.
61757         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
61758         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
61759         Add comments.
61760         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
61761         * NEWS: Mention the change.
61763 2010-03-27  Bruno Haible  <bruno@clisp.org>
61765         Remove unused GNULIB_XYZ macro definitions.
61766         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
61767         * modules/fseek (configure.ac): Likewise.
61768         * modules/ioctl (configure.ac): Likewise.
61769         * modules/open (configure.ac): Likewise.
61770         * modules/stdlib-safer (configure.ac): Likewise.
61772 2010-03-27  Bruno Haible  <bruno@clisp.org>
61774         Add a remark about certain modules.
61775         * modules/malloc (Comment): New section.
61776         * modules/realloc (Comment): Likewise.
61777         * modules/sigpipe (Comment): Likewise.
61779 2010-03-27  Bruno Haible  <bruno@clisp.org>
61781         Resolve conflict between the two kinds of module indicators.
61782         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
61783         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
61784         * modules/canonicalize (configure.ac): Invoke
61785         gl_MODULE_INDICATOR_FOR_TESTS.
61786         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
61787         GNULIB_XYZ.
61788         * tests/test-dirent-c++.cc: Likewise.
61789         * tests/test-dirent-safer.c: Likewise.
61790         * tests/test-dup2.c: Likewise.
61791         * tests/test-fchdir.c: Likewise.
61792         * tests/test-fcntl-h-c++.cc: Likewise.
61793         * tests/test-getopt.c: Likewise.
61794         * tests/test-getopt.h: Likewise.
61795         * tests/test-langinfo-c++.cc: Likewise.
61796         * tests/test-locale-c++.cc: Likewise.
61797         * tests/test-math-c++.cc: Likewise.
61798         * tests/test-pty-c++.cc: Likewise.
61799         * tests/test-search-c++.cc: Likewise.
61800         * tests/test-signal-c++.cc: Likewise.
61801         * tests/test-spawn-c++.cc: Likewise.
61802         * tests/test-stdio-c++.cc: Likewise.
61803         * tests/test-stdlib-c++.cc: Likewise.
61804         * tests/test-string-c++.cc: Likewise.
61805         * tests/test-sys_ioctl-c++.cc: Likewise.
61806         * tests/test-sys_select-c++.cc: Likewise.
61807         * tests/test-sys_socket-c++.cc: Likewise.
61808         * tests/test-sys_stat-c++.cc: Likewise.
61809         * tests/test-sys_time-c++.cc: Likewise.
61810         * tests/test-time-c++.cc: Likewise.
61811         * tests/test-unistd-c++.cc: Likewise.
61812         * tests/test-wchar-c++.cc: Likewise.
61813         * tests/uninorm/test-u8-nfc.c: Likewise.
61814         * tests/uninorm/test-u8-nfd.c: Likewise.
61815         * tests/uninorm/test-u8-nfkc.c: Likewise.
61816         * tests/uninorm/test-u8-nfkd.c: Likewise.
61817         * tests/uninorm/test-u16-nfc.c: Likewise.
61818         * tests/uninorm/test-u16-nfd.c: Likewise.
61819         * tests/uninorm/test-u16-nfkc.c: Likewise.
61820         * tests/uninorm/test-u16-nfkd.c: Likewise.
61821         * tests/uninorm/test-u32-nfc.c: Likewise.
61822         * tests/uninorm/test-u32-nfc-big.c: Likewise.
61823         * tests/uninorm/test-u32-nfd.c: Likewise.
61824         * tests/uninorm/test-u32-nfd-big.c: Likewise.
61825         * tests/uninorm/test-u32-nfkc.c: Likewise.
61826         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
61827         * tests/uninorm/test-u32-nfkd.c: Likewise.
61828         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
61829         * tests/uninorm/test-u32-normalize-big.c: Likewise.
61831 2010-03-27  Bruno Haible  <bruno@clisp.org>
61833         Distinguish two kinds of module indicators.
61834         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
61835         gl_MODULE_INDICATOR.
61836         (gl_MODULE_INDICATOR): New macro.
61837         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
61838         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
61839         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
61840         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
61841         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
61842         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
61843         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
61844         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
61845         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
61846         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
61847         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
61848         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
61849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
61850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
61851         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
61852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
61853         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
61854         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
61855         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
61856         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
61857         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
61858         * modules/cloexec (configure.ac): Likewise.
61859         * modules/getopt-gnu (configure.ac): Likewise.
61860         * modules/uninorm/u8-normalize (configure.ac): Likewise.
61861         * modules/uninorm/u16-normalize (configure.ac): Likewise.
61862         * modules/uninorm/u32-normalize (configure.ac): Likewise.
61863         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
61865 2010-03-27  Bruno Haible  <bruno@clisp.org>
61867         New module description field 'Comment'.
61868         * gnulib-tool: New option --extract-comment.
61869         (func_usage): Document it.
61870         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
61871         (func_get_comment): New function.
61872         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
61874 2010-03-27  Bruno Haible  <bruno@clisp.org>
61876         Addendum to 2010-02-07 commit.
61877         * gnulib-tool (func_usage): Document --extract-applicability option.
61879 2010-03-27  Bruno Haible  <bruno@clisp.org>
61881         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
61882         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
61883         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
61884         rather than link errors.
61886 2010-03-27  Bruno Haible  <bruno@clisp.org>
61888         Avoid side effects from tests-related modules on the compilation of lib.
61889         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
61890         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
61891         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
61892         parameter. Emit into AM_CPPFLAGS a definition of the designated C
61893         macro.
61894         (func_import): Define a witness macro. Assign it a value that depends
61895         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
61896         tests-related modules.
61897         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
61898         Reported by Jim Meyering.
61900 2010-03-27  Bruno Haible  <bruno@clisp.org>
61902         Factorize common .m4 code.
61903         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
61904         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
61905         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
61906         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
61907         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
61908         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
61909         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
61910         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
61911         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
61912         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
61913         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
61914         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
61915         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
61916         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
61917         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
61918         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
61919         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
61920         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
61921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
61922         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
61923         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
61924         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
61925         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
61926         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
61927         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
61928         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
61929         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
61930         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
61931         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
61932         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
61933         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
61934         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
61936 2010-03-27  Bruno Haible  <bruno@clisp.org>
61938         Fix a compilation error on Cygwin with g++ >= 4.3.
61939         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
61940         if it is undefined or if we alias it to chmod.
61941         (lstat): Don't warn about the use of this function if it is undefined
61942         or if we alias it to stat.
61943         Reported by Simon Josefsson.
61945 2010-03-27  Bruno Haible  <bruno@clisp.org>
61947         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
61948         * modules/getlogin (configure.ac): Update.
61950         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
61951         * modules/getlogin_r (configure.ac): Update.
61953         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
61954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
61955         * modules/inet_ntop (configure.ac): Update.
61957         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
61958         * modules/inet_pton (configure.ac): Update.
61960         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
61961         * modules/mbslen (configure.ac): Update.
61963         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
61964         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
61965         * modules/forkpty (configure.ac): Update.
61966         * modules/openpty (configure.ac): Update.
61968 2010-03-26  Simon Josefsson  <simon@josefsson.org>
61970         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
61971         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
61973 2010-03-25  Eric Blake  <eblake@redhat.com>
61975         maint: use pragma consistently across replacement headers
61976         * lib/ctype.in.h (system_header): Hoist for consistent placement.
61977         * lib/dirent.in.h (system_header): Likewise.
61978         * lib/errno.in.h (system_header): Likewise.
61979         * lib/float.in.h (system_header): Likewise.
61980         * lib/getopt.in.h (system_header): Likewise.
61981         * lib/iconv.in.h (system_header): Likewise.
61982         * lib/inttypes.in.h (system_header): Likewise.
61983         * lib/langinfo.in.h (system_header): Likewise.
61984         * lib/locale.in.h (system_header): Likewise.
61985         * lib/math.in.h (system_header): Likewise.
61986         * lib/netdb.in.h (system_header): Likewise.
61987         * lib/netinet_in.in.h (system_header): Likewise.
61988         * lib/pty.in.h (system_header): Likewise.
61989         * lib/sched.in.h (system_header): Likewise.
61990         * lib/se-selinux.in.h (system_header): Likewise.
61991         * lib/search.in.h (system_header): Likewise.
61992         * lib/spawn.in.h (system_header): Likewise.
61993         * lib/stdarg.in.h (system_header): Likewise.
61994         * lib/stdint.in.h (system_header): Likewise.
61995         * lib/string.in.h (system_header): Likewise.
61996         * lib/strings.in.h (system_header): Likewise.
61997         * lib/sys_file.in.h (system_header): Likewise.
61998         * lib/sys_ioctl.in.h (system_header): Likewise.
61999         * lib/sys_socket.in.h (system_header): Likewise.
62000         * lib/sys_times.in.h (system_header): Likewise.
62001         * lib/sys_utsname.in.h (system_header): Likewise.
62002         * lib/sys_wait.in.h (system_header): Likewise.
62003         * lib/sysexits.in.h (system_header): Likewise.
62004         * lib/unistd.in.h (system_header): Likewise.
62005         * lib/wctype.in.h (system_header): Likewise.
62007         arpa/inet: fix mingw compilation warning
62008         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
62009         Reported by Matthew Bolte.
62011 2010-03-25  Bruno Haible  <bruno@clisp.org>
62013         Avoid collision between gnulib wrapper and libintl wrapper.
62014         * lib/printf.c (printf): Don't define if a printf wrapper is already
62015         defined in intl/printf.c.
62016         Reported by Michel Boaventura <michel@michelboaventura.com>.
62018 2010-03-25  Bruno Haible  <bruno@clisp.org>
62020         Use ANSI C.
62021         * lib/readutmp.h (getutent): Provide ANSI C prototype.
62023 2010-03-25  Bruno Haible  <bruno@clisp.org>
62025         Minor formatting changes.
62026         * lib/acosl.c: Insert space before function argument list.
62027         * lib/argz.c: Likewise.
62028         * lib/asinl.c: Likewise.
62029         * lib/expl.c: Likewise.
62030         * lib/gen-uni-tables.c: Likewise.
62031         * lib/gettext.h: Likewise.
62032         * lib/glthread/lock.h: Likewise.
62033         * lib/tanl.c: Likewise.
62034         * lib/uniname/uniname.c: Likewise.
62035         * tests/test-idpriv-drop.c: Likewise.
62036         * tests/test-idpriv-droptemp.c: Likewise.
62037         * tests/test-lock.c: Likewise.
62038         * tests/test-tls.c: Likewise.
62039         * lib/argp-help.c: Insert space before function-like macro argument
62040         list.
62041         * lib/memcmp.c: Likewise.
62042         * tests/test-base64.c: Likewise.
62043         * lib/localename.c: Insert space before sizeof's argument list.
62044         * lib/safe-alloc.h: Likewise.
62045         * lib/file-set.h: Insert space before macro argument list.
62046         * tests/test-argp.c: Likewise.
62047         * lib/argp-namefrob.h: Insert space before function parameter list.
62048         * lib/getaddrinfo.c: Likewise.
62049         * lib/netdb.in.h: Likewise.
62050         * lib/parse-duration.h: Likewise.
62051         * lib/parse-duration.c: Likewise.
62052         * lib/poll.c: Likewise.
62053         * lib/select.c: Likewise.
62054         * lib/trim.h: Likewise.
62055         * tests/test-usleep.c: Likewise.
62056         * lib/ldexpl.c: Insert space before function parameter list and before
62057         function argument list.
62058         * lib/logl.c: Likewise.
62059         * lib/sqrtl.c: Likewise.
62060         * lib/trim.c: Likewise.
62061         * lib/cosl.c: Use GNU style indentation. Insert space before function
62062         argument list.
62063         * lib/sinl.c: Likewise.
62064         * lib/tsearch.c: Insert space after 'for'.
62065         Reported by Jim Meyering.
62067 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
62069         * maint.mk (sc_Wundef_boolean): Check for the presence of the
62070         config header before grepping, as it's not present before
62071         autoreconf/configure are run.  Reported by Simon Josefsson.
62073 2010-03-23  Bruno Haible  <bruno@clisp.org>
62075         pt_chown: Make it work with automake < 1.11.
62076         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
62077         Reported by Simon Josefsson.
62079 2010-03-23  Bruno Haible  <bruno@clisp.org>
62081         pt_chown: Don't depend on GPLed modules.
62082         * lib/pt_chown.c: Don't include idpriv.h.
62083         (main): Don't drop privileges.
62084         * modules/pt_chown (Depends-on): Remove idpriv-drop.
62085         Reported by Simon Josefsson.
62087 2010-03-24  Simon Josefsson  <simon@josefsson.org>
62089         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
62090         suggestions from karl@freefriends.org (Karl Berry).
62092 2010-03-22  Eric Blake  <eblake@redhat.com>
62094         gethostname: further tweaks
62095         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
62096         are overriding gethostname.
62097         Suggested by Bruno Haible.
62099 2010-03-21  Bruno Haible  <bruno@clisp.org>
62101         Fix comments.
62102         * lib/forkpty.c (rpl_forkpty): Fix comment.
62103         * lib/openpty.c (rpl_openpty): Likewise.
62104         Reported by Eric Blake.
62106 2010-03-22  Eric Blake  <eblake@redhat.com>
62108         gethostname: fix build on mingw
62109         * lib/unistd.in.h (includes): Work around fact that mingw
62110         <winsock2.h> re-includes <unistd.h>, by avoiding any
62111         redeclarations if we are being included by <winsock2.h>.
62112         Reported by Matthias Bolte.
62114 2010-03-21  Bruno Haible  <bruno@clisp.org>
62116         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62117         * lib/forkpty.c (forkpty): New replacement function, from glibc with
62118         modifications.
62119         * lib/pty.in.h (forkpty): Update declaration. Add comments.
62120         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
62121         provide the replacement.
62122         * modules/forkpty (Depends-on): Add openpty, login_tty.
62123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
62124         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
62125         * doc/glibc-functions/forkpty.texi: More supported platforms.
62126         * config/srclist.txt: Add forkpty.c (commented).
62128 2010-03-21  Bruno Haible  <bruno@clisp.org>
62130         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
62131         (Makefile.am): Verify that PTY_LIB is defined.
62133         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
62135 2010-03-21  Bruno Haible  <bruno@clisp.org>
62137         Tests for module 'login_tty'.
62138         * modules/login_tty-tests: New file.
62139         * tests/test-login_tty.c: New file.
62141         New module 'login_tty'.
62142         * lib/login_tty.c: New file.
62143         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
62144         * modules/login_tty: New file.
62145         * doc/glibc-functions/login_tty.texi: Mention the new module.
62147 2010-03-21  Bruno Haible  <bruno@clisp.org>
62149         login_tty: Documentation.
62150         * doc/glibc-functions/login_tty.texi: New file.
62151         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
62153 2010-03-21  Bruno Haible  <bruno@clisp.org>
62155         pty: Consistent macro naming.
62156         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
62157         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
62158         * modules/pty (configure.ac): Update.
62160 2010-03-21  Bruno Haible  <bruno@clisp.org>
62162         Tests for openpty: Make stricter.
62163         * tests/test-openpty.c (main): Add test of canonical processing and
62164         erase.
62165         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
62167         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
62168         * lib/openpty.c (openpty): New replacement function.
62169         * lib/pty.in.h: Include <termios.h>.
62170         (openpty): Update declaration. Add comments.
62171         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
62172         is not declared, arrange to provide the replacement. Check for _getpty
62173         and posix_openpt.
62174         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
62175         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
62176         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
62177         * modules/pty-tests (test_pty_c___LDADD): New variable.
62178         * doc/glibc-functions/openpty.texi: More supported platforms.
62180 2010-03-21  Bruno Haible  <bruno@clisp.org>
62182         setenv: Tweaks.
62183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
62184         the test program.
62185         * doc/posix-functions/setenv.texi: Update platforms list.
62187 2010-03-21  Bruno Haible  <bruno@clisp.org>
62189         New module 'unlockpt'.
62190         * lib/unlockpt.c: New file, from glibc with modifications.
62191         * m4/unlockpt.m4: New file.
62192         * modules/unlockpt: New file.
62193         * lib/stdlib.in.h (unlockpt): New declaration.
62194         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
62195         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
62196         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
62197         HAVE_UNLOCKPT.
62198         * doc/posix-functions/unlockpt.texi: Mention the new module.
62199         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
62200         * config/srclist.txt: Add unlockpt.c (commented).
62202 2010-03-21  Jim Meyering  <meyering@redhat.com>
62204         maint.mk: prohibit inclusion of "intprops.h" without use
62205         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
62207 2010-03-21  Bruno Haible  <bruno@clisp.org>
62209         New module 'grantpt'.
62210         * lib/grantpt.c: New file, from glibc with modifications.
62211         * m4/grantpt.m4: New file.
62212         * modules/grantpt: New file.
62213         * lib/stdlib.in.h (grantpt): New declaration.
62214         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
62215         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
62216         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
62217         HAVE_GRANTPT.
62218         * doc/posix-functions/grantpt.texi: Mention the new module.
62219         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
62220         * config/srclist.txt: Add grantpt.c (commented).
62222 2010-03-21  Bruno Haible  <bruno@clisp.org>
62224         New module 'pt_chown'.
62225         * lib/pt_chown.c: New file, from glibc with modifications.
62226         * lib/pty-private.h: New file, from glibc with modifications.
62227         * modules/pt_chown: New file.
62228         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
62230 2010-03-21  Bruno Haible  <bruno@clisp.org>
62232         Tests for module 'ptsname'.
62233         * modules/ptsname-tests: New file.
62234         * tests/test-ptsname.c: New file.
62236         New module 'ptsname'.
62237         * lib/ptsname.c: New file, from glibc with modifications.
62238         * m4/ptsname.m4: New file.
62239         * modules/ptsname: New file.
62240         * lib/stdlib.in.h (ptsname): New declaration.
62241         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
62242         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
62243         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
62244         HAVE_PTSNAME.
62245         * doc/posix-functions/ptsname.texi: Mention the new module.
62246         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
62247         * config/srclist.txt: Add ptsname.c (commented).
62249 2010-03-21  Bruno Haible  <bruno@clisp.org>
62251         Tests for module 'ttyname_r'.
62252         * modules/ttyname_r-tests: New file.
62253         * tests/test-ttyname_r.c: New file.
62255         New module 'ttyname_r'.
62256         * lib/ttyname_r.c: New file.
62257         * m4/ttyname_r.m4: New file.
62258         * modules/ttyname_r: New file.
62259         * lib/unistd.in.h (ttyname_r): New declaration.
62260         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
62261         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
62262         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
62263         HAVE_TTYNAME_R.
62264         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
62265         * doc/posix-functions/ttyname_r.texi: Mention the new module.
62267 2010-03-20  Bruno Haible  <bruno@clisp.org>
62269         signal: Undefine macro definitions in C++ mode.
62270         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
62271         sigfillset): Undefine macro definitions from the system header in C++
62272         mode.
62273         Reported by John W. Eaton <jwe@gnu.org>.
62275 2010-03-20  Bruno Haible  <bruno@clisp.org>
62277         Ensure no #include statements inside extern "C" { ... }.
62278         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
62279         contain #include statements.
62280         * lib/time.in.h: Likewise.
62282 2010-03-20  Bruno Haible  <bruno@clisp.org>
62284         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
62285         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
62286         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
62287         Reported by John W. Eaton <jwe@gnu.org>.
62289 2010-03-20  Bruno Haible  <bruno@clisp.org>
62291         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
62292         Reported by Jim Meyering.
62294 2010-03-20  Bruno Haible  <bruno@clisp.org>
62296         pipe: Set errno upon failure.
62297         * lib/pipe.h: Specify that when -1 is returned, errno is set.
62298         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
62299         errno value in error message.
62301 2010-03-20  Bruno Haible  <bruno@clisp.org>
62302             Jim Meyering  <meyering@redhat.com>
62304         lchown: Avoid "unused variable" warning.
62305         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
62307 2010-03-20  Bruno Haible  <bruno@clisp.org>
62309         Work around unlink() bug on MacOS X 10.5.6.
62310         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
62311         attempting to unlink a parent directory.
62312         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
62313         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
62314         activate for the replacement function.
62315         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
62317 2010-03-20  Bruno Haible  <bruno@clisp.org>
62319         Fix link errors on Solaris 8.
62320         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
62321         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
62323 2010-03-19  Jim Meyering  <meyering@redhat.com>
62325         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
62326         The _LIBC implementation of build_range_exp correctly honors the
62327         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
62328         However, the non-_LIBC implementation would ignore that syntax-bit
62329         flag and return REG_ERANGE unconditionally.
62330         This change makes it honor that flag.
62331         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
62332         Make two pointer parameters "const".
62333         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
62334         (parse_bracket_exp): Update caller.
62336         regex.m4: correct the reversed range endpoint ([b-a]) test
62337         * m4/regex.m4: When requiring that [b-a] evoke failure,
62338         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
62339         test pass once again for x86-based systems.
62341 2010-03-19  Bruno Haible  <bruno@clisp.org>
62343         scandir: Fix link error on Solaris 8.
62344         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
62345         macros.
62347 2010-03-19  Bruno Haible  <bruno@clisp.org>
62349         getusershell: Fix documentation.
62350         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
62351         module.
62352         * doc/glibc-functions/setusershell.texi: Likewise.
62354         getusershell: Provide declaration, missing on Solaris 9.
62355         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
62356         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
62357         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
62358         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
62359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62360         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
62361         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
62362         HAVE_GETUSERSHELL.
62363         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
62365 2010-03-19  Bruno Haible  <bruno@clisp.org>
62367         wctype: Provide iswblank function.
62368         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
62369         exists and is fine.
62370         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
62371         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
62372         * tests/test-wctype.c (main): Re-enable the iswblank tests.
62373         * doc/posix-functions/iswblank.texi: Update.
62375 2010-03-19  Bruno Haible  <bruno@clisp.org>
62377         Tests of module 'pty' in C++ mode.
62378         * modules/pty-tests: New file.
62379         * tests/test-pty-c++.cc: New file.
62380         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
62382 2010-03-19  Eric Blake  <eblake@redhat.com>
62384         logb: fix documentation
62385         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
62386         1.5 declaration bug.
62388         forkpty, openpty: prefer glibc's const-safe prototype
62389         * lib/forkpty.c (rpl_forkpty): New file.
62390         * lib/openpty.c (rpl_openpty): Likewise.
62391         * modules/forkpty (Files): Distribute it.
62392         * modules/openpty (Files): Likewise.
62393         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
62394         check...
62395         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
62396         replacement for non-const BSD signature.
62397         * modules/pty (Makefile.am): Substitute witnesses.
62398         * lib/pty.in.h (forkpty, openpty): Declare replacements.
62399         * tests/test-forkpty.c: Update signature check.
62400         * tests/test-openpty.c: Likewise.
62401         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
62402         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62404         forkpty, openpty: split functions into new modules
62405         * modules/pty (Makefile.am): Substitute new witnesses.
62406         (Libraries): Move library detection...
62407         * modules/forkpty: ...into new module.
62408         * modules/openpty: Another new module.
62409         * modules/pty-tests: Rename and split...
62410         * modules/forkpty-tests: ...to this...
62411         * modules/openpty-tests: ...and this.
62412         * tests/test-pty.c: Rename and split...
62413         * tests/test-forkpty.c: ...to this...
62414         * tests/test-openpty.c: ...and this.
62415         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
62416         (gl_PTY): Split library searching...
62417         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
62418         (gl_FORKPTY, gl_OPENPTY): New macros.
62419         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
62420         * NEWS: Mention the split.
62421         * MODULES.html.sh (Misc): Document the modules.
62422         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
62423         * doc/glibc-functions/openpty.texi (openpty): Likewise.
62425         pty: improve replacement header
62426         * lib/pty.in.h: New file.
62427         * modules/pty (Files): Ship it.
62428         (Makefile.am): Always build replacement.
62429         * m4/pty.m4: Rename...
62430         * m4/pty_h.m4: ...to this.
62431         (gl_PTY): Modernize setting of witness macros; update check of
62432         forkpty to take proper advantage of cache.
62433         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
62435         getopt: avoid compiler warning
62436         * lib/getopt.c (attribute_hidden): Remove unused macro.
62438 2010-03-18  Bruno Haible  <bruno@clisp.org>
62440         Fix link errors on Solaris 8.
62441         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
62442         * modules/search-tests (test_search_c___LDADD): Likewise.
62443         * modules/signal-tests (test_signal_c___LDADD): Likewise.
62444         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
62445         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
62446         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
62447         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
62448         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
62449         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
62451 2010-03-18  Bruno Haible  <bruno@clisp.org>
62453         Fix bug introduced on 2010-03-14.
62454         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
62455         (gl_SPAWN_H): Require it.
62456         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
62457         Reported by Simon Josefsson.
62459 2010-03-18  Bruno Haible  <bruno@clisp.org>
62461         Fix typo introduced on 2009-12-31.
62462         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
62463         posix_spawn_file_actions_adddup2.
62465 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
62466         and Eric Blake  <eblake@redhat.com>
62468         test-vc-list-files-git: make more robust
62469         * tests/test-vc-list-files-git.sh: Unset problematic environment
62470         variables.  Chain commands together.
62472 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
62474         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
62475         `AC_CHECK_DECL' invocation.
62477 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
62479         * lib/inttostr.c (inttostr): Make sure the invocation of verify
62480         appears before executable statements. Suggested by Petr Sumbera
62481         <Petr.Sumbera@Sun.COM>.
62483 2010-03-14  Bruno Haible  <bruno@clisp.org>
62485         * tests/test-flock.c (test_exclusive): Comment out a test that causes
62486         portability problems. Instead use a simpler test.
62487         (main): Check that invalid arguments are rejected only on Linux.
62489 2010-03-14  Bruno Haible  <bruno@clisp.org>
62491         Fix bug introduced on 2009-12-31.
62492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
62493         gl_PREREQ_SYS_H_WINSOCK2 always.
62494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
62495         SYS_SOCKET_H variable.
62496         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
62497         Update comments.
62498         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
62499         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
62500         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62501         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
62502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
62504 2010-03-14  Bruno Haible  <bruno@clisp.org>
62506         Fix values returned by sinl, cosl.
62507         * lib/trigl.h: Add specification comments.
62508         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
62509         that combines the values from the precomputed table with the values of
62510         the Chebyshev polynomials.
62512 2010-03-14  Bruno Haible  <bruno@clisp.org>
62514         Fix compilation error when modules 'posix_spawn[p]' are not used.
62515         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
62516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
62518 2010-03-14  Bruno Haible  <bruno@clisp.org>
62520         Fix compilation error on mingw when module 'time_r' is not used.
62521         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
62522         is 1.
62523         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
62524         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
62525         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
62526         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
62528 2010-03-14  Bruno Haible  <bruno@clisp.org>
62530         Fix compilation error with Sun C.
62531         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
62532         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
62533         instead of GCC specific ULONG_LONG_MAX.
62534         * lib/xstrtoll.c: Likewise.
62535         * lib/xstrtoull.c: Likewise.
62537 2010-03-13  Bruno Haible  <bruno@clisp.org>
62539         Allow the user to disable C++ code and tests.
62540         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
62541         (gl_PROG_ANSI_CXX): Require it.
62543 2010-03-13  Bruno Haible  <bruno@clisp.org>
62545         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
62546         cases.
62548 2010-03-13  Bruno Haible  <bruno@clisp.org>
62550         Test that gnulib does not break the standard C++ headers.
62551         * tests/test-locale-c++2.cc: New file.
62552         * modules/locale-tests (Files): Add it.
62553         (Makefile.am): Compile it for test-locale-c++.
62554         * tests/test-math-c++2.cc: New file.
62555         * modules/math-tests (Files): Add it.
62556         (Makefile.am): Compile it for test-math-c++.
62557         * tests/test-signal-c++2.cc: New file.
62558         * modules/signal-tests (Files): Add it.
62559         (Makefile.am): Compile it for test-signal-c++.
62560         * tests/test-stdio-c++2.cc: New file.
62561         * modules/stdio-tests (Files): Add it.
62562         (Makefile.am): Compile it for test-stdio-c++.
62563         * tests/test-stdlib-c++2.cc: New file.
62564         * modules/stdlib-tests (Files): Add it.
62565         (Makefile.am): Compile it for test-stdlib-c++.
62566         * tests/test-string-c++2.cc: New file.
62567         * modules/string-tests (Files): Add it.
62568         (Makefile.am): Compile it for test-string-c++.
62569         * tests/test-time-c++2.cc: New file.
62570         * modules/time-tests (Files): Add it.
62571         (Makefile.am): Compile it for test-time-c++.
62572         Reported by John W. Eaton <jwe@gnu.org>.
62574 2010-03-13  Bruno Haible  <bruno@clisp.org>
62576         * gnulib-tool (func_usage): Clarify which options are available for
62577         --create-testdir and --create-megatestdir.
62579 2010-03-13  Bruno Haible  <bruno@clisp.org>
62581         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
62582         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
62583         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
62584         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62585         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
62586         when appropriate.
62587         Reported by Jim Meyering.
62589 2010-03-12  Simon Josefsson  <simon@josefsson.org>
62591         * gnulib-tool (func_import): Explain origin of code.
62593 2010-03-12  Bruno Haible  <bruno@clisp.org>
62595         Fix problem with automake's definition of CXXLINK.
62596         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
62597         Reported by Simon Josefsson and Ludovic Courtès.
62599 2010-03-12  Bruno Haible  <bruno@clisp.org>
62601         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
62602         stable releases.
62604 2010-03-11  Bruno Haible  <bruno@clisp.org>
62606         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
62607         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
62608         whether the system provides one variant or multiple variants of the
62609         function.
62610         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
62611         C++ compilers.
62612         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
62613         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
62614         Reported by Jim Meyering.
62616 2010-03-09  Simon Josefsson  <simon@josefsson.org>
62618         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
62620 2010-03-08  Bruno Haible  <bruno@clisp.org>
62622         gnulib-tool: Add support for --libtool in --create-testdir.
62623         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
62624         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
62626 2010-03-08  Eric Blake  <eblake@redhat.com>
62628         gnulib-tool.texi: mention possibility of git submodule
62629         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
62630         submodules.
62631         * doc/.gitignore: Ignore another generated file.
62633 2010-03-08  Karl Berry  <karl@gnu.org>
62635         * doc/gnulib-tool.texi (VCS Issues): Mention third option
62636         of committing gnulib files while skipping others.
62638 2010-03-07  Bruno Haible  <bruno@clisp.org>
62640         Tests of module 'wctype' in C++ mode.
62641         * tests/test-wctype-c++.cc: New file.
62642         * modules/wctype-tests (Files): Add it and tests/signature.h.
62643         (Depends-on): Add ansi-c++-opt.
62644         (Makefile.am): Arrange to compile and run test-wctype-c++.
62646         Tests of module 'wchar' in C++ mode.
62647         * tests/test-wchar-c++.cc: New file.
62648         * modules/wchar-tests (Files): Add it and tests/signature.h.
62649         (Depends-on): Add ansi-c++-opt.
62650         (Makefile.am): Arrange to compile and run test-wchar-c++.
62651         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
62652         gl_MODULE_INDICATOR.
62654         Tests of module 'unistd' in C++ mode.
62655         * tests/test-unistd-c++.cc: New file.
62656         * modules/unistd-tests (Files): Add it and tests/signature.h.
62657         (Depends-on): Add ansi-c++-opt.
62658         (Makefile.am): Arrange to compile and run test-unistd-c++.
62659         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
62660         gl_MODULE_INDICATOR.
62662         Tests of module 'time' in C++ mode.
62663         * tests/test-time-c++.cc: New file.
62664         * modules/time-tests (Files): Add it and tests/signature.h.
62665         (Depends-on): Add ansi-c++-opt.
62666         (Makefile.am): Arrange to compile and run test-time-c++.
62667         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
62669         Tests of module 'sys_time' in C++ mode.
62670         * tests/test-sys_time-c++.cc: New file.
62671         * modules/sys_time-tests (Files): Add it and tests/signature.h.
62672         (Depends-on): Add ansi-c++-opt.
62673         (Makefile.am): Arrange to compile and run test-sys_time-c++.
62674         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
62675         gl_MODULE_INDICATOR.
62677         Tests of module 'sys_stat' in C++ mode.
62678         * tests/test-sys_stat-c++.cc: New file.
62679         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
62680         (Depends-on): Add ansi-c++-opt.
62681         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
62682         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
62683         gl_MODULE_INDICATOR.
62685         Tests of module 'sys_socket' in C++ mode.
62686         * tests/test-sys_socket-c++.cc: New file.
62687         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
62688         (Depends-on): Add ansi-c++-opt.
62689         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
62690         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
62691         gl_MODULE_INDICATOR.
62693         Tests of module 'sys_select' in C++ mode.
62694         * tests/test-sys_select-c++.cc: New file.
62695         * modules/sys_select-tests (Files): Add it and tests/signature.h.
62696         (Depends-on): Add ansi-c++-opt.
62697         (Makefile.am): Arrange to compile and run test-sys_select-c++.
62698         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
62699         gl_MODULE_INDICATOR.
62701         Tests of module 'sys_ioctl' in C++ mode.
62702         * tests/test-sys_ioctl-c++.cc: New file.
62703         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
62704         (Depends-on): Add ansi-c++-opt.
62705         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
62706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
62707         gl_MODULE_INDICATOR.
62709         Tests of module 'string' in C++ mode.
62710         * tests/test-string-c++.cc: New file.
62711         * modules/string-tests (Files): Add it and tests/signature.h.
62712         (Depends-on): Add ansi-c++-opt.
62713         (Makefile.am): Arrange to compile and run test-string-c++.
62714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
62715         gl_MODULE_INDICATOR.
62717         Tests of module 'stdlib' in C++ mode.
62718         * tests/test-stdlib-c++.cc: New file.
62719         * modules/stdlib-tests (Files): Add it and tests/signature.h.
62720         (Depends-on): Add ansi-c++-opt.
62721         (Makefile.am): Arrange to compile and run test-stdlib-c++.
62722         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
62723         gl_MODULE_INDICATOR.
62725         Tests of module 'stdio' in C++ mode.
62726         * tests/test-stdio-c++.cc: New file.
62727         * modules/stdio-tests (Files): Add it and tests/signature.h.
62728         (Depends-on): Add ansi-c++-opt.
62729         (Makefile.am): Arrange to compile and run test-stdio-c++.
62730         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
62731         gl_MODULE_INDICATOR.
62733         Tests of module 'spawn' in C++ mode.
62734         * tests/test-spawn-c++.cc: New file.
62735         * modules/spawn-tests (Files): Add it and tests/signature.h.
62736         (Depends-on): Add ansi-c++-opt.
62737         (Makefile.am): Arrange to compile and run test-spawn-c++.
62738         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
62739         gl_MODULE_INDICATOR.
62741         Tests of module 'signal' in C++ mode.
62742         * tests/test-signal-c++.cc: New file.
62743         * modules/signal-tests (Files): Add it and tests/signature.h.
62744         (Depends-on): Add ansi-c++-opt.
62745         (Makefile.am): Arrange to compile and run test-signal-c++.
62746         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
62747         gl_MODULE_INDICATOR.
62749         Tests of module 'search' in C++ mode.
62750         * tests/test-search-c++.cc: New file.
62751         * modules/search-tests (Files): Add it and tests/signature.h.
62752         (Depends-on): Add ansi-c++-opt.
62753         (Makefile.am): Arrange to compile and run test-search-c++.
62754         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
62755         gl_MODULE_INDICATOR.
62757         Tests of module 'math' in C++ mode.
62758         * tests/test-math-c++.cc: New file.
62759         * modules/math-tests (Files): Add it and tests/signature.h.
62760         (Depends-on): Add ansi-c++-opt.
62761         (Makefile.am): Arrange to compile and run test-math-c++.
62762         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
62764         Tests of module 'locale' in C++ mode.
62765         * tests/test-locale-c++.cc: New file.
62766         * modules/locale-tests (Files): Add it and tests/signature.h.
62767         (Depends-on): Add ansi-c++-opt.
62768         (Makefile.am): Arrange to compile and run test-locale-c++.
62769         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
62770         gl_MODULE_INDICATOR.
62772         Tests of module 'langinfo' in C++ mode.
62773         * tests/test-langinfo-c++.cc: New file.
62774         * modules/langinfo-tests (Files): Add it and tests/signature.h.
62775         (Depends-on): Add ansi-c++-opt.
62776         (Makefile.am): Arrange to compile and run test-langinfo-c++.
62777         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
62778         gl_MODULE_INDICATOR.
62780         Tests of module 'iconv-h' in C++ mode.
62781         * tests/test-iconv-h-c++.cc: New file.
62782         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
62783         (Depends-on): Add ansi-c++-opt.
62784         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
62786         Tests of module 'glob' in C++ mode.
62787         * tests/test-glob-c++.cc: New file.
62788         * modules/glob-tests (Files): Add it.
62789         (Depends-on): Add ansi-c++-opt.
62790         (Makefile.am): Arrange to compile and run test-glob-c++.
62792         Tests of module 'fcntl-h' in C++ mode.
62793         * tests/test-fcntl-h-c++.cc: New file.
62794         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
62795         (Depends-on): Add ansi-c++-opt.
62796         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
62797         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
62798         gl_MODULE_INDICATOR.
62800         Tests of module 'dirent' in C++ mode.
62801         * tests/test-dirent-c++.cc: New file.
62802         * modules/dirent-tests (Files): Add it and tests/signature.h.
62803         (Depends-on): Add ansi-c++-opt.
62804         (Makefile.am): Arrange to compile and run test-dirent-c++.
62805         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
62806         gl_MODULE_INDICATOR.
62808         New module 'ansi-c++-opt'.
62809         * modules/ansi-c++-opt: New file.
62810         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
62812         Document C++ namespace mode.
62813         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
62815         wctype: Avoid #define replacements in C++ mode.
62816         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
62817         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
62818         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
62819         In C++, define a namespaced alias symbol.
62820         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
62821         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
62822         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
62823         rule.
62825         wchar: Avoid #define replacements in C++ mode.
62826         * lib/wchar.in.h: Include c++defs.h.
62827         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
62828         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
62829         symbol.
62830         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
62831         * modules/wchar (Depends-on): Add c++defs.
62832         (Makefile.am): Update wchar.h rule.
62834         unistd: Avoid #define replacements in C++ mode.
62835         * lib/unistd.in.h: Include c++defs.h.
62836         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
62837         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
62838         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
62839         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
62840         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
62841         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
62842         symbol.
62843         (environ): Update.
62844         * modules/unistd (Depends-on): Add c++defs.
62845         (Makefile.am): Update unistd.h rule.
62847         time: Avoid #define replacements in C++ mode.
62848         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
62849         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
62850         define a namespaced alias symbol.
62851         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
62852         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
62853         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
62854         * modules/time (Depends-on): Add c++defs, warn-on-use.
62855         (Makefile.am): Update time.h rule.
62856         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
62857         * modules/nanosleep (configure.ac): Likewise.
62858         * modules/strptime (configure.ac): Likewise.
62859         * modules/timegm (configure.ac): Likewise.
62861         sys_time: Avoid #define replacements in C++ mode.
62862         * lib/sys_time.in.h: Include c++defs.h.
62863         (gettimeofday): In C++, define a namespaced alias symbol.
62864         * modules/sys_time (Depends-on): Add c++defs.
62865         (Makefile.am): Update sys/time.h rule.
62867         sys_stat: Avoid #define replacements in C++ mode.
62868         * lib/sys_stat.in.h: Include c++defs.h.
62869         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
62870         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
62871         namespaced alias symbol.
62872         In C++, define a namespaced alias symbol.
62873         * modules/sys_stat (Depends-on): Add c++defs.
62874         (Makefile.am): Update sys/stat.h rule.
62876         sys_socket: Avoid #define replacements in C++ mode.
62877         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
62878         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
62879         definitions also when the system has a <sys/socket.h>.
62880         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
62881         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
62882         In C++, define a namespaced alias symbol.
62883         * modules/sys_socket (Depends-on): Add c++defs.
62884         (Makefile.am): Update sys/socket.h rule.
62886         sys_select: Avoid #define replacements in C++ mode.
62887         * lib/sys_select.in.h: Include c++defs.h. Enable the function
62888         definitions also when the system has a <sys/select.h>.
62889         (select): In C++, define a namespaced alias symbol.
62890         * modules/sys_select (Depends-on): Add c++defs.
62891         (Makefile.am): Update sys/select.h rule.
62893         sys_ioctl: Avoid #define replacements in C++ mode.
62894         * lib/sys_ioctl.in.h: Include c++defs.h.
62895         (ioctl): In C++, define a namespaced alias symbol.
62896         * modules/sys_ioctl (Depends-on): Add c++defs.
62897         (Makefile.am): Update sys/ioctl.h rule.
62899         string: Avoid #define replacements in C++ mode.
62900         * lib/string.in.h: Include c++defs.h.
62901         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
62902         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
62903         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
62904         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
62905         strsignal, strverscmp): In C++, define a namespaced alias symbol.
62906         * modules/string (Depends-on): Add c++defs.
62907         (Makefile.am): Update string.h rule.
62909         stdlib: Avoid #define replacements in C++ mode.
62910         * lib/stdlib.in.h: Include c++defs.h.
62911         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
62912         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
62913         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
62914         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
62915         symbol.
62916         * modules/stdlib (Depends-on): Add c++defs.
62917         (Makefile.am): Update stdlib.h rule.
62919         stdio: Avoid #define replacements in C++ mode.
62920         * lib/stdio.in.h: Include c++defs.h.
62921         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
62922         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
62923         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
62924         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
62925         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
62926         namespaced alias symbol.
62927         * modules/stdio (Depends-on): Add c++defs.
62928         (Makefile.am): Update stdio.h rule.
62930         spawn: Avoid #define replacements in C++ mode.
62931         * lib/spawn.in.h: Include c++defs.h.
62932         (posix_spawn, posix_spawnp, posix_spawnattr_init,
62933         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
62934         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
62935         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
62936         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
62937         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
62938         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
62939         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
62940         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
62941         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
62942         In C++, define a namespaced alias symbol.
62943         * modules/spawn (Depends-on): Add c++defs.
62944         (Makefile.am): Update spawn.h rule.
62946         signal: Avoid #define replacements in C++ mode.
62947         * lib/signal.in.h: Include c++defs.h.
62948         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
62949         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
62950         namespaced alias symbol.
62951         * modules/signal (Depends-on): Add c++defs.
62952         (Makefile.am): Update signal.h rule.
62954         search: Avoid #define replacements in C++ mode.
62955         * lib/search.in.h: Include c++defs.h.
62956         (_gl_search_compar_fn, _gl_search_action_fn): New types.
62957         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
62958         symbol.
62959         * modules/search (Depends-on): Add c++defs.
62960         (Makefile.am): Update search.h rule.
62962         math: Avoid #define replacements in C++ mode.
62963         * lib/math.in.h: Include c++defs.h.
62964         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
62965         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
62966         trunc, truncl): In C++, define a namespaced alias symbol.
62967         * modules/math (Depends-on): Add c++defs.
62968         (Makefile.am): Update math.h rule.
62970         locale: Avoid #define replacements in C++ mode.
62971         * lib/locale.in.h: Include c++defs.h.
62972         (duplocale): In C++, define a namespaced alias symbol.
62973         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
62974         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
62975         * modules/locale (Depends-on): Add c++defs.
62976         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
62978         langinfo: Avoid #define replacements in C++ mode.
62979         * lib/langinfo.in.h: Include c++defs.h.
62980         (nl_langinfo): In C++, define a namespaced alias symbol.
62981         * modules/langinfo (Depends-on): Add c++defs.
62982         (Makefile.am): Update langinfo.h rule.
62984         iconv-h: Avoid #define replacements in C++ mode.
62985         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
62986         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
62987         symbol.
62988         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
62989         whenever iconv is present.
62990         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
62991         (Makefile.am): Update iconv.h rule.
62993         glob: Avoid #define replacements in C++ mode.
62994         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
62995         (_gl_glob_errfunc_fn): New type.
62996         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
62997         symbol.
62998         * modules/glob (Depends-on): Add c++defs, warn-on-use.
62999         (Makefile.am): Update glob.h rule.
63001         fcntl-h: Avoid #define replacements in C++ mode.
63002         * lib/fcntl.in.h: Include c++defs.h.
63003         (fcntl, open, openat): In C++, define a namespaced alias symbol.
63004         * modules/fcntl-h (Depends-on): Add c++defs.
63005         (Makefile.am): Update fcntl.h rule.
63007         dirent: Avoid #define replacements in C++ mode.
63008         * lib/dirent.in.h: Include c++defs.h.
63009         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
63010         namespaced alias symbol.
63011         (dirfd): Update declaration.
63012         * modules/dirent (Depends-on): Add c++defs.
63013         (Makefile.am): Update dirent.h rule.
63015         ctype: Make it usable in C++ code.
63016         * lib/ctype.in.h: Include c++defs.h.
63017         (isblank): Declare as extern "C".
63018         * modules/ctype (Depends-on): Add c++defs.
63019         (Makefile.am): Update ctype.h rule.
63021         New module 'c++defs'.
63022         * modules/c++defs: New file.
63023         * build-aux/c++defs.h: New file.
63024         Reported by John W. Eaton <jwe@gnu.org>.
63026 2010-03-07  Bruno Haible  <bruno@clisp.org>
63028         logb: Provide missing declaration for Cygwin.
63029         * lib/math.in.h (logb): New declaration.
63030         * m4/logb.m4: New file.
63031         * modules/logb (Files): Add m4/logb.m4.
63032         (Depends-on): Add math.
63033         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
63034         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
63035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
63036         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
63037         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
63039 2010-03-07  Bruno Haible  <bruno@clisp.org>
63041         Fix test-cond link error.
63042         * tests/test-cond.c: Include <stdio.h>.
63044 2010-03-07  Bruno Haible  <bruno@clisp.org>
63046         Fix test-dirent-safer link error.
63047         * modules/dirent-safer-tests (Makefile.am): Define
63048         test_dirent_safer_LDADD.
63050 2010-03-07  Bruno Haible  <bruno@clisp.org>
63052         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
63053         among default module list.
63055 2010-03-07  Bruno Haible  <bruno@clisp.org>
63057         Fix link error on platforms with GNU libiconv.
63058         * modules/unistr/u8-strcoll-tests (Makefile): Define
63059         test_u8_strcoll_LDADD.
63060         * modules/unistr/u16-strcoll-tests (Makefile): Define
63061         test_u16_strcoll_LDADD.
63062         * modules/unistr/u32-strcoll-tests (Makefile): Define
63063         test_u32_strcoll_LDADD.
63065 2010-03-07  Bruno Haible  <bruno@clisp.org>
63067         Use POSIX declarations for socket functions.
63068         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
63069         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
63070         rpl_sendto): Change declaration to match POSIX.
63071         * lib/connect.c (rpl_connect): Likewise.
63072         * lib/accept.c (rpl_accept): Likewise.
63073         * lib/bind.c (rpl_bind): Likewise.
63074         * lib/getpeername.c (rpl_getpeername): Likewise.
63075         * lib/getsockname.c (rpl_getsockname): Likewise.
63076         * lib/recv.c (rpl_recv): Likewise.
63077         * lib/send.c (rpl_send): Likewise.
63078         * lib/recvfrom.c (rpl_recvfrom): Likewise.
63079         * lib/sendto.c (rpl_sendto): Likewise.
63081 2010-03-06  Bruno Haible  <bruno@clisp.org>
63083         Clarify access, euidaccess, faccessat.
63084         * doc/posix-functions/faccessat.texi: Mention security problem under
63085         "Other problems", not "Portability problems".
63086         * doc/posix-functions/access.texi: Likewise. Mention a related security
63087         problem.
63088         * doc/glibc-functions/euidaccess.texi: Mention security problems.
63089         * lib/euidaccess.c: Add comments about platforms.
63090         * lib/unistd.in.h (access, euidaccess): Add warnings.
63092 2010-03-07  Bruno Haible  <bruno@clisp.org>
63094         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
63095         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
63096         (POSIX_SPAWN_SETSCHEDULER): Likewise.
63097         (POSIX_SPAWN_USEVFORK): Define in a way that works when
63098         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63099         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
63100         declare when POSIX_SPAWN_SETSCHEDULER is zero.
63101         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
63102         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
63103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
63104         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
63105         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
63106         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
63107         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
63108         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
63109         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
63110         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
63111         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
63112         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
63113         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
63114         Likewise.
63115         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
63116         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
63117         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
63118         Likewise.
63119         * tests/test-spawn.c (main): Make it work when
63120         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
63122 2010-03-07  Bruno Haible  <bruno@clisp.org>
63124         Fix incorrect Makefile.am generation in German locale.
63125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63126         Execute sed command with character range in C locale.
63128 2010-03-06  Bruno Haible  <bruno@clisp.org>
63130         Tests for module 'iconv-h'.
63131         * modules/iconv-h-tests: New file.
63132         * tests/test-iconv-h.c: New file.
63134         New module 'iconv-h'.
63135         * modules/iconv-h: New file.
63136         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
63137         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
63138         (configure.ac): Remove gl_ICONV_H.
63139         (Makefile.am): Remove rule for iconv.h.
63141 2010-03-06  Bruno Haible  <bruno@clisp.org>
63143         More consistent naming of *.m4 files.
63144         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
63145         * modules/wctype (Files): Update.
63147         More consistent naming of *.m4 files.
63148         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
63149         * modules/wchar (Files): Update.
63151 2010-03-06  Jim Meyering  <meyering@redhat.com>
63153         euidaccess: relax license to LGPLv2+
63154         * modules/euidaccess (License): Relax to LGPLv2+.
63156 2010-03-06  Bruno Haible  <bruno@clisp.org>
63158         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
63159         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
63160         (Makefile.am): Augment lib_SOURCES instead.
63162 2010-03-04  Jim Meyering  <meyering@redhat.com>
63164         utime: remove obsolete module
63165         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
63166         unnecessary for years, and has been marked as obsolete for 10 months.
63167         * modules/utime: Remove file.
63168         * lib/utime.c: Remove file.
63169         * m4/utime.m4: Remove file.
63170         * m4/utimes-null.m4: Remove file.
63171         * doc/posix-functions/utime.texi (utime): Remove reference to
63172         the module.  Move the sole "fixed by gnulib" item into the
63173         "problems not fixed by Gnulib" list.
63174         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
63176 2010-03-05  Simon Josefsson  <simon@josefsson.org>
63178         * modules/exit (License): Relax license to LGPLv2+.
63179         (Status): Mark as obsolete.
63180         * NEWS: Mention deprecated 'exit' module.
63181         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
63182         of now obsolete 'exit'.
63184 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63186         fts-lgpl: remove unused module
63187         * modules/fts-lgpl: Remove.
63188         * MODULES.html.sh (func_all_modules): Adjust.
63189         * check-module (find_included_lib_files): Adjust.
63190         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
63192 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
63194         copy-acl: enhance Solaris ACL error handling
63195         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
63196         * lib/set-mode-acl.c (qset_acl): Likewise.
63198 2010-03-02  Bruno Haible  <bruno@clisp.org>
63200         spawn: Don't override the system defined values on FreeBSD 8.
63201         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
63202         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
63203         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
63204         if HAVE_POSIX_SPAWN is 1.
63205         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
63207 2010-03-01  Bruno Haible  <bruno@clisp.org>
63209         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
63210         regarding Automake.
63212 2010-02-25  Bruno Haible  <bruno@clisp.org>
63214         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
63215         * gnulib-tool: Define 'echo' as a function only before the ksh alias
63216         setting, not afterwards.
63217         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
63219 2010-02-24  Eric Blake  <eblake@redhat.com>
63221         bootstrap, git-version-gen: use timestamp
63222         * build-aux/git-version-gen (scriptversion): Force UTC.
63223         * build-aux/bootstrap (scriptversion): New variable.
63225         bootstrap: allow older git
63226         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
63227         older than 1.6.4.  Requested by the libvirt project.
63229 2010-02-23  Eric Blake  <eblake@redhat.com>
63231         warn-on-use: work with old autoconf
63232         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
63233         AS_VAR semantics of autoconf 2.60.
63234         Reported by Bruno Haible.
63236         bootstrap: improve some comments
63237         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
63238         clarification comments.
63240         gettimeofday: provide correct function
63241         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
63242         when replacement is declared, otherwise provide gettimeofday.
63243         Reported by Michael Goffioul.
63245 2010-02-23  Jim Meyering  <meyering@redhat.com>
63247         lib-ignore: relax license to "unlimited", not LGPLv2+
63248         * modules/lib-ignore (License): Relax to "unlimited".
63250 2010-02-23  Jim Meyering  <meyering@redhat.com>
63252         lib-ignore: relax license to LGPLv2+
63253         * modules/lib-ignore (License): Relax to LGPLv2+.
63255 2010-02-22  Eric Blake  <eblake@redhat.com>
63257         lseek: avoid bash 3.2 broken pipe bug
63258         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
63259         warning from bash 3.2.
63260         Reported by Ben Pfaff, with analysis from Bruno Haible.
63262         bootstrap: support non-FSF copyright holder
63263         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
63264         bootstrap.conf override of COPYRIGHT_HOLDER.
63265         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
63267         bootstrap: interoperate with gettext 0.14.1
63268         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
63270         bootstrap: allow for alternate submodule location
63271         * build-aux/bootstrap (gnulib_path): New variable; use instead of
63272         hardcoding submodule location.
63273         (gnulib_mk): Allow direct use of Makefile.am.
63275         bootstrap: use GNULIB_SRCDIR to reduce disk usage
63276         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
63277         rather than reconfiguring where the submodule points.
63279         gettimeofday: restore support for platforms that lack function
63280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
63281         replacement if function is missing.
63282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
63283         * modules/sys_time (Makefile.am): Substitute it.
63284         * lib/sys_time.in.h (gettimeofday): Check it.
63285         Reported by Michael Goffioul.
63287 2010-02-21  Bruno Haible  <bruno@clisp.org>
63289         * lib/stdio.in.h (obstack_printf): Fix typo.
63291 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
63293         vc-list-files: use bzr ls's -R option
63294         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
63295         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
63297 2010-02-21  Jim Meyering  <meyering@redhat.com>
63299         init.sh: fix EXEEXT shims to work also for names like test-prog
63300         * tests/init.sh: Re-exec a better shell, when needed.
63301         If the current shell lacks support for posix $(...), an init.sh-using
63302         test will now try to find a shell that supports that.  If EXEEXT is
63303         nonempty, we also require support for hyphen-in-alias-name and shell
63304         substitutions like ${var#glob}.  Failure to find such a shell results
63305         in a skipped test.
63307 2010-02-21  Bruno Haible  <bruno@clisp.org>
63309         Really work around "broken pipe" error message from bash 3.2.
63310         * gnulib-tool (func_reset_sigpipe): Remove function.
63311         (echo): In bash 3.2, define to a function that uses printf.
63312         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
63314 2010-02-20  Bruno Haible  <bruno@clisp.org>
63316         Restore support for automake 1.9.6 with autoconf 2.61.
63317         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
63318         Reported by James Youngman <jay@gnu.org>.
63320 2010-02-20  Bruno Haible  <bruno@clisp.org>
63322         Improve *printf warning condition.
63323         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
63324         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
63325         and the function is overridden due to SIGPIPE emulation.
63327 2010-02-20  Bruno Haible  <bruno@clisp.org>
63329         * lib/stdio.in.h: Tweak comments.
63331 2010-02-19  Bruno Haible  <bruno@clisp.org>
63333         Make it easier to find modules. New gnulib-tool option '--find'.
63334         * gnulib-tool: New option --find.
63335         (func_usage): Document it.
63336         (func_sanitize_modulelist): New function, extracted from
63337         func_all_modules.
63338         (func_all_modules): Invoke it.
63339         * doc/gnulib-tool.texi (Which modules?): New node.
63341 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
63343         * lib/sys_select.in.h: Provide select replacement even if
63344         sys/select.h exists on a system, for Interix.
63346 2010-02-18  Jim Meyering  <meyering@redhat.com>
63348         init.sh: don't use $(...) just yet
63349         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
63350         to accommodate e.g., Solaris' /bin/sh.
63352 2010-02-17  Bruno Haible  <bruno@clisp.org>
63354         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
63355         Reported by Ludovic Courtès <ludo@gnu.org>.
63357 2010-02-16  Simon Josefsson  <simon@josefsson.org>
63359         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
63360         linking with -lintl.
63362 2010-02-17  Simon Josefsson  <simon@josefsson.org>
63364         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
63365         if not provided by the system's netdb.h.  Reported by
63366         ludo@gnu.org (Ludovic Courtès).
63368 2010-02-15  Jim Meyering  <meyering@redhat.com>
63370         init.sh: improve portability and efficiency
63371         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
63372         "dummy" in a for loop.
63373         Use '!', not '^' to select the complement of a character set used
63374         in a "case" statement.
63375         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
63376         Suggestions from Eric Blake.
63378         init.sh: automatically accommodate programs with the .exe suffix
63379         Automatically arrange for an invocation of "prog" to execute the
63380         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
63381         may use the simpler "prog", yet still work when built on a system
63382         that requires specifying the added suffix.
63383         Do this by constructing a function named "prog" that invokes
63384         "prog.exe" for each .exe file in selected directories.
63385         * tests/init.sh (find_exe_basenames_): New function.
63386         (create_exe_shim_functions_): New function.
63387         (path_prepend_): Use it.
63389         maint.mk: mark syntax-check sc_*.m rules as .PHONY
63390         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
63391         "make -t syntax-check" doesn't create a ton of sc_*.m files.
63393 2010-02-14  Jim Meyering  <meyering@redhat.com>
63395         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
63396         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
63397         (sc_prohibit_hash_pjw_without_use): New rule.
63399         maint.mk: allow the default upload destination dir to be overridden
63400         * top/maint.mk (upload_dest_dir_): Define with a default that
63401         preserves the status quo.
63402         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
63403         Reported by Peter Simons.
63405         maint.mk: prohibit inclusion of "hash.h" without_use
63406         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
63408 2010-02-10  Jim Meyering  <meyering@redhat.com>
63410         maint.mk: prohibit inclusion of "ignore-value.h" without_use
63411         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
63413 2010-02-09  Eric Blake  <ebb9@byu.net>
63414         and Bruno Haible  <bruno@clisp.org>
63416         obstack-printf-posix: ensure declaration
63417         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
63418         extracted from gl_FUNC_OBSTACK_PRINTF.
63419         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
63420         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
63421         Likewise.
63422         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
63423         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
63424         0.
63426 2010-02-08  Bruno Haible  <bruno@clisp.org>
63428         gnulib-tool: Fix typo in 2010-02-07 commit.
63429         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
63430         Reported by Eric Blake.
63432 2010-02-07  Bruno Haible  <bruno@clisp.org>
63434         gnulib-tool: Fix up caching patches.
63435         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
63436         option --no-cache. Use associative arrays when supported by the shell.
63437         (sed_comments): New variable.
63438         (modcache): Renamed from do_cache.
63439         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
63440         abbreviate unnecessarily.
63441         (have_associative): New variable.
63442         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
63443         way also for ksh and zsh.
63444         (func_init_sed_convert_to_cache_statements): New function, extracted
63445         from func_cache_lookup_module. Add support for associative arrays.
63446         Don't set the c_MODULE_cached variable here. Ignore all lines before
63447         the first field header. Remove only the final newline, not all trailing
63448         newlines. Support empty fields correctly. Limit the use of 'eval' to
63449         assignments.
63450         (func_get_description, func_get_status, func_get_notice,
63451         func_get_applicability, func_get_filelist, func_get_dependencies,
63452         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
63453         func_get_automake_snippet, func_get_include_directive,
63454         func_get_link_directive, func_get_license, func_get_maintainer):
63455         Update documentation. List the unoptimized code first. Add support for
63456         associative arrays. Limit the use of 'eval' to assignments.
63457         (func_get_applicability): Undo stylistic pessimisations.
63458         (func_get_automake_snippet, func_get_include_directive): Reduce code
63459         duplication.
63460         (func_modules_transitive_closure, func_modules_add_dummy,
63461         func_modules_notice, func_modules_to_filelist, func_add_file,
63462         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
63463         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
63464         func_create_testdir, func_create_megatestdir): Update documentation.
63466 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63468         * gnulib-tool (func_cache_lookup_module): Store the module name
63469         belonging to the cache variable; error out if two different
63470         module names map to the same cache variable name.
63472 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63474         gnulib-tool: Make caching optional.
63475         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
63476         Update matching short versions of --no-changelog.
63477         (func_usage): Update.
63478         (sed_extract_cache_prog): Renamed from ...
63479         (sed_extract_prog): ... this; revert to old extraction script.
63480         (func_get_description, func_get_status)
63481         (func_get_notice, func_get_applicability, func_get_filelist)
63482         (func_get_dependencies, func_get_autoconf_early_snippet)
63483         (func_get_autoconf_snippet, func_get_automake_snippet)
63484         (func_get_include_directive, func_get_link_directive)
63485         (func_get_license, func_get_maintainer): If $do_cache is false,
63486         use old, non-caching extraction scripts.
63487         Suggestion by Bruno Haible.
63489 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63491         gnulib-tool: cache module metainformation.
63492         * gnulib-tool (sed_extract_prog): Match newline before each
63493         header, and rewrite header to a shell variable suffix.
63494         (func_cache_var, func_cache_lookup_module): New functions,
63495         to turn a module name into a cache variable prefix, and to
63496         look up and cache module metainformation.
63497         (func_get_description, func_get_status)
63498         (func_get_notice, func_get_applicability, func_get_filelist)
63499         (func_get_dependencies, func_get_autoconf_early_snippet)
63500         (func_get_autoconf_snippet, func_get_automake_snippet)
63501         (func_get_include_directive, func_get_link_directive)
63502         (func_get_license, func_get_maintainer): Use
63503         func_cache_lookup_module.
63505 2010-02-07  Bruno Haible  <bruno@clisp.org>
63507         fnctl: Fix missing dependency.
63508         * modules/fcntl (Depends-on): Add getdtablesize.
63509         Reported by John W. Eaton <jwe@gnu.org>.
63511 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63513         Argp: fix recognition of short alias options.
63515         * lib/argp-parse.c (convert_options): Fix improper use of
63516         `|' between character values.
63517         * tests/test-argp.c (group1_option): New alias option
63518         --read (-r).
63519         (group1_parser): Special handling for 'r'.
63520         (test15): New test case.
63521         (test_fun): Add test15.
63522         * tests/test-argp-2.sh: Update expected --help and --usage
63523         outputs.
63525 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63527         * tests/test-argp.c: Fix indentation.
63529 2010-02-04  Eric Blake  <ebb9@byu.net>
63531         gettimeofday: expose type of second argument
63532         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
63533         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
63534         * tests/test-gettimeofday.c: Use it to silence warning.
63535         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
63536         the issue.
63538 2010-02-03  Jim Meyering  <meyering@redhat.com>
63540         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
63541         * lib/regcomp.c (TYPE_SIGNED): Define.
63542         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
63544         regcomp.c: avoid a new -Wshadow warning
63545         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
63547 2010-02-01  Jim Meyering  <meyering@redhat.com>
63549         removing useless parentheses in cpp #define directives
63550         For motivation, see commit c0221df4, "define STREQ(a,b)
63551         consistently, removing useless parentheses"
63552         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
63553         * lib/mountlist.c (MNT_IGNORE): Likewise.
63554         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
63556 2010-02-01  Eric Blake  <ebb9@byu.net>
63558         sys_time: use link-warning
63559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
63560         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
63561         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
63562         * modules/sys_time (Depends-on): Add warn-on-use.
63563         (Makefile.am): Always build replacement.
63564         (configure.ac): Update substitutions.
63565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
63566         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
63567         bother with SYS_TIME_H.
63568         * modules/gettimeofday (configure.ac): Declare indicator.
63569         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
63570         in use.
63572         closein-tests: silence compiler warning
63573         * tests/test-closein.c (main): Ignore fread result.
63574         * modules/closein-tests (Depends-on): Add ignore-value.
63576         tests: silence warning about system return
63577         * tests/test-areadlink-with-size.c (main): Ignore system result.
63578         * tests/test-areadlink.c (main): Likewise.
63579         * tests/test-areadlinkat-with-size.c (main): Likewise.
63580         * tests/test-areadlinkat.c (main): Likewise.
63581         * tests/test-canonicalize-lgpl.c (main): Likewise.
63582         * tests/test-canonicalize.c (main): Likewise.
63583         * tests/test-chown.c (main): Likewise.
63584         * tests/test-fchownat.c (main): Likewise.
63585         * tests/test-fdutimensat.c (main): Likewise.
63586         * tests/test-fstatat.c (main): Likewise.
63587         * tests/test-futimens.c (main): Likewise.
63588         * tests/test-lchown.c (main): Likewise.
63589         * tests/test-link.c (main): Likewise.
63590         * tests/test-linkat.c (main): Likewise.
63591         * tests/test-lstat.c (main): Likewise.
63592         * tests/test-mkdir.c (main): Likewise.
63593         * tests/test-mkdirat.c (main): Likewise.
63594         * tests/test-mkfifo.c (main): Likewise.
63595         * tests/test-mkfifoat.c (main): Likewise.
63596         * tests/test-mknod.c (main): Likewise.
63597         * tests/test-readlink.c (main): Likewise.
63598         * tests/test-remove.c (main): Likewise.
63599         * tests/test-rename.c (main): Likewise.
63600         * tests/test-renameat.c (main): Likewise.
63601         * tests/test-rmdir.c (main): Likewise.
63602         * tests/test-symlink.c (main): Likewise.
63603         * tests/test-symlinkat.c (main): Likewise.
63604         * tests/test-unlink.c (main): Likewise.
63605         * tests/test-unlinkat.c (main): Likewise.
63606         * tests/test-utimens.c (main): Likewise.
63607         * tests/test-utimensat.c (main): Likewise.
63608         * modules/areadlink-tests (Depends-on): Add ignore-value.
63609         * modules/areadlink-with-size-tests (Depends-on): Likewise.
63610         * modules/areadlinkat-tests (Depends-on): Likewise.
63611         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
63612         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63613         * modules/canonicalize-tests (Depends-on): Likewise.
63614         * modules/chown-tests (Depends-on): Likewise.
63615         * modules/fdutimensat-tests (Depends-on): Likewise.
63616         * modules/futimens-tests (Depends-on): Likewise.
63617         * modules/lchown-tests (Depends-on): Likewise.
63618         * modules/link-tests (Depends-on): Likewise.
63619         * modules/linkat-tests (Depends-on): Likewise.
63620         * modules/lstat-tests (Depends-on): Likewise.
63621         * modules/mkdir-tests (Depends-on): Likewise.
63622         * modules/mkfifo-tests (Depends-on): Likewise.
63623         * modules/mkfifoat-tests (Depends-on): Likewise.
63624         * modules/mknod-tests (Depends-on): Likewise.
63625         * modules/openat-tests (Depends-on): Likewise.
63626         * modules/readlink-tests (Depends-on): Likewise.
63627         * modules/remove-tests (Depends-on): Likewise.
63628         * modules/rename-tests (Depends-on): Likewise.
63629         * modules/renameat-tests (Depends-on): Likewise.
63630         * modules/rmdir-tests (Depends-on): Likewise.
63631         * modules/symlink-tests (Depends-on): Likewise.
63632         * modules/symlinkat-tests (Depends-on): Likewise.
63633         * modules/unlink-tests (Depends-on): Likewise.
63634         * modules/utimens-tests (Depends-on): Likewise.
63635         * modules/utimensat-tests (Depends-on): Likewise.
63637 2010-01-31  Bruno Haible  <bruno@clisp.org>
63639         Perform the same test for many <math.h> functions.
63640         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
63641         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
63642         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
63643         of gl_MATHFUNC.
63644         * modules/acos (configure.ac): Likewise.
63645         * modules/asin (configure.ac): Likewise.
63646         * modules/atan (configure.ac): Likewise.
63647         * modules/atan2 (configure.ac): Likewise.
63648         * modules/cbrt (configure.ac): Likewise.
63649         * modules/copysign (configure.ac): Likewise.
63650         * modules/cos (configure.ac): Likewise.
63651         * modules/cosh (configure.ac): Likewise.
63652         * modules/erf (configure.ac): Likewise.
63653         * modules/erfc (configure.ac): Likewise.
63654         * modules/exp (configure.ac): Likewise.
63655         * modules/fmod (configure.ac): Likewise.
63656         * modules/hypot (configure.ac): Likewise.
63657         * modules/j0 (configure.ac): Likewise.
63658         * modules/j1 (configure.ac): Likewise.
63659         * modules/jn (configure.ac): Likewise.
63660         * modules/lgamma (configure.ac): Likewise.
63661         * modules/log (configure.ac): Likewise.
63662         * modules/log10 (configure.ac): Likewise.
63663         * modules/log1p (configure.ac): Likewise.
63664         * modules/pow (configure.ac): Likewise.
63665         * modules/remainder (configure.ac): Likewise.
63666         * modules/sin (configure.ac): Likewise.
63667         * modules/sinh (configure.ac): Likewise.
63668         * modules/tan (configure.ac): Likewise.
63669         * modules/tanh (configure.ac): Likewise.
63670         * modules/y0 (configure.ac): Likewise.
63671         * modules/y1 (configure.ac): Likewise.
63672         * modules/yn (configure.ac): Likewise.
63673         Suggested by Paolo Bonzini.
63675 2010-01-31  Bruno Haible  <bruno@clisp.org>
63677         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
63679 2010-01-31  Bruno Haible  <bruno@clisp.org>
63681         Work around getdelim() bug on FreeBSD 8.0.
63682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
63683         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
63684         not work.
63685         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
63686         is 1.
63687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
63688         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
63689         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
63690         a non-zero size.
63691         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
63693 2010-01-31  Bruno Haible  <bruno@clisp.org>
63695         Work around getline() bug on FreeBSD 8.0.
63696         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
63697         and a non-zero size.
63698         * tests/test-getline.c (main): Likewise.
63699         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
63700         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
63702 2010-01-28  Eric Blake  <ebb9@byu.net>
63704         regex: fix build failure
63705         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
63706         platforms.
63708 2010-01-28  Jim Meyering  <meyering@redhat.com>
63710         regex: do not ignore memory allocation failure
63711         * lib/regex_internal.c (create_cd_newstate): Detect
63712         re_node_set_init_copy failure.   Extracted from glibc commit
63713         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
63715         regex: sync more white-space changes from libc
63716         * lib/regex_internal.c: White-space only changes.
63717         * lib/regexec.c: Likewise.
63719         regex: add many uses of __attribute_warn_unused_result__
63720         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
63721         * lib/regexec.c: Likewise.
63722         Extracted from a messy glibc commit.
63724         regcomp.c: spelling and merge-artifact from glibc
63725         * lib/regcomp.c: Merge remainder of glibc's
63726         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
63728         regcomp.c: sync white-space changes from glibc
63729         * lib/regcomp.c: Merge to accommodate white space
63730         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
63732         regcomp.c: do not ignore internal return values
63733         * lib/regcomp.c: Do not ignore internal return values.
63734         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
63735         but without its white-space changes and spelling fixes.
63737         regex_internal.h: define __attribute_warn_unused_result__
63738         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
63740         maint: add a syntax-check rule to check for vulnerable Makefile.in
63741         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
63743 2010-01-27  Jim Meyering  <meyering@redhat.com>
63745         ncftpput-ftp: clean up spaces
63746         * build-aux/ncftpput-ftp: Make Copyright line consistent.
63747         Remove trailing blanks.
63749 2010-01-27  Simon Josefsson  <simon@josefsson.org>
63751         * build-aux/git-version-gen: Fix copyright statement.
63752         * build-aux/gnupload: Likewise.
63753         * tests/test-arcfour.c: Likewise.
63754         * tests/test-arctwo.c: Likewise.
63755         * tests/test-count-one-bits.c: Likewise.
63756         * tests/test-crc.c: Likewise.
63757         * tests/test-des.c: Likewise.
63758         * tests/test-gc-arcfour.c: Likewise.
63759         * tests/test-gc-arctwo.c: Likewise.
63760         * tests/test-gc-des.c: Likewise.
63761         * tests/test-gc-hmac-md5.c: Likewise.
63762         * tests/test-gc-hmac-sha1.c: Likewise.
63763         * tests/test-gc-md2.c: Likewise.
63764         * tests/test-gc-md4.c: Likewise.
63765         * tests/test-gc-md5.c: Likewise.
63766         * tests/test-gc-pbkdf2-sha1.c: Likewise.
63767         * tests/test-gc-rijndael.c: Likewise.
63768         * tests/test-gc-sha1.c: Likewise.
63769         * tests/test-gc.c: Likewise.
63770         * tests/test-gethostname.c: Likewise.
63771         * tests/test-gettimeofday.c: Likewise.
63772         * tests/test-hash.c: Likewise.
63773         * tests/test-hmac-md5.c: Likewise.
63774         * tests/test-hmac-sha1.c: Likewise.
63775         * tests/test-md2.c: Likewise.
63776         * tests/test-md4.c: Likewise.
63777         * tests/test-md5.c: Likewise.
63778         * tests/test-memchr.c: Likewise.
63779         * tests/test-memchr2.c: Likewise.
63780         * tests/test-memcmp.c: Likewise.
63781         * tests/test-memmem.c: Likewise.
63782         * tests/test-memrchr.c: Likewise.
63783         * tests/test-rawmemchr.c: Likewise.
63784         * tests/test-read-file.c: Likewise.
63785         * tests/test-rijndael.c: Likewise.
63786         * tests/test-sockets.c: Likewise.
63787         * tests/test-strchrnul.c: Likewise.
63788         * tests/test-strstr.c: Likewise.
63789         * tests/test-strtod.c: Likewise.
63790         * build-aux/ncftpput-ftp: Likewise.
63792 2010-01-26  Eric Blake  <ebb9@byu.net>
63794         ignore-value: update recommended header name
63795         * modules/ignore-value (Include): Only use <> for headers that
63796         exist in glibc.
63798 2010-01-26  Jim Meyering  <meyering@redhat.com>
63800         test-userspec.c: avoid compiler warnings
63801         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
63802         and "initialization discards qualifiers..." warnings.
63803         Put the first "uid" in its own scope, and make char* members "const".
63805 2010-01-25  Bruno Haible  <bruno@clisp.org>
63807         gnulib-tool: Make warning diagnostics consistent.
63808         * gnulib-tool (func_warning): New function.
63809         Use it everywhere where gnulib-tool produces output to stderr and it is
63810         not a fatal error.
63812 2010-01-25  Bruno Haible  <bruno@clisp.org>
63814         Fix test dependencies.
63815         * modules/xstrtol-tests (Depends-on): Add inttypes.
63816         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
63818 2010-01-25  Pádraig Brady  <P@draigBrady.com>
63820         syntax-check: detect incorrect boolean macro values in config.h
63821         * modules/maintainer-makefile (configure.ac): Parameterize the location
63822         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
63823         The logic is from Eric Blake and the location indicated by Jim Meyering.
63824         Note the more natural CONFIG_HEADER name is prohibited by automake
63825         for backwards compatibility reasons.
63826         * top/maint.mk (sc_Wundef_boolean): New rule.
63828 2010-01-25  Jim Meyering  <meyering@redhat.com>
63830         bootstrap: detect MacOS 10.6's shasum, too
63831         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
63832         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
63834 2010-01-23  Jim Meyering  <meyering@redhat.com>
63836         xstrtoll: new module
63837         * modules/xstrtoll: New file.
63838         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
63839         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
63840         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
63841         ./configure fails if you use this module and lack "long long".
63842         * modules/xstrtoll-tests: New module.
63843         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
63844         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
63845         new init.sh-based test framework.
63847 2010-01-24  Bruno Haible  <bruno@clisp.org>
63849         Tests for module 'yn'.
63850         * modules/yn-tests: New file.
63851         * tests/test-yn.c: New file.
63853         Tests for module 'y1'.
63854         * modules/y1-tests: New file.
63855         * tests/test-y1.c: New file.
63857         Tests for module 'y0'.
63858         * modules/y0-tests: New file.
63859         * tests/test-y0.c: New file.
63861         Tests for module 'tanh'.
63862         * modules/tanh-tests: New file.
63863         * tests/test-tanh.c: New file.
63865         Tests for module 'tan'.
63866         * modules/tan-tests: New file.
63867         * tests/test-tan.c: New file.
63869         Tests for module 'sqrt'.
63870         * modules/sqrt-tests: New file.
63871         * tests/test-sqrt.c: New file.
63873         Tests for module 'sinh'.
63874         * modules/sinh-tests: New file.
63875         * tests/test-sinh.c: New file.
63877         Tests for module 'sin'.
63878         * modules/sin-tests: New file.
63879         * tests/test-sin.c: New file.
63881         Tests for module 'rint'.
63882         * modules/rint-tests: New file.
63883         * tests/test-rint.c: New file.
63885         Tests for module 'remainder'.
63886         * modules/remainder-tests: New file.
63887         * tests/test-remainder.c: New file.
63889         Tests for module 'pow'.
63890         * modules/pow-tests: New file.
63891         * tests/test-pow.c: New file.
63893         Tests for module 'nextafter'.
63894         * modules/nextafter-tests: New file.
63895         * tests/test-nextafter.c: New file.
63897         Tests for module 'modf'.
63898         * modules/modf-tests: New file.
63899         * tests/test-modf.c: New file.
63901         Tests for module 'logb'.
63902         * modules/logb-tests: New file.
63903         * tests/test-logb.c: New file.
63905         Tests for module 'log1p'.
63906         * modules/log1p-tests: New file.
63907         * tests/test-log1p.c: New file.
63909         Tests for module 'log10'.
63910         * modules/log10-tests: New file.
63911         * tests/test-log10.c: New file.
63913         Tests for module 'log'.
63914         * modules/log-tests: New file.
63915         * tests/test-log.c: New file.
63917         Tests for module 'lgamma'.
63918         * modules/lgamma-tests: New file.
63919         * tests/test-lgamma.c: New file.
63921         Tests for module 'ldexp'.
63922         * modules/ldexp-tests: New file.
63923         * tests/test-ldexp.c: New file.
63925         Tests for module 'jn'.
63926         * modules/jn-tests: New file.
63927         * tests/test-jn.c: New file.
63929         Tests for module 'j1'.
63930         * modules/j1-tests: New file.
63931         * tests/test-j1.c: New file.
63933         Tests for module 'j0'.
63934         * modules/j0-tests: New file.
63935         * tests/test-j0.c: New file.
63937         Tests for module 'hypot'.
63938         * modules/hypot-tests: New file.
63939         * tests/test-hypot.c: New file.
63941         Tests for module 'fmod'.
63942         * modules/fmod-tests: New file.
63943         * tests/test-fmod.c: New file.
63945         Tests for module 'fabs'.
63946         * modules/fabs-tests: New file.
63947         * tests/test-fabs.c: New file.
63949         Tests for module 'exp'.
63950         * modules/exp-tests: New file.
63951         * tests/test-exp.c: New file.
63953         Tests for module 'erfc'.
63954         * modules/erfc-tests: New file.
63955         * tests/test-erfc.c: New file.
63957         Tests for module 'erf'.
63958         * modules/erf-tests: New file.
63959         * tests/test-erf.c: New file.
63961         Tests for module 'cosh'.
63962         * modules/cosh-tests: New file.
63963         * tests/test-cosh.c: New file.
63965         Tests for module 'cos'.
63966         * modules/cos-tests: New file.
63967         * tests/test-cos.c: New file.
63969         Tests for module 'copysign'.
63970         * modules/copysign-tests: New file.
63971         * tests/test-copysign.c: New file.
63973         Tests for module 'cbrt'.
63974         * modules/cbrt-tests: New file.
63975         * tests/test-cbrt.c: New file.
63977         Tests for module 'atan2'.
63978         * modules/atan2-tests: New file.
63979         * tests/test-atan2.c: New file.
63981         Tests for module 'atan'.
63982         * modules/atan-tests: New file.
63983         * tests/test-atan.c: New file.
63985         Tests for module 'asin'.
63986         * modules/asin-tests: New file.
63987         * tests/test-asin.c: New file.
63989         Tests for module 'acos'.
63990         * modules/acos-tests: New file.
63991         * tests/test-acos.c: New file.
63993 2010-01-24  Bruno Haible  <bruno@clisp.org>
63995         Fix tests for common <math.h> functions.
63996         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
63997         code snippet that references the function pointer, rather than merely
63998         calling the function. Substitute the FUNC_LIBM variable.
63999         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
64000         * modules/acos (configure.ac): Likewise.
64001         * modules/asin (configure.ac): Likewise.
64002         * modules/atan (configure.ac): Likewise.
64003         * modules/atan2 (configure.ac): Likewise.
64004         * modules/cbrt (configure.ac): Likewise.
64005         * modules/copysign (configure.ac): Likewise.
64006         * modules/cos (configure.ac): Likewise.
64007         * modules/cosh (configure.ac): Likewise.
64008         * modules/erf (configure.ac): Likewise.
64009         * modules/erfc (configure.ac): Likewise.
64010         * modules/exp (configure.ac): Likewise.
64011         * modules/fabs (configure.ac): Likewise.
64012         * modules/fmod (configure.ac): Likewise.
64013         * modules/hypot (configure.ac): Likewise.
64014         * modules/j0 (configure.ac): Likewise.
64015         * modules/j1 (configure.ac): Likewise.
64016         * modules/jn (configure.ac): Likewise.
64017         * modules/ldexp (configure.ac): Likewise.
64018         * modules/lgamma (configure.ac): Likewise.
64019         * modules/log (configure.ac): Likewise.
64020         * modules/log10 (configure.ac): Likewise.
64021         * modules/log1p (configure.ac): Likewise.
64022         * modules/logb (configure.ac): Likewise.
64023         * modules/modf (configure.ac): Likewise.
64024         * modules/nextafter (configure.ac): Likewise.
64025         * modules/pow (configure.ac): Likewise.
64026         * modules/remainder (configure.ac): Likewise.
64027         * modules/rint (configure.ac): Likewise.
64028         * modules/sin (configure.ac): Likewise.
64029         * modules/sinh (configure.ac): Likewise.
64030         * modules/tan (configure.ac): Likewise.
64031         * modules/tanh (configure.ac): Likewise.
64032         * modules/y0 (configure.ac): Likewise.
64033         * modules/y1 (configure.ac): Likewise.
64034         * modules/yn (configure.ac): Likewise.
64036 2010-01-24  Bruno Haible  <bruno@clisp.org>
64038         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
64039         * tests/test-acosl.c (x): New variable.
64040         (main): Store argument in x and fetch it from x.
64041         * tests/test-asinl.c (x): New variable.
64042         (main): Store argument in x and fetch it from x.
64043         * tests/test-atanl.c (x): New variable.
64044         (main): Store argument in x and fetch it from x.
64045         * tests/test-cosl.c (x): New variable.
64046         (main): Store argument in x and fetch it from x.
64047         * tests/test-expl.c (x): New variable.
64048         (main): Store argument in x and fetch it from x.
64049         * tests/test-logl.c (x): New variable.
64050         (main): Store argument in x and fetch it from x.
64051         * tests/test-sinl.c (x): New variable.
64052         (main): Store argument in x and fetch it from x.
64053         * tests/test-sqrtl.c (x): New variable.
64054         (main): Store argument in x and fetch it from x.
64055         * tests/test-tanl.c (x): New variable.
64056         (main): Store argument in x and fetch it from x.
64058 2010-01-24  Bruno Haible  <bruno@clisp.org>
64060         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
64061         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
64062         assignments to the initial TESTS_ENVIRONMENT.
64063         * doc/gnulib.texi (Unit test modules): Document it.
64064         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
64065         TESTS_ENVIRONMENT.
64066         * modules/btowc-tests (Makefile.am): Likewise.
64067         * modules/c-stack-tests (Makefile.am): Likewise.
64068         * modules/c-strcase-tests (Makefile.am): Likewise.
64069         * modules/copy-file-tests (Makefile.am): Likewise.
64070         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
64071         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
64072         * modules/mbrtowc-tests (Makefile.am): Likewise.
64073         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64074         * modules/mbscasestr-tests (Makefile.am): Likewise.
64075         * modules/mbschr-tests (Makefile.am): Likewise.
64076         * modules/mbscspn-tests (Makefile.am): Likewise.
64077         * modules/mbsinit-tests (Makefile.am): Likewise.
64078         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64079         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
64080         * modules/mbspbrk-tests (Makefile.am): Likewise.
64081         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64082         * modules/mbsrchr-tests (Makefile.am): Likewise.
64083         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
64084         * modules/mbsspn-tests (Makefile.am): Likewise.
64085         * modules/mbsstr-tests (Makefile.am): Likewise.
64086         * modules/nl_langinfo-tests (Makefile.am): Likewise.
64087         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
64088         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64089         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64090         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64091         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64092         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
64093         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64094         * modules/wcrtomb-tests (Makefile.am): Likewise.
64095         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
64096         * modules/wcsrtombs-tests (Makefile.am): Likewise.
64097         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
64098         assignments from TESTS_ENVIRONMENT.
64099         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
64100         augmentation.
64101         * modules/argp-version-etc-tests (Makefile.am): Likewise.
64102         * modules/atexit-tests (Makefile.am): Likewise.
64103         * modules/binary-io-tests (Makefile.am): Likewise.
64104         * modules/closein-tests (Makefile.am): Likewise.
64105         * modules/dprintf-posix-tests (Makefile.am): Likewise.
64106         * modules/exclude-tests (Makefile.am): Likewise.
64107         * modules/fflush-tests (Makefile.am): Likewise.
64108         * modules/fpending-tests (Makefile.am): Likewise.
64109         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64110         * modules/freadahead-tests (Makefile.am): Likewise.
64111         * modules/freadptr-tests (Makefile.am): Likewise.
64112         * modules/freadseek-tests (Makefile.am): Likewise.
64113         * modules/fseek-tests (Makefile.am): Likewise.
64114         * modules/fseeko-tests (Makefile.am): Likewise.
64115         * modules/ftell-tests (Makefile.am): Likewise.
64116         * modules/ftello-tests (Makefile.am): Likewise.
64117         * modules/idpriv-drop-tests (Makefile.am): Likewise.
64118         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
64119         * modules/lseek-tests (Makefile.am): Likewise.
64120         * modules/parse-duration-tests (Makefile.am): Likewise.
64121         * modules/perror-tests (Makefile.am): Likewise.
64122         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
64123         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
64124         * modules/pipe-tests (Makefile.am): Likewise.
64125         * modules/pread-tests (Makefile.am): Likewise.
64126         * modules/printf-posix-tests (Makefile.am): Likewise.
64127         * modules/select-tests (Makefile.am): Likewise.
64128         * modules/sigpipe-tests (Makefile.am): Likewise.
64129         * modules/tsearch-tests (Makefile.am): Likewise.
64130         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
64131         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
64132         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64133         * modules/uniwidth/width-tests (Makefile.am): Likewise.
64134         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
64135         * modules/version-etc-tests (Makefile.am): Likewise.
64136         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64137         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64138         * modules/xalloc-die-tests (Makefile.am): Likewise.
64139         * modules/xprintf-posix-tests (Makefile.am): Likewise.
64140         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64141         * modules/xstrtol-tests (Makefile.am): Likewise.
64142         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64143         * modules/yesno-tests (Makefile.am): Likewise.
64144         Suggested by Jim Meyering.
64146 2010-01-24  Bruno Haible  <bruno@clisp.org>
64148         More documentation.
64149         * doc/gnulib.texi (Writing modules): New chapter.
64150         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
64151         the new chapter.
64153 2010-01-24  Jim Meyering  <meyering@redhat.com>
64155         maint.mk: do not prepend "./" after filtering
64156         * top/maint.mk (_prepend_srcdir_prefix): New variable
64157         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
64158         "./" when $(srcdir) is ".".
64160         define STREQ(a,b) consistently, removing useless parentheses
64161         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
64162         since the only risk is that "a" or "b" contains an unparenthesized
64163         comma, but if either did that, STREQ would have 3 or more arguments.
64164         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
64165         * lib/fts.c (STREQ): Remove unnecessary parentheses.
64166         * lib/hash-triple.c (STREQ): Likewise.
64167         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
64168         * lib/getugroups.c (STREQ): Likewise.
64170 2010-01-23  Jim Meyering  <meyering@redhat.com>
64172         maint.mk: fix syntax-check in a non-srcdir build directory
64173         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
64174         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
64176 2010-01-22  Jim Meyering  <meyering@redhat.com>
64178         userspec: add unit tests
64179         * tests/test-userspec.c: New file.
64180         * modules/userspec-tests: Likewise.
64182 2010-01-21  Jim Meyering  <meyering@redhat.com>
64184         maint.mk: handle source file names containing "." robustly
64185         * top/maint.mk (_dot_escaped_srcdir): Define.
64186         (VC_LIST): Use it in LHS of sed substitution.
64188 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
64190         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
64191         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
64192         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
64193         from a non-srcdir build.
64195 2010-01-20  Eric Blake  <ebb9@byu.net>
64197         warn-on-use: use instead of link-warning
64198         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
64199         * modules/unistd (Depends-on, Makefile.am): Likewise.
64200         * modules/arpa_inet (Depends-on): Replace link-warning with
64201         warn-on-use.
64202         (Makefile.am): Update rules accordingly.
64203         * modules/ctype (Depends-on, Makefile.am): Likewise.
64204         * modules/dirent (Depends-on, Makefile.am): Likewise.
64205         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
64206         * modules/inttypes (Depends-on, Makefile.am): Likewise.
64207         * modules/langinfo (Depends-on, Makefile.am): Likewise.
64208         * modules/locale (Depends-on, Makefile.am): Likewise.
64209         * modules/math (Depends-on, Makefile.am): Likewise.
64210         * modules/search (Depends-on, Makefile.am): Likewise.
64211         * modules/signal (Depends-on, Makefile.am): Likewise.
64212         * modules/spawn (Depends-on, Makefile.am): Likewise.
64213         * modules/stdlib (Depends-on, Makefile.am): Likewise.
64214         * modules/string (Depends-on, Makefile.am): Likewise.
64215         * modules/strings (Depends-on, Makefile.am): Likewise.
64216         * modules/sys_file (Depends-on, Makefile.am): Likewise.
64217         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
64218         * modules/sys_select (Depends-on, Makefile.am): Likewise.
64219         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
64220         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
64221         * modules/sys_times (Depends-on, Makefile.am): Likewise.
64222         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
64223         * modules/wchar (Depends-on, Makefile.am): Likewise.
64224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
64225         should be poisoned.
64226         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
64227         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
64228         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
64229         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64230         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
64231         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64232         * m4/math_h.m4 (gl_MATH_H): Likewise.
64233         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64234         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64235         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
64236         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64237         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64239         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
64240         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
64241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64245         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64246         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
64247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64248         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64249         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
64250         GL_LINK_WARNING.
64251         * lib/ctype.in.h: Likewise.
64252         * lib/dirent.in.h: Likewise.
64253         * lib/fcntl.in.h: Likewise.
64254         * lib/inttypes.in.h: Likewise.
64255         * lib/langinfo.in.h: Likewise.
64256         * lib/locale.in.h: Likewise.
64257         * lib/math.in.h: Likewise.
64258         * lib/search.in.h: Likewise.
64259         * lib/signal.in.h: Likewise.
64260         * lib/spawn.in.h: Likewise.
64261         * lib/stdio.in.h: Likewise.
64262         * lib/stdlib.in.h: Likewise.
64263         * lib/string.in.h: Likewise.
64264         * lib/strings.in.h: Likewise.
64265         * lib/sys_file.in.h: Likewise.
64266         * lib/sys_ioctl.in.h: Likewise.
64267         * lib/sys_select.in.h: Likewise.
64268         * lib/sys_socket.in.h: Likewise.
64269         * lib/sys_stat.in.h: Likewise.
64270         * lib/sys_times.in.h: Likewise.
64271         * lib/sys_utsname.in.h: Likewise.
64272         * lib/unistd.in.h: Likewise.
64273         * lib/wchar.in.h: Likewise.
64275 2010-01-20  Bruno Haible  <bruno@clisp.org>
64277         Avoid duplicate -lm.
64278         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
64279         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
64280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
64281         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
64282         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
64283         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
64284         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
64285         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
64286         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
64287         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
64288         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
64289         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64290         Reported by Paolo Bonzini.
64292 2010-01-19  Bruno Haible  <bruno@clisp.org>
64294         langinfo, nl_langinfo: Relicense under LGPLv2+.
64295         * modules/langinfo (License): Change to LGPLv2+.
64296         * modules/nl_langinfo (License): Likewise.
64297         Patch by David Lutterkort <lutter@redhat.com>.
64299 2010-01-19  Bruno Haible  <bruno@clisp.org>
64301         Avoid compilation error with cc on OSF/1 5.1.
64302         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
64303         statement, not before.
64304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64306 2010-01-18  Bruno Haible  <bruno@clisp.org>
64308         Avoid a link error due to the __printf__ symbol.
64309         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
64310         and 2.6.x.
64311         (__format__, __printf__): Remove definitions.
64312         * lib/argp-fmtstream.h: Likewise.
64313         * lib/argp.h: Likewise.
64314         * lib/error.h: Likewise.
64315         * lib/vasnprintf.h: Likewise.
64316         * lib/xprintf.h: Likewise.
64317         * lib/xvasprintf.h: Likewise.
64318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64320 2010-01-18  Bruno Haible  <bruno@clisp.org>
64322         Tests for module 'tanl'.
64323         * modules/tanl-tests: New file.
64324         * tests/test-tanl.c: New file.
64326         Tests for module 'sqrtl'.
64327         * modules/sqrtl-tests: New file.
64328         * tests/test-sqrtl.c: New file.
64330         Tests for module 'sinl'.
64331         * modules/sinl-tests: New file.
64332         * tests/test-sinl.c: New file.
64334         Tests for module 'logl'.
64335         * modules/logl-tests: New file.
64336         * tests/test-logl.c: New file.
64338         Tests for module 'expl'.
64339         * modules/expl-tests: New file.
64340         * tests/test-expl.c: New file.
64342         Tests for module 'cosl'.
64343         * modules/cosl-tests: New file.
64344         * tests/test-cosl.c: New file.
64346         Tests for module 'atanl'.
64347         * modules/atanl-tests: New file.
64348         * tests/test-atanl.c: New file.
64350         Tests for module 'asinl'.
64351         * modules/asinl-tests: New file.
64352         * tests/test-asinl.c: New file.
64354         Tests for module 'acosl'.
64355         * modules/acosl-tests: New file.
64356         * tests/test-acosl.c: New file.
64358         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64359         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
64360         tanl): Use the standard gnulib idiom.
64361         * lib/cosl.c: Don't include trigl.c and sincosl.c.
64362         * lib/sinl.c: Likewise.
64363         * lib/tanl.c: Don't include trigl.c.
64364         (kernel_tanl): Make static.
64365         * lib/sincosl.c: Include trigl.h first.
64366         * lib/trigl.c: Likewise.
64367         * m4/acosl.m4: New file.
64368         * m4/asinl.m4: New file.
64369         * m4/atanl.m4: New file.
64370         * m4/cosl.m4: New file.
64371         * m4/expl.m4: New file.
64372         * m4/logl.m4: New file.
64373         * m4/sinl.m4: New file.
64374         * m4/sqrtl.m4: New file.
64375         * m4/tanl.m4: New file.
64376         * m4/mathl.m4: Remove file.
64377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
64378         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
64379         Don't initialize GNULIB_MATHL.
64380         * modules/acosl: New file.
64381         * modules/asinl: New file.
64382         * modules/atanl: New file.
64383         * modules/cosl: New file.
64384         * modules/expl: New file.
64385         * modules/logl: New file.
64386         * modules/sinl: New file.
64387         * modules/sqrtl: New file.
64388         * modules/tanl: New file.
64389         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
64390         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
64391         substitute GNULIB_MATHL.
64392         * modules/mathl: Rewritten.
64393         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
64394         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
64395         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
64396         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
64397         * doc/posix-functions/expl.texi: Mention the 'expl' module.
64398         * doc/posix-functions/logl.texi: Mention the 'logl' module.
64399         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
64400         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
64401         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
64403 2010-01-18  Bruno Haible  <bruno@clisp.org>
64405         sqrt: Make gl_FUNC_SQRT requirable.
64406         * m4/sqrt.m4: New file.
64407         * modules/sqrt (Files): Add it.
64408         (configure.ac): Invoke gl_FUNC_SQRT.
64410 2010-01-18  Bruno Haible  <bruno@clisp.org>
64412         New modules for common <math.h> functions.
64413         * m4/mathfunc.m4: New file.
64414         * modules/acos: New file.
64415         * modules/asin: New file.
64416         * modules/atan: New file.
64417         * modules/atan2: New file.
64418         * modules/cbrt: New file.
64419         * modules/copysign: New file.
64420         * modules/cos: New file.
64421         * modules/cosh: New file.
64422         * modules/erf: New file.
64423         * modules/erfc: New file.
64424         * modules/exp: New file.
64425         * modules/fabs: New file.
64426         * modules/fmod: New file.
64427         * modules/hypot: New file.
64428         * modules/j0: New file.
64429         * modules/j1: New file.
64430         * modules/jn: New file.
64431         * modules/ldexp: New file.
64432         * modules/lgamma: New file.
64433         * modules/log: New file.
64434         * modules/log10: New file.
64435         * modules/log1p: New file.
64436         * modules/logb: New file.
64437         * modules/modf: New file.
64438         * modules/nextafter: New file.
64439         * modules/pow: New file.
64440         * modules/remainder: New file.
64441         * modules/rint: New file.
64442         * modules/sin: New file.
64443         * modules/sinh: New file.
64444         * modules/sqrt: New file.
64445         * modules/tan: New file.
64446         * modules/tanh: New file.
64447         * modules/y0: New file.
64448         * modules/y1: New file.
64449         * modules/yn: New file.
64450         * doc/posix-functions/acos.texi: Mention the 'acos' module.
64451         * doc/posix-functions/asin.texi: Mention the 'asin' module.
64452         * doc/posix-functions/atan.texi: Mention the 'atan' module.
64453         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
64454         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
64455         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
64456         * doc/posix-functions/cos.texi: Mention the 'cos' module.
64457         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
64458         * doc/posix-functions/erf.texi: Mention the 'erf' module.
64459         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
64460         * doc/posix-functions/exp.texi: Mention the 'exp' module.
64461         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
64462         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
64463         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
64464         * doc/posix-functions/j0.texi: Mention the 'j0' module.
64465         * doc/posix-functions/j1.texi: Mention the 'j1' module.
64466         * doc/posix-functions/jn.texi: Mention the 'jn' module.
64467         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
64468         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
64469         * doc/posix-functions/log.texi: Mention the 'log' module.
64470         * doc/posix-functions/log10.texi: Mention the 'log10' module.
64471         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
64472         * doc/posix-functions/logb.texi: Mention the 'logb' module.
64473         * doc/posix-functions/modf.texi: Mention the 'modf' module.
64474         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
64475         * doc/posix-functions/pow.texi: Mention the 'pow' module.
64476         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
64477         * doc/posix-functions/rint.texi: Mention the 'rint' module.
64478         * doc/posix-functions/sin.texi: Mention the 'sin' module.
64479         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
64480         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
64481         * doc/posix-functions/tan.texi: Mention the 'tan' module.
64482         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
64483         * doc/posix-functions/y0.texi: Mention the 'y0' module.
64484         * doc/posix-functions/y1.texi: Mention the 'y1' module.
64485         * doc/posix-functions/yn.texi: Mention the 'yn' module.
64487 2010-01-18  Jim Meyering  <meyering@redhat.com>
64489         ignore-value: relax license to LGPLv2+
64490         * modules/ignore-value (License): Relax to LGPLv2+.
64492         getdate: don't leak when TZ contains two or more '"'s
64493         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
64494         double quote in TZ after the first one.
64496         readtokens: do not leak internal token_lengths buffer
64497         * lib/readtokens.c (readtokens): Free the local, lengths,
64498         when the supplied "token_lengths" parameter is NULL.
64500 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64502         Fix a couple of missing LIBTHREAD link failures on AIX.
64503         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
64504         $(LIBTHREAD).
64505         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
64507         Link test-poll against INET_PTON_LIB.
64508         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
64509         for inet_pton on Solaris 10.
64511 2010-01-17  Bruno Haible  <bruno@clisp.org>
64513         unistdio/*-sprintf: Fix typo in module description.
64514         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
64515         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
64516         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
64517         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
64518         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
64519         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
64520         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
64521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64523 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64525         gnulib-tool: fix filelist for AIX, HP-UX ksh.
64526         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
64527         variables in shell case patterns, for AIX and HP-UX ksh.
64529         Split large sed scripts, for HP-UX sed.
64530         * modules/stdio: Split sed scripts around 50 sed commands,
64531         to avoid HP-UX limit of 99 commands, in the near future.
64532         * modules/string: Likewise.
64533         * modules/unistd: Likewise.
64535         gnulib-tool: avoid writing in the current directory.
64536         * gnulib-tool (func_emit_lib_Makefile_am)
64537         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
64538         not in the current directory, so concurrent gnulib-tool
64539         instances do not interfere.
64541 2010-01-16  Jim Meyering  <meyering@redhat.com>
64543         doc: update users.txt
64544         * users.txt: Add grep.
64545         (diffutils, gzip): Update URLs.
64547 2010-01-12  Bruno Haible  <bruno@clisp.org>
64549         posix_spawn: Avoid test failure on Cygwin.
64550         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
64551         characters.
64552         Reported by Simon Josefsson.
64554 2010-01-12  Bruno Haible  <bruno@clisp.org>
64556         * tests/test-cond.c (main): When skipping the test, show the reason.
64558 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64560         * lib/striconv.c (str_cd_iconv): Avoid if before free.
64562 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64564         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
64565         VC_LIST_ALWAYS_EXCLUDE_REGEX.
64567 2010-01-12  Eric Blake  <ebb9@byu.net>
64569         build: guarantee AS_VAR_IF
64570         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
64571         (gl_AS_VAR_IF): Move...
64572         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
64573         Reported by Simon Josefsson.
64575 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64577         * lib/stdio.in.h: Fix typo.
64579 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64581         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
64582         libgpg-error.
64584 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64586         * tests/test-xalloc-die.sh: Use $EXEEXT.
64588 2010-01-12  Simon Josefsson  <simon@josefsson.org>
64589             Bruno Haible  <bruno@clisp.org>
64591         getlogin, getlogin_r: Avoid test failure.
64592         * tests/test-getlogin.c: Include <stdio.h>.
64593         (main): Skip the test when the function fails because stdin is not a
64594         tty.
64595         * tests/test-getlogin_r.c: Include <stdio.h>.
64596         (main): Skip the test when the function fails because stdin is not a
64597         tty.
64599 2010-01-11  Eric Blake  <ebb9@byu.net>
64601         tests: avoid more large file warnings
64602         * tests/test-fflush.c: Avoid warning about ftell use.
64603         * tests/test-fseek.c: Avoid warning about fseek use.
64605 2010-01-10  Bruno Haible  <bruno@clisp.org>
64607         nproc: Work better on Linux when /proc and /sys are not mounted.
64608         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
64609         as lower bound when, on glibc/Linux systems,
64610         sysconf (_SC_NPROCESSORS_CONF) returns 1.
64611         Suggested by Pádraig Brady <P@draigbrady.com>.
64612         Reported by Dmitry V. Levin <ldv@altlinux.org>.
64614         nproc: Refactor.
64615         * lib/nproc.c (num_processors_via_affinity_mask): New function,
64616         extracted from num_processors.
64617         (num_processors): Call it.
64619 2010-01-11  Jim Meyering  <meyering@redhat.com>
64621         utimecmp: avoid new warning from upcoming gcc-4.5.0
64622         * lib/utimecmp.c (BILLION): Define using #define rather than an
64623         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
64625 2010-01-11  Eric Blake  <ebb9@byu.net>
64627         math: add portability warnings for classification macros
64628         * modules/math (Depends-on): Add warn-on-use.
64629         (Makefile.am): Provide new substitutions.
64630         * m4/math_h.m4 (gl_MATH_H): Require inline.
64631         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
64632         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
64633         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
64634         implement warnings.
64636         unistd: warn on use of environ without module
64637         * modules/unistd (Depends-on): Add warn-on-use.
64638         (Makefile.am): Provide new substitutions.
64639         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
64640         * lib/unistd.in.h (environ): Wrap with a warning helper function.
64642         stdio: warn on suspicious uses
64643         * modules/stdio (Depends-on): Add warn-on-use.
64644         (Makefile.am): Provide new substitutions.
64645         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
64646         fseeko.
64647         * lib/stdio.in.h (gets): Always warn on use.
64648         (fseek, ftell): Adjust when warnings are issued, and honor
64649         _GL_NO_LARGE_FILES as a way to silence the warning.
64650         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
64651         any warning about large file offsets.
64652         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
64653         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
64654         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
64655         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
64656         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
64657         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
64658         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
64659         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
64661         warn-on-use: new module
64662         * modules/warn-on-use: New file.
64663         * build-aux/warn-on-use.h: Likewise.
64664         * m4/warn-on-use.m4: Likewise.
64665         * MODULES.html.sh (Support for building): Mention it.
64667 2010-01-10  Bruno Haible  <bruno@clisp.org>
64669         Tests for module 'unistr/u32-strdup'.
64670         * modules/unistr/u32-strdup-tests: New file.
64671         * tests/unistr/test-u32-strdup.c: New file.
64673         Tests for module 'unistr/u16-strdup'.
64674         * modules/unistr/u16-strdup-tests: New file.
64675         * tests/unistr/test-u16-strdup.c: New file.
64677         Tests for module 'unistr/u8-strdup'.
64678         * modules/unistr/u8-strdup-tests: New file.
64679         * tests/unistr/test-u8-strdup.c: New file.
64680         * tests/unistr/test-strdup.h: New file.
64682         Tests for module 'unistr/u32-strncmp'.
64683         * modules/unistr/u32-strncmp-tests: New file.
64684         * tests/unistr/test-u32-strncmp.c: New file.
64686         Tests for module 'unistr/u16-strncmp'.
64687         * modules/unistr/u16-strncmp-tests: New file.
64688         * tests/unistr/test-u16-strncmp.c: New file.
64690         Tests for module 'unistr/u8-strncmp'.
64691         * modules/unistr/u8-strncmp-tests: New file.
64692         * tests/unistr/test-u8-strncmp.c: New file.
64693         * tests/unistr/test-strncmp.h: New file.
64695         Tests for module 'unistr/u32-strcoll'.
64696         * modules/unistr/u32-strcoll-tests: New file.
64697         * tests/unistr/test-u32-strcoll.c: New file.
64699         Tests for module 'unistr/u16-strcoll'.
64700         * modules/unistr/u16-strcoll-tests: New file.
64701         * tests/unistr/test-u16-strcoll.c: New file.
64703         Tests for module 'unistr/u8-strcoll'.
64704         * modules/unistr/u8-strcoll-tests: New file.
64705         * tests/unistr/test-u8-strcoll.c: New file.
64707         Tests for module 'unistr/u32-strcmp'.
64708         * modules/unistr/u32-strcmp-tests: New file.
64709         * tests/unistr/test-u32-strcmp.c: New file.
64710         * tests/unistr/test-u32-strcmp.h: New file.
64712         Tests for module 'unistr/u16-strcmp'.
64713         * modules/unistr/u16-strcmp-tests: New file.
64714         * tests/unistr/test-u16-strcmp.c: New file.
64715         * tests/unistr/test-u16-strcmp.h: New file.
64717         Tests for module 'unistr/u8-strcmp'.
64718         * modules/unistr/u8-strcmp-tests: New file.
64719         * tests/unistr/test-u8-strcmp.c: New file.
64720         * tests/unistr/test-u8-strcmp.h: New file.
64721         * tests/unistr/test-strcmp.h: New file.
64723         Tests for module 'unistr/u32-strncat'.
64724         * modules/unistr/u32-strncat-tests: New file.
64725         * tests/unistr/test-u32-strncat.c: New file.
64727         Tests for module 'unistr/u16-strncat'.
64728         * modules/unistr/u16-strncat-tests: New file.
64729         * tests/unistr/test-u16-strncat.c: New file.
64731         Tests for module 'unistr/u8-strncat'.
64732         * modules/unistr/u8-strncat-tests: New file.
64733         * tests/unistr/test-u8-strncat.c: New file.
64734         * tests/unistr/test-strncat.h: New file.
64736         Tests for module 'unistr/u32-strcat'.
64737         * modules/unistr/u32-strcat-tests: New file.
64738         * tests/unistr/test-u32-strcat.c: New file.
64740         Tests for module 'unistr/u16-strcat'.
64741         * modules/unistr/u16-strcat-tests: New file.
64742         * tests/unistr/test-u16-strcat.c: New file.
64744         Tests for module 'unistr/u8-strcat'.
64745         * modules/unistr/u8-strcat-tests: New file.
64746         * tests/unistr/test-u8-strcat.c: New file.
64747         * tests/unistr/test-strcat.h: New file.
64749         Tests for module 'unistr/u32-stpncpy'.
64750         * modules/unistr/u32-stpncpy-tests: New file.
64751         * tests/unistr/test-u32-stpncpy.c: New file.
64753         Tests for module 'unistr/u16-stpncpy'.
64754         * modules/unistr/u16-stpncpy-tests: New file.
64755         * tests/unistr/test-u16-stpncpy.c: New file.
64757         Tests for module 'unistr/u8-stpncpy'.
64758         * modules/unistr/u8-stpncpy-tests: New file.
64759         * tests/unistr/test-u8-stpncpy.c: New file.
64760         * tests/unistr/test-stpncpy.h: New file.
64762         Tests for module 'unistr/u32-strncpy'.
64763         * modules/unistr/u32-strncpy-tests: New file.
64764         * tests/unistr/test-u32-strncpy.c: New file.
64766         Tests for module 'unistr/u16-strncpy'.
64767         * modules/unistr/u16-strncpy-tests: New file.
64768         * tests/unistr/test-u16-strncpy.c: New file.
64770         Tests for module 'unistr/u8-strncpy'.
64771         * modules/unistr/u8-strncpy-tests: New file.
64772         * tests/unistr/test-u8-strncpy.c: New file.
64773         * tests/unistr/test-strncpy.h: New file.
64775         Tests for module 'unistr/u32-stpcpy'.
64776         * modules/unistr/u32-stpcpy-tests: New file.
64777         * tests/unistr/test-u32-stpcpy.c: New file.
64779         Tests for module 'unistr/u16-stpcpy'.
64780         * modules/unistr/u16-stpcpy-tests: New file.
64781         * tests/unistr/test-u16-stpcpy.c: New file.
64783         Tests for module 'unistr/u8-stpcpy'.
64784         * modules/unistr/u8-stpcpy-tests: New file.
64785         * tests/unistr/test-u8-stpcpy.c: New file.
64786         * tests/unistr/test-stpcpy.h: New file.
64788         Tests for module 'unistr/u32-strcpy'.
64789         * modules/unistr/u32-strcpy-tests: New file.
64790         * tests/unistr/test-u32-strcpy.c: New file.
64792         Tests for module 'unistr/u16-strcpy'.
64793         * modules/unistr/u16-strcpy-tests: New file.
64794         * tests/unistr/test-u16-strcpy.c: New file.
64796         Tests for module 'unistr/u8-strcpy'.
64797         * modules/unistr/u8-strcpy-tests: New file.
64798         * tests/unistr/test-u8-strcpy.c: New file.
64799         * tests/unistr/test-strcpy.h: New file.
64801         Tests for module 'unistr/u32-strnlen'.
64802         * modules/unistr/u32-strnlen-tests: New file.
64803         * tests/unistr/test-u32-strnlen.c: New file.
64805         Tests for module 'unistr/u16-strnlen'.
64806         * modules/unistr/u16-strnlen-tests: New file.
64807         * tests/unistr/test-u16-strnlen.c: New file.
64809         Tests for module 'unistr/u8-strnlen'.
64810         * modules/unistr/u8-strnlen-tests: New file.
64811         * tests/unistr/test-u8-strnlen.c: New file.
64812         * tests/unistr/test-strnlen.h: New file.
64814         Tests for module 'unistr/u32-strlen'.
64815         * modules/unistr/u32-strlen-tests: New file.
64816         * tests/unistr/test-u32-strlen.c: New file.
64818         Tests for module 'unistr/u16-strlen'.
64819         * modules/unistr/u16-strlen-tests: New file.
64820         * tests/unistr/test-u16-strlen.c: New file.
64822         Tests for module 'unistr/u8-strlen'.
64823         * modules/unistr/u8-strlen-tests: New file.
64824         * tests/unistr/test-u8-strlen.c: New file.
64826         Tests for module 'unistr/u32-prev'.
64827         * modules/unistr/u32-prev-tests: New file.
64828         * tests/unistr/test-u32-prev.c: New file.
64830         Tests for module 'unistr/u16-prev'.
64831         * modules/unistr/u16-prev-tests: New file.
64832         * tests/unistr/test-u16-prev.c: New file.
64834         Tests for module 'unistr/u8-prev'.
64835         * modules/unistr/u8-prev-tests: New file.
64836         * tests/unistr/test-u8-prev.c: New file.
64838         Tests for module 'unistr/u32-next'.
64839         * modules/unistr/u32-next-tests: New file.
64840         * tests/unistr/test-u32-next.c: New file.
64842         Tests for module 'unistr/u16-next'.
64843         * modules/unistr/u16-next-tests: New file.
64844         * tests/unistr/test-u16-next.c: New file.
64846         Tests for module 'unistr/u8-next'.
64847         * modules/unistr/u8-next-tests: New file.
64848         * tests/unistr/test-u8-next.c: New file.
64850         Tests for module 'unistr/u32-strmbtouc'.
64851         * modules/unistr/u32-strmbtouc-tests: New file.
64852         * tests/unistr/test-u32-strmbtouc.c: New file.
64854         Tests for module 'unistr/u16-strmbtouc'.
64855         * modules/unistr/u16-strmbtouc-tests: New file.
64856         * tests/unistr/test-u16-strmbtouc.c: New file.
64858         Tests for module 'unistr/u8-strmbtouc'.
64859         * modules/unistr/u8-strmbtouc-tests: New file.
64860         * tests/unistr/test-u8-strmbtouc.c: New file.
64862         Tests for module 'unistr/u32-strmblen'.
64863         * modules/unistr/u32-strmblen-tests: New file.
64864         * tests/unistr/test-u32-strmblen.c: New file.
64866         Tests for module 'unistr/u16-strmblen'.
64867         * modules/unistr/u16-strmblen-tests: New file.
64868         * tests/unistr/test-u16-strmblen.c: New file.
64870         Tests for module 'unistr/u8-strmblen'.
64871         * modules/unistr/u8-strmblen-tests: New file.
64872         * tests/unistr/test-u8-strmblen.c: New file.
64874         Tests for module 'unistr/u32-cpy-alloc'.
64875         * modules/unistr/u32-cpy-alloc-tests: New file.
64876         * tests/unistr/test-u32-cpy-alloc.c: New file.
64878         Tests for module 'unistr/u16-cpy-alloc'.
64879         * modules/unistr/u16-cpy-alloc-tests: New file.
64880         * tests/unistr/test-u16-cpy-alloc.c: New file.
64882         Tests for module 'unistr/u8-cpy-alloc'.
64883         * modules/unistr/u8-cpy-alloc-tests: New file.
64884         * tests/unistr/test-u8-cpy-alloc.c: New file.
64885         * tests/unistr/test-cpy-alloc.h: New file.
64887         Tests for module 'unistr/u32-mbsnlen'.
64888         * modules/unistr/u32-mbsnlen-tests: New file.
64889         * tests/unistr/test-u32-mbsnlen.c: New file.
64891         Tests for module 'unistr/u16-mbsnlen'.
64892         * modules/unistr/u16-mbsnlen-tests: New file.
64893         * tests/unistr/test-u16-mbsnlen.c: New file.
64895         Tests for module 'unistr/u8-mbsnlen'.
64896         * modules/unistr/u8-mbsnlen-tests: New file.
64897         * tests/unistr/test-u8-mbsnlen.c: New file.
64899         Tests for module 'unistr/u32-chr'.
64900         * modules/unistr/u32-chr-tests: New file.
64901         * tests/unistr/test-u32-chr.c: New file.
64903         Tests for module 'unistr/u16-chr'.
64904         * modules/unistr/u16-chr-tests: New file.
64905         * tests/unistr/test-u16-chr.c: New file.
64907         Tests for module 'unistr/u8-chr'.
64908         * modules/unistr/u8-chr-tests: New file.
64909         * tests/unistr/test-u8-chr.c: New file.
64910         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
64912         Tests for module 'unistr/u32-cmp2'.
64913         * modules/unistr/u32-cmp2-tests: New file.
64914         * tests/unistr/test-u32-cmp2.c: New file.
64916         Tests for module 'unistr/u16-cmp2'.
64917         * modules/unistr/u16-cmp2-tests: New file.
64918         * tests/unistr/test-u16-cmp2.c: New file.
64920         Tests for module 'unistr/u8-cmp2'.
64921         * modules/unistr/u8-cmp2-tests: New file.
64922         * tests/unistr/test-u8-cmp2.c: New file.
64923         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
64925         Tests for module 'unistr/u32-cmp'.
64926         * modules/unistr/u32-cmp-tests: New file.
64927         * tests/unistr/test-u32-cmp.c: New file.
64929         Tests for module 'unistr/u16-cmp'.
64930         * modules/unistr/u16-cmp-tests: New file.
64931         * tests/unistr/test-u16-cmp.c: New file.
64933         Tests for module 'unistr/u8-cmp'.
64934         * modules/unistr/u8-cmp-tests: New file.
64935         * tests/unistr/test-u8-cmp.c: New file.
64936         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
64938         Tests for module 'unistr/u32-set'.
64939         * modules/unistr/u32-set-tests: New file.
64940         * tests/unistr/test-u32-set.c: New file.
64942         Tests for module 'unistr/u16-set'.
64943         * modules/unistr/u16-set-tests: New file.
64944         * tests/unistr/test-u16-set.c: New file.
64946         Tests for module 'unistr/u8-set'.
64947         * modules/unistr/u8-set-tests: New file.
64948         * tests/unistr/test-u8-set.c: New file.
64949         * tests/unistr/test-set.h: New file.
64951         Tests for module 'unistr/u32-move'.
64952         * modules/unistr/u32-move-tests: New file.
64953         * tests/unistr/test-u32-move.c: New file.
64955         Tests for module 'unistr/u16-move'.
64956         * modules/unistr/u16-move-tests: New file.
64957         * tests/unistr/test-u16-move.c: New file.
64959         Tests for module 'unistr/u8-move'.
64960         * modules/unistr/u8-move-tests: New file.
64961         * tests/unistr/test-u8-move.c: New file.
64962         * tests/unistr/test-move.h: New file.
64964         Tests for module 'unistr/u32-cpy'.
64965         * modules/unistr/u32-cpy-tests: New file.
64966         * tests/unistr/test-u32-cpy.c: New file.
64968         Tests for module 'unistr/u16-cpy'.
64969         * modules/unistr/u16-cpy-tests: New file.
64970         * tests/unistr/test-u16-cpy.c: New file.
64972         Tests for module 'unistr/u8-cpy'.
64973         * modules/unistr/u8-cpy-tests: New file.
64974         * tests/unistr/test-u8-cpy.c: New file.
64975         * tests/unistr/test-cpy.h: New file.
64977 2010-01-09  Bruno Haible  <bruno@clisp.org>
64979         Tests for module 'unistr/u32-uctomb'.
64980         * modules/unistr/u32-uctomb-tests: New file.
64981         * tests/unistr/test-u32-uctomb.c: New file.
64983         Tests for module 'unistr/u16-uctomb'.
64984         * modules/unistr/u16-uctomb-tests: New file.
64985         * tests/unistr/test-u16-uctomb.c: New file.
64987         Tests for module 'unistr/u8-uctomb'.
64988         * modules/unistr/u8-uctomb-tests: New file.
64989         * tests/unistr/test-u8-uctomb.c: New file.
64991         Tests for module 'unistr/u32-mbtoucr'.
64992         * modules/unistr/u32-mbtoucr-tests: New file.
64993         * tests/unistr/test-u32-mbtoucr.c: New file.
64995         Tests for module 'unistr/u16-mbtoucr'.
64996         * modules/unistr/u16-mbtoucr-tests: New file.
64997         * tests/unistr/test-u16-mbtoucr.c: New file.
64999         Tests for module 'unistr/u8-mbtoucr'.
65000         * modules/unistr/u8-mbtoucr-tests: New file.
65001         * tests/unistr/test-u8-mbtoucr.c: New file.
65003         Tests for module 'unistr/u32-mbtouc'.
65004         * modules/unistr/u32-mbtouc-tests: New file.
65005         * tests/unistr/test-u32-mbtouc.c: New file.
65007         Tests for module 'unistr/u16-mbtouc'.
65008         * modules/unistr/u16-mbtouc-tests: New file.
65009         * tests/unistr/test-u16-mbtouc.c: New file.
65011         Tests for module 'unistr/u8-mbtouc'.
65012         * modules/unistr/u8-mbtouc-tests: New file.
65013         * tests/unistr/test-u8-mbtouc.c: New file.
65015         Tests for module 'unistr/u32-mbtouc-unsafe'.
65016         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
65017         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
65018         * tests/unistr/test-u32-mbtouc.h: New file.
65020         Tests for module 'unistr/u16-mbtouc-unsafe'.
65021         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
65022         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
65023         * tests/unistr/test-u16-mbtouc.h: New file.
65025         Tests for module 'unistr/u8-mbtouc-unsafe'.
65026         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
65027         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
65028         * tests/unistr/test-u8-mbtouc.h: New file.
65030         Tests for module 'unistr/u32-mblen'.
65031         * modules/unistr/u32-mblen-tests: New file.
65032         * tests/unistr/test-u32-mblen.c: New file.
65034         Tests for module 'unistr/u16-mblen'.
65035         * modules/unistr/u16-mblen-tests: New file.
65036         * tests/unistr/test-u16-mblen.c: New file.
65038         Tests for module 'unistr/u8-mblen'.
65039         * modules/unistr/u8-mblen-tests: New file.
65040         * tests/unistr/test-u8-mblen.c: New file.
65042         Tests for module 'unistr/u32-to-u16'.
65043         * modules/unistr/u32-to-u16-tests: New file.
65044         * tests/unistr/test-u32-to-u16.c: New file.
65046         Tests for module 'unistr/u32-to-u8'.
65047         * modules/unistr/u32-to-u8-tests: New file.
65048         * tests/unistr/test-u32-to-u8.c: New file.
65050         Tests for module 'unistr/u16-to-u32'.
65051         * modules/unistr/u16-to-u32-tests: New file.
65052         * tests/unistr/test-u16-to-u32.c: New file.
65054         Tests for module 'unistr/u16-to-u8'.
65055         * modules/unistr/u16-to-u8-tests: New file.
65056         * tests/unistr/test-u16-to-u8.c: New file.
65058         Tests for module 'unistr/u8-to-u32'.
65059         * modules/unistr/u8-to-u32-tests: New file.
65060         * tests/unistr/test-u8-to-u32.c: New file.
65062         Tests for module 'unistr/u8-to-u16'.
65063         * modules/unistr/u8-to-u16-tests: New file.
65064         * tests/unistr/test-u8-to-u16.c: New file.
65066         Tests for module 'unistr/u32-check'.
65067         * modules/unistr/u32-check-tests: New file.
65068         * tests/unistr/test-u32-check.c: New file.
65070         Tests for module 'unistr/u16-check'.
65071         * modules/unistr/u16-check-tests: New file.
65072         * tests/unistr/test-u16-check.c: New file.
65074         Tests for module 'unistr/u8-check'.
65075         * modules/unistr/u8-check-tests: New file.
65076         * tests/unistr/test-u8-check.c: New file.
65078         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
65079         (category_equals): New function.
65080         (main): Add more tests.
65081         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
65083         * tests/unictype/test-bidi_byname.c (main): Add more tests.
65085 2010-01-10  Bruno Haible  <bruno@clisp.org>
65087         unistr/u*-strcoll: Try harder to distinguish different strings.
65088         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
65089         compare s1 and s2 to see if they are different.
65091 2010-01-10  Bruno Haible  <bruno@clisp.org>
65093         unistr/u*-stpncpy: Fix the return value.
65094         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
65095         description of the return value consistent with stpncpy in glibc.
65096         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
65097         written non-NUL unit.
65099 2010-01-10  Bruno Haible  <bruno@clisp.org>
65101         unistr/u*-next: Add missing dependencies.
65102         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
65103         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
65104         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
65106 2010-01-10  Bruno Haible  <bruno@clisp.org>
65108         unistr/u8-mbsnlen: Fix return value for incomplete character.
65109         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
65110         u8_mblen.
65111         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
65112         Remove unistr/u8-mblen.
65113         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
65114         u16_mblen.
65115         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
65116         Remove unistr/u16-mblen.
65118 2010-01-10  Bruno Haible  <bruno@clisp.org>
65120         wchar: Fix compilation error when <wchar.h> is used from coreutils.
65121         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
65122         Reported by Brian Gough <bjg@gnu.org> and
65123         Chris Clayton <chris2553@googlemail.com> via
65124         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
65126 2010-01-09  Bruno Haible  <bruno@clisp.org>
65128         unistr/u16-to-u32: Reject invalid input.
65129         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
65130         u16_mbtouc.
65131         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
65132         Remove unistr/u16-mbtouc.
65134         unistr/u16-to-u8: Reject invalid input.
65135         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
65136         u16_mbtouc.
65137         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
65138         Remove unistr/u16-mbtouc.
65140         unistr/u8-to-u32: Reject invalid input.
65141         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
65142         u8_mbtouc.
65143         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
65144         Remove unistr/u8-mbtouc.
65146         unistr/u8-to-u16: Reject invalid input.
65147         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
65148         u8_mbtouc.
65149         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
65150         Remove unistr/u8-mbtouc.
65152 2010-01-09  Bruno Haible  <bruno@clisp.org>
65154         Tests for module 'getlogin'.
65155         * modules/getlogin-tests: New file.
65156         * tests/test-getlogin.c: New file.
65158         New module 'getlogin'.
65159         * lib/unistd.in.h (getlogin): New declaration.
65160         * lib/getlogin.c: New file.
65161         * m4/getlogin.m4: New file.
65162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
65163         HAVE_GETLOGIN.
65164         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
65165         HAVE_GETLOGIN.
65166         * modules/getlogin: New file.
65167         * doc/posix-functions/getlogin.texi: Mention the new module.
65168         Reported by John W. Eaton <jwe@gnu.org>.
65170 2010-01-09  Bruno Haible  <bruno@clisp.org>
65172         getlogin_r: Support for native Windows.
65173         * lib/getlogin_r.c: Include <windows.h>
65174         (getlogin_r): Implement for native Windows.
65175         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
65176         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
65177         via John W. Eaton <jwe@gnu.org>.
65179 2010-01-09  Bruno Haible  <bruno@clisp.org>
65181         getlogin_r: Small fixes.
65182         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
65183         succeeds.
65184         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
65185         before testing whether getlogin_r is declared. No need to set
65186         HAVE_DECL_GETLOGIN_R to 1.
65187         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
65189 2010-01-09  Bruno Haible  <bruno@clisp.org>
65191         * lib/unistd.in.h (getlogin_r): Add comment.
65193 2010-01-09  Bruno Haible  <bruno@clisp.org>
65195         Tests for module 'getlogin_r'.
65196         * modules/getlogin_r-tests: New file.
65197         * tests/test-getlogin_r.c: New file.
65199 2010-01-09  Jim Meyering  <meyering@redhat.com>
65201         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
65202         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
65203         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
65205 2010-01-08  Simon Josefsson  <simon@josefsson.org>
65207         * lib/dup2.c (rpl_dup2): Improve comment.
65209 2010-01-08  Eric Blake  <ebb9@byu.net>
65211         maint.mk: allow packages to add makefile @@ exceptions
65212         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
65213         (sc_makefile_check): Rename...
65214         (sc_makefile_at_at_check): ...to this, and use hook.
65216         dup2: work around mingw bug
65217         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
65218         Reported by Simon Josefsson.
65220 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
65222         glob: Fix C++ compilation.
65223         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
65224         C++.
65226 2010-01-07  Bruno Haible  <bruno@clisp.org>
65228         Fix indentation of wctype.in.h, broken since 2007-01-06.
65229         * lib/wctype.in.h: Fix indentation of preprocessor directives.
65231 2010-01-07  Bruno Haible  <bruno@clisp.org>
65233         mbslen: Avoid collision with system function.
65234         * lib/string.in.h [MirBSD]: Include <wchar.h>.
65235         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
65236         * m4/mbslen.m4: New file.
65237         * modules/mbslen (Files): Add it.
65238         (configure.ac): Invoke gl_MBSLEN.
65239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
65240         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
65241         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
65242         via Ian Beckwith <ianb@erislabs.net>.
65244 2010-01-07  Bruno Haible  <bruno@clisp.org>
65246         dirent: Document the last fix.
65247         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
65249 2010-01-07  Bruno Haible  <bruno@clisp.org>
65251         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
65252         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
65253         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
65254         va_list are defined.
65255         * doc/posix-headers/stdio.texi: Document the bug of missing types.
65256         Reported by Eric Blake.
65258 2010-01-07  Bruno Haible  <bruno@clisp.org>
65260         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
65261         * modules/xlist (Depends-on): Add 'list',
65262         * modules/xoset (Depends-on): Add 'oset'.
65263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65265 2010-01-07  Bruno Haible  <bruno@clisp.org>
65267         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
65268         * doc/posix-functions/strncasecmp.texi: Likewise.
65270 2010-01-07  Bruno Haible  <bruno@clisp.org>
65272         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
65274 2010-01-07  John W. Eaton  <jwe@octave.org>
65276         wctype: allow C++ use
65277         * lib/wctype.in.h: Add extern "C" block for C++.
65279 2010-01-06  Eric Blake  <ebb9@byu.net>
65281         maint.mk: detect incorrect GFDL usage
65282         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
65284 2010-01-06  Jim Meyering  <meyering@redhat.com>
65285         and Eric Blake  <ebb9@byu.net>
65287         maint.mk: ignore multi-line copyright in NEWS
65288         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
65290 2010-01-06  Eric Blake  <ebb9@byu.net>
65292         select: add missing dependency
65293         * modules/select-tests (Depends-on): Move sockets dependency...
65294         * modules/select (Depends-on): ...here.
65295         Reported by Ian Beckwith.
65297         doc: regenerate INSTALL
65298         * doc/INSTALL: Reflect recent autoconf update.
65299         * doc/INSTALL.ISO: Likewise.
65300         * doc/INSTALL.UTF-8: Likewise.
65302         pread: fix compilation on glibc
65303         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
65304         Reported by Ralf Wildenhues.
65306         dirent: fix test failure
65307         * lib/dirent.in.h (includes): Guarantee ino_t.
65308         Reported by Ralf Wildenhues.
65310 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
65312         linkat, renameat: avoid bad free
65313         * lib/at-func2.c (at_func2): Fix typo.
65314         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
65316 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65318         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
65319         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
65320         to avoid failure of symlink test later.
65322 2010-01-06  Eric Blake  <ebb9@byu.net>
65324         stdio, unistd: guarantee ssize_t
65325         * lib/unistd.in.h (includes): Ensure that types required by POSIX
65326         2008 are exposed when needed.
65327         * lib/stdio.in.h (includes): Likewise.
65328         Reported by Ralf Wildenhues.
65330 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
65332         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
65333         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
65334         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
65336 2010-01-06  Jim Meyering  <meyering@redhat.com>
65338         readtokens: this module *does* require xalloc.h
65339         It uses only functions that were omitted by the old syntax-check rule.
65340         * lib/readtokens.c: Include "xalloc.h" once again.
65341         * modules/readtokens (Depends-on): Add xalloc.
65342         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
65344 2010-01-05  Eric Blake  <ebb9@byu.net>
65346         maint: support 'make announcement' from a VPATH build
65347         * top/maint.mk (announcement): Look for correct NEWS file.
65349 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
65351         utimens (fdutimens): ignore a negative FD, per contract
65352         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
65353         when we have a valid file descriptor.  Otherwise, using a brand
65354         new glibc (with just-patched futimens that now fails with EBADF)
65355         would cause this function to fail with ENOSYS.
65356         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
65357         See also http://bugzilla.redhat.com/552320.
65359 2010-01-05  Eric Blake  <ebb9@byu.net>
65361         strcase: document what it provides
65362         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
65363         gnulib module.
65364         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
65365         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
65367 2010-01-05  Jim Meyering  <meyering@redhat.com>
65369         maint: remove useless inclusions of "xalloc.h"
65370         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
65371         * lib/readtokens.c: Likewise.
65372         * lib/same.c: Likewise.
65373         * modules/getloadavg (Depends-on): Remove xalloc.
65374         * modules/readtokens: Likewise.
65375         * modules/same: Likewise.
65377         maint.mk: include 4 more function names in alloca.h-checking regexp
65378         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
65379         regexp.  Before, we would give a false-positive (saying alloca.h
65380         is included unnecessarily) when the only uses involved omitted symbols.
65382         xalloc.h: use consistent formatting
65383         * lib/xalloc.h: Move declarations to start in the first column.
65385 2010-01-05  Eric Blake  <ebb9@byu.net>
65387         mkdir: avoid xalloc
65388         * lib/mkdir.c (includes): Drop unused header.
65389         Reported by John W. Eaton.
65391 2010-01-04  Jim Meyering  <meyering@redhat.com>
65393         nl_langinfo: avoid configure-time syntax error
65394         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
65395         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
65396         the empty string.  Don't let that provoke a shell syntax error.
65398         regcomp, regexec, fnmatch: avoid array bounds read error
65399         * lib/regcomp.c (build_equiv_class): From glibc:
65400         Use only the low 24 bits of a findidx return value as an index
65401         into the weights array.  Patch by Ulrich Drepper:
65402         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
65403         * lib/regexec.c (check_node_accept_bytes): Likewise.
65404         * lib/fnmatch_loop.c (FCT): Likewise.
65406         regcomp: skip collseq lookup when there are no rules
65407         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
65408         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
65410         regcomp: recognize ill-formed { } expressions
65411         * lib/regcomp.c (parse_dup_op): From glibc:
65412         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
65414         regcomp: fix typo in comment
65415         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
65416         s/satisfy/satisfies/.
65418         regcomp: sync from glibc: remove dead store
65419         * lib/regcomp.c (duplicate_node_closure): Remove useless
65420         search_duplicated_node call and dead store.
65422         regcomp: sync from glibc; always use nl_langinfo
65423         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
65424         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
65425         * modules/regex (Depends-on): Add nl_langinfo.
65427 2010-01-04  Eric Blake  <ebb9@byu.net>
65429         fdopendir: fix configure test
65430         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
65432 2010-01-01  Bruno Haible  <bruno@clisp.org>
65434         wchar: Remove unused configure check.
65435         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
65437 2010-01-01  Eric Blake  <ebb9@byu.net>
65439         headers: make check of system header explicit
65440         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
65441         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
65442         ourselves.
65443         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
65447         internals.
65448         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
65449         missing.
65450         Suggested by Bruno Haible.
65452 2010-01-01  Jim Meyering  <meyering@redhat.com>
65454         ChangeLog: tweak to eliminate unnecessary copyright line
65455         * ChangeLog: Remove a copyright line that was mistakenly updated
65456         by today's update-copyright run.  Reported by Eric Blake.
65458         test-update-copyright: don't let envvar setting cause test failure
65459         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
65461 2010-01-01  Bruno Haible  <bruno@clisp.org>
65463         localename: Avoid gcc warning.
65464         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
65465         function if it is not used.
65467 2010-01-01  Jim Meyering  <meyering@redhat.com>
65469         update nearly all FSF copyright year lists to include 2010
65470         Use the same procedure as for 2009, outlined in
65471         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
65473         version-etc: set COPYRIGHT_YEAR to 2010
65474         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
65476 2009-12-31  Eric Blake  <ebb9@byu.net>
65478         doc: correct availability of cygwin 1.5.x getopt
65479         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
65480         variables.
65481         * doc/posix-functions/opterr.texi (opterr): Likewise.
65482         * doc/posix-functions/optind.texi (optind): Likewise.
65483         * doc/posix-functions/optopt.texi (optopt): Likewise.
65484         * doc/posix-functions/tzname.texi (tzname): Likewise.
65486         openat: update maintainer
65487         * modules/openat (Maintainer): Add myself.
65489         utimens: avoid shadowing warning
65490         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
65491         buffers into one, to avoid shadowing, as well as avoiding a
65492         redundant stat.
65493         Reported by Jim Meyering.
65495         test-dup2: avoid compiler warning
65496         * tests/test-dup2.c (is_inheritable): Only define if used.
65498 2010-01-01  Bruno Haible  <bruno@clisp.org>
65500         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
65501         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
65502         defined, use wctomb instead of wcrtomb.
65504 2010-01-01  Bruno Haible  <bruno@clisp.org>
65506         iconv: Reject native Solaris iconv.
65507         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
65508         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
65510 2009-12-31  Bruno Haible  <bruno@clisp.org>
65512         * tests/test-signal.c (main): Remove test of 'SIG'.
65514 2009-12-31  Bruno Haible  <bruno@clisp.org>
65516         spawn: Fix incomplete fix.
65517         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
65518         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
65519         warnings for GNULIB_POSIXCHECK again.
65520         Reported by Eric Blake.
65522 2009-12-31  Bruno Haible  <bruno@clisp.org>
65524         Avoid namespace pollution on glibc systems.
65525         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
65526         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
65527         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
65528         glibc systems.
65530 2009-12-31  Bruno Haible  <bruno@clisp.org>
65532         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
65533         (gl_REPLACE_WCHAR_H): Turn into a no-op.
65534         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
65535         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
65536         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
65537         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
65538         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
65540 2009-12-31  Bruno Haible  <bruno@clisp.org>
65542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
65543         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
65544         afterwards.
65546 2009-12-31  Bruno Haible  <bruno@clisp.org>
65548         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
65549         SYS_UTSNAME_H.
65551 2009-12-31  Bruno Haible  <bruno@clisp.org>
65553         spawn: Fix misapplied patch.
65554         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
65555         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
65556         warnings for GNULIB_POSIXCHECK.
65558 2009-12-31  Bruno Haible  <bruno@clisp.org>
65560         times: Update after sys_times changed.
65561         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
65562         * modules/times (Files): Add it.
65563         (configure.ac): Invoke gl_FUNC_TIMES.
65565 2009-12-31  Bruno Haible  <bruno@clisp.org>
65567         Use AC_C_INLINE where necessary.
65568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
65569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
65570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
65571         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65572         * m4/mbfile.m4 (gl_MBFILE): Likewise.
65573         * m4/mbiter.m4 (gl_MBITER): Likewise.
65574         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65575         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
65576         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
65577         * modules/u64 (configure.ac): Likewise.
65579 2009-12-31  Bruno Haible  <bruno@clisp.org>
65581         Use AC_C_INLINE instead of module 'inline' where possible.
65582         * modules/inline (Description): Clarify purpose.
65583         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
65584         * modules/count-one-bits (Depends-on): Remove inline.
65585         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
65586         * modules/openat (Depends-on): Remove inline.
65587         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
65588         instead of depending on module 'inline'.
65589         * modules/filevercmp (Depends-on, configure.ac): Likewise.
65590         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
65591         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
65592         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
65593         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
65594         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
65595         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
65596         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
65597         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
65598         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
65599         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
65600         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
65601         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
65602         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
65603         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
65604         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
65605         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
65606         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
65607         Likewise.
65608         * modules/unictype/property-ascii-hex-digit (Depends-on,
65609         configure.ac): Likewise.
65610         * modules/unictype/property-bidi-arabic-digit (Depends-on,
65611         configure.ac): Likewise.
65612         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
65613         configure.ac): Likewise.
65614         * modules/unictype/property-bidi-block-separator (Depends-on,
65615         configure.ac): Likewise.
65616         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
65617         configure.ac): Likewise.
65618         * modules/unictype/property-bidi-common-separator (Depends-on,
65619         configure.ac): Likewise.
65620         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
65621         Likewise.
65622         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
65623         configure.ac): Likewise.
65624         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
65625         configure.ac): Likewise.
65626         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
65627         configure.ac): Likewise.
65628         * modules/unictype/property-bidi-european-digit (Depends-on,
65629         configure.ac): Likewise.
65630         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
65631         configure.ac): Likewise.
65632         * modules/unictype/property-bidi-left-to-right (Depends-on,
65633         configure.ac): Likewise.
65634         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
65635         configure.ac): Likewise.
65636         * modules/unictype/property-bidi-other-neutral (Depends-on,
65637         configure.ac): Likewise.
65638         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
65639         Likewise.
65640         * modules/unictype/property-bidi-segment-separator (Depends-on,
65641         configure.ac): Likewise.
65642         * modules/unictype/property-bidi-whitespace (Depends-on,
65643         configure.ac): Likewise.
65644         * modules/unictype/property-combining (Depends-on, configure.ac):
65645         Likewise.
65646         * modules/unictype/property-composite (Depends-on, configure.ac):
65647         Likewise.
65648         * modules/unictype/property-currency-symbol (Depends-on,
65649         configure.ac): Likewise.
65650         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
65651         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
65652         Likewise.
65653         * modules/unictype/property-default-ignorable-code-point (Depends-on,
65654         configure.ac): Likewise.
65655         * modules/unictype/property-deprecated (Depends-on, configure.ac):
65656         Likewise.
65657         * modules/unictype/property-diacritic (Depends-on, configure.ac):
65658         Likewise.
65659         * modules/unictype/property-extender (Depends-on, configure.ac):
65660         Likewise.
65661         * modules/unictype/property-format-control (Depends-on, configure.ac):
65662         Likewise.
65663         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
65664         Likewise.
65665         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
65666         Likewise.
65667         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
65668         Likewise.
65669         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
65670         Likewise.
65671         * modules/unictype/property-hyphen (Depends-on, configure.ac):
65672         Likewise.
65673         * modules/unictype/property-id-continue (Depends-on, configure.ac):
65674         Likewise.
65675         * modules/unictype/property-id-start (Depends-on, configure.ac):
65676         Likewise.
65677         * modules/unictype/property-ideographic (Depends-on, configure.ac):
65678         Likewise.
65679         * modules/unictype/property-ids-binary-operator (Depends-on,
65680         configure.ac): Likewise.
65681         * modules/unictype/property-ids-trinary-operator (Depends-on,
65682         configure.ac): Likewise.
65683         * modules/unictype/property-ignorable-control (Depends-on,
65684         configure.ac): Likewise.
65685         * modules/unictype/property-iso-control (Depends-on, configure.ac):
65686         Likewise.
65687         * modules/unictype/property-join-control (Depends-on, configure.ac):
65688         Likewise.
65689         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
65690         Likewise.
65691         * modules/unictype/property-line-separator (Depends-on, configure.ac):
65692         Likewise.
65693         * modules/unictype/property-logical-order-exception (Depends-on,
65694         configure.ac): Likewise.
65695         * modules/unictype/property-lowercase (Depends-on, configure.ac):
65696         Likewise.
65697         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
65698         * modules/unictype/property-non-break (Depends-on, configure.ac):
65699         Likewise.
65700         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
65701         Likewise.
65702         * modules/unictype/property-numeric (Depends-on, configure.ac):
65703         Likewise.
65704         * modules/unictype/property-other-alphabetic (Depends-on,
65705         configure.ac): Likewise.
65706         * modules/unictype/property-other-default-ignorable-code-point
65707         (Depends-on, configure.ac): Likewise.
65708         * modules/unictype/property-other-grapheme-extend (Depends-on,
65709         configure.ac): Likewise.
65710         * modules/unictype/property-other-id-continue (Depends-on,
65711         configure.ac): Likewise.
65712         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
65713         Likewise.
65714         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
65715         Likewise.
65716         * modules/unictype/property-other-math (Depends-on, configure.ac):
65717         Likewise.
65718         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
65719         Likewise.
65720         * modules/unictype/property-paired-punctuation (Depends-on,
65721         configure.ac): Likewise.
65722         * modules/unictype/property-paragraph-separator (Depends-on,
65723         configure.ac): Likewise.
65724         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
65725         Likewise.
65726         * modules/unictype/property-pattern-white-space (Depends-on,
65727         configure.ac): Likewise.
65728         * modules/unictype/property-private-use (Depends-on, configure.ac):
65729         Likewise.
65730         * modules/unictype/property-punctuation (Depends-on, configure.ac):
65731         Likewise.
65732         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
65733         Likewise.
65734         * modules/unictype/property-radical (Depends-on, configure.ac):
65735         Likewise.
65736         * modules/unictype/property-sentence-terminal (Depends-on,
65737         configure.ac): Likewise.
65738         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
65739         Likewise.
65740         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
65741         * modules/unictype/property-terminal-punctuation (Depends-on,
65742         configure.ac): Likewise.
65743         * modules/unictype/property-titlecase (Depends-on, configure.ac):
65744         Likewise.
65745         * modules/unictype/property-unassigned-code-value (Depends-on,
65746         configure.ac): Likewise.
65747         * modules/unictype/property-unified-ideograph (Depends-on,
65748         configure.ac): Likewise.
65749         * modules/unictype/property-uppercase (Depends-on, configure.ac):
65750         Likewise.
65751         * modules/unictype/property-variation-selector (Depends-on,
65752         configure.ac): Likewise.
65753         * modules/unictype/property-white-space (Depends-on, configure.ac):
65754         Likewise.
65755         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
65756         Likewise.
65757         * modules/unictype/property-xid-start (Depends-on, configure.ac):
65758         Likewise.
65759         * modules/unictype/property-zero-width (Depends-on, configure.ac):
65760         Likewise.
65761         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
65762         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
65763         Likewise.
65765 2009-12-31  Bruno Haible  <bruno@clisp.org>
65767         Remove unnecessary AC_C_INLINE invocation.
65768         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
65769         since 2009-08-21.
65771 2009-12-31  Jim Meyering  <meyering@redhat.com>
65773         maint.mk: don't require explicit gpg_key_ID in cfg.mk
65774         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
65775         With this change, we can all remove the gpg_key_ID = ... definition
65776         from our respective cfg.mk files.
65778         maint.mk: create announcement template in ~/, not in /tmp
65779         * top/maint.mk (emit_upload_commands): Adjust.
65780         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
65781         Remove temporary file, .ci-msg.
65783 2009-12-31  Eric Blake  <ebb9@byu.net>
65785         link-warning: always build headers with link warnings
65786         * modules/arpa_inet (Makefile.am): Always build replacement
65787         header.
65788         * modules/ctype (Makefile.am): Likewise.
65789         * modules/dirent (Makefile.am): Likewise.
65790         * modules/inttypes (Makefile.am): Likewise.
65791         * modules/langinfo (Makefile.am): Likewise.
65792         * modules/locale (Makefile.am): Likewise.
65793         * modules/spawn (Makefile.am): Likewise.
65794         * modules/sys_file (Makefile.am): Likewise.
65795         * modules/sys_ioctl (Makefile.am): Likewise.
65796         * modules/sys_select (Makefile.am): Likewise.
65797         * modules/sys_socket (Makefile.am): Likewise.
65798         * modules/sys_times (Makefile.am): Likewise.
65799         * modules/sys_utsname (Makefile.am): Likewise.
65800         * modules/sys_wait (Makefile.am): Likewise.
65801         * modules/wchar (Makefile.am): Likewise.
65802         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
65803         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
65804         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
65805         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
65806         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
65807         Likewise.
65808         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65809         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
65810         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
65811         Likewise.
65812         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
65813         Likewise.
65814         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
65815         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
65816         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
65817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65818         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
65819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
65820         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
65821         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
65822         (gl_WCHAR_H_DEFAULTS): Likewise.
65824 2009-12-31  Eric Blake  <ebb9@byu.net>
65826         signal, spawn: use link warnings
65827         * lib/signal.in.h (sigset_t): Make unconditional.
65828         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
65829         (sigpending, sigprocmask, sigaction): Add link warnings.
65830         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
65831         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
65832         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
65833         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
65834         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
65835         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
65836         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
65837         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
65838         (posix_spawn_file_actions_destroy)
65839         (posix_spawn_file_actions_addopen)
65840         (posix_spawn_file_actions_addclose)
65841         (posix_spawn_file_actions_adddup2): Likewise.
65842         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
65843         * tests/test-signal.c (main): Enhance test.
65845         spawn: improve wrapper support
65846         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
65847         (gl_SPAWN_H_DEFAULTS): New defaults.
65848         * modules/spawn (Makefile.am): Substitute them.
65849         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
65850         Only declare if missing or broken.
65852         sys_times, sys_utsname: use include_next
65853         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
65854         header.
65855         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
65856         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
65857         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
65858         * modules/sys_times (Depends-on): Add include_next.
65859         (Makefile.am): Substitute additional values.
65860         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
65861         * lib/sys_times.in.h (includes): Include native header, if
65862         available.
65863         * lib/sys_utsname.in.h (includes): Likewise.
65864         * tests/test-sys_times.c (main): Enhance test.
65866         fdutimensat: revert prior patch
65867         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
65868         utimens.h.
65869         Reported by Bruno Haible.
65871 2009-12-30  Eric Blake  <ebb9@byu.net>
65873         sys_wait: drop link-warning dependency
65874         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
65875         link-warning efforts.
65876         * lib/sys_wait.in.h: Likewise.
65878         fdutimensat: remove bogus dependency
65879         * modules/fdutimensat (Depends-on): Drop inline.
65881         unistd: fix typo
65882         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
65884 2009-12-30  Bruno Haible  <bruno@clisp.org>
65886         Fix compilation error with Solaris cc.
65887         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
65888         * lib/unicase/u16-is-invariant.c: Likewise.
65889         * lib/unicase/u32-is-invariant.c: Likewise.
65890         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65892 2009-12-30  Bruno Haible  <bruno@clisp.org>
65894         Fix test crash.
65895         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
65896         locales.
65897         Reported by Simon Josefsson <simon@josefsson.org>.
65899 2009-12-30  Bruno Haible  <bruno@clisp.org>
65901         Fix compilation error on most platforms.
65902         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
65903         Reported by Simon Josefsson <simon@josefsson.org>
65904         and Nelson H. F. Beebe <beebe@math.utah.edu>.
65906 2009-12-30  Eric Blake  <ebb9@byu.net>
65908         futimens, utimensat: work around ntfs-3g bug
65909         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
65910         a ctime bug is present, and expand workaround to cover ntfs-3g.
65911         * lib/utimens.c (fdutimens, lutimens): Likewise.
65912         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
65913         (validate_timespec): Adjust return value.
65914         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
65915         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
65916         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
65918 2009-12-29  Eric Blake  <ebb9@byu.net>
65920         link-warning: make usage consistent
65921         * modules/ctype (Depends-on): Add link-warning.
65922         (Makefile.am): Update rules accordingly.
65923         * modules/langinfo (Depends-on, Makefile.am): Likewise.
65924         * modules/locale (Depends-on, Makefile.am): Likewise.
65925         * modules/sys_file (Makefile.am): Likewise.
65926         * modules/getopt-posix (Makefile.am): Delete unused link warning
65927         efforts.
65928         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
65929         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
65930         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
65931         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
65933         stdio: remove unused variables
65934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
65935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
65936         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65938         tests: test more substitute headers
65939         * modules/ctype-tests: New file.
65940         * modules/dirent-tests: Likewise.
65941         * modules/spawn-tests: Likewise.
65942         * modules/sys_file-tests: Likewise.
65943         * modules/sys_ioctl-tests: Likewise.
65944         * modules/sys_wait-tests: Likewise.
65945         * tests/test-ctype.c: Likewise.
65946         * tests/test-dirent.c: Likewise.
65947         * tests/test-spawn.c: Likewise.
65948         * tests/test-sys_file.c: Likewise.
65949         * tests/test-sys_ioctl.c: Likewise.
65950         * tests/test-sys_wait.c: Likewise.
65951         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
65952         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
65953         whether or not flock is in use.
65955         tests: remove License section from module
65956         * modules/arpa_inet-tests: Remove unneeded section.
65957         * modules/byteswap-tests: Likewise.
65958         * modules/ceilf-tests: Likewise.
65959         * modules/ceill-tests: Likewise.
65960         * modules/crypto/des-tests: Likewise.
65961         * modules/crypto/gc-arcfour-tests: Likewise.
65962         * modules/crypto/gc-arctwo-tests: Likewise.
65963         * modules/crypto/gc-des-tests: Likewise.
65964         * modules/crypto/gc-hmac-md5-tests: Likewise.
65965         * modules/crypto/gc-hmac-sha1-tests: Likewise.
65966         * modules/crypto/gc-md2-tests: Likewise.
65967         * modules/crypto/gc-md4-tests: Likewise.
65968         * modules/crypto/gc-md5-tests: Likewise.
65969         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
65970         * modules/crypto/gc-rijndael-tests: Likewise.
65971         * modules/crypto/gc-sha1-tests: Likewise.
65972         * modules/crypto/gc-tests: Likewise.
65973         * modules/crypto/md2-tests: Likewise.
65974         * modules/crypto/md4-tests: Likewise.
65975         * modules/fcntl-h-tests: Likewise.
65976         * modules/floorf-tests: Likewise.
65977         * modules/floorl-tests: Likewise.
65978         * modules/frexp-nolibm-tests: Likewise.
65979         * modules/frexp-tests: Likewise.
65980         * modules/frexpl-nolibm-tests: Likewise.
65981         * modules/frexpl-tests: Likewise.
65982         * modules/getaddrinfo-tests: Likewise.
65983         * modules/inttypes-tests: Likewise.
65984         * modules/isfinite-tests: Likewise.
65985         * modules/isinf-tests: Likewise.
65986         * modules/ldexpl-tests: Likewise.
65987         * modules/locale-tests: Likewise.
65988         * modules/math-tests: Likewise.
65989         * modules/netdb-tests: Likewise.
65990         * modules/netinet_in-tests: Likewise.
65991         * modules/printf-frexp-tests: Likewise.
65992         * modules/printf-frexpl-tests: Likewise.
65993         * modules/priv-set-tests: Likewise.
65994         * modules/random_r-tests: Likewise.
65995         * modules/round-tests: Likewise.
65996         * modules/roundf-tests: Likewise.
65997         * modules/roundl-tests: Likewise.
65998         * modules/search-tests: Likewise.
65999         * modules/select-tests: Likewise.
66000         * modules/signal-tests: Likewise.
66001         * modules/stdbool-tests: Likewise.
66002         * modules/stddef-tests: Likewise.
66003         * modules/stdint-tests: Likewise.
66004         * modules/stdio-tests: Likewise.
66005         * modules/stdlib-tests: Likewise.
66006         * modules/string-tests: Likewise.
66007         * modules/strings-tests: Likewise.
66008         * modules/sys_select-tests: Likewise.
66009         * modules/sys_socket-tests: Likewise.
66010         * modules/sys_stat-tests: Likewise.
66011         * modules/sys_time-tests: Likewise.
66012         * modules/sys_utsname-tests: Likewise.
66013         * modules/sysexits-tests: Likewise.
66014         * modules/time-tests: Likewise.
66015         * modules/trunc-tests: Likewise.
66016         * modules/truncf-tests: Likewise.
66017         * modules/truncl-tests: Likewise.
66018         * modules/tsearch-tests: Likewise.
66019         * modules/unistd-tests: Likewise.
66020         * modules/wchar-tests: Likewise.
66021         * modules/wctype-tests: Likewise.
66023         tests: fix license on several tests
66024         * tests/test-des.c: Update to GPLv3+.
66025         * tests/test-flock.c: Likewise.
66026         * tests/test-fsync.c: Likewise.
66027         * tests/test-futimens.h: Likewise.
66028         * tests/test-gc-arcfour.c: Likewise.
66029         * tests/test-gc-arctwo.c: Likewise.
66030         * tests/test-gc-des.c: Likewise.
66031         * tests/test-gc-hmac-md5.c: Likewise.
66032         * tests/test-gc-hmac-sha1.c: Likewise.
66033         * tests/test-gc-md2.c: Likewise.
66034         * tests/test-gc-md4.c: Likewise.
66035         * tests/test-gc-md5.c: Likewise.
66036         * tests/test-gc-pbkdf2-sha1.c: Likewise.
66037         * tests/test-gc-rijndael.c: Likewise.
66038         * tests/test-gc-sha1.c: Likewise.
66039         * tests/test-gc.c: Likewise.
66040         * tests/test-getcwd.c: Likewise.
66041         * tests/test-link.c: Likewise.
66042         * tests/test-link.h: Likewise.
66043         * tests/test-lutimens.h: Likewise.
66044         * tests/test-md2.c: Likewise.
66045         * tests/test-md4.c: Likewise.
66046         * tests/test-mkdir.h: Likewise.
66047         * tests/test-rename.c: Likewise.
66048         * tests/test-rename.h: Likewise.
66049         * tests/test-safe-alloc.c: Likewise.
66050         * tests/test-utimens-common.h: Likewise.
66051         * tests/test-utimens.h: Likewise.
66053         maint: sync license texts
66054         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
66055         * doc/gpl-3.0.texi: Revert copyright year update.
66056         * doc/lgpl-3.0.texi: Likewise.
66058 2009-12-29  Jim Meyering  <meyering@redhat.com>
66060         update nearly all FSF copyright year lists to include 2009
66061         The files named by the following are exempted:
66062             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
66063               test -f "$dst" && { echo "$dst"; continue; }
66064               test -d "$dst" || continue
66065               echo "$dst"/$(basename "$src")
66066             done > exempt
66067             git ls-files tests/unictype >> exempt
66068         In the remaining files, convert to all-interval notation if
66069         - there is already at least one year interval like 2000-2003
66070         - the file is maintained by me
66071         - the file is in lib/uni*/, where that style already prevails
66072         Otherwise, use update-copyright's default.
66074 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66075         and Eric Blake  <ebb9@byu.net>
66077         tests: don't require debug system() to pass
66078         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
66079         * tests/test-rmdir.h (test_rmdir_func): Likewise.
66080         * tests/test-unlink.h (test_unlink_func): Likewise.
66081         * tests/test-fstatat.c (main): ...into callers.
66082         * tests/test-lstat.c (main): Likewise.
66083         * tests/test-rmdir.c (main): Likewise.
66084         * tests/test-unlink.c (main): Likewise.
66085         * tests/test-unlinkat.c (main): Likewise.
66086         * tests/test-areadlink-with-size.c (main): Don't require a
66087         debug-only system call to pass, aiding cross-testing to mingw.
66088         * tests/test-areadlink.c (main): Likewise.
66089         * tests/test-areadlinkat-with-size.c (main): Likewise.
66090         * tests/test-areadlinkat.c (main): Likewise.
66091         * tests/test-canonicalize-lgpl.c (main): Likewise.
66092         * tests/test-canonicalize.c (main): Likewise.
66093         * tests/test-chown.c (main): Likewise.
66094         * tests/test-fchownat.c (main): Likewise.
66095         * tests/test-lchown.c (main): Likewise.
66096         * tests/test-fdutimensat.c (main): Likewise.
66097         * tests/test-futimens.c (main): Likewise.
66098         * tests/test-link.c (main): Likewise.
66099         * tests/test-linkat.c (main): Likewise.
66100         * tests/test-mkdir.c (main): Likewise.
66101         * tests/test-mkdirat.c (main): Likewise.
66102         * tests/test-mkfifo.c (main): Likewise.
66103         * tests/test-mkfifoat.c (main): Likewise.
66104         * tests/test-mknod.c (main): Likewise.
66105         * tests/test-readlink.c (main): Likewise.
66106         * tests/test-remove.c (main): Likewise.
66107         * tests/test-rename.c (main): Likewise.
66108         * tests/test-renameat.c (main): Likewise.
66109         * tests/test-symlink.c (main): Likewise.
66110         * tests/test-symlinkat.c (main): Likewise.
66111         * tests/test-utimens.c (main): Likewise.
66112         * tests/test-utimensat.c (main): Likewise.
66114 2009-12-29  Simon Josefsson  <simon@josefsson.org>
66116         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
66117         on $(UNUSED_PARAMETER_H) to avoid build failure.
66119 2009-12-28  Jim Meyering  <meyering@redhat.com>
66121         update-copyright: you may specify a max. line length other than 72
66122         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
66124         maint: use consistent FSF copyright line syntax
66125         * lib/posixtm.c: Add missing comma in FSF copyright line.
66126         * lib/posixtm.h: Likewise.
66127         * lib/getugroups.c: Add missing ", Inc.".
66129         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
66130         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
66131         FSF copyright line.  Remove trailing blanks.
66133 2009-12-28  Eric Blake  <ebb9@byu.net>
66135         test-dup2: reduce dependencies
66136         * modules/cloexec (Configure.ac): Set witness.
66137         * modules/dup2-tests (Depends-on): Drop cloexec.
66138         * tests/test-dup2.c (main): Skip portion of test if cloexec module
66139         not present.
66140         Suggested by Bruno Haible.
66142 2009-12-26  Bruno Haible  <bruno@clisp.org>
66144         Remove an unneeded dependency.
66145         * modules/fseterr (Depends-on): Remove dup2.
66147 2009-12-26  Eric Blake  <ebb9@byu.net>
66149         tests: use macros.h in more places
66150         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
66151         (ASSERT_STREAM): Provide default of stderr.
66152         * tests/test-dirent-safer.c: Include macros.h, using alternate
66153         stream for assertions.
66154         * tests/test-dup-safer.c: Likewise.
66155         * tests/test-freopen-safer.c: Likewise.
66156         * tests/test-getopt.c: Likewise.
66157         * tests/test-openat-safer.c: Likewise.
66158         * tests/test-pipe.c: Likewise.
66159         * tests/test-popen-safer.c: Likewise.
66160         * modules/dirent-safer-tests (Files): Include macros.h.
66161         * modules/unistd-safer-tests (Files): Likewise.
66162         * modules/freopen-safer-tests (Files): Likewise.
66163         * modules/getopt-posix-tests (Files): Likewise.
66164         * modules/openat-safer-tests (Files): Likewise.
66165         * modules/pipe-tests (Files): Likewise.
66167 2009-12-26  Bruno Haible  <bruno@clisp.org>
66169         javacomp-script: Portability fix.
66170         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
66171         that it also works on Solaris.
66173 2009-12-26  Bruno Haible  <bruno@clisp.org>
66175         localename: Fix storage allocation of gl_locale_name_thread's result.
66176         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
66177         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
66178         all platforms that have 'uselocale'.
66179         (gl_locale_name_thread_unsafe): New function, extracted from
66180         gl_locale_name_thread.
66181         (gl_locale_name_thread): Call struniq on all platforms that have
66182         'uselocale'.
66183         * tests/test-localename.c (test_locale_name_thread): Check that the
66184         resulting strings are permanently allocated.
66185         * modules/localename-tests (Depends-on): Add strdup.
66187 2009-12-26  Bruno Haible  <bruno@clisp.org>
66189         * tests/test-localename.c (categories): Fill in the strings.
66191 2009-12-26  Jim Meyering  <meyering@redhat.com>
66193         isdir: complete the removal of m4/isdir.m4
66194         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
66196         isdir: clean up, since at least grep still uses it
66197         * lib/isdir.c: Include "isdir.h".
66198         (S_ISDIR): Remove now-unneeded definition.
66199         * modules/isdir (Files): Add lib/isdir.h.
66200         * lib/isdir.h: New file, with declaration.
66201         * m4/isdir.m4: Remove file -- unneeded.
66203 2009-12-25  Bruno Haible  <bruno@clisp.org>
66205         selinux-h: Make generated .h files standalone.
66206         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
66207         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
66208         * lib/se-selinux.in.h: Likewise.
66209         * modules/selinux-h (Depends-on): Add unused-parameter.
66210         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
66211         selinux/selinux.h and selinux/context.h.
66212         Suggested by Eric Blake.
66214 2009-12-25  Bruno Haible  <bruno@clisp.org>
66216         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
66217         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
66218         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
66219         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
66220         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
66222 2009-12-24  Bruno Haible  <bruno@clisp.org>
66224         openat: Fix warning.
66225         * lib/openat-proc.c: Include <unistd.h>.
66227 2009-12-24  Bruno Haible  <bruno@clisp.org>
66229         New module 'unused-parameter'.
66230         * build-aux/unused-parameter.h: New file, extracted from earlier
66231         gnulib-common.m4.
66232         * modules/unused-parameter: New file.
66233         * lib/unistr.h: Include unused-parameter.h.
66234         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
66235         _GL_UNUSED.
66236         * modules/unistr/base (Depends-on): Add unused-parameter.
66238 2009-12-24  Bruno Haible  <bruno@clisp.org>
66240         Add missing dependencies to 'extensions' module.
66241         * m4/extensions.m4: Add comment.
66242         * modules/accept4 (Depends-on): Add extensions.
66243         * modules/dup3 (Depends-on): Likewise.
66244         * modules/fcntl (Depends-on): Likewise.
66245         * modules/futimens (Depends-on): Likewise.
66246         * modules/mknod (Depends-on): Likewise.
66247         * modules/pipe2 (Depends-on): Likewise.
66248         * modules/stat-time (Depends-on): Likewise.
66249         * modules/strcasestr-simple (Depends-on): Likewise.
66250         * modules/strsignal (Depends-on): Likewise.
66251         * modules/utimensat (Depends-on): Likewise.
66252         * modules/localcharset (Depends-on): Likewise. Needed because of
66253         gl_FCNTL_O_FLAGS.
66254         * modules/wcrtomb (Depends-on): Likewise. Needed because of
66255         AC_TYPE_MBSTATE_T.
66256         * modules/wcsnrtombs (Depends-on): Likewise.
66257         * modules/wcsrtombs (Depends-on): Likewise.
66259 2009-12-24  Bruno Haible  <bruno@clisp.org>
66261         binary-io: Avoid gcc warning due to SET_BINARY.
66262         * lib/binary-io.h (SET_BINARY): Cast the result to void.
66263         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
66265 2009-12-24  Bruno Haible  <bruno@clisp.org>
66267         Avoid future namespace pollution on glibc systems.
66268         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
66269         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
66270         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
66271         glibc systems.
66273 2009-12-24  Bruno Haible  <bruno@clisp.org>
66275         Refactor common macros used in tests.
66276         * tests/macros.h: New file.
66277         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
66278         and/or <stdlib.h>, if appropriate.
66279         (ASSERT, SIZEOF): Remove macros.
66280         * tests/test-areadlink-with-size.c: Likewise.
66281         * tests/test-areadlinkat.c: Likewise.
66282         * tests/test-areadlinkat-with-size.c: Likewise.
66283         * tests/test-argmatch.c: Likewise.
66284         * tests/test-argv-iter.c: Likewise.
66285         * tests/test-array-mergesort.c: Likewise.
66286         * tests/test-array_list.c: Likewise.
66287         * tests/test-array_oset.c: Likewise.
66288         * tests/test-avltree_list.c: Likewise.
66289         * tests/test-avltree_oset.c: Likewise.
66290         * tests/test-avltreehash_list.c: Likewise.
66291         * tests/test-base64.c: Likewise.
66292         * tests/test-binary-io.c: Likewise.
66293         * tests/test-bitrotate.c: Likewise.
66294         * tests/test-btowc.c: Likewise.
66295         * tests/test-byteswap.c: Likewise.
66296         * tests/test-c-ctype.c: Likewise.
66297         * tests/test-c-stack.c: Likewise.
66298         * tests/test-c-strcasecmp.c: Likewise.
66299         * tests/test-c-strcasestr.c: Likewise.
66300         * tests/test-c-strncasecmp.c: Likewise.
66301         * tests/test-c-strstr.c: Likewise.
66302         * tests/test-canonicalize-lgpl.c: Likewise.
66303         * tests/test-canonicalize.c: Likewise.
66304         * tests/test-carray_list.c: Likewise.
66305         * tests/test-ceilf1.c: Likewise.
66306         * tests/test-ceilf2.c: Likewise.
66307         * tests/test-ceill.c: Likewise.
66308         * tests/test-chown.c: Likewise.
66309         * tests/test-cloexec.c: Likewise.
66310         * tests/test-copy-acl.c: Likewise.
66311         * tests/test-copy-file.c: Likewise.
66312         * tests/test-count-one-bits.c: Likewise.
66313         * tests/test-dprintf-posix.c: Likewise.
66314         * tests/test-dup2.c: Likewise.
66315         * tests/test-dup3.c: Likewise.
66316         * tests/test-duplocale.c: Likewise.
66317         * tests/test-fbufmode.c: Likewise.
66318         * tests/test-fchdir.c: Likewise.
66319         * tests/test-fchownat.c: Likewise.
66320         * tests/test-fcntl-safer.c: Likewise.
66321         * tests/test-fcntl.c: Likewise.
66322         * tests/test-fdopendir.c: Likewise.
66323         * tests/test-fdutimensat.c: Likewise.
66324         * tests/test-fflush2.c: Likewise.
66325         * tests/test-file-has-acl.c: Likewise.
66326         * tests/test-filevercmp.c: Likewise.
66327         * tests/test-flock.c: Likewise.
66328         * tests/test-floorf1.c: Likewise.
66329         * tests/test-floorf2.c: Likewise.
66330         * tests/test-floorl.c: Likewise.
66331         * tests/test-fnmatch.c: Likewise.
66332         * tests/test-fopen.h: Likewise.
66333         * tests/test-fpending.c: Likewise.
66334         * tests/test-fprintf-posix.c: Likewise.
66335         * tests/test-fpurge.c: Likewise.
66336         * tests/test-freadable.c: Likewise.
66337         * tests/test-freadahead.c: Likewise.
66338         * tests/test-freading.c: Likewise.
66339         * tests/test-freadptr.c: Likewise.
66340         * tests/test-freadptr2.c: Likewise.
66341         * tests/test-freadseek.c: Likewise.
66342         * tests/test-freopen.c: Likewise.
66343         * tests/test-frexp.c: Likewise.
66344         * tests/test-frexpl.c: Likewise.
66345         * tests/test-fseek.c: Likewise.
66346         * tests/test-fseeko.c: Likewise.
66347         * tests/test-fstatat.c: Likewise.
66348         * tests/test-fstrcmp.c: Likewise.
66349         * tests/test-fsync.c: Likewise.
66350         * tests/test-ftell.c: Likewise.
66351         * tests/test-ftello.c: Likewise.
66352         * tests/test-func.c: Likewise.
66353         * tests/test-futimens.c: Likewise.
66354         * tests/test-fwritable.c: Likewise.
66355         * tests/test-fwriting.c: Likewise.
66356         * tests/test-getcwd.c: Likewise.
66357         * tests/test-getdate.c: Likewise.
66358         * tests/test-getdelim.c: Likewise.
66359         * tests/test-getdtablesize.c: Likewise.
66360         * tests/test-getgroups.c: Likewise.
66361         * tests/test-getline.c: Likewise.
66362         * tests/test-getndelim2.c: Likewise.
66363         * tests/test-glob.c: Likewise.
66364         * tests/test-hash.c: Likewise.
66365         * tests/test-i-ring.c: Likewise.
66366         * tests/test-iconv-utf.c: Likewise.
66367         * tests/test-iconv.c: Likewise.
66368         * tests/test-idpriv-drop.c: Likewise.
66369         * tests/test-idpriv-droptemp.c: Likewise.
66370         * tests/test-inet_ntop.c: Likewise.
66371         * tests/test-inet_pton.c: Likewise.
66372         * tests/test-isblank.c: Likewise.
66373         * tests/test-isfinite.c: Likewise.
66374         * tests/test-isinf.c: Likewise.
66375         * tests/test-isnan.c: Likewise.
66376         * tests/test-isnand.h: Likewise.
66377         * tests/test-isnanf.h: Likewise.
66378         * tests/test-isnanl.h: Likewise.
66379         * tests/test-lchown.c: Likewise.
66380         * tests/test-ldexpl.c: Likewise.
66381         * tests/test-link.c: Likewise.
66382         * tests/test-linkat.c: Likewise.
66383         * tests/test-linked_list.c: Likewise.
66384         * tests/test-linkedhash_list.c: Likewise.
66385         * tests/test-localename.c: Likewise.
66386         * tests/test-lseek.c: Likewise.
66387         * tests/test-lstat.c: Likewise.
66388         * tests/test-mbmemcasecmp.c: Likewise.
66389         * tests/test-mbmemcasecoll.c: Likewise.
66390         * tests/test-mbrtowc.c: Likewise.
66391         * tests/test-mbscasecmp.c: Likewise.
66392         * tests/test-mbscasestr1.c: Likewise.
66393         * tests/test-mbscasestr2.c: Likewise.
66394         * tests/test-mbscasestr3.c: Likewise.
66395         * tests/test-mbscasestr4.c: Likewise.
66396         * tests/test-mbschr.c: Likewise.
66397         * tests/test-mbscspn.c: Likewise.
66398         * tests/test-mbsinit.c: Likewise.
66399         * tests/test-mbsncasecmp.c: Likewise.
66400         * tests/test-mbsnrtowcs.c: Likewise.
66401         * tests/test-mbspbrk.c: Likewise.
66402         * tests/test-mbspcasecmp.c: Likewise.
66403         * tests/test-mbsrchr.c: Likewise.
66404         * tests/test-mbsrtowcs.c: Likewise.
66405         * tests/test-mbsspn.c: Likewise.
66406         * tests/test-mbsstr1.c: Likewise.
66407         * tests/test-mbsstr2.c: Likewise.
66408         * tests/test-mbsstr3.c: Likewise.
66409         * tests/test-memchr.c: Likewise.
66410         * tests/test-memchr2.c: Likewise.
66411         * tests/test-memcmp.c: Likewise.
66412         * tests/test-memmem.c: Likewise.
66413         * tests/test-memrchr.c: Likewise.
66414         * tests/test-mkdir.c: Likewise.
66415         * tests/test-mkdirat.c: Likewise.
66416         * tests/test-mkfifo.c: Likewise.
66417         * tests/test-mkfifoat.c: Likewise.
66418         * tests/test-mknod.c: Likewise.
66419         * tests/test-nanosleep.c: Likewise.
66420         * tests/test-nl_langinfo.c: Likewise.
66421         * tests/test-obstack-printf.c: Likewise.
66422         * tests/test-open.c: Likewise.
66423         * tests/test-openat.c: Likewise.
66424         * tests/test-pipe-filter-gi1.c: Likewise.
66425         * tests/test-pipe-filter-gi2-main.c: Likewise.
66426         * tests/test-pipe-filter-ii1.c: Likewise.
66427         * tests/test-pipe-filter-ii2-main.c: Likewise.
66428         * tests/test-pipe2.c: Likewise.
66429         * tests/test-popen.h: Likewise.
66430         * tests/test-posixtm.c: Likewise.
66431         * tests/test-pread.c: Likewise.
66432         * tests/test-printf-frexp.c: Likewise.
66433         * tests/test-printf-frexpl.c: Likewise.
66434         * tests/test-printf-posix.c: Likewise.
66435         * tests/test-priv-set.c: Likewise.
66436         * tests/test-quotearg.c: Likewise.
66437         * tests/test-random_r.c: Likewise.
66438         * tests/test-rawmemchr.c: Likewise.
66439         * tests/test-rbtree_list.c: Likewise.
66440         * tests/test-rbtree_oset.c: Likewise.
66441         * tests/test-rbtreehash_list.c: Likewise.
66442         * tests/test-readlink.c: Likewise.
66443         * tests/test-remove.c: Likewise.
66444         * tests/test-rename.c: Likewise.
66445         * tests/test-renameat.c: Likewise.
66446         * tests/test-rmdir.c: Likewise.
66447         * tests/test-round1.c: Likewise.
66448         * tests/test-roundf1.c: Likewise.
66449         * tests/test-roundl.c: Likewise.
66450         * tests/test-safe-alloc.c: Likewise.
66451         * tests/test-sameacls.c: Likewise.
66452         * tests/test-set-mode-acl.c: Likewise.
66453         * tests/test-setenv.c: Likewise.
66454         * tests/test-sigaction.c: Likewise.
66455         * tests/test-signbit.c: Likewise.
66456         * tests/test-sleep.c: Likewise.
66457         * tests/test-snprintf-posix.c: Likewise.
66458         * tests/test-snprintf.c: Likewise.
66459         * tests/test-sprintf-posix.c: Likewise.
66460         * tests/test-stat-time.c: Likewise.
66461         * tests/test-stat.c: Likewise.
66462         * tests/test-strcasestr.c: Likewise.
66463         * tests/test-strchrnul.c: Likewise.
66464         * tests/test-strerror.c: Likewise.
66465         * tests/test-striconv.c: Likewise.
66466         * tests/test-striconveh.c: Likewise.
66467         * tests/test-striconveha.c: Likewise.
66468         * tests/test-strsignal.c: Likewise.
66469         * tests/test-strstr.c: Likewise.
66470         * tests/test-strtod.c: Likewise.
66471         * tests/test-strverscmp.c: Likewise.
66472         * tests/test-symlink.c: Likewise.
66473         * tests/test-symlinkat.c: Likewise.
66474         * tests/test-trunc1.c: Likewise.
66475         * tests/test-trunc2.c: Likewise.
66476         * tests/test-truncf1.c: Likewise.
66477         * tests/test-truncf2.c: Likewise.
66478         * tests/test-truncl.c: Likewise.
66479         * tests/test-uname.c: Likewise.
66480         * tests/test-unlink.c: Likewise.
66481         * tests/test-unlinkat.c: Likewise.
66482         * tests/test-unsetenv.c: Likewise.
66483         * tests/test-usleep.c: Likewise.
66484         * tests/test-utimens.c: Likewise.
66485         * tests/test-utimensat.c: Likewise.
66486         * tests/test-vasnprintf-posix.c: Likewise.
66487         * tests/test-vasnprintf-posix2.c: Likewise.
66488         * tests/test-vasnprintf.c: Likewise.
66489         * tests/test-vasprintf-posix.c: Likewise.
66490         * tests/test-vasprintf.c: Likewise.
66491         * tests/test-vdprintf-posix.c: Likewise.
66492         * tests/test-vfprintf-posix.c: Likewise.
66493         * tests/test-vprintf-posix.c: Likewise.
66494         * tests/test-vsnprintf-posix.c: Likewise.
66495         * tests/test-vsnprintf.c: Likewise.
66496         * tests/test-vsprintf-posix.c: Likewise.
66497         * tests/test-wcrtomb.c: Likewise.
66498         * tests/test-wcsnrtombs.c: Likewise.
66499         * tests/test-wcsrtombs.c: Likewise.
66500         * tests/test-wctype.c: Likewise.
66501         * tests/test-wcwidth.c: Likewise.
66502         * tests/test-xfprintf-posix.c: Likewise.
66503         * tests/test-xmemdup0.c: Likewise.
66504         * tests/test-xprintf-posix.c: Likewise.
66505         * tests/test-xvasprintf.c: Likewise.
66506         * tests/unicase/test-locale-language.c: Likewise.
66507         * tests/unicase/test-mapping-part1.h: Likewise.
66508         * tests/unicase/test-predicate-part1.h: Likewise.
66509         * tests/unicase/test-u8-casecmp.c: Likewise.
66510         * tests/unicase/test-u8-casecoll.c: Likewise.
66511         * tests/unicase/test-u8-casefold.c: Likewise.
66512         * tests/unicase/test-u8-is-cased.c: Likewise.
66513         * tests/unicase/test-u8-is-casefolded.c: Likewise.
66514         * tests/unicase/test-u8-is-lowercase.c: Likewise.
66515         * tests/unicase/test-u8-is-titlecase.c: Likewise.
66516         * tests/unicase/test-u8-is-uppercase.c: Likewise.
66517         * tests/unicase/test-u8-tolower.c: Likewise.
66518         * tests/unicase/test-u8-totitle.c: Likewise.
66519         * tests/unicase/test-u8-toupper.c: Likewise.
66520         * tests/unicase/test-u16-casecmp.c: Likewise.
66521         * tests/unicase/test-u16-casecoll.c: Likewise.
66522         * tests/unicase/test-u16-casefold.c: Likewise.
66523         * tests/unicase/test-u16-is-cased.c: Likewise.
66524         * tests/unicase/test-u16-is-casefolded.c: Likewise.
66525         * tests/unicase/test-u16-is-lowercase.c: Likewise.
66526         * tests/unicase/test-u16-is-titlecase.c: Likewise.
66527         * tests/unicase/test-u16-is-uppercase.c: Likewise.
66528         * tests/unicase/test-u16-tolower.c: Likewise.
66529         * tests/unicase/test-u16-totitle.c: Likewise.
66530         * tests/unicase/test-u16-toupper.c: Likewise.
66531         * tests/unicase/test-u32-casecmp.c: Likewise.
66532         * tests/unicase/test-u32-casecoll.c: Likewise.
66533         * tests/unicase/test-u32-casefold.c: Likewise.
66534         * tests/unicase/test-u32-is-cased.c: Likewise.
66535         * tests/unicase/test-u32-is-casefolded.c: Likewise.
66536         * tests/unicase/test-u32-is-lowercase.c: Likewise.
66537         * tests/unicase/test-u32-is-titlecase.c: Likewise.
66538         * tests/unicase/test-u32-is-uppercase.c: Likewise.
66539         * tests/unicase/test-u32-tolower.c: Likewise.
66540         * tests/unicase/test-u32-totitle.c: Likewise.
66541         * tests/unicase/test-u32-toupper.c: Likewise.
66542         * tests/unicase/test-ulc-casecmp.c: Likewise.
66543         * tests/unicase/test-ulc-casecoll.c: Likewise.
66544         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66545         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66546         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66547         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66548         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66549         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66550         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66551         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66552         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66553         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66554         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66555         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66556         * tests/unictype/test-bidi_byname.c: Likewise.
66557         * tests/unictype/test-bidi_name.c: Likewise.
66558         * tests/unictype/test-bidi_of.c: Likewise.
66559         * tests/unictype/test-bidi_test.c: Likewise.
66560         * tests/unictype/test-block_list.c: Likewise.
66561         * tests/unictype/test-block_of.c: Likewise.
66562         * tests/unictype/test-block_test.c: Likewise.
66563         * tests/unictype/test-categ_and.c: Likewise.
66564         * tests/unictype/test-categ_and_not.c: Likewise.
66565         * tests/unictype/test-categ_byname.c: Likewise.
66566         * tests/unictype/test-categ_name.c: Likewise.
66567         * tests/unictype/test-categ_none.c: Likewise.
66568         * tests/unictype/test-categ_of.c: Likewise.
66569         * tests/unictype/test-categ_or.c: Likewise.
66570         * tests/unictype/test-categ_test_withtable.c: Likewise.
66571         * tests/unictype/test-combining.c: Likewise.
66572         * tests/unictype/test-decdigit.c: Likewise.
66573         * tests/unictype/test-digit.c: Likewise.
66574         * tests/unictype/test-mirror.c: Likewise.
66575         * tests/unictype/test-numeric.c: Likewise.
66576         * tests/unictype/test-pr_byname.c: Likewise.
66577         * tests/unictype/test-pr_test.c: Likewise.
66578         * tests/unictype/test-predicate-part1.h: Likewise.
66579         * tests/unictype/test-scripts.c: Likewise.
66580         * tests/unictype/test-sy_c_ident.c: Likewise.
66581         * tests/unictype/test-sy_java_ident.c: Likewise.
66582         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
66583         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
66584         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
66585         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
66586         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
66587         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
66588         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
66589         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
66590         * tests/uninorm/test-canonical-decomposition.c: Likewise.
66591         * tests/uninorm/test-compat-decomposition.c: Likewise.
66592         * tests/uninorm/test-composition.c: Likewise.
66593         * tests/uninorm/test-decomposing-form.c: Likewise.
66594         * tests/uninorm/test-decomposition.c: Likewise.
66595         * tests/uninorm/test-u8-nfc.c: Likewise.
66596         * tests/uninorm/test-u8-nfd.c: Likewise.
66597         * tests/uninorm/test-u8-nfkc.c: Likewise.
66598         * tests/uninorm/test-u8-nfkd.c: Likewise.
66599         * tests/uninorm/test-u8-normcmp.c: Likewise.
66600         * tests/uninorm/test-u8-normcoll.c: Likewise.
66601         * tests/uninorm/test-u16-nfc.c: Likewise.
66602         * tests/uninorm/test-u16-nfd.c: Likewise.
66603         * tests/uninorm/test-u16-nfkc.c: Likewise.
66604         * tests/uninorm/test-u16-nfkd.c: Likewise.
66605         * tests/uninorm/test-u16-normcmp.c: Likewise.
66606         * tests/uninorm/test-u16-normcoll.c: Likewise.
66607         * tests/uninorm/test-u32-nfc.c: Likewise.
66608         * tests/uninorm/test-u32-nfd.c: Likewise.
66609         * tests/uninorm/test-u32-nfkc.c: Likewise.
66610         * tests/uninorm/test-u32-nfkd.c: Likewise.
66611         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66612         * tests/uninorm/test-u32-normcmp.c: Likewise.
66613         * tests/uninorm/test-u32-normcoll.c: Likewise.
66614         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
66615         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66616         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66617         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66618         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66619         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66620         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66621         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66622         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66623         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66624         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66625         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66626         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66627         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66628         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66629         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66630         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66631         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66632         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66633         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66634         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66635         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66636         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66637         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66638         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66639         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66640         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66641         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66642         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66643         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
66644         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
66645         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
66646         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
66647         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66648         * tests/uniwidth/test-u8-width.c: Likewise.
66649         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66650         * tests/uniwidth/test-u16-width.c: Likewise.
66651         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66652         * tests/uniwidth/test-u32-width.c: Likewise.
66653         * tests/uniwidth/test-uc_width.c: Likewise.
66654         * tests/uniwidth/test-uc_width2.c: Likewise.
66655         * modules/acl-tests (Files): Add tests/macros.h.
66656         * modules/areadlink-tests (Files): Likewise.
66657         * modules/areadlink-with-size-tests (Files): Likewise.
66658         * modules/areadlinkat-tests (Files): Likewise.
66659         * modules/areadlinkat-with-size-tests (Files): Likewise.
66660         * modules/argmatch-tests (Files): Likewise.
66661         * modules/argv-iter-tests (Files): Likewise.
66662         * modules/array-list-tests (Files): Likewise.
66663         * modules/array-mergesort-tests (Files): Likewise.
66664         * modules/array-oset-tests (Files): Likewise.
66665         * modules/avltree-list-tests (Files): Likewise.
66666         * modules/avltree-oset-tests (Files): Likewise.
66667         * modules/avltreehash-list-tests (Files): Likewise.
66668         * modules/base64-tests (Files): Likewise.
66669         * modules/binary-io-tests (Files): Likewise.
66670         * modules/bitrotate-tests (Files): Likewise.
66671         * modules/btowc-tests (Files): Likewise.
66672         * modules/byteswap-tests (Files): Likewise.
66673         * modules/c-ctype-tests (Files): Likewise.
66674         * modules/c-stack-tests (Files): Likewise.
66675         * modules/c-strcase-tests (Files): Likewise.
66676         * modules/c-strcasestr-tests (Files): Likewise.
66677         * modules/c-strstr-tests (Files): Likewise.
66678         * modules/canonicalize-lgpl-tests (Files): Likewise.
66679         * modules/canonicalize-tests (Files): Likewise.
66680         * modules/carray-list-tests (Files): Likewise.
66681         * modules/ceilf-tests (Files): Likewise.
66682         * modules/ceill-tests (Files): Likewise.
66683         * modules/chown-tests (Files): Likewise.
66684         * modules/cloexec-tests (Files): Likewise.
66685         * modules/copy-file-tests (Files): Likewise.
66686         * modules/count-one-bits-tests (Files): Likewise.
66687         * modules/dprintf-posix-tests (Files): Likewise.
66688         * modules/dup2-tests (Files): Likewise.
66689         * modules/dup3-tests (Files): Likewise.
66690         * modules/duplocale-tests (Files): Likewise.
66691         * modules/fbufmode-tests (Files): Likewise.
66692         * modules/fchdir-tests (Files): Likewise.
66693         * modules/fcntl-safer-tests (Files): Likewise.
66694         * modules/fcntl-tests (Files): Likewise.
66695         * modules/fdopendir-tests (Files): Likewise.
66696         * modules/fdutimensat-tests (Files): Likewise.
66697         * modules/fflush-tests (Files): Likewise.
66698         * modules/filevercmp-tests (Files): Likewise.
66699         * modules/flock-tests (Files): Likewise.
66700         * modules/floorf-tests (Files): Likewise.
66701         * modules/floorl-tests (Files): Likewise.
66702         * modules/fnmatch-tests (Files): Likewise.
66703         * modules/fopen-safer-tests (Files): Likewise.
66704         * modules/fopen-tests (Files): Likewise.
66705         * modules/fpending-tests (Files): Likewise.
66706         * modules/fprintf-posix-tests (Files): Likewise.
66707         * modules/fpurge-tests (Files): Likewise.
66708         * modules/freadable-tests (Files): Likewise.
66709         * modules/freadahead-tests (Files): Likewise.
66710         * modules/freading-tests (Files): Likewise.
66711         * modules/freadptr-tests (Files): Likewise.
66712         * modules/freadseek-tests (Files): Likewise.
66713         * modules/freopen-tests (Files): Likewise.
66714         * modules/frexp-nolibm-tests (Files): Likewise.
66715         * modules/frexp-tests (Files): Likewise.
66716         * modules/frexpl-nolibm-tests (Files): Likewise.
66717         * modules/frexpl-tests (Files): Likewise.
66718         * modules/fseek-tests (Files): Likewise.
66719         * modules/fseeko-tests (Files): Likewise.
66720         * modules/fstrcmp-tests (Files): Likewise.
66721         * modules/fsync-tests (Files): Likewise.
66722         * modules/ftell-tests (Files): Likewise.
66723         * modules/ftello-tests (Files): Likewise.
66724         * modules/func-tests (Files): Likewise.
66725         * modules/futimens-tests (Files): Likewise.
66726         * modules/fwritable-tests (Files): Likewise.
66727         * modules/fwriting-tests (Files): Likewise.
66728         * modules/getcwd-tests (Files): Likewise.
66729         * modules/getdate-tests (Files): Likewise.
66730         * modules/getdelim-tests (Files): Likewise.
66731         * modules/getdtablesize-tests (Files): Likewise.
66732         * modules/getgroups-tests (Files): Likewise.
66733         * modules/getline-tests (Files): Likewise.
66734         * modules/getndelim2-tests (Files): Likewise.
66735         * modules/glob-tests (Files): Likewise.
66736         * modules/hash-tests (Files): Likewise.
66737         * modules/i-ring-tests (Files): Likewise.
66738         * modules/iconv-tests (Files): Likewise.
66739         * modules/iconv_open-utf-tests (Files): Likewise.
66740         * modules/idpriv-drop-tests (Files): Likewise.
66741         * modules/idpriv-droptemp-tests (Files): Likewise.
66742         * modules/inet_ntop-tests (Files): Likewise.
66743         * modules/inet_pton-tests (Files): Likewise.
66744         * modules/isblank-tests (Files): Likewise.
66745         * modules/isfinite-tests (Files): Likewise.
66746         * modules/isinf-tests (Files): Likewise.
66747         * modules/isnan-tests (Files): Likewise.
66748         * modules/isnand-nolibm-tests (Files): Likewise.
66749         * modules/isnand-tests (Files): Likewise.
66750         * modules/isnanf-nolibm-tests (Files): Likewise.
66751         * modules/isnanf-tests (Files): Likewise.
66752         * modules/isnanl-nolibm-tests (Files): Likewise.
66753         * modules/isnanl-tests (Files): Likewise.
66754         * modules/lchown-tests (Files): Likewise.
66755         * modules/ldexpl-tests (Files): Likewise.
66756         * modules/link-tests (Files): Likewise.
66757         * modules/linkat-tests (Files): Likewise.
66758         * modules/linked-list-tests (Files): Likewise.
66759         * modules/linkedhash-list-tests (Files): Likewise.
66760         * modules/localename-tests (Files): Likewise.
66761         * modules/lseek-tests (Files): Likewise.
66762         * modules/lstat-tests (Files): Likewise.
66763         * modules/mbmemcasecmp-tests (Files): Likewise.
66764         * modules/mbmemcasecoll-tests (Files): Likewise.
66765         * modules/mbrtowc-tests (Files): Likewise.
66766         * modules/mbscasecmp-tests (Files): Likewise.
66767         * modules/mbscasestr-tests (Files): Likewise.
66768         * modules/mbschr-tests (Files): Likewise.
66769         * modules/mbscspn-tests (Files): Likewise.
66770         * modules/mbsinit-tests (Files): Likewise.
66771         * modules/mbsncasecmp-tests (Files): Likewise.
66772         * modules/mbsnrtowcs-tests (Files): Likewise.
66773         * modules/mbspbrk-tests (Files): Likewise.
66774         * modules/mbspcasecmp-tests (Files): Likewise.
66775         * modules/mbsrchr-tests (Files): Likewise.
66776         * modules/mbsrtowcs-tests (Files): Likewise.
66777         * modules/mbsspn-tests (Files): Likewise.
66778         * modules/mbsstr-tests (Files): Likewise.
66779         * modules/memchr-tests (Files): Likewise.
66780         * modules/memchr2-tests (Files): Likewise.
66781         * modules/memcmp-tests (Files): Likewise.
66782         * modules/memmem-tests (Files): Likewise.
66783         * modules/memrchr-tests (Files): Likewise.
66784         * modules/mkdir-tests (Files): Likewise.
66785         * modules/mkfifo-tests (Files): Likewise.
66786         * modules/mkfifoat-tests (Files): Likewise.
66787         * modules/mknod-tests (Files): Likewise.
66788         * modules/nanosleep-tests (Files): Likewise.
66789         * modules/nl_langinfo-tests (Files): Likewise.
66790         * modules/obstack-printf-tests (Files): Likewise.
66791         * modules/open-tests (Files): Likewise.
66792         * modules/openat-tests (Files): Likewise.
66793         * modules/pipe-filter-gi-tests (Files): Likewise.
66794         * modules/pipe-filter-ii-tests (Files): Likewise.
66795         * modules/pipe2-tests (Files): Likewise.
66796         * modules/popen-safer-tests (Files): Likewise.
66797         * modules/popen-tests (Files): Likewise.
66798         * modules/posixtm-tests (Files): Likewise.
66799         * modules/pread-tests (Files): Likewise.
66800         * modules/printf-frexp-tests (Files): Likewise.
66801         * modules/printf-frexpl-tests (Files): Likewise.
66802         * modules/printf-posix-tests (Files): Likewise.
66803         * modules/priv-set-tests (Files): Likewise.
66804         * modules/quotearg-tests (Files): Likewise.
66805         * modules/random_r-tests (Files): Likewise.
66806         * modules/rawmemchr-tests (Files): Likewise.
66807         * modules/rbtree-list-tests (Files): Likewise.
66808         * modules/rbtree-oset-tests (Files): Likewise.
66809         * modules/rbtreehash-list-tests (Files): Likewise.
66810         * modules/readlink-tests (Files): Likewise.
66811         * modules/remove-tests (Files): Likewise.
66812         * modules/rename-tests (Files): Likewise.
66813         * modules/renameat-tests (Files): Likewise.
66814         * modules/rmdir-tests (Files): Likewise.
66815         * modules/round-tests (Files): Likewise.
66816         * modules/roundf-tests (Files): Likewise.
66817         * modules/roundl-tests (Files): Likewise.
66818         * modules/safe-alloc-tests (Files): Likewise.
66819         * modules/setenv-tests (Files): Likewise.
66820         * modules/sigaction-tests (Files): Likewise.
66821         * modules/signbit-tests (Files): Likewise.
66822         * modules/sleep-tests (Files): Likewise.
66823         * modules/snprintf-posix-tests (Files): Likewise.
66824         * modules/snprintf-tests (Files): Likewise.
66825         * modules/sprintf-posix-tests (Files): Likewise.
66826         * modules/stat-tests (Files): Likewise.
66827         * modules/stat-time-tests (Files): Likewise.
66828         * modules/strcasestr-tests (Files): Likewise.
66829         * modules/strchrnul-tests (Files): Likewise.
66830         * modules/strerror-tests (Files): Likewise.
66831         * modules/striconv-tests (Files): Likewise.
66832         * modules/striconveh-tests (Files): Likewise.
66833         * modules/striconveha-tests (Files): Likewise.
66834         * modules/strsignal-tests (Files): Likewise.
66835         * modules/strstr-tests (Files): Likewise.
66836         * modules/strtod-tests (Files): Likewise.
66837         * modules/strverscmp-tests (Files): Likewise.
66838         * modules/symlink-tests (Files): Likewise.
66839         * modules/symlinkat-tests (Files): Likewise.
66840         * modules/trunc-tests (Files): Likewise.
66841         * modules/truncf-tests (Files): Likewise.
66842         * modules/truncl-tests (Files): Likewise.
66843         * modules/uname-tests (Files): Likewise.
66844         * modules/unicase/cased-tests (Files): Likewise.
66845         * modules/unicase/ignorable-tests (Files): Likewise.
66846         * modules/unicase/locale-language-tests (Files): Likewise.
66847         * modules/unicase/tolower-tests (Files): Likewise.
66848         * modules/unicase/totitle-tests (Files): Likewise.
66849         * modules/unicase/toupper-tests (Files): Likewise.
66850         * modules/unicase/u8-casecmp-tests (Files): Likewise.
66851         * modules/unicase/u8-casecoll-tests (Files): Likewise.
66852         * modules/unicase/u8-casefold-tests (Files): Likewise.
66853         * modules/unicase/u8-is-cased-tests (Files): Likewise.
66854         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
66855         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
66856         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
66857         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
66858         * modules/unicase/u8-tolower-tests (Files): Likewise.
66859         * modules/unicase/u8-totitle-tests (Files): Likewise.
66860         * modules/unicase/u8-toupper-tests (Files): Likewise.
66861         * modules/unicase/u16-casecmp-tests (Files): Likewise.
66862         * modules/unicase/u16-casecoll-tests (Files): Likewise.
66863         * modules/unicase/u16-casefold-tests (Files): Likewise.
66864         * modules/unicase/u16-is-cased-tests (Files): Likewise.
66865         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
66866         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
66867         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
66868         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
66869         * modules/unicase/u16-tolower-tests (Files): Likewise.
66870         * modules/unicase/u16-totitle-tests (Files): Likewise.
66871         * modules/unicase/u16-toupper-tests (Files): Likewise.
66872         * modules/unicase/u32-casecmp-tests (Files): Likewise.
66873         * modules/unicase/u32-casecoll-tests (Files): Likewise.
66874         * modules/unicase/u32-casefold-tests (Files): Likewise.
66875         * modules/unicase/u32-is-cased-tests (Files): Likewise.
66876         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
66877         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
66878         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
66879         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
66880         * modules/unicase/u32-tolower-tests (Files): Likewise.
66881         * modules/unicase/u32-totitle-tests (Files): Likewise.
66882         * modules/unicase/u32-toupper-tests (Files): Likewise.
66883         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
66884         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
66885         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
66886         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
66887         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
66888         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
66889         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
66890         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
66891         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
66892         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
66893         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
66894         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
66895         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
66896         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
66897         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
66898         * modules/unictype/bidicategory-name-tests (Files): Likewise.
66899         * modules/unictype/bidicategory-of-tests (Files): Likewise.
66900         * modules/unictype/bidicategory-test-tests (Files): Likewise.
66901         * modules/unictype/block-list-tests (Files): Likewise.
66902         * modules/unictype/block-of-tests (Files): Likewise.
66903         * modules/unictype/block-test-tests (Files): Likewise.
66904         * modules/unictype/category-C-tests (Files): Likewise.
66905         * modules/unictype/category-Cc-tests (Files): Likewise.
66906         * modules/unictype/category-Cf-tests (Files): Likewise.
66907         * modules/unictype/category-Cn-tests (Files): Likewise.
66908         * modules/unictype/category-Co-tests (Files): Likewise.
66909         * modules/unictype/category-Cs-tests (Files): Likewise.
66910         * modules/unictype/category-L-tests (Files): Likewise.
66911         * modules/unictype/category-Ll-tests (Files): Likewise.
66912         * modules/unictype/category-Lm-tests (Files): Likewise.
66913         * modules/unictype/category-Lo-tests (Files): Likewise.
66914         * modules/unictype/category-Lt-tests (Files): Likewise.
66915         * modules/unictype/category-Lu-tests (Files): Likewise.
66916         * modules/unictype/category-M-tests (Files): Likewise.
66917         * modules/unictype/category-Mc-tests (Files): Likewise.
66918         * modules/unictype/category-Me-tests (Files): Likewise.
66919         * modules/unictype/category-Mn-tests (Files): Likewise.
66920         * modules/unictype/category-N-tests (Files): Likewise.
66921         * modules/unictype/category-Nd-tests (Files): Likewise.
66922         * modules/unictype/category-Nl-tests (Files): Likewise.
66923         * modules/unictype/category-No-tests (Files): Likewise.
66924         * modules/unictype/category-P-tests (Files): Likewise.
66925         * modules/unictype/category-Pc-tests (Files): Likewise.
66926         * modules/unictype/category-Pd-tests (Files): Likewise.
66927         * modules/unictype/category-Pe-tests (Files): Likewise.
66928         * modules/unictype/category-Pf-tests (Files): Likewise.
66929         * modules/unictype/category-Pi-tests (Files): Likewise.
66930         * modules/unictype/category-Po-tests (Files): Likewise.
66931         * modules/unictype/category-Ps-tests (Files): Likewise.
66932         * modules/unictype/category-S-tests (Files): Likewise.
66933         * modules/unictype/category-Sc-tests (Files): Likewise.
66934         * modules/unictype/category-Sk-tests (Files): Likewise.
66935         * modules/unictype/category-Sm-tests (Files): Likewise.
66936         * modules/unictype/category-So-tests (Files): Likewise.
66937         * modules/unictype/category-Z-tests (Files): Likewise.
66938         * modules/unictype/category-Zl-tests (Files): Likewise.
66939         * modules/unictype/category-Zp-tests (Files): Likewise.
66940         * modules/unictype/category-Zs-tests (Files): Likewise.
66941         * modules/unictype/category-and-not-tests (Files): Likewise.
66942         * modules/unictype/category-and-tests (Files): Likewise.
66943         * modules/unictype/category-byname-tests (Files): Likewise.
66944         * modules/unictype/category-name-tests (Files): Likewise.
66945         * modules/unictype/category-none-tests (Files): Likewise.
66946         * modules/unictype/category-of-tests (Files): Likewise.
66947         * modules/unictype/category-or-tests (Files): Likewise.
66948         * modules/unictype/category-test-withtable-tests (Files): Likewise.
66949         * modules/unictype/combining-class-tests (Files): Likewise.
66950         * modules/unictype/ctype-alnum-tests (Files): Likewise.
66951         * modules/unictype/ctype-alpha-tests (Files): Likewise.
66952         * modules/unictype/ctype-blank-tests (Files): Likewise.
66953         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
66954         * modules/unictype/ctype-digit-tests (Files): Likewise.
66955         * modules/unictype/ctype-graph-tests (Files): Likewise.
66956         * modules/unictype/ctype-lower-tests (Files): Likewise.
66957         * modules/unictype/ctype-print-tests (Files): Likewise.
66958         * modules/unictype/ctype-punct-tests (Files): Likewise.
66959         * modules/unictype/ctype-space-tests (Files): Likewise.
66960         * modules/unictype/ctype-upper-tests (Files): Likewise.
66961         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
66962         * modules/unictype/decimal-digit-tests (Files): Likewise.
66963         * modules/unictype/digit-tests (Files): Likewise.
66964         * modules/unictype/mirror-tests (Files): Likewise.
66965         * modules/unictype/numeric-tests (Files): Likewise.
66966         * modules/unictype/property-alphabetic-tests (Files): Likewise.
66967         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
66968         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
66969         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
66970         Likewise.
66971         * modules/unictype/property-bidi-block-separator-tests (Files):
66972         Likewise.
66973         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
66974         Likewise.
66975         * modules/unictype/property-bidi-common-separator-tests (Files):
66976         Likewise.
66977         * modules/unictype/property-bidi-control-tests (Files): Likewise.
66978         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
66979         Likewise.
66980         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
66981         Likewise.
66982         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
66983         Likewise.
66984         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
66985         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
66986         Likewise.
66987         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
66988         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
66989         Likewise.
66990         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
66991         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
66992         * modules/unictype/property-bidi-segment-separator-tests (Files):
66993         Likewise.
66994         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
66995         * modules/unictype/property-byname-tests (Files): Likewise.
66996         * modules/unictype/property-combining-tests (Files): Likewise.
66997         * modules/unictype/property-composite-tests (Files): Likewise.
66998         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
66999         * modules/unictype/property-dash-tests (Files): Likewise.
67000         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
67001         * modules/unictype/property-default-ignorable-code-point-tests (Files):
67002         Likewise.
67003         * modules/unictype/property-deprecated-tests (Files): Likewise.
67004         * modules/unictype/property-diacritic-tests (Files): Likewise.
67005         * modules/unictype/property-extender-tests (Files): Likewise.
67006         * modules/unictype/property-format-control-tests (Files): Likewise.
67007         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
67008         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
67009         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
67010         * modules/unictype/property-hex-digit-tests (Files): Likewise.
67011         * modules/unictype/property-hyphen-tests (Files): Likewise.
67012         * modules/unictype/property-id-continue-tests (Files): Likewise.
67013         * modules/unictype/property-id-start-tests (Files): Likewise.
67014         * modules/unictype/property-ideographic-tests (Files): Likewise.
67015         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
67016         * modules/unictype/property-ids-trinary-operator-tests (Files):
67017         Likewise.
67018         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
67019         * modules/unictype/property-iso-control-tests (Files): Likewise.
67020         * modules/unictype/property-join-control-tests (Files): Likewise.
67021         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
67022         * modules/unictype/property-line-separator-tests (Files): Likewise.
67023         * modules/unictype/property-logical-order-exception-tests (Files):
67024         Likewise.
67025         * modules/unictype/property-lowercase-tests (Files): Likewise.
67026         * modules/unictype/property-math-tests (Files): Likewise.
67027         * modules/unictype/property-non-break-tests (Files): Likewise.
67028         * modules/unictype/property-not-a-character-tests (Files): Likewise.
67029         * modules/unictype/property-numeric-tests (Files): Likewise.
67030         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
67031         * modules/unictype/property-other-default-ignorable-code-point-tests
67032         (Files): Likewise.
67033         * modules/unictype/property-other-grapheme-extend-tests (Files):
67034         Likewise.
67035         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
67036         * modules/unictype/property-other-id-start-tests (Files): Likewise.
67037         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
67038         * modules/unictype/property-other-math-tests (Files): Likewise.
67039         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
67040         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
67041         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
67042         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
67043         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
67044         * modules/unictype/property-private-use-tests (Files): Likewise.
67045         * modules/unictype/property-punctuation-tests (Files): Likewise.
67046         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
67047         * modules/unictype/property-radical-tests (Files): Likewise.
67048         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
67049         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
67050         * modules/unictype/property-space-tests (Files): Likewise.
67051         * modules/unictype/property-terminal-punctuation-tests (Files):
67052         Likewise.
67053         * modules/unictype/property-test-tests (Files): Likewise.
67054         * modules/unictype/property-titlecase-tests (Files): Likewise.
67055         * modules/unictype/property-unassigned-code-value-tests (Files):
67056         Likewise.
67057         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
67058         * modules/unictype/property-uppercase-tests (Files): Likewise.
67059         * modules/unictype/property-variation-selector-tests (Files): Likewise.
67060         * modules/unictype/property-white-space-tests (Files): Likewise.
67061         * modules/unictype/property-xid-continue-tests (Files): Likewise.
67062         * modules/unictype/property-xid-start-tests (Files): Likewise.
67063         * modules/unictype/property-zero-width-tests (Files): Likewise.
67064         * modules/unictype/scripts-tests (Files): Likewise.
67065         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
67066         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
67067         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
67068         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
67069         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
67070         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
67071         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
67072         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
67073         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
67074         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
67075         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
67076         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
67077         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
67078         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
67079         * modules/uninorm/composition-tests (Files): Likewise.
67080         * modules/uninorm/decomposing-form-tests (Files): Likewise.
67081         * modules/uninorm/decomposition-tests (Files): Likewise.
67082         * modules/uninorm/filter-tests (Files): Likewise.
67083         * modules/uninorm/nfc-tests (Files): Likewise.
67084         * modules/uninorm/nfd-tests (Files): Likewise.
67085         * modules/uninorm/nfkc-tests (Files): Likewise.
67086         * modules/uninorm/nfkd-tests (Files): Likewise.
67087         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
67088         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
67089         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
67090         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
67091         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
67092         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
67093         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
67094         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
67095         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
67096         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
67097         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
67098         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
67099         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
67100         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
67101         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
67102         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
67103         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
67104         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
67105         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
67106         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
67107         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
67108         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
67109         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
67110         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
67111         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
67112         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
67113         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
67114         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
67115         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
67116         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
67117         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
67118         * modules/uniwidth/u8-width-tests (Files): Likewise.
67119         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
67120         * modules/uniwidth/u16-width-tests (Files): Likewise.
67121         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
67122         * modules/uniwidth/u32-width-tests (Files): Likewise.
67123         * modules/uniwidth/width-tests (Files): Likewise.
67124         * modules/unlink-tests (Files): Likewise.
67125         * modules/unsetenv-tests (Files): Likewise.
67126         * modules/usleep-tests (Files): Likewise.
67127         * modules/utimens-tests (Files): Likewise.
67128         * modules/utimensat-tests (Files): Likewise.
67129         * modules/vasnprintf-posix-tests (Files): Likewise.
67130         * modules/vasnprintf-tests (Files): Likewise.
67131         * modules/vasprintf-posix-tests (Files): Likewise.
67132         * modules/vasprintf-tests (Files): Likewise.
67133         * modules/vdprintf-posix-tests (Files): Likewise.
67134         * modules/vfprintf-posix-tests (Files): Likewise.
67135         * modules/vprintf-posix-tests (Files): Likewise.
67136         * modules/vsnprintf-posix-tests (Files): Likewise.
67137         * modules/vsnprintf-tests (Files): Likewise.
67138         * modules/vsprintf-posix-tests (Files): Likewise.
67139         * modules/wcrtomb-tests (Files): Likewise.
67140         * modules/wcsnrtombs-tests (Files): Likewise.
67141         * modules/wcsrtombs-tests (Files): Likewise.
67142         * modules/wctype-tests (Files): Likewise.
67143         * modules/wcwidth-tests (Files): Likewise.
67144         * modules/xmemdup0-tests (Files): Likewise.
67145         * modules/xprintf-posix-tests (Files): Likewise.
67146         * modules/xvasprintf-tests (Files): Likewise.
67148 2009-12-24  Eric Blake  <ebb9@byu.net>
67150         test-nanosleep: fix typo
67151         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
67152         patch.
67153         Reported by Bruno Haible.
67155 2009-12-24  Bruno Haible  <bruno@clisp.org>
67157         Reduce namespace pollution on glibc systems.
67158         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
67159         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
67160         systems.
67161         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
67162         <getopt.h> on glibc systems.
67163         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
67164         systems.
67165         * lib/fcntl.c: Include <unistd.h> here instead.
67167 2009-12-24  Bruno Haible  <bruno@clisp.org>
67169         * lib/stdlib.in.h (includes): Fix typo in today's commit.
67171 2009-12-24  Eric Blake  <ebb9@byu.net>
67173         tests: add signature checks
67174         * tests/signature.h (SIGNATURE_CHECK): New file.
67175         * modules/atexit-tests (Files): Use it.
67176         * modules/btowc-tests (Files): Likewise.
67177         * modules/canonicalize-lgpl-tests (Files): Likewise.
67178         * modules/ceilf-tests (Files): Likewise.
67179         * modules/ceill-tests (Files): Likewise.
67180         * modules/chown-tests (Files): Likewise.
67181         * modules/dprintf-posix-tests (Files): Likewise.
67182         * modules/dup2-tests (Files): Likewise.
67183         * modules/dup3-tests (Files): Likewise.
67184         * modules/duplocale-tests (Files): Likewise.
67185         * modules/fchdir-tests (Files): Likewise.
67186         * modules/fcntl-tests (Files): Likewise.
67187         * modules/fdopendir-tests (Files): Likewise.
67188         * modules/fflush-tests (Files): Likewise.
67189         * modules/flock-tests (Files): Likewise.
67190         * modules/floorf-tests (Files): Likewise.
67191         * modules/floorl-tests (Files): Likewise.
67192         * modules/fnmatch-tests (Files): Likewise.
67193         * modules/fopen-tests (Files): Likewise.
67194         * modules/fprintf-posix-tests (Files): Likewise.
67195         * modules/freopen-tests (Files): Likewise.
67196         * modules/frexp-nolibm-tests (Files): Likewise.
67197         * modules/frexp-tests (Files): Likewise.
67198         * modules/frexpl-nolibm-tests (Files): Likewise.
67199         * modules/frexpl-tests (Files): Likewise.
67200         * modules/fseek-tests (Files): Likewise.
67201         * modules/fseeko-tests (Files): Likewise.
67202         * modules/fsync-tests (Files): Likewise.
67203         * modules/ftell-tests (Files): Likewise.
67204         * modules/ftello-tests (Files): Likewise.
67205         * modules/futimens-tests (Files): Likewise.
67206         * modules/getaddrinfo-tests (Files): Likewise.
67207         * modules/getcwd-tests (Files): Likewise.
67208         * modules/getdelim-tests (Files): Likewise.
67209         * modules/getdtablesize-tests (Files): Likewise.
67210         * modules/getgroups-tests (Files): Likewise.
67211         * modules/gethostname-tests (Files): Likewise.
67212         * modules/getline-tests (Files): Likewise.
67213         * modules/getopt-posix-tests (Files): Likewise.
67214         * modules/gettimeofday-tests (Files): Likewise.
67215         * modules/glob-tests (Files): Likewise.
67216         * modules/iconv-tests (Files): Likewise.
67217         * modules/inet_ntop-tests (Files): Likewise.
67218         * modules/inet_pton-tests (Files): Likewise.
67219         * modules/isblank-tests (Files): Likewise.
67220         * modules/lchown-tests (Files): Likewise.
67221         * modules/ldexpl-tests (Files): Likewise.
67222         * modules/link-tests (Files): Likewise.
67223         * modules/linkat-tests (Files): Likewise.
67224         * modules/lseek-tests (Files): Likewise.
67225         * modules/lstat-tests (Files): Likewise.
67226         * modules/mbrtowc-tests (Files): Likewise.
67227         * modules/mbsinit-tests (Files): Likewise.
67228         * modules/mbsnrtowcs-tests (Files): Likewise.
67229         * modules/mbsrtowcs-tests (Files): Likewise.
67230         * modules/memchr-tests (Files): Likewise.
67231         * modules/memcmp-tests (Files): Likewise.
67232         * modules/memmem-tests (Files): Likewise.
67233         * modules/memrchr-tests (Files): Likewise.
67234         * modules/mkdir-tests (Files): Likewise.
67235         * modules/mkfifo-tests (Files): Likewise.
67236         * modules/mkfifoat-tests (Files): Likewise.
67237         * modules/mknod-tests (Files): Likewise.
67238         * modules/nanosleep-tests (Files): Likewise.
67239         * modules/nl_langinfo-tests (Files): Likewise.
67240         * modules/obstack-printf-tests (Files): Likewise.
67241         * modules/open-tests (Files): Likewise.
67242         * modules/openat-tests (Files): Likewise.
67243         * modules/perror-tests (Files): Likewise.
67244         * modules/pipe2-tests (Files): Likewise.
67245         * modules/poll-tests (Files): Likewise.
67246         * modules/popen-tests (Files): Likewise.
67247         * modules/posix_spawn-tests (Files): Likewise.
67248         * modules/posix_spawnp-tests (Files): Likewise.
67249         * modules/pread-tests (Files): Likewise.
67250         * modules/printf-posix-tests (Files): Likewise.
67251         * modules/pty-tests (Files): Likewise.
67252         * modules/random_r-tests (Files): Likewise.
67253         * modules/rawmemchr-tests (Files): Likewise.
67254         * modules/readlink-tests (Files): Likewise.
67255         * modules/remove-tests (Files): Likewise.
67256         * modules/rename-tests (Files): Likewise.
67257         * modules/renameat-tests (Files): Likewise.
67258         * modules/rmdir-tests (Files): Likewise.
67259         * modules/round-tests (Files): Likewise.
67260         * modules/roundf-tests (Files): Likewise.
67261         * modules/roundl-tests (Files): Likewise.
67262         * modules/select-tests (Files): Likewise.
67263         * modules/setenv-tests (Files): Likewise.
67264         * modules/sigaction-tests (Files): Likewise.
67265         * modules/sleep-tests (Files): Likewise.
67266         * modules/snprintf-posix-tests (Files): Likewise.
67267         * modules/snprintf-tests (Files): Likewise.
67268         * modules/sprintf-posix-tests (Files): Likewise.
67269         * modules/stat-tests (Files): Likewise.
67270         * modules/strcasestr-tests (Files): Likewise.
67271         * modules/strchrnul-tests (Files): Likewise.
67272         * modules/strerror-tests (Files): Likewise.
67273         * modules/strsignal-tests (Files): Likewise.
67274         * modules/strstr-tests (Files): Likewise.
67275         * modules/strtod-tests (Files): Likewise.
67276         * modules/strverscmp-tests (Files): Likewise.
67277         * modules/symlink-tests (Files): Likewise.
67278         * modules/symlinkat-tests (Files): Likewise.
67279         * modules/times-tests (Files): Likewise.
67280         * modules/trunc-tests (Files): Likewise.
67281         * modules/truncf-tests (Files): Likewise.
67282         * modules/truncl-tests (Files): Likewise.
67283         * modules/tsearch-tests (Files): Likewise.
67284         * modules/uname-tests (Files): Likewise.
67285         * modules/unlink-tests (Files): Likewise.
67286         * modules/unsetenv-tests (Files): Likewise.
67287         * modules/usleep-tests (Files): Likewise.
67288         * modules/utimensat-tests (Files): Likewise.
67289         * modules/vasprintf-tests (Files): Likewise.
67290         * modules/vdprintf-posix-tests (Files): Likewise.
67291         * modules/vfprintf-posix-tests (Files): Likewise.
67292         * modules/vprintf-posix-tests (Files): Likewise.
67293         * modules/vsnprintf-posix-tests (Files): Likewise.
67294         * modules/vsnprintf-tests (Files): Likewise.
67295         * modules/vsprintf-posix-tests (Files): Likewise.
67296         * modules/wcrtomb-tests (Files): Likewise.
67297         * modules/wcsnrtombs-tests (Files): Likewise.
67298         * modules/wcsrtombs-tests (Files): Likewise.
67299         * modules/wcwidth-tests (Files): Likewise.
67300         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
67301         * tests/test-isinf.c (isinf): Likewise.
67302         * tests/test-isnan.c (isnan): Likewise.
67303         * tests/test-signbit.c (signbit): Likewise.
67304         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
67305         declaration, either as macro or with correct signature.
67306         (select): Ensure function under test is declared with correct
67307         signature in correct header.
67308         * tests/test-atexit.c (atexit): Likewise.
67309         * tests/test-btowc.c (btowc): Likewise.
67310         * tests/test-canonicalize-lgpl.c (realpath)
67311         (canonicalize_file_name): Likewise.
67312         * tests/test-ceilf1.c (ceilf): Likewise.
67313         * tests/test-ceill.c (ceill): Likewise.
67314         * tests/test-chown.c (chown): Likewise.
67315         * tests/test-dprintf-posix.c (dprintf): Likewise.
67316         * tests/test-dup2.c (dup2): Likewise.
67317         * tests/test-dup3.c (dup3): Likewise.
67318         * tests/test-duplocale.c (duplocale): Likewise.
67319         * tests/test-fchdir.c (fchdir): Likewise.
67320         * tests/test-fchownat.c (fchownat): Likewise.
67321         * tests/test-fcntl.c (fcntl): Likewise.
67322         * tests/test-fdopendir.c (fdopendir): Likewise.
67323         * tests/test-fflush.c (fflush): Likewise.
67324         * tests/test-flock.c (flock): Likewise.
67325         * tests/test-floorf1.c (floorf): Likewise.
67326         * tests/test-floorl.c (floorl): Likewise.
67327         * tests/test-fnmatch.c (fnmatch): Likewise.
67328         * tests/test-fopen.c (fopen): Likewise.
67329         * tests/test-fprintf-posix.c (fprintf): Likewise.
67330         * tests/test-freopen.c (freopen): Likewise.
67331         * tests/test-frexp.c (frexp): Likewise.
67332         * tests/test-frexpl.c (frexpl): Likewise.
67333         * tests/test-fseek.c (fseek): Likewise.
67334         * tests/test-fseeko.c (fseeko): Likewise.
67335         * tests/test-fstatat.c (fstatat): Likewise.
67336         * tests/test-fsync.c (fsync): Likewise.
67337         * tests/test-ftell.c (ftell): Likewise.
67338         * tests/test-ftello.c (ftello): Likewise.
67339         * tests/test-futimens.c (futimens): Likewise.
67340         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
67341         (gai_strerror): Likewise.
67342         * tests/test-getcwd.c (getcwd): Likewise.
67343         * tests/test-getdelim.c (getdelim): Likewise.
67344         * tests/test-getdtablesize.c (getdtablesize): Likewise.
67345         * tests/test-getgroups.c (getgroups): Likewise.
67346         * tests/test-gethostname.c (gethostname): Likewise.
67347         * tests/test-getline.c (getline): Likewise.
67348         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
67349         Likewise.
67350         * tests/test-gettimeofday.c (gettimeofday): Likewise.
67351         * tests/test-glob.c (glob, globfree): Likewise.
67352         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
67353         * tests/test-inet_ntop.c (inet_ntop): Likewise.
67354         * tests/test-inet_pton.c (inet_pton): Likewise.
67355         * tests/test-isblank.c (isblank): Likewise.
67356         * tests/test-lchown.c (lchown): Likewise.
67357         * tests/test-ldexpl.c (ldexpl): Likewise.
67358         * tests/test-link.c (link): Likewise.
67359         * tests/test-linkat.c (linkat): Likewise.
67360         * tests/test-lseek.c (lseek): Likewise.
67361         * tests/test-lstat.c (lstat): Likewise.
67362         * tests/test-mbrtowc.c (mbrtowc): Likewise.
67363         * tests/test-mbsinit.c (mbsinit): Likewise.
67364         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
67365         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
67366         * tests/test-memchr.c (memchr): Likewise.
67367         * tests/test-memcmp.c (memcmp): Likewise.
67368         * tests/test-memmem.c (memmem): Likewise.
67369         * tests/test-memrchr.c (memrchr): Likewise.
67370         * tests/test-mkdir.c (mkdir): Likewise.
67371         * tests/test-mkdirat.c (mkdirat): Likewise.
67372         * tests/test-mkfifo.c (mkfifo): Likewise.
67373         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
67374         * tests/test-mknod.c (mknod): Likewise.
67375         * tests/test-nanosleep.c (nanosleep): Likewise.
67376         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
67377         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
67378         Likewise.
67379         * tests/test-open.c (open): Likewise.
67380         * tests/test-openat.c (openat): Likewise.
67381         * tests/test-perror.c (perror): Likewise.
67382         * tests/test-pipe2.c (pipe2): Likewise.
67383         * tests/test-poll.c (poll): Likewise.
67384         * tests/test-popen.c (popen, pclose): Likewise.
67385         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
67386         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
67387         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
67388         (posix_spawn_file_actions_destroy)
67389         (posix_spawn_file_actions_addclose)
67390         (posix_spawn_file_actions_addopen)
67391         (posix_spawn_file_actions_adddup2): Likewise.
67392         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
67393         * tests/test-pread.c (pread): Likewise.
67394         * tests/test-printf-posix.c (printf): Likewise.
67395         * tests/test-pty.c (openpty, forkpty): Likewise.
67396         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
67397         (random_r): Likewise.
67398         * tests/test-rawmemchr.c (rawmemchr): Likewise.
67399         * tests/test-readlink.c (readlink): Likewise.
67400         * tests/test-remove.c (remove): Likewise.
67401         * tests/test-rename.c (rename): Likewise.
67402         * tests/test-renameat.c (renameat): Likewise.
67403         * tests/test-rmdir.c (rmdir): Likewise.
67404         * tests/test-round1.c (round): Likewise.
67405         * tests/test-roundf1.c (roundf): Likewise.
67406         * tests/test-roundl.c (roundl): Likewise.
67407         * tests/test-setenv.c (setenv): Likewise.
67408         * tests/test-sigaction.c (sigaction): Likewise.
67409         * tests/test-sleep.c (sleep): Likewise.
67410         * tests/test-snprintf.c (snprintf): Likewise.
67411         * tests/test-sprintf-posix.c (sprintf): Likewise.
67412         * tests/test-stat.c (stat): Likewise.
67413         * tests/test-stpncpy.c (stpncpy): Likewise.
67414         * tests/test-strcasestr.c (strcasestr): Likewise.
67415         * tests/test-strchrnul.c (strchrnul): Likewise.
67416         * tests/test-strerror.c (strerror): Likewise.
67417         * tests/test-strsignal.c (strsignal): Likewise.
67418         * tests/test-strstr.c (strstr): Likewise.
67419         * tests/test-strtod.c (strtod): Likewise.
67420         * tests/test-strverscmp.c (strverscmp): Likewise.
67421         * tests/test-symlink.c (symlink): Likewise.
67422         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
67423         * tests/test-times.c (times): Likewise.
67424         * tests/test-trunc1.c (trunc): Likewise.
67425         * tests/test-truncf1.c (truncf): Likewise.
67426         * tests/test-truncl.c (truncl): Likewise.
67427         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
67428         Likewise.
67429         * tests/test-uname.c (uname): Likewise.
67430         * tests/test-unlink.c (unlink): Likewise.
67431         * tests/test-unlinkat.c (unlinkat): Likewise.
67432         * tests/test-unsetenv.c (unsetenv): Likewise.
67433         * tests/test-usleep.c (usleep): Likewise.
67434         * tests/test-utimensat.c (utimensat): Likewise.
67435         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
67436         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
67437         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
67438         * tests/test-vprintf-posix.c (vprintf): Likewise.
67439         * tests/test-vsnprintf.c (vsnprintf): Likewise.
67440         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
67441         * tests/test-wcrtomb.c (wcrtomb): Likewise.
67442         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
67443         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
67444         * tests/test-wcwidth.c (wcwidth): Likewise.
67446         build: pull in conditional headers during GNULIB_POSIXCHECK
67447         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
67448         definitions from any conditionally-included headers.
67449         * lib/stdlib.in.h (includes): Likewise.
67450         * lib/unistd.in.h (includes): Likewise.
67452 2009-12-24  Bruno Haible  <bruno@clisp.org>
67454         * tests/test-argv-iter.c: Include header file being tested immediately
67455         after config.h.
67456         * tests/test-base64.c: Likewise.
67457         * tests/test-flock.c: Likewise.
67458         * tests/test-fsync.c: Likewise.
67459         * tests/test-getdate.c: Likewise.
67460         * tests/test-getndelim2.c: Likewise.
67461         * tests/test-isfinite.c: Likewise.
67462         * tests/test-isinf.c: Likewise.
67463         * tests/test-strerror.c: Likewise.
67464         * tests/test-strsignal.c: Likewise.
67466 2009-12-23  Eric Blake  <ebb9@byu.net>
67468         unistd: work around cygwin bug
67469         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
67470         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
67471         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
67473 2009-12-23  Bruno Haible  <bruno@clisp.org>
67475         localename: More tests.
67476         * tests/test-localename.c (SIZEOF): New macro.
67477         (categories): New variable.
67478         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
67479         test_locale_name_default): Add test w.r.t. thread locale.
67480         (test_locale_name_thread): New function.
67481         (main): Invoke it.
67483         localename: Make aware of thread locale.
67484         * lib/localename.h (gl_locale_name_thread): New declaration.
67485         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
67486         behaviour with respect to thread locale.
67487         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
67488         <langinfo.h>, glthread/lock.h.
67489         (SIZE_BITS): New macro.
67490         (string_hash): New function.
67491         (struct hash_node): New type.
67492         (HASH_TABLE_SIZE): New macro.
67493         (struniq_hash_table, struniq_lock): New variables.
67494         (struniq): New function.
67495         (gl_locale_name_thread): New function.
67496         (gl_locale_name): Invoke it.
67497         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
67498         * modules/localename (Depends-on): Add lock.
67499         Reported by Mike Gran <spk121@yahoo.com>.
67501 2009-12-23  Eric Blake  <ebb9@byu.net>
67503         va-args: new module
67504         * modules/va-args: New file.
67505         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
67506         * MODULES.html.sh (Core language properties): Mention it.
67508         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
67509         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
67510         named alias for __attribute__((__unused__)).
67511         * lib/chown.c: Update client.
67512         * lib/fchmodat.c: Likewise.
67513         * lib/fts.c: Likewise.
67514         * lib/getdate.y: Likewise.
67515         * lib/getgroups.c: Likewise.
67516         * lib/getopt.c: Likewise.
67517         * lib/getugroups.c: Likewise.
67518         * lib/mkdir.c: Likewise.
67519         * lib/mkfifo.c: Likewise.
67520         * lib/mkfifoat.c: Likewise.
67521         * lib/mknod.c: Likewise.
67522         * lib/mknodat.c: Likewise.
67523         * lib/readlink.c: Likewise.
67524         * lib/se-context.in.h: Likewise.
67525         * lib/se-selinux.in.h: Likewise.
67526         * lib/sockets.c: Likewise.
67527         * lib/symlink.c: Likewise.
67528         * lib/symlinkat.c: Likewise.
67529         * lib/unicodeio.c: Likewise.
67530         * lib/unistr.h: Likewise.
67531         * tests/test-areadlink.c: Likewise.
67532         * tests/test-areadlinkat.c: Likewise.
67533         * tests/test-filenamecat.c: Likewise.
67534         * tests/test-fseeko.c: Likewise.
67535         * tests/test-ftello.c: Likewise.
67536         * tests/test-getdate.c: Likewise.
67537         * tests/test-getgroups.c: Likewise.
67538         * tests/test-gethostname.c: Likewise.
67539         * tests/test-quotearg.c: Likewise.
67540         * tests/test-version-etc.c: Likewise.
67541         * tests/test-xalloc-die.c: Likewise.
67542         * tests/test-xfprintf-posix.c: Likewise.
67543         * tests/test-xprintf-posix.c: Likewise.
67544         * tests/test-xvasprintf.c: Likewise.
67546         tests: avoid compiler warnings
67547         * tests/test-fcntl.c (main): Delete unused parameters.
67548         * tests/test-freopen-safer.c (main): Likewise.
67549         * tests/test-xalloc-die.c (main): Mark unused parameters.
67550         * tests/test-fseeko.c (main): Likewise.
67551         * tests/test-ftello.c (main): Likewise.
67552         * tests/test-nanosleep.c (main): Avoid declaration warning.
67553         * tests/test-sleep.c (main): Likewise.
67554         * tests/test-unsetenv.c (main): Silence warning about string
67555         literal.
67556         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
67558 2009-12-23  Bruno Haible  <bruno@clisp.org>
67560         * tests/test-localename.c (test_locale_name): New function, extracted
67561         from main. Also test mixed situations.
67562         (test_locale_name_posix, test_locale_name_environ,
67563         test_locale_name_default): New functions.
67564         (main): Invoke them all.
67565         * modules/localename-tests (configure.ac): Test for newlocale.
67567 2009-12-23  Bruno Haible  <bruno@clisp.org>
67569         unistd: Ensure getcwd gets declared before being overridden.
67570         * lib/unistd.in.h: Conditionally include <io.h>.
67572 2009-12-22  Bruno Haible  <bruno@clisp.org>
67574         wchar: Diagnose broken combination of glibc and gcc versions and flags.
67575         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
67576         (gl_WCHAR_H): Invoke it.
67577         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
67578         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
67579         Reported by Karl Berry <karl@freefriends.org>.
67581 2009-12-22  Eric Blake  <ebb9@byu.net>
67583         math, unistd: avoid redundant includes
67584         * lib/math.in.h (isnan): No need to re-include <math.h>.
67585         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
67587         getsubopt: work around cygwin bug
67588         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
67589         avoid conflicting with system getsubopt.
67590         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
67591         bug.
67593         getopt: synchronize from glibc
67594         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
67595         parameter order.  Adjust all callers.
67596         (_getopt_internal_r, main): Adjust quoting in error messages.
67597         Drop considerations for outdated POSIX 1003.2 error message.
67598         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
67599         callers.
67600         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
67602         test-getopt: test stderr behavior
67603         * modules/getopt-posix-tests (Depends-on): Add dup2.
67604         * tests/test-getopt.c (ASSERT): Avoid stderr.
67605         (main): Move stderr to a temporary file.
67606         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
67607         Instead, add parameter to inform caller if output occurred.
67608         (test_getopt): Adjust all existing tests to expect silence, and
67609         add new tests of leading ":".
67610         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
67611         glibc shortcomings with leading "-:" or "+:" in optstring.
67612         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67613         Likewise.
67614         * doc/posix-functions/getopt.texi (getopt): Likewise.
67616         test-getopt: enhance test
67617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
67618         supports optind=0.
67619         * tests/test-getopt.c (OPTIND_MIN): Move...
67620         * tests/test-getopt.h (OPTIND_MIN): ...here.
67621         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
67622         Require that optind=0 works, since modern BSD supports it in
67623         addition to optreset, and since coreutils expects it.
67624         (test_getopt_long_only): New test.
67625         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
67626         glibc shortcomings with 'W;', and enforcement of optind=0.
67627         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67628         Likewise.
67630 2009-12-21  Bruno Haible  <bruno@clisp.org>
67632         localename: Improvements for MacOS X and Cygwin.
67633         * lib/localename.h (gl_locale_name_environ): New declaration.
67634         * lib/localename.c (gl_locale_name_environ): New function, extracted from
67635         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
67636         (gl_locale_name_posix): Invoke it.
67637         (gl_locale_name_default): Add comments. Use Windows native API also on
67638         Cygwin.
67640 2009-12-21  Bruno Haible  <bruno@clisp.org>
67642         Update list of Win32 locale ids.
67643         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
67644         (LANG_SAMI): Renamed from LANG_SAAMI.
67645         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
67646         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
67647         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
67648         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
67649         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
67650         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
67651         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
67652         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
67653         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
67654         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
67655         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
67656         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
67657         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
67658         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
67659         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
67660         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
67661         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
67662         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
67663         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
67664         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
67665         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
67666         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
67667         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
67668         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
67669         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
67670         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
67671         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
67672         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
67673         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
67674         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
67675         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
67676         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
67677         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
67678         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
67679         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
67680         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
67681         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
67682         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
67683         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
67684         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
67685         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
67686         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
67687         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
67688         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
67689         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
67690         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
67691         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
67692         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
67693         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
67694         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
67695         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
67696         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
67697         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
67698         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
67699         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
67700         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
67701         Add more languages and countries for Sami, Sorbian. Add more countries
67702         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
67703         for Pashto. Change country for Syriac, Tswana.
67705 2009-12-21  Eric Blake  <ebb9@byu.net>
67707         test-utimens: avoid spurious failure
67708         * tests/test-chown.h (nap): Factor...
67709         * tests/nap.h: ...into new file.
67710         * tests/test-lchown.h (nap): Avoid duplication.
67711         * tests/test-utimens-common.h (nap): Use shared implementation,
67712         necessary on file systems with 1-second resolution.
67713         * modules/chown-tests (Files): Include new file.
67714         * modules/fdutimensat-tests (Files): Likewise.
67715         * modules/futimens-tests (Files): Likewise.
67716         * modules/lchown-tests (Files): Likewise.
67717         * modules/openat-tests (Files): Likewise.
67718         * modules/utimens-tests (Files): Likewise.
67719         * modules/utimensat-tests (Files): Likewise.
67721 2009-12-19  Eric Blake  <ebb9@byu.net>
67723         futimens, utimensat: work around Linux bug
67724         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
67725         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
67726         * lib/utimensat.c (rpl_utimensat): Work around it.
67727         * lib/futimens.c (rpl_futimens): Adjust comment.
67729         utimens: work around Linux ctime bug
67730         * lib/utimens.c (detect_ctime_bug): New helper function.
67731         (update_timespec): Differentiate between workaround needed for
67732         this bug vs. what is needed for systems that lack utimensat.
67733         (fdutimens, lutimens): Work around bug.
67735         utimens: check for ctime update
67736         * tests/test-utimens-common.h (check_ctime): Define.
67737         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
67738         * tests/test-futimens.h (test_futimens): Likewise.
67739         * tests/test-lutimens.h (test_lutimens): Likewise.
67740         * doc/posix-functions/futimens.texi (futimens): Document the bug.
67741         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
67743 2009-12-19  Bruno Haible  <bruno@clisp.org>
67745         dprintf-posix: Check against memory leak fixed on 2009-12-15.
67746         * tests/test-dprintf-posix2.sh: New file.
67747         * tests/test-dprintf-posix2.c: New file.
67748         * modules/dprintf-posix-tests (Files): Add them.
67749         (configure.ac): Check for getrlimit and setrlimit.
67750         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
67752 2009-12-19  Bruno Haible  <bruno@clisp.org>
67754         fprintf-posix: Check against memory leak fixed on 2009-12-15.
67755         * tests/test-fprintf-posix3.sh: New file.
67756         * tests/test-fprintf-posix3.c: New file.
67757         * modules/fprintf-posix-tests (Files): Add them.
67758         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
67760 2009-12-19  Eric Blake  <ebb9@byu.net>
67762         dirfd: fix prototype
67763         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
67764         * lib/dirfd.c (dirfd): Likewise.
67766         canonicalize: reduce memory usage
67767         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
67768         allocation to size.
67769         Reported by Solar Designer <solar@openwall.com>.
67771 2009-12-19  Bruno Haible  <bruno@clisp.org>
67773         New module attribute 'Applicability'.
67774         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
67775         * gnulib-tool: New option --extract-applicability.
67776         (func_usage): Document it.
67777         (sed_extract_prog): Recognize it.
67778         (func_get_applicability): New function.
67779         (func_import): Generalize handling of 'link-warning' module.
67780         * modules/link-warning (Applicability): New section.
67781         * modules/arg-nonnull (Applicability): New section.
67782         Repoted by Simon Josefsson <simon@josefsson.org>.
67784 2009-12-19  Bruno Haible  <bruno@clisp.org>
67786         fflush: tweak
67787         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
67788         * lib/fseeko.c (rpl_fseeko): Likewise.
67790 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
67792         * lib/gl_list.h: Fix typo in comment.
67794 2009-12-16  Eric Blake  <ebb9@byu.net>
67796         fcntl: use to simplify other modules
67797         * modules/cloexec (Depends-on): Add fcntl.
67798         * modules/fchdir (Depends-on): Likewise.
67799         * modules/fd-safer-flag (Depends-on): Likewise.
67800         * modules/unistd-safer (Depends-on): Likewise.
67801         * modules/dup3 (configure.ac): Set module indicator.
67802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
67803         missing.
67804         * lib/fchdir.c (_gl_register_dup): Fix comment.
67805         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
67806         * lib/dup-safer.c (dup_safer): Likewise.
67807         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
67808         * lib/dup3.c (dup3): Likewise.
67809         * tests/test-fchdir.c (main): Enhance test.
67810         Fixes a dup_cloexec bug reported by Ondřej Vašík.
67812         fcntl: port portions of fcntl to mingw
67813         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
67814         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
67815         replacement for mingw.
67816         * modules/fcntl (Description): Update.
67817         (Depends-on): Add dup2.
67818         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
67819         * modules/fcntl-h (Makefile.am): Substitute it.
67820         * lib/fcntl.in.h (fcntl): Update declaration.
67821         (F_DUPFD, F_GETFD): New macros, when needed.
67822         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
67823         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
67824         * tests/test-fcntl.c (check_flags, main): Enhance test for items
67825         we now guarantee.
67827         fcntl: work around cygwin bug in F_DUPFD
67828         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
67829         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
67830         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
67831         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
67832         * doc/posix-functions/fcntl.texi (fcntl): Document it.
67834         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
67835         * modules/fcntl (Files): List new files.
67836         (configure.ac): Run a test.
67837         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
67838         * lib/fcntl.c (rpl_fcntl): Likewise.
67839         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
67840         (gl_FCNTL_H): Always replace fcntl.h.
67841         * modules/fcntl-h (Makefile.am): Substitute witnesses.
67842         * lib/fcntl.in.h (fcntl): Declare replacement.
67843         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
67844         needed, plus a witness.
67845         * doc/posix-functions/fcntl.texi (fcntl): Document this.
67846         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
67847         * tests/test-fcntl.c: New file.
67848         * modules/fcntl-tests: Likewise.
67850         binary-io: avoid potential compilation warning
67851         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
67852         directives.
67854         fflush: avoid compilation error on NetBSD
67855         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
67856         between off_t and fpos_t, since the latter is sometimes a struct.
67857         * lib/fseeko.c (rpl_fseeko): Likewise.
67858         Reported by Alexander Nasonov <alnsn@yandex.ru>.
67860 2009-12-15  Eric Blake  <ebb9@byu.net>
67862         fcntl-h, stdio, sys_ioctl: fix declarations
67863         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
67864         function must not take arguments.
67865         * lib/sys_ioctl.in.h (ioctl): Likewise.
67866         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
67867         (open): Add a link warning.
67869 2009-12-15  Jim Meyering  <meyering@redhat.com>
67871         areadlink, areadlink-with-size: relax license to LGPLv2+
67872         * modules/areadlink (License): Relax to LGPLv2+.
67873         * modules/areadlink-with-size (License): Likewise.
67875 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
67876             Bruno Haible  <bruno@clisp.org>
67878         *printf: Fix memory leak.
67879         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
67880         * lib/vfprintf.c (vfprintf): Likewise.
67881         * lib/dprintf.c (dprintf): Likewise.
67882         * lib/vdprintf.c (vdprintf): Likewise.
67884 2009-12-14  Eric Blake  <ebb9@byu.net>
67886         accept4: adjust module dependencies
67887         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
67889         utimens: one more try at avoiding compiler warning
67890         * lib/utimens.c (lutimens): Lower scope of result.
67892 2009-12-13  Bruno Haible  <bruno@clisp.org>
67894         Move the malloc checking from module 'list' to new module 'xlist'.
67895         * modules/xlist: New file.
67896         * lib/gl_xlist.h: New file.
67897         * lib/gl_xlist.c: New file.
67898         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
67899         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
67900         gl_list_add_last, gl_list_add_before, gl_list_add_after,
67901         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
67902         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
67903         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
67904         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
67905         gl_sortedlist_nx_add): New declarations.
67906         (struct gl_list_implementation): Rename and change methods accordingly.
67907         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
67908         (gl_list_nx_create): Renamed from gl_list_create.
67909         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
67910         (gl_list_nx_set_at): Renamed from gl_list_set_at.
67911         (gl_list_nx_add_first): Renamed from gl_list_add_first.
67912         (gl_list_nx_add_last): Renamed from gl_list_add_last.
67913         (gl_list_nx_add_before): Renamed from gl_list_add_before.
67914         (gl_list_nx_add_after): Renamed from gl_list_add_after.
67915         (gl_list_nx_add_at): Renamed from gl_list_add_at.
67916         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
67917         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
67918         gl_list_create_empty.
67919         (gl_list_nx_create): Renamed from gl_list_create.
67920         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
67921         (gl_list_nx_set_at): Renamed from gl_list_set_at.
67922         (gl_list_nx_add_first): Renamed from gl_list_add_first.
67923         (gl_list_nx_add_last): Renamed from gl_list_add_last.
67924         (gl_list_nx_add_before): Renamed from gl_list_add_before.
67925         (gl_list_nx_add_after): Renamed from gl_list_add_after.
67926         (gl_list_nx_add_at): Renamed from gl_list_add_at.
67927         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
67928         * lib/gl_array_list.c: Don't include xalloc.h.
67929         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
67930         NULL upon out-of-memory.
67931         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
67932         out-of-memory.
67933         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
67934         Change return type to 'int'.
67935         (gl_array_nx_set_at): Renamed from gl_array_set_at.
67936         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
67937         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
67938         upon out-of-memory.
67939         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
67940         upon out-of-memory.
67941         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
67942         upon out-of-memory.
67943         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
67944         upon out-of-memory.
67945         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
67946         out-of-memory.
67947         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
67948         Update.
67949         (gl_array_list_implementation): Update.
67950         * lib/gl_carray_list.c: Don't include xalloc.h.
67951         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
67952         Return NULL upon out-of-memory.
67953         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
67954         out-of-memory.
67955         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
67956         Change return type to 'int'.
67957         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
67958         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
67959         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
67960         upon out-of-memory.
67961         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
67962         upon out-of-memory.
67963         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
67964         out-of-memory.
67965         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
67966         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
67967         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
67968         Update.
67969         (gl_carray_list_implementation): Update.
67970         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
67971         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
67972         gl_linked_create_empty. Return NULL upon out-of-memory.
67973         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
67974         out-of-memory.
67975         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
67976         Change return type to 'int'. Return -1 upon out-of-memory.
67977         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
67978         out-of-memory.
67979         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
67980         upon out-of-memory.
67981         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
67982         upon out-of-memory.
67983         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
67984         NULL upon out-of-memory.
67985         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
67986         upon out-of-memory.
67987         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
67988         out-of-memory.
67989         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
67990         Update.
67991         * lib/gl_linked_list.c: Don't include xalloc.h.
67992         (gl_linked_list_implementation): Update.
67993         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
67994         (add_to_bucket): Change return type to 'int'.
67995         (gl_linkedhash_list_implementation): Update.
67996         * lib/gl_anytree_list1.h (free_subtree): New function.
67997         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
67998         gl_tree_create_empty. Return NULL upon out-of-memory.
67999         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
68000         Change return type to 'int'. Return -1 upon out-of-memory.
68001         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
68002         out-of-memory.
68003         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
68004         (gl_tree_remove_node): New function, moved here from
68005         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
68006         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
68007         Update.
68008         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
68009         malloc, not xmalloc. Return NULL upon out-of-memory.
68010         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68011         out-of-memory.
68012         (gl_tree_remove_node_from_tree): New function, extracted from
68013         gl_tree_remove_node.
68014         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68015         upon out-of-memory.
68016         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68017         out-of-memory.
68018         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68019         upon out-of-memory.
68020         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68021         upon out-of-memory.
68022         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68023         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
68024         not xmalloc. Return NULL upon out-of-memory.
68025         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
68026         out-of-memory.
68027         (gl_tree_remove_node_from_tree): New function, extracted from
68028         gl_tree_remove_node.
68029         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
68030         upon out-of-memory.
68031         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
68032         out-of-memory.
68033         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
68034         upon out-of-memory.
68035         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
68036         upon out-of-memory.
68037         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
68038         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
68039         gl_anytree_list1.h before gl_anyavltree_list2.h.
68040         (gl_avltree_list_implementation): Update.
68041         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
68042         gl_anytree_list1.h before gl_anyavltree_list2.h.
68043         (gl_rbtree_list_implementation): Update.
68044         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
68045         Change return type to 'int'. Return -1 upon out-of-memory. Use
68046         __builtin_expect.
68047         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
68048         (gl_avltreehash_list_implementation): Update.
68049         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
68050         (gl_rbtreehash_list_implementation): Update.
68051         * modules/array-list (Depends-on): Remove xalloc.
68052         * modules/carray-list (Depends-on): Likewise.
68053         * modules/linked-list (Depends-on): Likewise.
68054         * modules/linkedhash-list (Depends-on): Likewise.
68055         * modules/avltree-list (Depends-on): Likewise.
68056         * modules/rbtree-list (Depends-on): Likewise.
68057         * modules/avltreehash-list (Depends-on): Likewise.
68058         * modules/rbtreehash-list (Depends-on): Likewise.
68060         * modules/xsublist: New file.
68061         * lib/gl_xsublist.h: New file.
68062         * lib/gl_xsublist.c: New file.
68063         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
68064         (gl_sublist_nx_create): New declaration.
68065         * lib/gl_sublist.c: Don't include xalloc.h.
68066         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
68067         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
68068         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
68069         Change return type to 'int'. Return -1 upon out-of-memory.
68070         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
68071         upon out-of-memory.
68072         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
68073         NULL upon out-of-memory.
68074         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
68075         upon out-of-memory.
68076         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
68077         NULL upon out-of-memory.
68078         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
68079         NULL upon out-of-memory.
68080         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
68081         upon out-of-memory.
68082         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
68083         (gl_sublist_list_implementation): Update.
68084         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
68085         upon out-of-memory.
68086         * modules/sublist (Depends-on): Remove xalloc.
68088         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
68089         * tests/test-carray_list.c: Likewise.
68090         * tests/test-linked_list.c: Likewise.
68091         * tests/test-linkedhash_list.c: Likewise.
68092         * tests/test-avltree_list.c: Likewise.
68093         * tests/test-rbtree_list.c: Likewise.
68094         * tests/test-avltreehash_list.c: Likewise.
68095         * tests/test-rbtreehash_list.c: Likewise.
68096         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
68097         * modules/carray-list-tests (Makefile.am): Likewise.
68098         * modules/linked-list-tests (Makefile.am): Likewise.
68099         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68100         * modules/avltree-list-tests (Makefile.am): Likewise.
68101         * modules/rbtree-list-tests (Makefile.am): Likewise.
68102         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68103         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68105         * NEWS: Mention the changes.
68107         * lib/clean-temp.c: Include gl_xlist.h.
68108         * modules/clean-temp (Depends-on): Add xlist.
68110         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
68111         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
68113         * tests/test-array_oset.c: Include gl_xlist.h.
68114         * modules/array-oset-tests (Depends-on): Add xlist.
68116         Reported by José E. Marchesi <jemarch@gnu.org>.
68118 2009-12-13  Bruno Haible  <bruno@clisp.org>
68120         Move the malloc checking from module 'oset' to new module 'xoset'.
68121         * modules/xoset: New file.
68122         * lib/gl_xoset.h: New file.
68123         * lib/gl_xoset.c: New file.
68124         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
68125         declarations.
68126         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
68127         (struct gl_oset_implementation): Rename and change methods accordingly.
68128         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
68129         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68130         'int'. Mark as __warn_unused_result__.
68131         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
68132         gl_oset_create_empty.
68133         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
68134         'int'.
68135         * lib/gl_array_oset.c: Don't include xalloc.h.
68136         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
68137         malloc, not xmalloc.
68138         (grow): Change return type to 'int'. Don't call xalloc_die.
68139         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
68140         to 'int'.
68141         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
68142         'int'.
68143         (gl_array_oset_implementation): Update.
68144         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
68145         gl_tree_create_empty.
68146         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
68147         'int'.
68148         * lib/gl_avltree_oset.c: Don't include xalloc.h.
68149         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68150         xmalloc.
68151         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68152         not xmalloc.
68153         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68154         xmalloc.
68155         (gl_avltree_oset_implementation): Update.
68156         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
68157         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
68158         xmalloc.
68159         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
68160         not xmalloc.
68161         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
68162         xmalloc.
68163         (gl_rbtree_oset_implementation): Update.
68164         * modules/array-oset (Depends-on): Remove xalloc.
68165         * modules/avltree-oset (Depends-on): Likewise.
68166         * modules/rbtree-oset (Depends-on): Likewise.
68167         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
68168         * tests/test-avltree_oset.c: Likewise.
68169         * tests/test-rbtree_oset.c: Likewise.
68170         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68171         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
68172         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68173         * NEWS: Mention the change.
68175 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
68177         maint.mk: allow a project to override release-prep commands
68178         * top/maint.mk (alpha, beta, stable): Move release-preparatory
68179         commands into a new rule.
68180         (release-prep): New rule.
68181         (release-prep-hook): New overridable variable.
68183 2009-12-13  Bruno Haible  <bruno@clisp.org>
68185         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
68187 2009-12-13  Jim Meyering  <meyering@redhat.com>
68189         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
68190         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
68192 2009-12-12  Bruno Haible  <bruno@clisp.org>
68194         duplocale: Tweak.
68195         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
68197 2009-12-12  Karl Berry  <karl@gnu.org>
68199         * config/srclist.txt (strtoll.c): tab changes, no more sync.
68201 2009-12-12  Bruno Haible  <bruno@clisp.org>
68203         * m4/po.m4: Undo incorrect untabification.
68205 2009-12-12  Bruno Haible  <bruno@clisp.org>
68207         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
68208         * modules/c-strtod (Depends-on): Add locale.
68209         * modules/c-strtold (Depends-on): Likewise.
68211 2009-12-12  Bruno Haible  <bruno@clisp.org>
68213         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
68215 2009-12-11  Eric Blake  <ebb9@byu.net>
68217         setenv: relax requirement in light of POSIX ruling
68218         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
68219         not NULL.
68220         * tests/test-setenv.c (main): Relax test.
68221         * tests/test-unsetenv.c (main): Likewise.
68222         * doc/posix-functions/setenv.texi (setenv): Document this.
68223         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
68225 2009-12-11  Bruno Haible  <bruno@clisp.org>
68227         New module 'fd-safer-flag'.
68228         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
68229         * lib/dup-safer.c (dup_safer_flag): Remove function.
68230         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
68231         * lib/fd-safer.c (fd_safer_flag): Remove function.
68232         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
68233         * modules/cloexec (configure.ac): Drop indicator macro.
68234         * modules/fd-safer-flag: New file.
68235         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
68236         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
68237         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
68239 2009-12-11  Bruno Haible  <bruno@clisp.org>
68241         Tests for module 'nl_langinfo'.
68242         * modules/nl_langinfo-tests: New file.
68243         * tests/test-nl_langinfo.sh: New file.
68244         * tests/test-nl_langinfo.c: New file.
68246         New module 'nl_langinfo'.
68247         * lib/nl_langinfo.c: New file.
68248         * m4/nl_langinfo.m4: New file.
68249         * modules/nl_langinfo: New file.
68250         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
68252 2009-12-11  Bruno Haible  <bruno@clisp.org>
68254         Tests for module 'langinfo'.
68255         * modules/langinfo-tests: New file.
68256         * tests/test-langinfo.c: New file.
68258         New module 'langinfo'.
68259         * lib/langinfo.in.h: New file.
68260         * m4/langinfo_h.m4: New file.
68261         * modules/langinfo: New file.
68262         * doc/posix-headers/langinfo.texi: Mention the new module.
68264 2009-12-11  Bruno Haible  <bruno@clisp.org>
68266         * lib/config.charset: Untabify.
68268 2009-12-11  Bruno Haible  <bruno@clisp.org>
68270         * modules/unistd-safer (configure.ac): Drop indicator macro.
68272 2009-12-11  Bruno Haible  <bruno@clisp.org>
68274         Move pipe2-safer code to its own file.
68275         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
68276         * lib/pipe-safer.c (pipe2_safer): Remove function.
68277         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
68278         (Makefile.am): Add it to lib_SOURCES.
68280 2009-12-10  Bruno Haible  <bruno@clisp.org>
68282         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
68284 2009-12-10  Bruno Haible  <bruno@clisp.org>
68286         Declare which arguments expect non-NULL values, for GCC and clang.
68287         * build-aux/arg-nonnull.h: New file.
68288         * modules/arg-nonnull: New file.
68289         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
68290         (inet_ntop, inet_pton): Use it.
68291         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
68292         (closedir, dirfd, opendir, scandir, alphasort): Use it.
68293         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
68294         (open, openat): Use it.
68295         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
68296         (fnmatch): Use it.
68297         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
68298         (getopt, getopt_long, getopt_long_only): Use it.
68299         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
68300         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
68301         Use it.
68302         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
68303         (iconv_open): Use it.
68304         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
68305         (strtoimax, strtoumax): Use it.
68306         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
68307         (duplocale): Use it.
68308         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
68309         (frexp, frexpl): Use it.
68310         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
68311         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
68312         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
68313         (tsearch, tfind, tdelete, twalk): Use it.
68314         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
68315         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68316         sigpending): Use it.
68317         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
68318         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68319         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68320         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68321         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68322         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68323         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68324         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68325         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68326         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68327         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68328         Use it.
68329         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
68330         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
68331         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
68332         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
68333         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
68334         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
68335         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
68336         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
68337         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
68338         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
68339         strtoull, unsetenv): Use it.
68340         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
68341         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68342         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68343         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
68344         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
68345         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
68346         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
68347         (strcasecmp, strncasecmp): Use it.
68348         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
68349         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
68350         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
68351         rpl_setsockopt): Use it.
68352         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
68353         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
68354         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
68355         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
68356         (gettimeofday): Use it.
68357         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
68358         (times): Use it.
68359         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
68360         (uname): Use it.
68361         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
68362         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
68363         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
68364         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
68365         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
68366         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
68367         unlinkat, write): Use it.
68368         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
68369         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
68370         * lib/argv-iter.h: Include arg-nonnull.h.
68371         (_ATTRIBUTE_NONNULL_): Remove macro.
68372         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
68373         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
68374         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
68375         optimization.
68376         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
68377         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
68378         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
68379         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
68380         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
68381         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
68382         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
68383         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
68384         * modules/arpa_inet (Depends-on): Add arg-nonnull.
68385         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
68386         * modules/dirent (Depends-on): Add arg-nonnull.
68387         (Makefile.am): Insert arg-nonnull.h into dirent.h.
68388         * modules/fcntl-h (Depends-on): Add arg-nonnull.
68389         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
68390         * modules/fnmatch (Depends-on): Add arg-nonnull.
68391         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
68392         * modules/getopt-posix (Depends-on): Add arg-nonnull.
68393         (Makefile.am): Insert arg-nonnull.h into getopt.h.
68394         * modules/glob (Depends-on): Add arg-nonnull.
68395         (Makefile.am): Insert arg-nonnull.h into glob.h.
68396         * modules/iconv_open (Depends-on): Add arg-nonnull.
68397         (Makefile.am): Insert arg-nonnull.h into iconv.h.
68398         * modules/inttypes (Depends-on): Add arg-nonnull.
68399         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
68400         * modules/locale (Depends-on): Add arg-nonnull.
68401         (Makefile.am): Insert arg-nonnull.h into locale.h.
68402         * modules/math (Depends-on): Add arg-nonnull.
68403         (Makefile.am): Insert arg-nonnull.h into math.h.
68404         * modules/netdb (Depends-on): Add arg-nonnull.
68405         (Makefile.am): Insert arg-nonnull.h into netdb.h.
68406         * modules/search (Depends-on): Add arg-nonnull.
68407         (Makefile.am): Insert arg-nonnull.h into search.h.
68408         * modules/signal (Depends-on): Add arg-nonnull.
68409         (Makefile.am): Insert arg-nonnull.h into signal.h.
68410         * modules/spawn (Depends-on): Add arg-nonnull.
68411         (Makefile.am): Insert arg-nonnull.h into spawn.h.
68412         * modules/stdio (Depends-on): Add arg-nonnull.
68413         (Makefile.am): Insert arg-nonnull.h into stdio.h.
68414         * modules/stdlib (Depends-on): Add arg-nonnull.
68415         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
68416         * modules/string (Depends-on): Add arg-nonnull.
68417         (Makefile.am): Insert arg-nonnull.h into string.h.
68418         * modules/strings (Depends-on): Add arg-nonnull.
68419         (Makefile.am): Insert arg-nonnull.h into strings.h.
68420         * modules/sys_socket (Depends-on): Add arg-nonnull.
68421         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
68422         * modules/sys_stat (Depends-on): Add arg-nonnull.
68423         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
68424         * modules/sys_time (Depends-on): Add arg-nonnull.
68425         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
68426         * modules/sys_times (Depends-on): Add arg-nonnull.
68427         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
68428         * modules/sys_utsname (Depends-on): Add arg-nonnull.
68429         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
68430         * modules/time (Depends-on): Add arg-nonnull.
68431         (Makefile.am): Insert arg-nonnull.h into time.h.
68432         * modules/unistd (Depends-on): Add arg-nonnull.
68433         (Makefile.am): Insert arg-nonnull.h into unistd.h.
68434         * modules/wchar (Depends-on): Add arg-nonnull.
68435         (Makefile.am): Insert arg-nonnull.h into wchar.h.
68436         * modules/argv-iter (Depends-on): Add arg-nonnull.
68437         * tests/test-canonicalize.c (null_ptr): New function.
68438         (main): Use it.
68439         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
68440         (main): Use it.
68441         * tests/test-memmem.c (null_ptr): New function.
68442         (main): Use it.
68443         Reported by Jim Meyering.
68445 2009-12-10  Bruno Haible  <bruno@clisp.org>
68447         Use spaces for indentation, not tabs.
68448         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
68449         * m4/*.m4: Untabify.
68450         * build-aux/*.h: Untabify.
68451         * tests/**/*.[hc]: Untabify.
68452         * README: New section "Indent with spaces, not TABs", based on
68453         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
68454         * NEWS: Mention the change.
68456 2009-12-10  Bruno Haible  <bruno@clisp.org>
68458         pty test: Fix link error.
68459         * modules/pty-tests (Makefile.am): Add the default LDADD value to
68460         test_pty_LDADD.
68462 2009-12-07  Simon Josefsson  <simon@josefsson.org>
68464         * modules/pty: New file.
68465         * modules/pty-tests: New file.
68466         * m4/pty.m4: New file.
68467         * tests/test-pty.c: New file.
68468         * doc/glibc-headers/pty.texi: Modified.
68469         * doc/glibc-functions/forkpty.texi: Modified.
68470         * doc/glibc-functions/openpty.texi: Modified.
68472 2009-12-10  Bruno Haible  <bruno@clisp.org>
68474         Avoid syntax error in C++ mode.
68475         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
68477 2009-12-10  Bruno Haible  <bruno@clisp.org>
68479         Use sed with option -e.
68480         * gnulib-tool (func_version, func_emit_copyright_notice,
68481         func_emit_initmacro_end, func_import, func_create_testdir): Pass
68482         option -e to sed.
68483         * modules/link-warning (Makefile.am): Likewise.
68485 2009-12-10  Jim Meyering  <meyering@redhat.com>
68487         mgetgroups: do not write bytes beyond end of malloc'd buffer
68488         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
68489         username, we call getgroups with a one-element-shorter buffer,
68490         but still told it the length was original, max_n_groups.
68492 2009-12-09  Eric Blake  <ebb9@byu.net>
68494         cloexec: relax license
68495         * modules/cloexec (Maintainer): Add myself.
68496         (License): Use LGPL, not GPL.
68498         link-warning: optimize generation
68499         * modules/link-warning (Makefile.am): Reduce process usage.
68501 2009-12-09  Bruno Haible  <bruno@clisp.org>
68503         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
68504         workaround was added on 2009-11-17.
68506 2009-12-09  Jim Meyering  <meyering@redhat.com>
68507             Bruno Haible  <bruno@clisp.org>
68509         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
68510         * modules/link-warning (Makefile.am): Make the comment-removing sed
68511         command more robust in the face of bootstrap-prepended comment lines.
68513 2009-12-09  Bruno Haible  <bruno@clisp.org>
68515         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
68516         most one group.
68518 2009-12-09  Simon Josefsson  <simon@josefsson.org>
68519             Bruno Haible  <bruno@clisp.org>
68521         * build-aux/link-warning.h: Add copyright notice.
68522         * modules/link-warning (Makefile.am): Generate link-warning.h from
68523         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
68524         * NEWS: Mention change in link-warning module.
68525         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
68526         * modules/dirent (Makefile.am): Add dependency to dirent.h.
68527         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
68528         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
68529         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
68530         * modules/math (Makefile.am): Add dependency to math.h.
68531         * modules/search (Makefile.am): Add dependency to search.h.
68532         * modules/signal (Makefile.am): Add dependency to signal.h.
68533         * modules/spawn (Makefile.am): Add dependency to spawn.h.
68534         * modules/stdio (Makefile.am): Add dependency to stdio.h.
68535         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
68536         * modules/string (Makefile.am): Add dependency to string.h.
68537         * modules/strings (Makefile.am): Add dependency to strings.h.
68538         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
68539         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
68540         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
68541         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
68542         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
68543         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
68544         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
68545         * modules/unistd (Makefile.am): Add dependency to unistd.h.
68546         * modules/wchar (Makefile.am): Add dependency to wchar.h.
68548 2009-12-09  Bruno Haible  <bruno@clisp.org>
68550         fchdir: Optimize away rpl_fstat when possible.
68551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
68552         REPLACE_OPEN_DIRECTORY.
68553         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
68555 2009-12-09  Bruno Haible  <bruno@clisp.org>
68557         * lib/fchdir.c: Update comment.
68559 2009-12-09  Bruno Haible  <bruno@clisp.org>
68561         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
68563 2009-12-08  Eric Blake  <ebb9@byu.net>
68565         fchdir: avoid memory leak on re-registration.
68566         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
68568 2009-12-08  Jim Meyering  <meyering@redhat.com>
68570         init.sh: avoid Solaris 10 /bin/sh portability problem
68571         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
68572         sourced script:
68573           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
68574           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
68575           bar
68576         tests/init.sh relied on that, accepting a --set-path=DIR argument,
68577         and two tests used that idiom.
68578         * tests/init.sh: Update suggested usage comments.
68579         (path_prepend_): New function, to be used in place
68580         of the --src-path=DIR option.
68581         (setup_): Move PATH-prepending code into path_prepend_.
68582         * tests/test-pread.sh: Adapt to new usage.
68583         * tests/test-xalloc-die.sh: Likewise.
68585 2009-12-08  Simon Josefsson  <simon@josefsson.org>
68587         * doc/gnulib.texi (Glibc pty.h): Add.
68588         * doc/glibc-functions/forkpty.texi: Add.
68589         * doc/glibc-functions/openpty.texi: Add.
68590         Suggested by Bruno Haible.
68592 2009-12-08  Eric Blake  <ebb9@byu.net>
68594         fchdir: fix logic bugs
68595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
68596         * tests/test-fchdir.c (main): Enhance test.
68597         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
68598         is in use.
68600         dup2: fix logic bugs
68601         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
68602         REPLACE_DUP2 to decide when rpl_dup2 is needed.
68603         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
68604         exists.
68605         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
68607 2009-12-07  Eric Blake  <ebb9@byu.net>
68609         unlink: fix m4 detection
68610         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
68612         unistd-safer: add unit test
68613         * modules/unistd-safer-tests: New file.
68614         * tests/test-dup-safer.c: Likewise.
68615         * tests/test-cloexec.c (setmode): Avoid compiler warning.
68616         * tests/test-dup2.c (setmode): Likewise.
68617         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
68619         cloexec: preserve text vs. binary across dup_cloexec
68620         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
68621         mode.
68622         * modules/dup2-tests (Depends-on): Add binary-io.
68623         * modules/cloexec-tests (Depends-on): Likewise.
68624         * tests/test-dup2.c (setmode, is_mode): New helpers.
68625         (main): Add tests that translation mode is preserved.
68626         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
68627         Reported by Bruno Haible.
68629         mgetgroups: reduce duplicate listings
68630         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
68631         resulting array.
68632         * tests/test-chown.h (test_chown): Simplify client.
68633         * tests/test-lchown.h (test_lchown): Likewise.
68635 2009-12-06  Bruno Haible  <bruno@clisp.org>
68637         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
68638         value.
68640 2009-12-06  Bruno Haible  <bruno@clisp.org>
68642         * lib/progname.c: Include stdio.h, stdlib.h.
68643         (set_program_name): Reject a NULL argument.
68645 2009-12-05  Eric Blake  <ebb9@byu.net>
68647         pipe2-safer: new module
68648         * modules/pipe2-safer: New file.
68649         * lib/unistd-safer.h (pipe2_safer): New prototype.
68650         * lib/unistd--.h (pipe2): New wrapper.
68651         * lib/pipe-safer.c (pipe2_safer): New function.
68652         * modules/pipe (Depends-on): Add pipe2-safer.
68653         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
68655         stdlib-safer: preserve cloexec flag for mkostemp[s]
68656         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
68657         fd_safer_flag.
68659         unistd-safer: allow preservation of cloexec status via flag
68660         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
68661         prototypes.
68662         * lib/dup-safer.c (dup_safer_flag): New function.
68663         * lib/fd-safer.c (fd_safer_flag): Likewise.
68664         * modules/cloexec (configure.ac): Set witness.
68666         test-dup2: enhance test
68667         * modules/dup2-tests (Depends-on): Add cloexec.
68668         * tests/test-dup2.c (main): Enhance test.
68670         cloexec: add dup_cloexec
68671         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
68672         header and comments.
68673         * lib/cloexec.c (set_cloexec_flag): Add comments.
68674         (dup_cloexec): New function, with mingw implementation borrowed
68675         from...
68676         * lib/w32spawn.h (dup_noinherit): ...here.
68677         * modules/execute (Depends-on): Add cloexec.
68678         * modules/pipe (Depends-on): Likewise.
68679         * modules/cloexec (Depends-on): Add dup2.
68680         * modules/cloexec-tests (Files): New file.
68681         * tests/test-cloexec.c: Likewise.
68683         test-xalloc-die: fix test for mingw
68684         * modules/xalloc-die-tests (Files): Add tests/init.sh.
68685         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
68686         directory and .exe suffix off argv[0] output.
68688         test-fseeko: fix test for mingw
68689         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
68690         than undefining fseek, so test will pass on mingw.
68692 2009-12-05  Bruno Haible  <bruno@clisp.org>
68694         * lib/progname.h (set_program_name): Clarify specification.
68695         * lib/progname.c (set_program_name): Likewise.
68696         Reported by Jim Meyering.
68698 2009-12-05  Jim Meyering  <meyering@redhat.com>
68700         maint.mk: backslash-escape parens in default regexp
68701         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
68702         backslash-escape the literal parentheses.
68704         maint.mk: news-date-check: use grep -E
68705         * top/maint.mk (today): Define a Make variable, not a...
68706         (news-date-check): ...shell variable.
68707         (news-date-regexp): Use the Make variable.
68708         Use grep's -E option.  Change the failing diagnostic to mention
68709         the variable, $(news-date-regexp).
68711 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
68713         maintainer-makefile: allow customization of NEWS entry format
68714         * top/maint.mk (news-date-regexp): New overridable variable.
68715         (news-date-check): Use it.
68717 2009-12-04  Eric Blake  <ebb9@byu.net>
68719         mgetgroups: add xgetgroups, and avoid ENOSYS failures
68720         * lib/mgetgroups.h (xgetgroups): New prototype.
68721         * lib/mgetgroups.c (xgetgroups): New wrapper.
68722         (mgetgroups): Handle ENOSYS.
68723         * modules/mgetgroups (Depends-on): Add realloc.
68724         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
68726         mgetgroups: avoid argument promotion issues with -1
68727         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
68728         for invalid gid_t.
68729         * tests/test-chown.h (getegid, test_chown): Likewise.
68730         * tests/test-lchown.h (getegid, test_lchown): Likewise.
68732 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
68734         exclude: Fix header file problems.
68735         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
68737 2009-12-01  Jim Meyering  <meyering@redhat.com>
68739         fts: fts_open: do not let an empty string cause immediate failure
68740         This is required in support of GNU rm, for which the command
68741         "rm A '' B" must process and remove both A and B, in spite of
68742         the empty string argument.
68743         * lib/fts.c (fts_open): Do not let the presence of an empty string
68744         cause fts_open to fail immediately.  Most fts-using tools must be
68745         able to process all arguments, in order, and can be expected to
68746         diagnose such arguments themselves.
68748 2009-11-30  Eric Blake  <ebb9@byu.net>
68750         utimens: fix compilation error
68751         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
68752         Declare variable at right scope.
68754 2009-11-29  Jim Meyering  <meyering@redhat.com>
68756         bootstrap: handle perl-5.11's changed --version output
68757         * build-aux/bootstrap (get_version): Handle perl separately,
68758         since perl-5.11's --version output is different.
68760 2009-11-28  Jim Meyering  <meyering@redhat.com>
68762         userspec: depend on the inttostr module, too
68763         * modules/userspec (Depends-on): Add inttostr.
68765         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
68766         * lib/userspec.c (parse_with_separator): Do not accept a user ID
68767         number of MAXUID when it evaluates to (uid_t) -1.
68768         Likewise for group ID.  Reported by Matt McCutchen in
68769         <http://savannah.gnu.org/bugs/?28113>
68771         userspec: reformat to use spaces, not TABs
68772         * lib/userspec.c: Expand TABs to spaces.
68773         Add Emacs' "indent-tabs-mode: nil" hint.
68775 2009-11-27  Eric Blake  <ebb9@byu.net>
68777         getopt-gnu: flush out another BSD bug
68778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
68779         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
68780         flush out BSD bug.
68781         * tests/test-getopt.h (test_getopt): End lists with NULL.
68782         * tests/test-getopt_long.h (test_getopt_long): Likewise.
68783         (test_getopt_long_posix): Enhance test.
68784         * modules/getopt-posix-tests (Depends-on): Add stdbool.
68785         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
68786         getopt-gnu.
68787         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68788         Likewise.
68790 2009-11-27  Simon Josefsson  <simon@josefsson.org>
68792         * modules/idpriv-droptemp-tests (Notice): Fix text.
68794 2009-11-27  Jim Meyering  <meyering@redhat.com>
68796         test-xalloc-die: avoid spurious failure due to libtool argv difference
68797         In a libtool-enabled project, this test would fail due to a difference
68798         in the emitted program name, e.g.,
68799         -test-xalloc-die: memory exhausted
68800         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
68801         Use program to avoid that.
68802         * modules/xalloc-die-tests (Depends-on): Add progname.
68803         * tests/test-xalloc-die.c: Include progname.h".
68804         (program_name): Remove decl.
68805         (main): Call set_program_name.
68806         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
68808 2009-11-26  Richard Jones  <rjones@redhat.com>
68810         w32sock: leave win32 error in place.
68811         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
68813 2009-11-26  Eric Blake  <ebb9@byu.net>
68815         init.sh: suggest to use skip_ and fail_ functions in comments
68816         * tests/init.sh: Add a sentence.
68818 2009-11-25  Bruno Haible  <bruno@clisp.org>
68820         init.sh: add documentation in comments
68821         * tests/init.sh: Add some developer and user documentation.
68823 2009-11-26  Jim Meyering  <meyering@redhat.com>
68825         init.sh: accommodate even those who specify bogus srcdir manually
68826         * tests/init.sh: Normally, srcdir is guaranteed by automake and
68827         configure-time tests to be sanitized, so that there is no need to
68828         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
68829         (with no double quotes) suffices.  However, since tests may be
68830         invoked manually, and since you may explicitly set srcdir to the
68831         name of a directory containing spaces, do quote its uses here.
68832         * tests/test-pread.sh: Likewise.
68833         Suggested by Bruno Haible.
68835         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
68836         * tests/test-pread.sh: Write no data into the pipe, because
68837         test-pread actually reads none.  This avoids a diagnostic,
68838         "bash: echo: write error: Broken pipe", that arises in the unusual
68839         event something is ignoring SIGPIPE, and might be interpreted
68840         as some sort of failure.  Reported by Bruno Haible.
68842 2009-11-25  Jim Meyering  <meyering@redhat.com>
68844         test-pread: cover failure with ESPIPE and EINVAL
68845         * tests/test-pread.c (main): Test for failure, too.
68846         * tests/test-pread.sh: Invoke with stdin on a pipe.
68847         Suggested by Eric Blake.
68849         pread: improvement and fix
68850         * modules/pread (Depends-on): Depend on lseek, for portability to
68851         e.g., mingw.  Suggested by Eric Blake.
68852         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
68854         unistd.in.h: correct declaration of pread
68855         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
68856         Reported by Richard W.M. Jones.
68858         test-pread.sh: distribute the test script
68859         * modules/pread-tests (Files): Include test-pread.sh.
68861         test-pread.sh: clean up
68862         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
68863         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
68864         That is unnecessary, since it's always ".".
68865         Suggestion from Eric Blake.
68867         test-pread.sh: make executable
68868         * tests/test-pread.sh: Set executable bit.
68869         Reported by Eric Blake.
68871         correct typo in test-pread.sh
68872         * tests/test-pread.sh: Add #! line.
68874         test pread
68875         * tests/test-pread.c: New file.
68876         * tests/test-pread.sh: Likewise.
68877         * modules/pread-tests: Likewise.
68879         pread: new module
68880         * modules/pread: New file.
68881         * lib/unistd.in.h (pread): Define/declare.
68882         * lib/pread.c (pread): New file.
68883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
68884         * modules/unistd (Makefile.am): Substitute witnesses.
68885         * doc/posix-functions/pread.texi (pread): Update.
68886         * MODULES.html.sh: Add pread.
68888 2009-11-25  Jim Meyering  <meyering@redhat.com>
68890         tests/init.sh: new file to be used via most *.sh tests
68891         * tests/init.sh: New file.
68893 2009-11-25  Eric Blake  <ebb9@byu.net>
68895         utimens: work around older Linux failure with symlinks
68896         * lib/utimens.c (lutimensat_works_really): New variable.
68897         (fdutimens, lutimens): Use it to manage kernels that support
68898         nanosecond times on files, but not on symlinks.
68899         Reported by Ondřej Vašík.
68901         utimes: fix configure grammar
68902         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
68904 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
68906         regex: Fix fastmap for multibyte character ranges.
68907         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
68908         characters when a multibyte character range is included.
68910 2009-11-22  Andy Wingo  <wingo@pobox.com>
68912         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
68913         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
68915 2009-11-24  Bruno Haible  <bruno@clisp.org>
68917         doc: Most *_l functions exist in MacOS X 10.5.
68918         * doc/posix-functions/duplocale.texi: Update platforms list.
68919         * doc/posix-functions/freelocale.texi: Likewise.
68920         * doc/posix-functions/newlocale.texi: Likewise.
68921         * doc/posix-functions/uselocale.texi: Likewise.
68922         * doc/posix-functions/isalnum_l.texi: Likewise.
68923         * doc/posix-functions/isalpha_l.texi: Likewise.
68924         * doc/posix-functions/isblank_l.texi: Likewise.
68925         * doc/posix-functions/iscntrl_l.texi: Likewise.
68926         * doc/posix-functions/isdigit_l.texi: Likewise.
68927         * doc/posix-functions/isgraph_l.texi: Likewise.
68928         * doc/posix-functions/islower_l.texi: Likewise.
68929         * doc/posix-functions/isprint_l.texi: Likewise.
68930         * doc/posix-functions/ispunct_l.texi: Likewise.
68931         * doc/posix-functions/isspace_l.texi: Likewise.
68932         * doc/posix-functions/isupper_l.texi: Likewise.
68933         * doc/posix-functions/iswalnum_l.texi: Likewise.
68934         * doc/posix-functions/iswalpha_l.texi: Likewise.
68935         * doc/posix-functions/iswblank_l.texi: Likewise.
68936         * doc/posix-functions/iswcntrl_l.texi: Likewise.
68937         * doc/posix-functions/iswctype_l.texi: Likewise.
68938         * doc/posix-functions/iswdigit_l.texi: Likewise.
68939         * doc/posix-functions/iswgraph_l.texi: Likewise.
68940         * doc/posix-functions/iswlower_l.texi: Likewise.
68941         * doc/posix-functions/iswprint_l.texi: Likewise.
68942         * doc/posix-functions/iswpunct_l.texi: Likewise.
68943         * doc/posix-functions/iswspace_l.texi: Likewise.
68944         * doc/posix-functions/iswupper_l.texi: Likewise.
68945         * doc/posix-functions/iswxdigit_l.texi: Likewise.
68946         * doc/posix-functions/isxdigit_l.texi: Likewise.
68947         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
68948         * doc/posix-functions/strcasecmp_l.texi: Likewise.
68949         * doc/posix-functions/strcoll_l.texi: Likewise.
68950         * doc/posix-functions/strfmon_l.texi: Likewise.
68951         * doc/posix-functions/strftime_l.texi: Likewise.
68952         * doc/posix-functions/strncasecmp_l.texi: Likewise.
68953         * doc/posix-functions/strxfrm_l.texi: Likewise.
68954         * doc/posix-functions/tolower_l.texi: Likewise.
68955         * doc/posix-functions/toupper_l.texi: Likewise.
68956         * doc/posix-functions/towctrans_l.texi: Likewise.
68957         * doc/posix-functions/towlower_l.texi: Likewise.
68958         * doc/posix-functions/towupper_l.texi: Likewise.
68959         * doc/posix-functions/wcscoll_l.texi: Likewise.
68960         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
68961         * doc/posix-functions/wctrans_l.texi: Likewise.
68962         * doc/posix-functions/wctype_l.texi: Likewise.
68963         * doc/glibc-functions/strptime_l.texi: Likewise.
68964         * doc/glibc-functions/strtod_l.texi: Likewise.
68965         * doc/glibc-functions/strtof_l.texi: Likewise.
68966         * doc/glibc-functions/strtol_l.texi: Likewise.
68967         * doc/glibc-functions/strtold_l.texi: Likewise.
68968         * doc/glibc-functions/strtoll_l.texi: Likewise.
68969         * doc/glibc-functions/strtoul_l.texi: Likewise.
68970         * doc/glibc-functions/strtoull_l.texi: Likewise.
68971         * doc/glibc-functions/wcsftime_l.texi: Likewise.
68972         * doc/glibc-functions/wcstod_l.texi: Likewise.
68973         * doc/glibc-functions/wcstof_l.texi: Likewise.
68974         * doc/glibc-functions/wcstol_l.texi: Likewise.
68975         * doc/glibc-functions/wcstold_l.texi: Likewise.
68976         * doc/glibc-functions/wcstoll_l.texi: Likewise.
68977         * doc/glibc-functions/wcstoul_l.texi: Likewise.
68978         * doc/glibc-functions/wcstoull_l.texi: Likewise.
68980 2009-11-24  Bruno Haible  <bruno@clisp.org>
68982         duplocale: Fix logic bug.
68983         * lib/duplocale.c: Don't include <langinfo.h>.
68984         (_NL_LOCALE_NAME): Remove macro.
68985         (rpl_duplocale): Use setlocale instead of nl_langinfo.
68986         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
68988 2009-11-23  Jim Meyering  <meyering@redhat.com>
68990         test-update-copyright: don't hard-code /usr/bin/perl
68991         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
68992         perl to print the current year.  Gilles Espinasse reported that
68993         the replaced use of perl was hard-coded as /usr/bin/perl.
68995 2009-11-23  Bruno Haible  <bruno@clisp.org>
68997         duplocale: Add support for glibc 2.3.x.
68998         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
69000 2009-11-22  Bruno Haible  <bruno@clisp.org>
69002         vasnprintf: Tiny optimization.
69003         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
69004         MacOS X.
69006 2009-11-22  Bruno Haible  <bruno@clisp.org>
69008         Tests for module 'duplocale'.
69009         * modules/duplocale-tests: New file.
69010         * tests/test-duplocale.c: New file.
69012         New module 'duplocale'.
69013         * m4/duplocale.m4: New file.
69014         * lib/locale.in.h (duplocale): New declaration.
69015         * lib/duplocale.c: New file.
69016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
69017         gl_LOCALE_H_DEFAULTS): New macros.
69018         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
69019         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
69020         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
69021         REPLACE_DUPLOCALE.
69022         * modules/duplocale: New file.
69023         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
69025 2009-11-22  Bruno Haible  <bruno@clisp.org>
69027         * modules/locale-tests (configure.ac): Test for newlocale function.
69028         * tests/test-locale.c: When the system has extended locale functions,
69029         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
69031         locale: Make locale_t available when possible.
69032         * lib/locale.in.h: Include <xlocale.h> when it exists.
69033         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
69034         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
69035         * modules/locale (Depends-on): Add extensions.
69036         (Makefile.am): Also substitute HAVE_XLOCALE_H.
69037         * doc/posix-headers/locale.texi: Document the problem with locale_t.
69039 2009-11-22  Bruno Haible  <bruno@clisp.org>
69041         Add comments.
69042         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
69043         invocation.
69044         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69045         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69046         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69048 2009-11-22  Bruno Haible  <bruno@clisp.org>
69050         error: account for the possibility of freopen (stdout).
69051         * lib/error.c: Include <unistd.h>.
69052         (flush_stdout): New function, extracted from error and error_at_line.
69053         Determine stdout's fd dynamically.
69054         (error, error_at_line): Invoke flush_stdout.
69055         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
69056         * modules/error (Depends-on): Add unistd.
69058 2009-11-22  Bruno Haible  <bruno@clisp.org>
69060         diffseq: Add comment.
69061         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
69063 2009-11-22  Jim Meyering  <meyering@redhat.com>
69065         c-stack: avoid defining an unused static function
69066         * lib/c-stack.c (find_stack_direction): Do not define this function
69067         when it will not be used.
69069         diffseq: avoid spurious gcc warnings
69070         * lib/diffseq.h (IF_LINT2): Define.
69071         (compareseq): Use it to initialize two members of "part".
69072         This avoids two used-uninitialized warnings.
69074 2009-11-21  Jim Meyering  <meyering@redhat.com>
69076         c-stack: avoid "ignoring return value of `write'" warning
69077         * lib/c-stack.c: Include "ignore-value.h".
69078         (die): Explicitly ignore each write return value.
69079         * modules/c-stack (Depends-on): Add ignore-value.
69081 2009-11-21  Bruno Haible  <bruno@clisp.org>
69083         diffseq: reduce scope of variable 'best'.
69084         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
69085         variable, earlier used for two different purposes.
69087 2009-11-21  Jim Meyering  <meyering@redhat.com>
69089         diffseq: remove useless assignment to "best"
69090         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
69091         assignment.  At that point "best" is already guaranteed to be zero.
69093 2009-11-20  Eric Blake  <ebb9@byu.net>
69095         build: mention ftp redirector in release announcements
69096         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
69097         values that used to come from cfg.mk; mention FTP redirect URL.
69098         * build-aux/announce-gen: Mention the mirror list.
69099         Suggested by Karl Berry.
69101         nanosleep: improve port to mingw
69102         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
69103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
69104         LIB_NANOSLEEP, but only when needed.
69105         * modules/select (Link): Document LIBSOCKET.
69106         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
69107         enough.
69109         nanosleep: work around cygwin bug
69110         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
69111         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
69112         bug.
69113         (getnow): Delete, not needed.
69114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
69115         LIB_CLOCK_GETTIME.
69116         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
69117         clock-time, gettime.
69118         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
69119         bug.
69120         * modules/nanosleep-tests: New test.
69121         * tests/test-nanosleep.c: New file.
69123         sleep: work around cygwin bug
69124         * lib/sleep.c (rpl_sleep): Work around the bug.
69125         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
69126         (gl_PREREQ_SLEEP): Delete unused macro.
69127         * modules/sleep (Depends-on): Add verify.
69128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
69129         * modules/unistd (Makefile.am): Substitute witness.
69130         * lib/unistd.in.h (sleep): Update prototype.
69131         * doc/posix-functions/sleep.texi (sleep): Document the bug.
69132         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
69133         * modules/sleep-tests (Depends-on): Check for alarm.
69135 2009-11-20  Jim Meyering  <meyering@redhat.com>
69137         maint.mk: improve sc_prohibit_magic_number_exit
69138         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
69139         so it does not match uses like System.exit(1).
69140         Add comments showing how to correct all offenders.
69142 2009-11-19  Eric Blake  <ebb9@byu.net>
69144         xalloc-die-tests: add missing library
69145         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
69147         test-xvasprintf: silence compiler warnings
69148         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
69149         empty string from gcc.
69151 2009-11-19  Jim Meyering  <meyering@redhat.com>
69153         xfreopen: new module, from coreutils
69154         * modules/xfreopen: New module.
69155         * lib/xfreopen.c: New file.
69156         * lib/xfreopen.h: New file.
69157         * MODULES.html.sh (File stream based Input/Output"): Add it.
69159 2009-11-19  Eric Blake  <ebb9@byu.net>
69161         manywarnings: depend on warnings
69162         * modules/manywarnings (Depends-on): Add warnings.
69164         build: avoid compiler warnings
69165         * lib/select.c (rpl_select): Delete unused variable.
69166         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
69168 2009-11-18  Eric Blake  <ebb9@byu.net>
69170         tests: avoid false negative with --with-packager
69171         * tests/test-version-etc.sh: Discard packager information.
69172         * tests/test-argp-version-etc-1.sh: Likewise.
69173         Reported by Mike Frysinger.
69175         utimens: fix regression on Solaris
69176         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
69177         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
69178         can only change fd timestamps via futimesat.  Instead, use an
69179         additional witness macro to avoid BSD bug.
69180         Reported by Jim Meyering.
69182 2009-11-17  Eric Blake  <ebb9@byu.net>
69184         usleep: use it to simplify tests
69185         * modules/stat-time-tests (Depends-on): Add usleep.
69186         (configure.ac): Drop usleep check.
69187         * modules/chown-tests (Depends-on, configure.ac): Likewise.
69188         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
69189         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
69190         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
69191         * modules/openat-tests (Depends-on, configure.ac): Likewise.
69192         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
69193         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
69194         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
69195         Likewise.
69196         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
69197         * tests/test-lchown.h (nap): Likewise.
69198         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
69199         * tests/test-stat-time.c (nap): Likewise.
69200         * tests/test-utimens-common.h (nap): Update comments.
69202         usleep: new module
69203         * modules/usleep: New file.
69204         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
69205         * lib/usleep.c (usleep): Likewise.
69206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
69207         * modules/unistd (Makefile.am): Substitute witnesses.
69208         * lib/unistd.in.h (usleep): Add declaration.
69209         * doc/pastposix-functions/usleep.texi (usleep): Document this.
69210         * MODULES.html.sh (Date and time): Likewise.
69211         * modules/usleep-tests (Depends-on): New test.
69212         * tests/test-usleep.c: New file.
69214         chown: work around OpenBSD bug
69215         * lib/chown.c (rpl_chown): Work around the bug.
69216         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
69217         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
69218         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
69219         * modules/chown (Depends-on): Add stdbool.
69220         * modules/lchown (Depends-on): Likewise.
69221         * doc/posix-functions/chown.texi (chown): Document the bug.
69222         * doc/posix-functions/lchown.texi (lchown): Likewise.
69223         * tests/test-lchown.h (test_chown): Relax test.
69225         mkstemp: avoid conflict with C++ keyword template
69226         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
69227         * lib/mkostemp.c (mkostemp): Likewise.
69228         * lib/mkostemps.c (mkostemps): Likewise.
69229         * lib/mkstemp.c (mkstemp): Likewise.
69230         * lib/mkstemps.c (mkstemps): Likewise.
69232         xalloc-die-tests: optimize
69233         * tests/test-xalloc-die.sh: Reduce number of processes.
69235 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69237         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
69238         patch from ludo@gnu.org (Ludovic Courtès).
69240 2009-11-17  Jim Meyering  <meyering@redhat.com>
69242         version-etc: use proper license string
69243         * modules/version-etc (License): Use LGPL, not LGPLv3+.
69244         * modules/version-etc-fsf: Likewise.
69246 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69248         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
69249         printed to stdout.  Deal with EOL differences.
69251 2009-11-17  Eric Blake  <ebb9@byu.net>
69253         unsetenv: work around Solaris bug
69254         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
69255         * lib/unsetenv.c (rpl_unsetenv): Work around it.
69256         Reported by Jim Meyering.
69258         vasnprintf: avoid compiler warnings
69259         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
69260         variables.
69261         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
69263 2009-11-17  Simon Josefsson  <simon@josefsson.org>
69265         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
69266         settings since xalloc-die is no longer the self test,
69267         xalloc-die.sh is.
69269 2009-11-17  Jim Meyering  <meyering@redhat.com>
69271         test-xalloc-die.sh: make the code agree with the commit log
69272         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
69273         at the end, just in case you happen to have a test-xalloc-die
69274         program in some other PATH directory.
69276         test-xalloc-die.sh: fix a portability bug
69277         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
69278         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
69279         Otherwise, argv[0] (as often seen in diagnostics) would be too
69280         system-dependent, sometimes with, and sometimes without the leading "./".
69282         version-etc-fsf: relax license to LGPLv3+
69283         * modules/version-etc-fsf (License): Relax license.
69285 2009-11-16  Eric Blake  <ebb9@byu.net>
69287         xalloc-die-tests: avoid printing null pointer
69288         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
69289         shell script.
69290         * tests/test-xalloc-die.c (program_name): Declare.
69291         * tests/test-xalloc-die.sh (tmpfiles): New file.
69293         setenv, unsetenv: work around various bugs
69294         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
69295         (setenv) [HAVE_SETENV]: Work around bugs.
69296         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
69297         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
69298         for bugs.
69299         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
69300         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
69301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
69302         * modules/stdlib (Makefile.am): Update substitutions.
69303         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
69304         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
69305         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
69306         * modules/setenv-tests: New test.
69307         * modules/unsetenv-tests: Likewise.
69308         * tests/test-setenv.c: New file.
69309         * tests/test-unsetenv.c: Likewise.
69311 2009-11-16  Jim Meyering  <meyering@redhat.com>
69313         version-etc: relax license to LGPLv3+
69314         * modules/version-etc (License): Relax license.
69316         better AC_REQUIRE expanded-before-required-warning avoidance
69317         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
69318         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
69319         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
69320         which is no longer needed.
69322 2009-11-16  Eric Blake  <ebb9@byu.net>
69324         test-freading: clean up temporary file
69325         * tests/test-freading.c (main): Remove file on success, and use
69326         ASSERT more liberally.
69327         Reported by Jim Meyering.
69329 2009-11-16  Jim Meyering  <meyering@redhat.com>
69331         avoid new AC_REQUIRE expanded-before-required warnings
69332         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
69333         merely using it.
69334         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
69335         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
69337 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69339         * tests/test-xalloc-die.c: New file.
69340         * modules/xalloc-die-tests: New file.
69341         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
69342         XFAIL_TESTS so it can be appended by modules.
69344 2009-11-15  Simon Josefsson  <simon@josefsson.org>
69346         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
69347         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
69349 2009-11-14  Eric Blake  <ebb9@byu.net>
69351         fnmatch: avoid compiler warning
69352         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
69353         to silence compiler warning about mismatch signedness in ?:.
69354         Reported by Robert Millan.
69356         intprops: add double-inclusion guard
69357         * lib/intprops.h: Allow idempotent includes.
69358         Suggested by Bruce Korb.
69360         openat: detect Solaris fchownat bug
69361         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
69362         penalizing glibc chownat when only lchownat is broken.
69363         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
69364         trailing slash bugs.
69365         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
69366         * modules/openat-tests (Files): Include more files.
69367         (Depends-on): Add mgetgroups, sleep, stat-time.
69368         (configure.ac): Add additional checks.
69369         (Makefile.am): Build new test.
69370         * tests/test-fchownat.c: New file.
69372         lchown: detect Solaris and FreeBSD bug
69373         * lib/lchown.c (rpl_lchown): Work around bug.
69374         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
69375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69376         * modules/unistd (Makefile.am): Populate it.
69377         * lib/unistd.in.h (lchown): Update declaration.
69378         * doc/posix-functions/lchown.texi (lchown): Document the bug.
69379         * modules/lchown-tests: New file.
69380         * tests/test-lchown.h (test_lchown): Likewise.
69381         * tests/test-lchown.c (main): Likewise.
69383         chown: detect Solaris and FreeBSD bug
69384         * lib/chown.c (rpl_chown): Work around bug.
69385         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
69386         (gl_PREREQ_CHOWN): Delete.
69387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69388         * modules/unistd (Makefile.am): Populate it.
69389         * lib/unistd.in.h (chown): Update declaration.
69390         * lib/lchown.c (chown): Update client.
69391         * modules/lchown (Depends-on): Add lstat.
69392         * doc/posix-functions/chown.texi (chown): Document the bug.
69393         * doc/posix-functions/getgroups.texi (getgroups): Document
69394         getgroups pitfall.
69395         * modules/chown-tests: New file.
69396         * tests/test-chown.h (test_chown): Likewise.
69397         * tests/test-chown.c (main): Likewise.
69399 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
69401         gnulib-tool: correctly detect absence of m4 directories
69402         * gnulib-tool: Avoid extra newline on data passed to wc -l.
69404 2009-11-14  Jim Meyering  <meyering@redhat.com>
69406         maint.mk: Prohibit inclusion of "xalloc.h" without use.
69407         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
69409 2009-11-14  John W. Eaton  <jwe@gnu.org>
69411         strftime.h: wrap function declaration in extern "C" block
69412         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
69414 2009-11-13  Eric Blake  <ebb9@byu.net>
69416         getgroups: avoid compiler warning
69417         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
69419         getgroups: work around FreeBSD bug
69420         * lib/getgroups.c (rpl_getgroups): Work around the bug.
69421         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
69422         * doc/posix-functions/getgroups.texi (getgroups): Document it.
69423         * tests/test-getgroups.c (main): Fix buffer overrun.
69425         getgroups: avoid compilation failure
69426         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
69427         * modules/getgroups (Depends-on): Add stdint.
69429 2009-11-13  Jim Meyering  <meyering@redhat.com>
69431         test-getgroups: avoid compilation failure
69432         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
69434 2009-11-13  Eric Blake  <ebb9@byu.net>
69436         mgetgroups: new module, taken from coreutils
69437         * modules/mgetgroups: New file.
69438         * lib/mgetgroups.h: Likewise.
69439         * lib/mgetgroups.c (mgetgroups): Likewise.
69440         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
69441         * MODULES.html.sh (Users and groups): Mention it.
69443         getgroups: don't expose GETGROUPS_T to user
69444         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
69445         an element at a time if GETGROUPS_T is wrong size.
69446         * lib/getugroups.h (getugroups): Change signature.
69447         * lib/unistd.in.h (getgroups): Likewise.
69448         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
69449         signature needs fixing.
69450         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
69451         AC_TYPE_GETGROUPS.
69452         * modules/group-member (Depends-on): Add getgroups.
69453         * lib/group-member.c (group_info, get_group_info): Use gid_t.
69454         (group_member): Rely on getgroups replacement.
69455         * lib/getugroups.c (getugroups): Use gid_t.
69456         * tests/test-getgroups.c (main): Likewise.
69457         * NEWS: Mention the signature change.
69458         * doc/posix-functions/getgroups.texi (getgroups): Mention the
69459         problem with signature.
69460         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
69461         GETGROUPS_T is still useful for setgroups.
69463         getgroups, getugroups: provide stubs for mingw
69464         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
69465         * lib/getugroups.c (getugroups): Likewise.
69466         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
69467         function.  Modernize replacement scheme.
69468         (gl_PREREQ_GETGROUPS): Delete.
69469         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
69470         * modules/getgroups (configure.ac): Declare witness.
69471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
69472         * modules/unistd (Depends-on): Substitute witness.
69473         * lib/unistd.in.h (getgroups): Declare replacement.
69475         getgroups: avoid calling exit
69476         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
69477         drop xalloc.
69478         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
69479         dependencies.
69480         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
69481         exiting, in the rare case of malloc failure.
69483         getgroups: fix logic error
69484         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
69485         has more than 20 groups.
69486         * modules/getgroups-tests: New test.
69487         * tests/test-getgroups.c: New file.
69489 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69491         * tests/test-base64.c: Improve.
69493 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69495         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
69496         Blake <ebb9@byu.net>.
69498 2009-11-13  Simon Josefsson  <simon@josefsson.org>
69500         * tests/test-xvasprintf.c: Add %s%s related checks.
69502 2009-11-12  Eric Blake  <ebb9@byu.net>
69504         version-etc: match standards.texi style
69505         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
69506         and use <> only for URLs.
69508 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
69510         fts: do not fail on a submount during traversal
69511         * lib/fts.c (fts_build): Read the stat info again after opening
69512         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
69513         Original report at http://bugzilla.redhat.com/501848.
69515 2009-11-12  Jim Meyering  <meyering@redhat.com>
69517         bootstrap: sync from coreutils
69518         * build-aux/bootstrap (bootstrap_epilogue): New function.
69519         Use git_modules_config in one more place.  This make bootstrap's
69520         --gnulib-srcdir option more useful for testing.
69522         bootstrap: generalize autoheader check
69523         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
69524         AC_CONFIG_HEADERS.
69526 2009-11-11  Eric Blake  <ebb9@byu.net>
69528         mkfifoat: use new modules for Solaris and BSD bugs
69529         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
69530         * lib/mkfifoat.c (mknodat): Split...
69531         * lib/mknodat.c (mknodat): ...into new file.
69532         * modules/mkfifoat (Files): Ship new file.
69533         (Depends-on): Add mkfifo, mknod.
69534         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
69535         (Depends-on): Add symlink.
69536         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
69537         redundant with test_mkfifo.h.
69538         (do_mkfifoat, do_mknodat): New helpers.
69540         mknod: new module
69541         * modules/mknod: New file.
69542         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
69543         * lib/mknod.c (mknod): Likewise.
69544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
69545         defaults.
69546         * modules/sys_stat (Makefile.am): Substitute them.
69547         * lib/sys_stat.in.h (mknod): Declare replacement.
69548         * MODULES.html.sh (Support for systems lacking POSIX:2008):
69549         Document it.
69550         * doc/posix-functions/mknod.texi (mknod): Likewise.
69551         * modules/mknod-tests: New test.
69552         * tests/test-mknod.c: Likewise.
69554         mkfifo: new module
69555         * modules/mkfifo: New file.
69556         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
69557         * lib/mkfifo.c (mkfifo): Likewise.
69558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
69559         defaults.
69560         * modules/sys_stat (Makefile.am): Substitute them.
69561         * lib/sys_stat.in.h (mkfifo): Declare replacement.
69562         * MODULES.html.sh (Support for systems lacking POSIX:2008):
69563         Document it.
69564         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
69565         * modules/mkfifo-tests: New test.
69566         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
69567         from test-mkfifoat.c.
69568         * tests/test-mkfifo.c: New file.
69570         readlink: detect FreeBSD bug
69571         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
69572         slash on symlink.
69573         * doc/posix-functions/readlink.texi (readlink): Document the bug.
69574         * tests/test-readlink.h (test_readlink): Enhance test.
69576         symlink: detect FreeBSD bug
69577         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
69578         slash on symlink.
69579         * doc/posix-functions/symlink.texi (symlink): Document the bug.
69580         * tests/test-symlink.h (test_symlink): Enhance test.
69582 2009-11-10  Eric Blake  <ebb9@byu.net>
69584         link: detect FreeBSD bug
69585         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
69586         symlink.
69587         * doc/posix-functions/link.texi (link): Document the bug.
69588         * tests/test-link.h (test_link): Enhance test.
69589         * tests/test-linkat.c (main): Update caller.
69591         unlink, remove: detect FreeBSD bug
69592         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
69593         slash on symlink.
69594         * doc/posix-functions/unlink.texi (unlink): Document the bug.
69595         * doc/posix-functions/remove.texi (remove): Likewise.
69596         * tests/test-unlink.h (test_unlink): Enhance test.
69597         * tests/test-remove.c (main): Likewise.
69599 2009-11-09  Eric Blake  <ebb9@byu.net>
69601         rename: detect FreeBSD bug
69602         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
69603         slash on symlink.
69604         * modules/renameat-tests (Depends-on): Add filenamecat.
69605         * tests/test-rename.h (test_rename): Allow one more errno.
69606         * tests/test-renameat.c (main): Likewise.
69607         * doc/posix-functions/rename.texi (rename): Document the bug.
69609         open: detect FreeBSD bug
69610         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
69611         symlink.
69612         * doc/posix-functions/open.texi (open): Document the bug.
69613         * doc/posix-functions/utimes.texi (utimes): Likewise.
69614         * tests/test-open.h (test_open): Add parameters, and test symlink
69615         handling.
69616         * tests/test-open.c (main): Adjust caller.
69617         * tests/test-fcntl-safer.c (main): Likewise.
69618         * modules/open-tests (Depends-on): Add stdbool, symlink.
69619         * modules/fcntl-safer-tests (Depends-on): Likewise.
69620         * tests/test-openat.c (main): Add test-open tests.
69622         stat: detect FreeBSD bug
69623         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
69624         symlink.
69625         * doc/posix-functions/stat.texi (stat): Document the bug.
69626         * tests/test-stat.h (test_stat_func): Add argument.
69627         * tests/test-stat.c (main): Adjust caller.
69628         * tests/test-fstatat.c (main): Likewise.
69629         * modules/stat-tests (Depends-on): Add stdbool, symlink.
69630         Reported by Jim Meyering.
69632 2009-11-09  James Youngman  <jay@gnu.org>
69634         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
69635         * lib/strftime.c: Correct placement of #include "ignore-value.h".
69637 2009-11-08  Jim Meyering  <meyering@redhat.com>
69639         utimens: remove invalid futimesat call
69640         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
69641         It used the file descriptor of the target file as the DIR_FD
69642         parameter and NULL as the file name.  That caused failure with
69643         errno == EFAULT on FreeBSD-8.0-rc2
69645 2009-11-07  Eric Blake  <ebb9@byu.net>
69647         fflush, freadseek: use fseeko, not fseek
69648         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
69649         (clear_ungetc_buffer): Avoid potential problems on large files.
69650         * lib/freadseek.c (freadseek): Likewise.
69651         * modules/freadseek (Depends-on): Add fseeko.
69652         * modules/fseek (configure.ac): Set a witness.
69653         * tests/test-fflush.c (main): Use fseeko.
69654         * tests/test-fpurge.c (fseek): Disable link warning.
69655         * tests/test-freadable.c (fseek): Likewise.
69656         * tests/test-freading.c (fseek): Likewise.
69657         * tests/test-fseeko.c (fseek): Likewise.
69658         * tests/test-ftell.c (fseek): Likewise.
69659         * tests/test-ftello.c (fseek): Likewise.
69660         * tests/test-fwritable.c (fseek): Likewise.
69661         * tests/test-fwriting.c (fseek): Likewise.
69663 2009-11-06  Simon Josefsson  <simon@josefsson.org>
69665         * modules/memchr (Depends-on): Drop getpagesize dependency.
69667 2009-11-06  Simon Josefsson  <simon@josefsson.org>
69669         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
69670         Reported by Ludovic Courtès.
69671         * build-aux/pmccabe2html: Improve example usage.
69672         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
69674 2009-11-06  Jim Meyering  <meyering@redhat.com>
69676         do-release-commit-and-tag: New module.
69677         Automate the release-commit and tag process.
69678         * build-aux/do-release-commit-and-tag: New script, from coreutils.
69679         * modules/do-release-commit-and-tag: New file.
69680         * MODULES.html.sh (Support for maintaining and releasing): Add it.
69682 2009-11-06  Simon Josefsson  <simon@josefsson.org>
69684         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
69685         because test-select.c uses inet_pton.
69687 2009-11-06  Simon Josefsson  <simon@josefsson.org>
69689         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
69690         GETADDRINFO_LIB.  Bump serial number.
69691         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
69692         Suggested by Eric Blake <ebb9@byu.net>.
69694 2009-11-05  Eric Blake  <ebb9@byu.net>
69696         strtod: detect darwin bug
69697         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
69698         Reported by Leo Davis.
69700         freopen-safer: new module
69701         * modules/freopen-safer: New module.
69702         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
69703         * lib/freopen-safer.c (freopen_safer): New file.
69704         * lib/stdio-safer.h (freopen_safer): New declaration.
69705         * lib/stdio--.h (freopen): New override.
69706         * MODULES.html.sh (File stream based Input/Output): Mention it.
69707         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
69708         freopen-safer module.
69709         * doc/posix-functions/stderr.texi (stderr): Likewise.
69710         * doc/posix-functions/stdin.texi (stdin): Likewise.
69711         * doc/posix-functions/stdout.texi (stdout): Likewise.
69712         * modules/freopen-safer-tests: New test.
69713         * tests/test-reopen-safer.c: New file.
69715 2009-11-05  Jim Meyering  <meyering@redhat.com>
69717         maint.mk: Prohibit inclusion of "close-stream.h" without use.
69718         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
69720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
69722         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
69724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
69726         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
69728 2009-11-05  Simon Josefsson  <simon@josefsson.org>
69730         Fix link error.
69731         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
69732         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69734 2009-11-05  Simon Josefsson  <simon@josefsson.org>
69736         * tests/test-func.c: Also test value of __func__.
69738 2009-11-05  Simon Josefsson  <simon@josefsson.org>
69740         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
69741         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
69743 2009-11-05  Bruno Haible  <bruno@clisp.org>
69745         Fix link error.
69746         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
69747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69748         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
69750 2009-11-05  Bruno Haible  <bruno@clisp.org>
69752         Tests for module 'inet_pton'.
69753         * modules/inet_pton-tests: New file.
69754         * tests/test-inet_pton.c: New file.
69756 2009-11-05  Bruno Haible  <bruno@clisp.org>
69758         Tests for module 'inet_ntop'.
69759         * modules/inet_ntop-tests: New file.
69760         * tests/test-inet_ntop.c: New file.
69762 2009-11-04  Eric Blake  <ebb9@byu.net>
69764         stdlib-safer: wrap all mkstemp variants
69765         * modules/mkostemp (configure.ac): Set witness.
69766         * modules/mkostemps (configure.ac): Likewise.
69767         * modules/mkstemps (configure.ac): Likewise.
69768         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
69769         (mkstemps_safer): Wrap more functions.
69770         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
69771         wrapping.
69772         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
69773         (mkstemps_safer): Implement the wrappers.
69775         mkstemps, mkostemps: new modules
69776         * modules/mkostemps: New module.
69777         * modules/mkstemps: Likewise.
69778         * lib/mkostemps.c (mkostemps): New file.
69779         * lib/mkstemps.c (mkstemps): Likewise.
69780         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
69781         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
69782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
69783         * modules/stdlib (Makefile.am): Substitute them.
69784         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
69785         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
69786         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
69787         * doc/gnulib.texi (Glibc stdlib.h): Include them.
69788         * MODULES.html.sh (File system functions): Mention them.
69790         tempname: resync from glibc
69791         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
69792         same values for __GT_FILE as glibc.  Abort even when assertions
69793         are disabled.
69794         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
69795         match its value otherwise.  Allow idempotent inclusion.
69796         * lib/mkdtemp.c (mkdtemp): Adjust caller.
69797         * lib/mkostemp.c (mkostemp): Likewise.
69798         * lib/mkstemp.c (mkstemp): Likewise.
69799         * lib/tmpfile.c (tmpfile): Likewise.
69800         * NEWS: Document this.
69802         utimens: fix use of futimens on older Linux
69803         * lib/utimens.c (fdutimens): Use updated, rather than original,
69804         timespec to avoid bug in older Linux kernel.
69805         Reported by Simon Josefsson.
69807 2009-11-04  Bruno Haible  <bruno@clisp.org>
69809         Make num_processors more flexible and consistent.
69810         * lib/nproc.h (enum nproc_query): New type.
69811         (num_processors): Add a 'query' argument.
69812         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
69813         (num_processors): Add a 'query' argument. Test the value of the
69814         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
69815         mingw, count the number of CPUs available for the current process.
69816         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
69817         Check for sched_getaffinity and sched_getaffinity_np.
69818         * modules/nproc (Depends-on): Add c-ctype, extensions.
69819         * NEWS: Mention the change.
69821 2009-11-03  Bruno Haible  <bruno@clisp.org>
69823         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
69825 2009-11-03  Jim Meyering  <meyering@redhat.com>
69827         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
69828         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
69829         if it is defined.
69831 2009-11-02  Eric Blake  <ebb9@byu.net>
69833         mktime, timegm: share common declaration
69834         * lib/mktime-internal.h: New file.
69835         * lib/mktime.c: Use it rather than open-coding a declaration.
69836         * lib/timegm.c: Likewise.
69837         * modules/mktime (Files): Ship it.
69838         * modules/timegm (Files): Likewise.
69839         Suggested by Bruno Haible.
69841         test-update-copyright: update test to match script changes
69842         * tests/test-update-copyright.sh: Avoid hard-coding perl
69843         location.  Don't update *.bak created by earlier runs.
69845 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69846             Simon Josefsson  <simon@josefsson.org>
69847             Bruno Haible  <bruno@clisp.org>
69849         Fix link error on Solaris 8.
69850         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
69851         also in libnsl. Define also INET_PTON_LIB.
69852         * modules/inet_pton (Link): New section.
69854 2009-11-02  Simon Josefsson  <simon@josefsson.org>
69855             Bruno Haible  <bruno@clisp.org>
69857         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
69858         * modules/inet_ntop (Link): New section.
69859         Reported by Boyan Kasarov <bkasarov@gmail.com>.
69861 2009-11-02  Eric Blake  <ebb9@byu.net>
69863         maint: avoid compiler warnings in m4 macros
69864         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
69865         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
69867 2009-11-02  Simon Josefsson  <simon@josefsson.org>
69869         * m4/pmccabe2html.m4: Remove file.
69870         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
69871         function.  Change maintainer.
69872         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
69873         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
69874         Courtès).
69876 2009-10-31  Eric Blake  <ebb9@byu.net>
69878         fseeko: fix m4 regression
69879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
69880         regression from 2009-10-27.
69881         Reported by Ralf Wildenhues.
69883 2009-10-31  Jim Meyering  <meyering@redhat.com>
69885         inttostr: aesthetics and improved (compile-time) safety
69886         Define inttype_is_signed rather than inttype_is_unsigned,
69887         since the sole use is via "#if inttype_is_signed".
69888         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
69889         inttype_is_unsigned.
69890         * lib/offtostr.c (inttype_is_signed): Likewise.
69891         * lib/uinttostr.c (inttype_is_signed): Likewise.
69892         * lib/umaxtostr.c (inttype_is_signed): Likewise.
69893         * lib/inttostr.c (inttostr): Use verify to cross-check the
69894         inttype_is_signed value and the signedness of the actual type.
69895         * modules/inttostr (Depends-on): Add verify.
69897 2009-10-30  Eric Blake  <ebb9@byu.net>
69899         build: avoid compiler warnings
69900         * lib/fchmodat.c (lchmod): Mark unused variables.
69901         * lib/getopt.c (_getopt_initialize): Likewise.
69902         * lib/mktime.c (__mktime_internal): Provide prototype.
69903         * lib/inttostr.c (inttostr): Avoid compiler warning even with
69904         older gcc that do not understand #pragma GCC diagnostic.
69905         * lib/uinttostr.c (inttype_is_unsigned): Define.
69906         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
69908 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
69910         stat: fix compilation on AIX
69911         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
69912         only see struct stat64.
69914 2009-10-30  Eric Blake  <ebb9@byu.net>
69916         exclude: make more robust
69917         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
69918         rather than masking a coding bug.
69919         Suggested by Bruno Haible.
69921 2009-10-30  Jim Meyering  <meyering@redhat.com>
69923         perl scripts: remove #!/usr/bin/perl in favor of more portable...
69924         Rather than putting #!/usr/bin/perl on the first line,
69925         start with a variant of what's recommended by "man perlrun" that
69926         invokes the first "perl" program from your shell's search path.
69927         * build-aux/gitlog-to-changelog: Replace #!... as above.
69928         Add a "Local Variables" perl mode setting.
69929         Prompted by a patch from Ludovic Courtès.
69930         Improved by Eric Blake.
69931         * build-aux/useless-if-before-free: Likewise.
69932         * build-aux/announce-gen: Likewise.
69933         * build-aux/update-copyright: Likewise.
69935 2009-10-29  Eric Blake  <ebb9@byu.net>
69937         filenamecat-lgpl: adjust clients
69938         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
69939         filenamecat.
69940         * modules/renameat (Depends-on): Likewise.
69942         filenamecat: split into filenamecat-lgpl
69943         * modules/filenamecat-lgpl: New module.
69944         * modules/filenamecat (Files): Move library-safe files into
69945         filenamecat-lgpl.
69946         (Depends-on): Add filenamecat-lgpl.
69947         (configure.ac): Declare witness.
69948         * lib/filenamecat.h (file_name_concat): Only declare when using
69949         GPL module.
69950         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
69951         Move...
69952         * lib/filenamecat-lgpl.c: ...into new file.
69953         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
69954         (gl_FILE_NAME_CONCAT): Use it.
69955         * MODULES.html.sh (File system functions): Mention new module.
69957         argp: avoid memory leak
69958         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
69959         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
69960         base_name, since the latter malloc()s and can call exit().
69961         Leak introduced 2006-07-03.
69963         dirname-lgpl: adjust clients that don't need full dirname
69964         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
69965         * modules/filenamecat (Depends-on): Likewise.
69966         * modules/linkat (Depends-on): Likewise.
69967         * modules/mkancesdirs (Depends-on): Likewise.
69968         * modules/mkdir (Depends-on): Likewise.
69969         * modules/openat (Depends-on): Likewise.
69970         * modules/savewd (Depends-on): Likewise.
69971         * modules/rename (Depends-on): Likewise.
69972         (License): Relax license.
69973         * modules/mkdir-tests (Depends-on): Drop progname.
69974         (Makefile.am): Delete unneeded LDADD.
69975         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
69977         dirname: split into dirname-lgpl
69978         * modules/dirname-lgpl: New module.
69979         * modules/dirname (Files): Move library-safe files into
69980         dirname-lgpl.
69981         (Depends-on): Add dirname-lgpl.
69982         (configure.ac): Declare witness.
69983         * modules/double-slash-root (License): Relax license.
69984         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
69985         module.
69986         * lib/dirname.c (dir_len, mdir_name): Move...
69987         * lib/dirname-lgpl.c: ...into new file.
69988         * lib/basename.c (last_component, base_len): Move...
69989         * lib/basename-lgpl.c: ...into new file.
69990         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
69991         (gl_DIRNAME): Use it.
69992         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
69993         Mention new module.
69994         * modules/dirname-tests (Depends-on): Add progname.
69995         * tests/test-dirname.c (program_name): Delete.
69997         mkdir: make safe for libraries
69998         * modules/mkdir (Depends-on): Drop xalloc.
69999         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
70000         exit.
70002         tests: avoid some compiler warnings
70003         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
70004         literals.
70005         * tests/test-memchr.c (main): Avoid type mismatch.
70006         * tests/test-arpa_inet.c (main): Avoid unused parameters.
70007         * tests/test-base64.c (main): Likewise.
70008         * tests/test-getdelim.c (main): Likewise.
70009         * tests/test-gethostname.c (main): Likewise.
70010         * tests/test-getline.c (main): Likewise.
70011         * tests/test-netinet_in.c (main): Likewise.
70012         * tests/test-select.c (open_server_socket, main): Likewise.
70013         * tests/test-select-stdin.c (main): Likewise.
70014         * tests/test-sockets.c (main): Likewise.
70015         * tests/test-strsignal.c (main): Likewise.
70016         * tests/test-sys_select.c (main): Likewise.
70017         * tests/test-sys_socket.c (main): Likewise.
70018         * tests/test-u64.c (main): Likewise.
70019         * tests/test-xfprintf-posix.c (main): Likewise.
70020         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
70022         sockets: avoid compiler warning
70023         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
70025         maint: detect usage(1) and other suspicious exits
70026         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
70028 2009-10-29  Jim Meyering  <meyering@redhat.com>
70030         timespec: long-to-int truncation could make timespec_cmp malfunction
70031         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
70032         a multiple of 2^32 nanoseconds as no difference.
70034 2009-10-28  Jim Meyering  <meyering@redhat.com>
70036         fprintftime: wrap macro code argument in "do {...} while(0)"
70037         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
70038         cpy macro must be a statement that can be followed by a semicolon.
70039         Now that the else clause contains a comment and is hence longer
70040         than one line, I require curly braces.  That in turn requires
70041         that we wrap this code block in the standard do...while(0).
70043         fprintftime: remove stray semicolon from previous change
70044         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
70046         fprintftime: avoid a warning about ignored fwrite return value
70047         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
70048         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
70049         that is unsafe.
70050         * modules/fprintftime (Depends-on): Add ignore-value.
70052         exclude: avoid an unwarranted warning
70053         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
70055 2009-10-27  Eric Blake  <ebb9@byu.net>
70057         fseek: avoid compilation failure when fflush is replaced
70058         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
70059         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
70060         module is in use.
70061         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
70062         module is not in use; since REPLACE_FSEEK worked otherwise.
70063         (GNULIB_FTELLO): Likewise for ftell.
70064         Reported by Ian Beckwith and others.
70066 2009-10-27  Bruno Haible  <bruno@clisp.org>
70068         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
70069         Reported by Jim Meyering.
70071 2009-10-27  Jim Meyering  <jim@meyering.net>
70072             Bruno Haible  <bruno@clisp.org>
70074         Avoid warning despite dropping the return value of fwrite.
70075         * lib/unicodeio.c: Include ignore-value.h.
70076         (fwrite_success_callback): Explicitly ignore fwrite's return value.
70077         * modules/unicodeio (Depends-on): Add ignore-value.
70079 2009-10-26  Eric Blake  <ebb9@byu.net>
70081         areadlinkat: fix fallback path
70082         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
70083         pointer and zero.
70085 2009-10-22  Pádraig Brady  <P@draigBrady.com>
70087         Use a better IO block size for modern systems
70088         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
70089         * lib/md2.c: Likewise.
70090         * lib/md4.c: Likewise.
70091         * lib/md5.c: Likewise.
70092         * lib/sha1.c: Likewise.
70093         * lib/sha256.c: Likewise.
70094         * lib/sha512.c: Likewise.
70096 2009-10-22  Eric Blake  <ebb9@byu.net>
70098         tests: avoid several compiler warnings
70099         * tests/test-getcwd.c (main): Avoid buffer underflow.
70100         * tests/test-getdate.c (main): String literals are not safe with
70101         putenv, so use setenv.  Declare unused argument.
70102         * modules/getdate-tests (Depends-on): Add setenv.
70103         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
70104         problems with string literals in char *.
70105         * tests/test-hash.c (main): Avoid shadowing declaration.
70106         (insert_new): Treat string literals as char const *.
70107         * tests/test-getopt.h (test_getopt): Likewise.
70108         (getopt_loop): Alter types to minimize casting elsewhere.
70109         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
70110         (test_getopt_long_posix): Likewise.
70111         (do_getopt_long): Add wrapper to minimize casting.
70112         * tests/test-atexit.c (clear_temp_file): Use void.
70113         * tests/test-areadlink-with-size.c (main): Declare unused
70114         arguments.
70115         * tests/test-areadlink.c (main): Likewise.
70116         * tests/test-areadlinkat-with-size.c (main): Likewise.
70117         * tests/test-areadlinkat.c (main): Likewise.
70118         * tests/test-canonicalize-lgpl.c (main): Likewise.
70119         * tests/test-canonicalize.c (main): Likewise.
70120         * tests/test-dirent-safer.c (main): Likewise.
70121         * tests/test-dirname.c (main): Likewise.
70122         * tests/test-dup2.c (main): Likewise.
70123         * tests/test-fchdir.c (main): Likewise.
70124         * tests/test-fcntl-h.c (main): Likewise.
70125         * tests/test-fcntl-safer.c (main): Likewise.
70126         * tests/test-fdopendir.c (main): Likewise.
70127         * tests/test-fdutimensat.c (main): Likewise.
70128         * tests/test-fflush.c (main): Likewise.
70129         * tests/test-filenamecat.c (main): Likewise.
70130         * tests/test-filevercmp.c (main): Likewise.
70131         * tests/test-fopen-safer.c (main): Likewise.
70132         * tests/test-fopen.c (main): Likewise.
70133         * tests/test-fpending.c (main): Likewise.
70134         * tests/test-fpurge.c (main): Likewise.
70135         * tests/test-freading.c (main): Likewise.
70136         * tests/test-fstatat.c (main): Likewise.
70137         * tests/test-fsync.c (main): Likewise.
70138         * tests/test-futimens.c (main): Likewise.
70139         * tests/test-getndelim2.c (main): Likewise.
70140         * tests/test-gettimeofday.c (main): Likewise.
70141         * tests/test-getopt.c (main): Likewise.
70142         * tests/test-i-ring.c (main): Likewise.
70143         * tests/test-inttypes.c (main): Likewise.
70144         * tests/test-link.c (main): Likewise.
70145         * tests/test-lstat.c (main): Likewise.
70146         * tests/test-math.c (main): Likewise.
70147         * tests/test-md5.c (main): Likewise.
70148         * tests/test-memchr2.c (main): Likewise.
70149         * tests/test-memrchr.c (main): Likewise.
70150         * tests/test-mkdir.c (main): Likewise.
70151         * tests/test-mkdirat.c (main): Likewise.
70152         * tests/test-mkfifoat.c (main): Likewise.
70153         * tests/test-open.c (main): Likewise.
70154         * tests/test-openat-safer.c (main): Likewise.
70155         * tests/test-openat.c (main): Likewise.
70156         * tests/test-quotearg.c (main): Likewise.
70157         * tests/test-rawmemchr.c (main): Likewise.
70158         * tests/test-readlink.c (main): Likewise.
70159         * tests/test-remove.c (main): Likewise.
70160         * tests/test-rename.c (main): Likewise.
70161         * tests/test-renameat.c (main): Likewise.
70162         * tests/test-rmdir.c (main): Likewise.
70163         * tests/test-sha1.c (main): Likewise.
70164         * tests/test-signal.c (main): Likewise.
70165         * tests/test-sigaction.c (main): Likewise.
70166         * tests/test-stat.c (main): Likewise.
70167         * tests/test-stat-time.c (main): Likewise.
70168         * tests/test-stddef.c (main): Likewise.
70169         * tests/test-stdint.c (main): Likewise.
70170         * tests/test-stdio.c (main): Likewise.
70171         * tests/test-stdlib.c (main): Likewise.
70172         * tests/test-strchrnul.c (main): Likewise.
70173         * tests/test-strerror.c (main): Likewise.
70174         * tests/test-string.c (main): Likewise.
70175         * tests/test-strtod.c (main): Likewise.
70176         * tests/test-strverscmp.c (main): Likewise.
70177         * tests/test-symlink.c (main): Likewise.
70178         * tests/test-symlinkat.c (main): Likewise.
70179         * tests/test-sys_stat.c (main): Likewise.
70180         * tests/test-sys_time.c (main): Likewise.
70181         * tests/test-time.c (main): Likewise.
70182         * tests/test-unistd.c (main): Likewise.
70183         * tests/test-unlink.c (main): Likewise.
70184         * tests/test-unlinkat.c (main): Likewise.
70185         * tests/test-utimens.c (main): Likewise.
70186         * tests/test-utimensat.c (main): Likewise.
70187         * tests/test-version-etc.c (main): Likewise.
70188         * tests/test-wchar.c (main): Likewise.
70189         * tests/test-wctype.c (main): Likewise.
70190         * tests/test-xprintf-posix.c (main): Likewise.
70191         * tests/test-posixtm.c (main): Likewise.
70192         (STREQ): Delete unused macro.
70193         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
70194         shadowed variables.
70195         * tests/test-memchr.c (main): Likewise.
70197 2009-10-21  Eric Blake  <ebb9@byu.net>
70199         areadlinkat: avoid failure on older glibc
70200         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
70201         rather than mis-comparing 0 against FUNC_RESULT of char*.
70203 2009-10-21  Bruno Haible  <bruno@clisp.org>
70205         * modules/stpncpy (License): Relicense under LGPLv2+.
70206         Reported by David Lutterkort <lutter@redhat.com>.
70208 2009-10-20  Eric Blake  <ebb9@byu.net>
70210         utimensat: work around Solaris 9 bug
70211         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
70212         has trailing slash bugs.
70213         * tests/test-lutimens.h (test_lutimens): Enhance test.
70214         * tests/test-utimens.h (test_utimens): Likewise.
70215         * doc/posix-functions/utime.texi (utime): Enhance documentation.
70216         * doc/posix-functions/utimes.texi (utimes): Likewise.
70217         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70218         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
70219         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
70220         * doc/posix-functions/futimens.texi (futimens): Likewise.
70222         fdutimensat: new module
70223         * modules/fdutimensat: New file.
70224         * lib/fdutimensat.c (fdutimensat): Likewise.
70225         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
70226         * MODULES.html.sh (File system functions): Mention module.
70227         * modules/fdutimensat-tests: New test.
70228         * tests/test-fdutimensat.c: Likewise.
70230         doc: regenerate INSTALL
70231         * doc/INSTALL: Reflect recent autoconf update.
70232         * doc/INSTALL.ISO: Likewise.
70233         * doc/INSTALL.UTF-8: Likewise.
70235 2009-10-20  Pádraig Brady  <P@draigBrady.com>
70237         acl: warn if ACL support is not detected
70238         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
70240 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
70242         * lib/nproc.h: Add extern "C" block for C++.
70244 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
70245             Bruno Haible  <bruno@clisp.org>
70247         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
70248         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
70249         * doc/posix-functions/isalpha.texi: Likewise.
70250         * doc/posix-functions/isblank.texi: Likewise.
70251         * doc/posix-functions/iscntrl.texi: Likewise.
70252         * doc/posix-functions/isdigit.texi: Likewise.
70253         * doc/posix-functions/isgraph.texi: Likewise.
70254         * doc/posix-functions/islower.texi: Likewise.
70255         * doc/posix-functions/isprint.texi: Likewise.
70256         * doc/posix-functions/ispunct.texi: Likewise.
70257         * doc/posix-functions/isspace.texi: Likewise.
70258         * doc/posix-functions/isupper.texi: Likewise.
70259         * doc/posix-functions/isxdigit.texi: Likewise.
70261 2009-10-18  Bruno Haible  <bruno@clisp.org>
70263         Tests for module 'isblank'.
70264         * modules/isblank-tests: New file.
70265         * tests/test-isblank.c: New file.
70267         New module 'isblank'.
70268         * lib/isblank.c: New file.
70269         * m4/isblank.m4: New file.
70270         * modules/isblank: New file.
70271         * doc/posix-functions/isblank.texi: Mention the new module.
70273 2009-10-18  Bruno Haible  <bruno@clisp.org>
70275         New module 'ctype'.
70276         * lib/ctype.in.h: New file.
70277         * m4/ctype.m4: New file.
70278         * modules/ctype: New file.
70279         * doc/posix-headers/ctype.texi: Mention the new module.
70281 2009-10-18  Jim Meyering  <meyering@redhat.com>
70283         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
70284         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
70285         right after its initialization, rather than farther down.
70286         Keeping these in close proximity makes it easier to ensure
70287         that each such variable is initialized.  E.g.,
70289             LIB_CLOCK_GETTIME=
70290             AC_SUBST([LIB_CLOCK_GETTIME])
70292         This change also increments these serial numbers.
70293         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
70294         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70297 2009-10-18  Bruno Haible  <bruno@clisp.org>
70299         Don't let environment variables perturb build.
70300         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
70301         (gl_PREREQ_GETHRXTIME): ... not here.
70303 2009-10-18  Bruno Haible  <bruno@clisp.org>
70305         Avoid symlink attack in localcharset module.
70306         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
70307         (O_NOFOLLOW): Define fallback.
70308         (get_charset_aliases): Don't open the file if it is a symbolic link.
70309         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
70310         gl_FCNTL_H.
70311         (gl_FCNTL_H): Require it.
70312         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
70313         * modules/localcharset (Files): Add m4/fcntl_h.m4.
70314         Reported by Fergal Glynn <fglynn@veracode.com>.
70316 2009-10-18  Bruno Haible  <bruno@clisp.org>
70318         Implement nproc for mingw.
70319         * lib/nproc.c: Include <windows.h>
70320         (num_processors): On native Windows platforms, try GetSystemInfo.
70322 2009-10-18  Bruno Haible  <bruno@clisp.org>
70324         Implement nproc for IRIX.
70325         * lib/nproc.c: Include <sys/sysmp.h>.
70326         (num_processors): On IRIX systems, try sysmp.
70327         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
70329 2009-10-18  Bruno Haible  <bruno@clisp.org>
70331         Implement nproc for HP-UX.
70332         * lib/nproc.c: Include <sys/pstat.h>
70333         (num_processors): On HP-UX systems, try pstat_getdynamic.
70334         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
70335         pstat_getdynamic.
70337 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
70338             Bruno Haible  <bruno@clisp.org>
70340         Implement nproc for NetBSD, OpenBSD.
70341         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
70342         (ARRAY_SIZE): New macro.
70343         (num_processors): On BSD systems, try sysctl of HW_NCPU.
70344         * m4/nproc.m4: New file.
70345         * modules/nproc (Files): Add m4/nproc.m4.
70346         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
70347         (Makefile.am): Instead, augment lib_SOURCES.
70349 2009-10-18  Bruno Haible  <bruno@clisp.org>
70351         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
70352         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
70353         sys/param.h.
70355 2009-10-16  Eric Blake  <ebb9@byu.net>
70357         utimensat: new module
70358         * modules/utimensat: New file.
70359         * lib/utimensat.c (utimensat): Likewise.
70360         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70361         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
70362         so we can work around Linux bugs.
70363         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70364         * modules/sys_stat (Makefile.am): Substitute them.
70365         * lib/sys_stat.in.h (utimensat): Declare it.
70366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70367         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70368         * modules/utimensat-tests: New test.
70369         * tests/test-utimensat.c: Likewise.
70371         utimens: let lutimens work on non-symlinks
70372         * lib/utimens.c (lutimens): Fall back to utimens rather than
70373         failing with ENOSYS, when file is not a symlink.
70374         (utimens): Reduce redirection.
70375         * tests/test-lutimens.h (test_lutimens): Update test to cover
70376         non-symlinks.
70377         * tests/test-utimens.h (test_utimens): Update test to cover
70378         symlinks.
70379         * tests/test-utimens.c (main): Update caller.
70381         utimens: cache whether utimensat syscall works
70382         * lib/utimens.c (utimensat_works_really): New cache variable.
70383         (fdutimens, lutimens): Use it to avoid failing syscall.
70385         test-stat-time, test-utimens: improve portability
70386         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
70387         ext4 on alpha, and for cygwin.
70388         * tests/test-utimens-common.h: New file.
70389         (nap): Factor delays into single function.
70390         * tests/test-lutimens.h (test_lutimens): Use new header.
70391         * tests/test-futimens.h (test_futimens): Likewise.
70392         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
70393         timestamps to occur from same machine, as was done previously for
70394         test_utimens.
70395         * modules/utimens-tests (Files): Ship new file.
70396         * modules/futimens-tests (Files): Likewise.
70397         Reported in part by Jim Meyering.
70399         sys_stat: sort replacement declarations
70400         * lib/sys_stat.in.h: Sort declarations.
70401         * lib/futimens.c (futimens): Fix typo.
70403 2009-10-15  Jim Meyering  <meyering@redhat.com>
70405         don't let environment settings perturb build
70406         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
70407         could cause a configure-time and/or build-time malfunction.
70408         Typically, a configure-time function-in-library test is performed
70409         via code like this:
70411           LIB_VAR=
70412           AC_SUBST([LIB_VAR])
70413           prefix_saved_LIBS=$LIBS
70414             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
70415                        [test "$ac_cv_search_FUNC" = "none required" ||
70416                         LIB_VAR=$ac_cv_search_FUNC])
70417           LIBS=$prefix_saved_LIBS
70419         However, in each of the files affected by this change, the LIB_VAR=
70420         initialization was omitted.  Thus, when set in the environment, its
70421         value would propagate into generated Makefiles when FUNC is not found
70422         in LIB_NAME.
70423         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
70424         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70427 2009-10-14  Eric Blake  <ebb9@byu.net>
70429         fchdir: avoid infinite recursion in mingw
70430         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
70431         recursing.
70433         test-stat-time: port to mingw
70434         * tests/test-stat-time.c (force_unlink): Return a value.
70435         (test_ctime) [W32]: Fix compilation error.
70436         (nap): Don't call usleep with too large an argument.  Use
70437         force_unlink.
70438         * doc/pastposix-functions/usleep.texi (usleep): Document the
70439         portability issue.
70441 2009-10-13  Jim Meyering  <meyering@redhat.com>
70443         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
70444         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
70445         * modules/pipe-filter-ii: Likewise.
70446         * modules/sys_socket-tests: Likewise.
70447         * modules/tsearch-tests: Likewise.
70448         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
70449         (check): Depend on it.
70451 2009-10-12  Eric Blake  <ebb9@byu.net>
70453         utimens-tests: port to NFS file systems
70454         * tests/test-utimens.h (test_utimens): Refactor utimecmp
70455         comparisons to avoid spurious failures from timestamp drift
70456         between NFS machines.
70458 2009-10-12  Eric Blake  <ebb9@byu.net>
70460         stat-time-tests: minor cleanups
70461         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
70462         * tests/test-stat-time.c (nap): Separate assignment from call.
70463         Suggested by Paolo Bonzini and Bruno Haible.
70465         sys_stat: guarantee struct timespec
70466         * lib/sys_stat.in.h (includes): Always include <time.h>
70467         * modules/sys_stat (Depends-on): Add time.
70468         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
70469         mode_t permission values.
70470         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
70471         get at subsecond timestamps.
70473 2009-10-10  Eric Blake  <ebb9@byu.net>
70475         futimens: new module
70476         * modules/futimens: New file.
70477         * lib/futimens.c (futimens): Likewise.
70478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
70479         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
70480         we can work around Linux bugs.
70481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70482         * modules/sys_stat (Makefile.am): Substitute them.
70483         * lib/sys_stat.in.h (futimens): Declare it.
70484         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70485         * doc/posix-functions/futimens.texi (futimens): Likewise.
70486         * modules/futimens-tests: New test.
70487         * tests/test-futimens.c: Likewise.
70489         utimens: introduce fdutimens
70490         * lib/utimens.h (fdutimens): New prototype.
70491         * lib/utimens.c (gl_futimens): Move guts...
70492         (fdutimens): ...to new interface.
70493         * tests/test-utimens.c (do_fdutimens): Use it.
70495         utimens: add UTIME_NOW and UTIME_OMIT support
70496         * lib/utimens.c (validate_timespec, update_timespec): New helper
70497         functions.
70498         (gl_futimens, lutimens): Use them.
70499         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
70500         stdbool, sys_stat.
70501         (Link): Mention resulting library dependency.
70502         * modules/utimecmp (Link): Likewise.
70503         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
70504         (Makefile.am): Pick up library dependency.
70505         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
70506         definition.
70507         * tests/test-sys_stat.c: Test the definitions.
70508         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
70509         * NEWS: Document library dependency.
70511         utimecmp: support symlink timestamps
70512         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
70513         hashing when possible.  Use pathconf when available.
70514         (SYSCALL_RESOLUTION): Recognize tighter resolution.
70515         * modules/utimecmp (Depends-on): Add lstat.
70517         utimens: add lutimens interface
70518         * lib/utimens.c (lutimens): New function.
70519         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
70520         * lib/utimens.h (lutimens): Declare new interface.
70521         * tests/test-utimens.c (main): Enhance test.
70522         * tests/test-lutimens.h (test_lutimens): New file.
70523         * modules/utimens-tests (Files): Distribute it.
70524         (Depends-on): Add symlink.
70525         (configure.ac): Check for usleep.
70527         utimens: validate futimens usage
70528         * lib/utimens.c (gl_futimens): Require valid fd up front, using
70529         fewer syscalls on failure later on.  Avoid compiler warning on
70530         mingw.
70531         * modules/utimens (Depends-on): Add dup2.
70533         utimens: add test
70534         * modules/utimens-tests: New test.
70535         * tests/test-utimens.h: New file.
70536         * tests/test-futimens.h: Likewise.
70537         * tests/test-utimens.c: Likewise.
70539         doc: mention timestamp portability issues
70540         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
70541         instead.
70542         * doc/posix-functions/utime.texi (utime): Likewise.
70543         * doc/posix-functions/utimes.texi (utimes): Likewise.
70544         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
70545         instead.
70546         * doc/posix-functions/futimens.texi (futimens): Mention utimens
70547         module.
70548         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70549         Mention weakness with symlink timestamps.
70550         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
70551         to utimensat/futimens instead.
70552         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
70554         test-dup2: enhance test
70555         * tests/test-dup2.c (main): Also check AT_FDCWD.
70557         test-stat-time: avoid more spurious failures
70558         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
70559         xfs; and avoid race if the two timestamps cross quantization edge.
70561         relocatable: prefer 'file system' over 'filesystem'
70562         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
70563         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
70564         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
70565         * doc/relocatable.texi (Enabling Relocatability): Likewise.
70566         * lib/relocatable.c (compute_curr_prefix): Likewise.
70568 2009-10-10  Jim Meyering  <meyering@redhat.com>
70570         stat-time-tests: check for the usleep function
70571         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
70573 2009-10-10  Bruno Haible  <bruno@clisp.org>
70575         * modules/xnanosleep: Put the Link section after the Include section.
70577 2009-10-09  Eric Blake  <ebb9@byu.net>
70579         dup2: work around FreeBSD 6.1 bug
70580         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
70581         * doc/posix-functions/dup2.texi (dup2): Document it.
70582         Reported by Nelson H. F. Beebe and Jim Meyering.
70584         test-stat-time: port to buggy NFS clients
70585         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
70586         (test_ctime): Also skip test if mtime and ctime are skewed.
70588         maint: prefer 'file system' over 'filesystem'
70589         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
70590         * doc/posix-functions/lstat.texi (lstat): Likewise.
70591         * lib/file-has-acl.c (file_has_acl): Likewise.
70592         * lib/fwriteerror.c [TEST]: Likewise.
70593         * tests/test-areadlink.h (test_areadlink): Likewise.
70594         * tests/test-areadlinkat-with-size.c (main): Likewise.
70595         * tests/test-areadlinkat.c (main): Likewise.
70596         * tests/test-canonicalize-lgpl.c (main): Likewise.
70597         * tests/test-canonicalize.c (main): Likewise.
70598         * tests/test-fstatat.c (main): Likewise.
70599         * tests/test-linkat.c (main): Likewise.
70600         * tests/test-lstat.h (test_lstat_func): Likewise.
70601         * tests/test-mkdir.h (test_mkdir): Likewise.
70602         * tests/test-readlink.h (test_readlink): Likewise.
70603         * tests/test-remove.c (main): Likewise.
70604         * tests/test-rename.h (test_rename): Likewise.
70605         * tests/test-renameat.c (main): Likewise.
70606         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70607         * tests/test-symlink.h (test_symlink): Likewise.
70608         * tests/test-symlinkat.c (main): Likewise.
70609         * tests/test-unlink.h (test_unlink_func): Likewise.
70610         * tests/test-unlinkat.c (main): Likewise.
70612         maint: make realtime library usage explicit
70613         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
70614         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
70615         * modules/settime (Link): Likewise.
70616         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
70618         test-stat-time: speed up execution
70619         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
70620         warning on mingw.
70621         (nap): New helper function.
70622         (prepare_test): Use it to reduce sleep time.
70623         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
70624         execution.
70625         * modules/stat-time-tests (configure.ac): Check for usleep.
70627 2009-10-09  Jim Meyering  <meyering@redhat.com>
70629         selinux-h: always use getfilecon wrappers
70630         * lib/getfilecon.c: New file.
70631         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
70632         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
70633         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
70634         (fgetfilecon): Provide a stub.
70635         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
70636         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
70637         file unconditionally.
70638         When <selinux/selinux.h> is found, arrange to use wrappers.
70639         * modules/selinux-h (Files): Add getfilecon.c.
70640         (Makefile.am): Substitute include-next-related bits
70641         into the now-always-generated selinux/selinux.h file.
70642         * doc/glibc-functions/lgetfilecon.texi: New file.
70643         * doc/glibc-functions/fgetfilecon.texi: New file.
70644         * doc/glibc-functions/getfilecon.texi: New file.
70645         * doc/glibc-functions/getfilecon-desc.texi: New file.
70646         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
70647         which to pull in the new files.
70648         * MODULES.html.sh (Misc): Add selinux-h.
70650 2009-10-08  Jim Meyering  <meyering@redhat.com>
70652         unistd: fix comment typo
70653         * lib/unistd.in.h (euidaccess): Fix a comment typo.
70655 2009-10-08  Eric Blake  <ebb9@byu.net>
70657         areadlink: use SIZE_MAX consistently
70658         * modules/areadlink (Depends-on): Add stdint.
70659         * modules/areadlink-with-size (Depends-on): Likewise.
70660         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
70661         gives NULL; drop sys/types, since unistd gives size_t; and add
70662         stdint for SIZE_MAX.
70663         (SIZE_MAX): Rely on headers.
70664         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
70665         and add stdint.
70666         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
70667         (SIZE_MAX): Likewise.
70668         (INITIAL_BUF_SIZE): Turn into enum.
70669         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
70671 2009-10-08  Jim Meyering  <meyering@redhat.com>
70673         areadlinkat: avoid compilation failure
70674         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
70675         Fix typo in comment.
70677 2009-10-07  Eric Blake  <ebb9@byu.net>
70679         areadlinkat-with-size: new module
70680         * modules/areadlinkat-with-size: New module.
70681         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
70682         * lib/areadlink.h (areadlinkat): Declare it.
70683         * MODULES.html.sh (File system functions): Mention it.
70684         * modules/areadlinkat-with-size-tests: New test.
70685         * tests/test-areadlinkat-with-size.c: New file.
70687         xreadlinkat: new module
70688         * modules/xreadlinkat: New module.
70689         * lib/xreadlinkat.c (xreadlinkat): New file.
70690         * lib/xreadlink.h (xreadlinkat): Declare it.
70691         * MODULES.html.sh (File system functions): Mention it.
70693         areadlinkat: new module
70694         * lib/at-func.c (FUNC_FAIL): New define.
70695         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
70696         * modules/areadlinkat: New module.
70697         * lib/linkat.c (areadlinkat): Move...
70698         * lib/areadlinkat.c (areadlinkat): ...to new file.
70699         * lib/areadlink.h (areadlinkat): Declare it.
70700         * modules/linkat (Depends-on): Add areadlinkat.
70701         * MODULES.html.sh (File system functions): Mention it.
70702         * modules/areadlinkat-tests: New test.
70703         * tests/test-areadlinkat.c: New file.
70705         areadlink, areadlink-with-size: add tests
70706         * modules/areadlink-tests: New test.
70707         * modules/areadlink-with-size-tests: Likewise.
70708         * tests/test-areadlink.h: New file.
70709         * tests/test-areadlink.c: Likewise.
70710         * tests/test-areadlink-with-size.c: Likewise.
70712         maint: minor cleanups
70713         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
70714         _UNUSED_PARAMETER_ instead.
70715         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
70716         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
70717         * modules/linkat-tests (Files): Distribute test-link.h.
70719         openat, utimens: whitespace cleanup
70720         * lib/openat.c: Prefer space throughout, rather than mix of 8
70721         spaces vs. tabs.
70722         * lib/at-func.c: Likewise.
70723         * lib/utimens.c: Likewise.
70725         openat: avoid using wrong fd
70726         * lib/openat.c (openat_permissive): Reject user's fd if saving the
70727         working directory chooses same fd.
70728         * lib/at-func.c (AT_FUNC_NAME): Likewise.
70730         mkdir, mkdirat: fix cygwin 1.5.x bug
70731         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
70732         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
70733         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
70734         bug.
70735         (gl_PREREQ_MKDIR): Delete unused macro.
70736         * modules/mkdir (Files): Track file rename.
70737         (configure.ac): Update macro name.
70738         * modules/openat (Depends-on): Add mkdir.
70739         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
70741         mkdir, mkdirat: add tests
70742         * modules/mkdir-tests: New test.
70743         * tests/test-mkdir.h: New file.
70744         * tests/test-mkdir.c: Likewise.
70745         * tests/test-mkdirat.c: Likewise.
70746         * modules/openat-tests (Files): Add new files.
70747         (Makefile.am): Run new test.
70749 2009-10-06  Eric Blake  <ebb9@byu.net>
70751         doc: tweak *at function documentation
70752         * doc/posix-functions/faccessat.texi (faccessat): Mention
70753         known issue with replacement.
70754         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
70755         * doc/posix-functions/linkat.texi (linkat): Likewise.
70756         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
70757         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
70758         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
70759         * doc/posix-functions/renameat.texi (renameat): Likewise.
70760         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
70762         openat: fix GNU/Hurd bug in unlinkat
70763         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
70764         broken.
70765         * doc/posix-functions/unlink.texi (unlink): Document this.
70766         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
70768         fdopendir: fix GNU/Hurd bug
70769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
70770         allowing non-directory fds.
70771         * lib/fdopendir.c (rpl_fdopendir): Work around it.
70772         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70773         * modules/dirent (Makefile.am): Substitute it.
70774         * lib/dirent.in.h (fdopendir): Declare replacement.
70775         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
70776         * tests/test-fdopendir.c (main): Test something other than
70777         /dev/null, since on Hurd that behaves like a directory.
70779         test-symlink: port to GNU/Hurd
70780         * tests/test-symlink.h (test_symlink): Relax expected errno.
70782         doc: tweak more cygwin information
70783         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
70784         now compatible with glibc.
70785         * doc/posix-functions/getopt.texi (getopt): Likewise.
70787         getopt-gnu: add another test
70788         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
70789         guarantee behavior relied on by m4.
70790         * tests/test-getopt.c (main): Use it.
70791         * modules/getopt-posix-tests (Depends-on): Add setenv.
70792         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
70794         getopt: fix compilation on darwin
70795         * lib/getopt.in.h (includes): Leave breadcrumbs during system
70796         include.
70797         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
70798         Reported by Ludovic Courtès.
70800 2009-10-06  Bruno Haible  <bruno@clisp.org>
70802         * modules/size_max (Description): Discourage its use.
70803         Reported by Simon Josefsson.
70805 2009-10-06  Jim Meyering  <meyering@redhat.com>
70807         linkat: avoid compilation failure
70808         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
70810 2009-10-05  Eric Blake  <ebb9@byu.net>
70812         linkat: support Linux 2.6.17
70813         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
70814         linkat on Linux, but allow cache variable override.
70815         * lib/linkat.c (rpl_linkat): Define override.
70816         * modules/linkat (Depends-on): Add symlinkat.
70817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
70818         * modules/unistd (Makefile.am): Substitute it.
70819         * lib/unistd.in.h (linkat): Declare replacement.
70820         Reported by Pádraig Brady.
70822         quotearg: port test to systems with C.UTF-8 locale
70823         * tests/test-quotearg.c (struct result_strings): Add another
70824         member, differentiating between C.ASCII and C.UTF-8 handling.
70825         (compare_strings): Add parameter.
70826         (main): Adjust all callers.
70828         getopt: avoid clash with FreeBSD _getopt_internal
70829         * lib/getopt.in.h (_getopt_internal): Override the name.
70830         * lib/getopt_int.h (includes): Pick up any overrides.
70831         Reported by Reuben Thomas.
70833         hash: allow C89 compilation
70834         * lib/hash.c (check_tuning): Move declaration before statement.
70835         Reported by Reuben Thomas.
70837 2009-10-05  Karl Berry  <karl@gnu.org>
70839         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
70841 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
70842             Bruno Haible  <bruno@clisp.org>
70844         * lib/uname.c (uname): Use a table-driven algorithm to compute
70845         Windows NT versions.
70847 2009-10-04  Bruno Haible  <bruno@clisp.org>
70849         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
70850         program_invocation_short_name.
70851         * modules/progname (configure.ac): Test for presence of
70852         program_invocation_short_name.
70853         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
70855 2009-10-04  Bruno Haible  <bruno@clisp.org>
70857         * lib/progname.c (set_program_name): Fix comment.
70858         Reported by Jim Meyering.
70860 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
70861             Bruno Haible  <bruno@clisp.org>
70863         * lib/uname.c: Include <string.h>.
70864         (uname): Do only one call to GetVersionEx in the common case.
70866 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
70867             Bruno Haible  <bruno@clisp.org>
70869         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
70870         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
70871         (uname): Add support for Windows CE and various non-x86 CPU types.
70873 2009-10-03  Bruno Haible  <bruno@clisp.org>
70875         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
70876         invocation to tests/configure.ac.
70877         Reported by Ian Beckwith <ianb@erislabs.net>.
70879 2009-10-02  Eric Blake  <ebb9@byu.net>
70881         fchdir: avoid compiler warning
70882         * lib/fchdir.c (canonicalize_file_name)
70883         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
70885         test-open: support mingw errno values
70886         * tests/test-open.h (test_open): Relax test.
70887         * tests/test-fopen.h (test_fopen): Likewise.
70888         * tests/test-openat-safer.c (main): Likewise.
70890         open: fix opening directory on mingw
70891         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
70893         test-open: on GNU/Hurd, /dev/null is a directory
70894         * tests/test-fopen.h (main): Rename...
70895         (test_fopen): ...to this.  Use a guaranteed non-directory when
70896         confirming open behavior on trailing slash.
70897         * tests/test-openat-safer.c (main): Likewise.
70898         * tests/test-open.h (main): Likewise....
70899         (test_open): ...to this.
70900         * tests/test-fopen.c (main): Adjust caller.
70901         * tests/test-fopen-safer.c (main): Likewise.
70902         * tests/test-open.c (main): Likewise.
70903         * tests/test-fcntl-safer.c (main): Likewise.
70904         Reported by Samuel Thibault.
70906         rename, fchdir: don't ignore chdir failure
70907         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
70908         * lib/rename.c (rpl_rename) [W32]: Likewise.
70909         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
70910         an empty destination directory if source cannot be renamed,
70911         although there is still possibility for failure.
70912         * doc/posix-functions/rename.texi (rename): Document the race.
70913         Reported by Jim Meyering.
70915         maint: cleanup whitespace in recent commits
70916         * lib/rename.c (rpl_rename): Remove tabs.
70917         * tests/test-link.h (test_link): Likewise.
70918         * lib/fchdir.c (get_name): Likewise.
70919         Reported by Jim Meyering.
70921 2009-10-02  Ben Pfaff  <blp@gnu.org>
70923         relocatable-prog-wrapper: Add missing dependency on
70924         double-slash-root.
70925         * modules/relocatable-prog-wrapper: Add dependency.
70926         Reported by Ian Beckwith <ianb@erislabs.net>.
70928 2009-10-02  Eric Blake  <ebb9@byu.net>
70930         renameat: fix Solaris bugs
70931         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
70932         needed fixing.
70933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
70934         * modules/stdio (Makefile.am): Substitute it.
70935         * lib/stdio.in.h (renameat): Declare replacement.
70936         * lib/renameat.c (rpl_renameat): Implement fix.
70938         renameat: new module
70939         * modules/renameat: New file.
70940         * lib/renameat.c (renameat): Likewise.
70941         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
70942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
70943         * modules/stdio (Makefile.am): Substitute them.
70944         * lib/stdio.in.h (renameat): Declare it.
70945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70946         * doc/posix-functions/renameat.texi (renameat): Likewise.
70947         * modules/renameat-tests: New test.
70948         * tests/test-renameat.c: Likewise.
70950         rename: fix mingw bugs
70951         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
70952         directory overwrite bugs.
70954         rename: fix another cygwin 1.5 bug
70955         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
70956         checks.
70957         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
70958         unnecessary cygwin workarounds.  Also work around bug with moving
70959         full directory onto an empty one.
70960         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
70962         rename-dest-slash: merge into rename module
70963         * modules/rename-dest-slash (Status): Mark obsolete.
70964         (Depends-on): Add rename.
70965         (Files): Let rename do it all.
70966         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
70967         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
70968         * m4/rename-dest-slash.m4: ...so this file can be deleted.
70969         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
70970         * lib/rename.c (rpl_rename): Update comments.
70972         rename: fix cygwin 1.5.x bugs
70973         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
70974         * lib/rename.c (rpl_rename): Work around them.
70975         * modules/rename (Depends-on): Add same-inode.
70977         rename: fix Solaris 10 bug
70978         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
70979         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
70980         was the only bug.
70982         rename: fix Solaris 9 bug
70983         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
70984         on non-directory.  Avoid calling exit.
70985         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
70986         strdup.
70987         * modules/rename-tests (Depends-on): Drop lstat.
70988         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
70989         (gl_PREREQ_RENAME): Delete unused macro.
70991         rename-dest-slash: fix NetBSD bug
70992         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
70993         links.
70994         * modules/rename-dest-slash (Depends-on): Add same-inode.
70996         rename-tests: new test, exposes several platform bugs
70997         * modules/rename-tests: New file.
70998         * tests/test-rename.h: Likewise.
70999         * tests/test-rename.c: Likewise.
71000         * doc/posix-functions/rename.texi (rename): Improve documentation,
71001         including bugs that will eventually be fixed in gnulib.
71003 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
71005         * lib/uname.c: Include <stdlib.h>
71006         (uname): Assume version info is available.
71008 2009-10-02  Jim Meyering  <meyering@redhat.com>
71010         gnu-web-doc-update: correct --help output
71011         * build-aux/gnu-web-doc-update: Make --help output relevant.
71013         gnu-web-doc-update: add standard options
71014         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
71016         gnu-web-doc-update: New module.
71017         Use this script to automatically update the on-line web documentation
71018         for your GNU project at http://www.gnu.org/software/$pkg/manual/
71019         * modules/gnu-web-doc-update: New file, from coreutils.
71020         * build-aux/gnu-web-doc-update: New script.
71022 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
71024         link: LoadLibrary is not needed.
71025         * lib/link.c: Use GetModuleHandle.
71027 2009-10-01  Eric Blake  <ebb9@byu.net>
71029         getopt: bump serial number
71030         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
71031         change.
71033         tests: tighten link, rmdir, and remove tests
71034         * tests/test-link.h (includes): No need to use <config.h> here.
71035         Clean up if directory hard link was created, otherwise test for
71036         trailing '.'.
71037         * tests/test-linkat.c (main): Simplify.
71038         * tests/test-remove.c (main): Enhance test for trailing '.'.
71039         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71041 2009-10-01  Jim Meyering  <meyering@redhat.com>
71043         maint.mk: requiring "make major" was annoying, for a "minor" release.
71044         What is intended is "stable", to contrast with alpha and beta,
71045         so require "make stable", not "make major".
71046         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
71047         (get_tool_versions): Likewise.
71048         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
71050 2009-09-30  Ben Pfaff  <blp@gnu.org>
71052         Fix broken build of replacement for Windows tmpfile().
71053         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
71054         flags argument added along with the 'mkostemp' module.
71056 2009-09-28  Bruno Haible  <bruno@clisp.org>
71058         Avoid identifier clash with POSIX function 'remove' defined as a macro.
71059         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
71060         to 'remove_elt'.
71061         (gl_list_remove): Update.
71062         * lib/gl_list.c (gl_list_remove): Update.
71063         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
71064         to 'remove_elt'.
71065         (gl_oset_remove): Update.
71066         * lib/gl_list.c (gl_oset_remove): Update.
71067         Reported by Eric Blake.
71069 2009-09-28  Eric Blake  <ebb9@byu.net>
71071         doc: mention yet more cygwin 1.7 status
71072         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
71073         cygwin.
71074         * doc/glibc-functions/execvpe.texi (execvpe): New file.
71075         * doc/gnulib.texi (Glibc unistd.h): Mention it.
71077         argp: fix test failure
71078         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
71079         that are not upper-case.  Pass correct range to tolower.
71081 2009-09-27  Jim Meyering  <meyering@redhat.com>
71083         test-yesno: work around sparc-dash here-document infelicity
71084         Without this change, the literal \177 byte in a here document
71085         would make dash 0.5.5.1-3 access uninitialized memory.
71086         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
71087         Instead, use a marker, "@", and filter through tr to create the desired
71088         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
71090 2009-09-27  Bruno Haible  <bruno@clisp.org>
71092         Disable untested support for new flavours of ACLs on AIX.
71093         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
71094         progress.
71095         * lib/set-mode-acl.c (qset_acl): Likewise.
71097 2008-12-07  Bruno Haible  <bruno@clisp.org>
71099         Add support for new flavours of ACLs on AIX. (Untested.)
71100         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
71101         (file_has_acl): Add support for newer AIX.
71102         * lib/set-mode-acl.c (qset_acl): Likewise.
71103         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
71104         Rainer Tammer <tammer@tammer.net>.
71106 2009-09-26  Eric Blake  <ebb9@byu.net>
71108         argp: fix compilation of getopt
71109         * lib/getopt.in.h (includes): Use different guard than glibc.
71110         Reported by Sergey Poznyakoff.
71112         doc: mention more cygwin 1.7 status
71113         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
71114         bug.
71115         * doc/posix-functions/execl.texi (execl): Likewise.
71116         * doc/posix-functions/execle.texi (execle): Likewise.
71117         * doc/posix-functions/execlp.texi (execlp): Likewise.
71118         * doc/posix-functions/execv.texi (execv): Likewise.
71119         * doc/posix-functions/execve.texi (execve): Likewise.
71120         * doc/posix-functions/execvp.texi (execvp): Likewise.
71121         * doc/glibc-functions/canonicalize_file_name.texi
71122         (canonicalize_file_name): Cygwin 1.7 now provides this.
71123         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
71124         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
71125         on AT_SYMLINK_NOFOLLOW.
71127 2009-09-24  Eric Blake  <ebb9@byu.net>
71129         test-linkat: make test more robust
71130         * tests/test-linkat.c (main): Avoid collision with EEXIST.
71132         getopt: fix inclusion guards for cygwin
71133         * modules/getopt-posix (Depends-on): Add include-next.
71134         (Makefile.am): Substitute more items in replacement header.
71135         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
71136         <getopt.h>.
71137         * lib/getopt.in.h (includes): Use split inclusion guard, and
71138         prefer <getopt.h> over include <unistd.h> when one is present.
71139         (option): Also override name of 'struct option'.
71141         same-inode: revert prior change; it is not yet ready
71142         * NEWS: Undo mention of this change.
71143         * lib/same-inode.h (same-inode.h): Undo tri-state change.
71144         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71145         * lib/cycle-check.c (cycle_check): Likewise.
71146         * lib/same.c (same_name): Likewise.
71147         * lib/at-func2.c (at_func2): Likewise.
71149 2009-09-23  Eric Blake  <ebb9@byu.net>
71151         linkat: new module
71152         * modules/linkat: New file.
71153         * lib/at-func2.c (at_func2): Likewise.
71154         * lib/linkat.c (linkat): Likewise.
71155         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
71156         * lib/openat-priv.h (at_func2): Add declaration.
71157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71158         * modules/unistd (Makefile.am): Substitute them.
71159         * lib/unistd.in.h (linkat): Declare it.
71160         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71161         * doc/posix-functions/linkat.texi (linkat): Likewise.
71162         * doc/posix-functions/link.texi (link): Tweak wording.
71163         * tests/test-link.c (main): Move guts...
71164         * tests/test-link.h (test_link): ...into new file.
71165         * modules/linkat-tests: New test.
71166         * tests/test-linkat.c: Likewise.
71167         * modules/link-tests (Files): Ship new file.
71168         (Depends-on): Add stdbool.
71170         dirname: add library-safe mdir_name
71171         * lib/dirname.h (mdir_name): New prototype.
71172         * lib/dirname.c (dir_name): Move guts...
71173         (mdir_name): ...to new function that avoids xalloc_die.
71175         fchdir: another mingw fix
71176         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
71177         * lib/fchdir.c (get_name): New helper method; skips canonicalize
71178         on mingw (where it has not yet been ported), and make it optional
71179         elsewhere.
71180         (_gl_register_fd): Use it.
71182         same-inode: make SAME_INODE tri-state, to port to mingw
71183         * NEWS: Mention this change.
71184         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
71185         st_ino always being 0.
71186         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
71187         * lib/cycle-check.c (cycle_check): Likewise.
71188         * lib/same.c (same_name): Likewise.
71190         lstat: avoid mingw compilation error
71191         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
71192         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
71193         lstat ourselves.
71194         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
71195         was adequate.
71196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
71197         the checks for lstat.
71198         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
71200         link: fix test failure on Solaris 9
71201         * lib/link.c (rpl_link): Don't assume link will catch bogus
71202         trailing slash on source.
71204         test-symlinkat: enhance test
71205         * tests/test-readlink.c (main): Move guts...
71206         * tests/test-readlink.h (test_readlink): ...into new file.
71207         * tests/test-symlink.c (main): Move guts...
71208         * tests/test-symlink.h (test_symlink): ...into new file.
71209         * tests/test-symlinkat.c (main): Use new files for further
71210         coverage.
71211         (do_symlink, do_readlink): New helper functions.
71212         * modules/symlink-tests (Files): Ship new file.
71213         (Depends-on): Add stdbool.
71214         * modules/readlink-tests (Files): Ship new file.
71215         (Depends-on): Add stdbool.
71216         * modules/symlinkat-tests (Files): Use new files.
71218 2009-09-23  Eric Blake  <ebb9@byu.net>
71220         readlink: document portability issue with symlink length
71221         * doc/posix-functions/lstat.texi (lstat): Mention that some file
71222         systems have bogus st_size on symlinks, and mention the
71223         areadlink-with-size module.
71224         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
71225         * doc/posix-functions/readlink.texi (readlink): Mention the
71226         areadlink module, and ERANGE failure.
71227         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
71228         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
71230         readlink: fix Solaris 9 bug with trailing slash
71231         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
71232         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
71233         * doc/posix-functions/readlink.texi (readlink): Document this.
71234         * modules/readlink-tests: New test.
71235         * tests/test-readlink.c: Likewise.
71237         readlink: fix cygwin 1.5.x bug with return type
71238         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
71239         * lib/unistd.in.h (readlink): Use ssize_t.
71240         * lib/readlink.c (readlink): Likewise.
71241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71242         * modules/unistd (Makefile.am): Substitute it.
71243         * lib/unistd.in.h (readlink): Declare replacement.
71244         * doc/posix-functions/readlink.texi (readlink): Document this.
71246         symlink: use throughout gnulib
71247         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
71248         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
71249         symlink is not used.
71250         * modules/symlinkat (Depends-on): Add symlink.
71251         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71252         * modules/canonicalize-tests (Depends-on): Likewise.
71253         * modules/lstat-tests (Depends-on): Likewise.
71254         * modules/openat-tests (Depends-on): Likewise.
71255         * modules/remove-tests (Depends-on): Likewise.
71256         * modules/rmdir-tests (Depends-on): Likewise.
71257         * modules/unlink-tests (Depends-on): Likewise.
71258         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
71259         * tests/test-canonicalize.c (symlink): Likewise.
71260         * tests/test-fstatat.c (symlink): Likewise.
71261         * tests/test-lstat.c (symlink): Likewise.
71262         * tests/test-remove.c (symlink): Likewise.
71263         * tests/test-rmdir.c (symlink): Likewise.
71264         * tests/test-unlink.c (symlink): Likewise.
71265         * tests/test-unlinkat.c (symlink): Likewise.
71267         symlink: new module, for Solaris 9 bug
71268         * modules/symlink: New file.
71269         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
71270         * lib/symlink.c: Likewise.
71271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
71272         * modules/unistd (Makefile.am): Substitute them.
71273         * lib/unistd.in.h (symlink): Declare replacement.
71274         * MODULES.html.sh (File system functions): Mention it.
71275         * doc/posix-functions/symlink.texi (symlink): Likewise.
71276         * modules/symlink-tests: New test.
71277         * tests/test-symlink.c: Likewise.
71279 2009-09-23  Bruno Haible  <bruno@clisp.org>
71281         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
71282         when needed.
71283         Test case: gnulib-tool --import --with-tests atexit inttypes.
71284         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
71286 2009-09-23  Bruno Haible  <bruno@clisp.org>
71288         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
71289         subcommand, not in a subshell.
71291 2009-09-22  Eric Blake  <ebb9@byu.net>
71293         unistd: sort replacement declarations
71294         * lib/unistd.in.h: Sort declarations.
71296         open, openat: minor optimization
71297         * lib/open.c (open): If open succeeded, len is non-zero.
71298         * lib/openat.c (rpl_openat): Likewise.
71300         link-follow: ensure correct result
71301         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
71302         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
71303         distinguish between possible failures.
71305 2009-09-21  Eric Blake  <ebb9@byu.net>
71307         fts: avoid compiler warning
71308         * lib/fts.c (dirent_inode_sort_may_be_useful)
71309         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
71311 2009-09-19  Bruno Haible  <bruno@clisp.org>
71313         * lib/progreloc.c (canonicalize_file_name): New declaration.
71315 2009-09-19  Eric Blake  <ebb9@byu.net>
71317         link: fix quoting
71318         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
71320         openat: fix openat bugs on Solaris 9
71321         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
71322         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
71323         * modules/openat (Depends-on): Add open.
71324         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
71325         * modules/fcntl-h (Makefile.am): Substitute it.
71326         * lib/fcntl.in.h (openat): Declare replacement.
71327         * doc/posix-functions/openat.texi (openat): Document this.
71329         openat: move fstatat and unlinkat into correct files
71330         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
71331         compiled.
71332         * lib/openat.c (fstatat, unlinkat): Move...
71333         * lib/fstatat.c (fstatat): ...into correct files.
71334         * lib/unlinkat.c (unlinkat): Likewise.
71336         openat: fix unlinkat bugs on Solaris 9
71337         * lib/unlinkat.c (unlinkat): New file.
71338         * modules/openat (Depends-on): Add unlink.
71339         (Files): Distribute it.
71340         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
71341         trailing slash behavior is broken.
71342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71343         * modules/unistd (Makefile.am): Substitute it.
71344         * lib/unistd.in.h (unlinkat): Declare replacement.
71345         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
71347         openat: fix fstatat bugs on Solaris 9
71348         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
71349         stat.
71350         * doc/posix-functions/fstatat.texi (fstatat): Document this.
71352         test-unlinkat: enhance test, to expose Solaris 9 bug
71353         * tests/test-unlink.c (main): Factor guts...
71354         * tests/test-unlink.h (test_rmdir_func): ...into new file.
71355         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
71356         * tests/test-rmdir.c (main): Adjust caller.
71357         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
71358         (unlinker): New helper function.
71359         (rmdirat): Enhance check.
71360         * modules/rmdir-tests (Depends-on): Add stdbool.
71361         * modules/unlink-tests (Depends-on): Likewise.
71362         (Files): Add test-unlink.h.
71363         * modules/openat-tests (Files): Likewise.
71364         (Depends-on): Add unlinkdir.
71366         test-fstatat: new test, to expose Solaris 9 bugs
71367         * tests/test-stat.c (main): Factor guts...
71368         * tests/test-stat.h (test_stat_func): ...into new file.
71369         * tests/test-lstat.c (main): Factor guts...
71370         * tests/test-lstat.h (test_lstat_func): ...into new file.
71371         * tests/test-fstatat.c: New file.
71372         * modules/stat-tests (Files): Add test-stat.h.
71373         * modules/lstat-tests (Files): Add test-lstat.h.
71374         (Depends-on): Add stdbool.
71375         * modules/openat-tests (Depends-on): Add pathmax.
71376         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
71377         (Makefile.am): Run new test.
71379         remove: new module, for mingw and Solaris 9 bugs
71380         * modules/remove: New file.
71381         * lib/remove.c: Likewise.
71382         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
71383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
71384         * modules/stdio (Makefile.am): Use them.
71385         * lib/stdio.in.h (remove): Declare replacement.
71386         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71387         * doc/posix-functions/remove.texi (remove): Likewise.
71388         * modules/remove-tests: New test.
71389         * tests/test-remove.c: Likewise.
71391         unlink: new module, for Solaris 9 bug
71392         * modules/unlink: New file.
71393         * lib/unlink.c: Likewise.
71394         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
71395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
71396         * modules/unistd (Makefile.am): Use them.
71397         * lib/unistd.in.h (stat): Declare replacement.
71398         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71399         * doc/posix-functions/unlink.texi (unlink): Likewise.
71400         * modules/unlink-tests: New test.
71401         * tests/test-unlink.c: Likewise.
71403         lstat: fix Solaris 9 bug
71404         * lib/lstat.c (lstat): Also check for trailing slash on
71405         non-symlink, non-directories.  Use stat module to simplify logic.
71406         * doc/posix-functions/lstat.texi (lstat): Document it.
71407         * modules/lstat-tests (Depends-on): Add errno, same-inode.
71408         (configure.ac): Check for symlink.
71409         * tests/test-lstat.c (main): Add more tests.
71411         stat: add as dependency to other modules
71412         * modules/chown (Depends-on): Add stat.
71413         * modules/euidaccess (Depends-on): Likewise.
71414         * modules/fchdir (Depends-on): Likewise.
71415         * modules/isdir (Depends-on): Likewise.
71416         * modules/link (Depends-on): Likewise.
71417         * modules/lstat (Depends-on): Likewise.
71418         * modules/mkdir-p (Depends-on): Likewise.
71419         * modules/modechange (Depends-on): Likewise.
71420         * modules/open (Depends-on): Likewise.
71421         * modules/readlink (Depends-on): Likewise.
71422         * modules/same (Depends-on): Likewise.
71424         stat: fix Solaris 9 bug
71425         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
71426         slash.
71427         * lib/stat.c (rpl_stat): Work around it.
71428         * doc/posix-functions/stat.texi (stat): Update documentation.
71430         stat: new module, for mingw bug
71431         * modules/stat: New file.
71432         * lib/stat.c: Likewise.
71433         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
71435         * modules/sys_stat (Makefile.am): Use them.
71436         * lib/sys_stat.in.h (stat): Declare replacement.
71437         * lib/openat.c (fstatat): Deal with lstat and stat being function
71438         macros.
71439         * modules/openat (Depends-on): Add inline.
71440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
71441         * doc/posix-functions/stat.texi (stat): Likewise.
71442         * modules/stat-tests: New test.
71443         * tests/test-stat.c: Likewise.
71445 2009-09-19  Jim Meyering  <meyering@redhat.com>
71447         syntax-check: detect unnecessary inclusion of canonicalize.h
71448         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
71450 2009-09-19  Eric Blake  <ebb9@byu.net>
71452         canonicalize-lgpl: adjust clients to use correct header
71453         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
71454         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
71455         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
71456         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
71457         * lib/progreloc.c (includes): Likewise.
71459 2009-09-19  Jim Meyering  <meyering@redhat.com>
71461         test-posixtm.c: correct a comment
71462         * tests/test-posixtm.c: Correct first-line comment.
71463         Spotted by Eric Blake.
71465 2009-09-16  Jim Meyering  <meyering@redhat.com>
71467         posixtm-tests: make T const-correct; add a test case
71468         * tests/test-posixtm.c (T): Declare const.
71469         Add a test for -(2^31+1).
71470         Remove useless can-succeed-only-in-2002 test.
71472         posixtm-tests: adjust the sole failing test
71473         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
71474         expected output matches what mktime now produces.  Cross-checked via
71475         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
71477         posixtm: move #ifdef'd tests into a new module
71478         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
71479         * tests/test-posixtm.c: ... this new file.
71480         * modules/posixtm-tests: New module.
71482 2009-09-19  Eric Blake  <ebb9@byu.net>
71484         openat: simplify use of at-func.c
71485         * lib/at-func.c (includes): Include prerequisites here, to
71486         simplify requirements on client files.
71487         * lib/openat-priv.h: Add double-inclusion guard.
71488         * lib/faccessat.c (includes): Simplify.
71489         * lib/fchmodat.c (includes): Likewise.
71490         * lib/fchownat.c (includes): Likewise.
71491         * lib/mkdirat.c (includes): Likewise.
71492         * lib/mkfifoat.c (includes): Likewise.
71493         * lib/symlinkat.c (includes): Likewise.
71495         openat: allow return of fd 0
71496         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
71497         * modules/save-cwd (Depends-on): Replace fcntl-safer with
71498         unistd-safer.
71499         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
71500         <fcntl.h>; this module does not leak fds.
71501         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
71502         must be allowed to return 0, leaving openat_safer to add the
71503         safety.
71504         (openat_permissive): Avoid writing to just-opened fd 2 if
71505         restoring the current directory fails.
71506         * lib/openat-die.c (openat_restore_fail): Add comment.
71507         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
71508         (save_cwd): Guarantee safe fd, but without use of open_safer.
71509         * tests/test-openat.c: New test.
71510         * modules/openat-tests (Files, Makefile.am): Distribute and build
71511         new file.
71513         relocatable-prog-wrapper: fix build
71514         * modules/relocatable-prog-wrapper (Files): Update name of
71515         canonicalize m4 file, broken on 2009-09-17.
71516         Reported by emad hajjar <aleppos@hotmail.com>.
71518 2009-09-19  Bruno Haible  <bruno@clisp.org>
71520         * lib/safe-alloc.h: Use the standard header with GPL copyright.
71521         * lib/safe-alloc.c: Likewise.
71522         Reported by Ian Beckwith <ianb@erislabs.net>.
71524 2009-09-18  Bruno Haible  <bruno@clisp.org>
71526         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
71527         Reported by <erobles@sensacd.com.mx>.
71529 2009-09-17  Eric Blake  <ebb9@byu.net>
71531         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
71532         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
71533         slashes when checking if last component is missing.
71534         * tests/test-canonicalize.c (main): Test this.
71536         canonicalize, canonicalize-lgpl: honor // if distinct from /
71537         * modules/canonicalize (Files): Add double-slash-root.m4.
71538         * modules/canonicalize-lgpl (Files): Likewise.
71539         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
71540         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
71541         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
71542         fallback definition.
71543         (canonicalize_filename_mode): Use it to protect //.
71544         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
71545         (__realpath): Likewise.
71546         * tests/test-canonicalize.c (main): Test this.
71547         * tests/test-canonicalize-lgpl.c (main): Likewise.
71548         * modules/canonicalize-tests (Depends-on): Add same-inode.
71549         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71551         canonicalize-lgpl: fix glibc bug with trailing slash
71552         * m4/canonicalize-lgpl.m4: Move contents...
71553         * m4/canonicalize.m4: ...here.
71554         (gl_CANONICALIZE_LGPL): Factor realpath check...
71555         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
71556         glibc 2.3.5 bug, fixed 2005-04-27.
71557         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
71558         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
71559         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
71560         * modules/canonicalize-lgpl (Files): Manage file rename.
71561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
71562         * modules/stdlib (Makefile.am): Substitute witness.
71563         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
71564         is needed.
71565         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
71566         replacement is required.
71567         * lib/canonicalize.c (canonicalize_file_name): Likewise.
71568         * doc/glibc-functions/canonicalize_file_name.texi
71569         (canonicalize_file_name): Document this.
71570         * doc/posix-functions/realpath.texi (realpath): Likewise.
71572         canonicalize-lgpl: reject non-directory with trailing slash
71573         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
71574         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
71575         catches failures in glibc 2.3.5.
71576         * tests/test-canonicalize.c (main): Likewise.
71578         canonicalize-lgpl: use native realpath if it works
71579         * lib/canonicalize-lgpl.c (realpath): Guard with
71580         FUNC_REALPATH_WORKS.
71581         * lib/stdlib.in.h (realpath): Make declaration optional based on
71582         HAVE_REALPATH.
71583         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
71584         native realpath works.
71585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
71586         * modules/stdlib (Makefile.am): Substitute witness.
71588         canonicalize, canonicalize-lgpl: use <stdlib.h>
71589         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
71590         (Include): Mention <stdlib.h>.
71591         (configure.ac): Mention functions we provide.
71592         * modules/canonicalize (configure.ac): Likewise.
71593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
71594         realpath if canonicalize_file_name is missing.
71595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
71596         * modules/stdlib (Makefile.am): Substitute witnesses.
71597         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
71598         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
71599         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
71600         * NEWS: Document this.
71601         * doc/glibc-functions/canonicalize_file_name.texi
71602         (canonicalize_file_name): Likewise.
71603         * doc/posix-functions/realpath.texi (realpath): Likewise.
71604         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
71606         test-canonicalize: consolidate into single C program
71607         * tests/test-canonicalize.sh: Delete; move setup into...
71608         * tests/test-canonicalize.c (main): ...the program, making it
71609         easier to run in debugger.  Add some tests.
71610         * modules/canonicalize-tests (Files): Remove unused file.
71611         (Depends-on): Add progname.
71612         (configure.ac, Makefile.am): Simplify.
71614         test-canonicalize-lgpl: consolidate into single C program
71615         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
71616         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
71617         easier to run in debugger.  Add some tests.
71618         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
71619         (configure.ac, Makefile.am): Simplify.
71621         canonicalize: avoid resolvepath
71622         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
71623         unnecessary checks.
71624         * lib/canonicalize.c (includes): Simplify.
71625         (canonicalize_file_name): Drop resolvepath implementation.
71626         * modules/canonicalize (Depends-on): Drop filenamecat.
71628         canonicalize: don't lose errno
71629         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
71630         over calls to free.
71632         canonicalize: simplify errno handling
71633         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
71634         assignment.
71636         canonicalize, canonicalize-lgpl: update module dependencies
71637         * modules/canonicalize (Depends-on): Add extensions, lstat,
71638         pathmax, stdlib.
71639         (Files): Drop pathmax.h.
71640         (configure.ac): Adjust macro name.
71641         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
71642         lstat, stdlib, sys_stat.
71643         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
71644         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
71645         extensions.
71646         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
71647         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
71648         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
71649         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
71650         declaration, if available.
71651         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
71652         we can rely on the readlink module.
71653         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
71654         (includes): Use <unistd.h> unconditionally.
71656 2009-09-17  Eric Blake  <ebb9@byu.net>
71658         maint: make Include sections of modules consistent
71659         * modules/alloca: Use only header name; no need to list #include.
71660         * modules/alloca-opt: Likewise.
71661         * modules/arpa_inet: Likewise.
71662         * modules/canon-host: Likewise.
71663         * modules/configmake: Likewise.
71664         * modules/dirent: Likewise.
71665         * modules/eealloc: Likewise.
71666         * modules/environ: Likewise.
71667         * modules/fchdir: Likewise.
71668         * modules/fcntl: Likewise.
71669         * modules/fcntl-h: Likewise.
71670         * modules/gethrxtime: Likewise.
71671         * modules/gettime: Likewise.
71672         * modules/ignore-value: Likewise.
71673         * modules/inet_ntop: Likewise.
71674         * modules/inet_pton: Likewise.
71675         * modules/inttypes: Likewise.
71676         * modules/isnand-nolibm: Likewise.
71677         * modules/isnanf-nolibm: Likewise.
71678         * modules/mbchar: Likewise.
71679         * modules/mbfile: Likewise.
71680         * modules/mbiter: Likewise.
71681         * modules/mbuiter: Likewise.
71682         * modules/netdb: Likewise.
71683         * modules/netinet_in: Likewise.
71684         * modules/nproc: Likewise.
71685         * modules/pagealign_alloc: Likewise.
71686         * modules/poll: Likewise.
71687         * modules/printf-frexp: Likewise.
71688         * modules/pthread: Likewise.
71689         * modules/putenv: Likewise.
71690         * modules/random_r: Likewise.
71691         * modules/relocatable-prog: Likewise.
71692         * modules/search: Likewise.
71693         * modules/select: Likewise.
71694         * modules/selinux-h: Likewise.
71695         * modules/settime: Likewise.
71696         * modules/signal: Likewise.
71697         * modules/size_max: Likewise.
71698         * modules/socklen: Likewise.
71699         * modules/ssize_t: Likewise.
71700         * modules/stdarg: Likewise.
71701         * modules/stdbool: Likewise.
71702         * modules/stddef: Likewise.
71703         * modules/stdint: Likewise.
71704         * modules/stdio: Likewise.
71705         * modules/stdlib: Likewise.
71706         * modules/string: Likewise.
71707         * modules/strings: Likewise.
71708         * modules/sys_file: Likewise.
71709         * modules/sys_ioctl: Likewise.
71710         * modules/sys_select: Likewise.
71711         * modules/sys_socket: Likewise.
71712         * modules/sys_stat: Likewise.
71713         * modules/sys_time: Likewise.
71714         * modules/sys_times: Likewise.
71715         * modules/sys_utsname: Likewise.
71716         * modules/sys_wait: Likewise.
71717         * modules/sysexits: Likewise.
71718         * modules/time: Likewise.
71719         * modules/times: Likewise.
71720         * modules/tmpfile: Likewise.
71721         * modules/trim: Likewise.
71722         * modules/unistd: Likewise.
71723         * modules/wchar: Likewise.
71724         * modules/wctype: Likewise.
71726 2009-09-17  Bruno Haible  <bruno@clisp.org>
71728         Make getdate.y compile on QNX and NetBSD 5 / i386.
71729         * m4/getdate.m4 (gl_GETDATE): Conditionally define
71730         TIME_T_FITS_IN_LONG_INT.
71731         * lib/getdate.y (long_time_t): New type.
71732         (relative_time): Change type of 'seconds' field to long_time_t.
71733         (get_date): Update types of local variables. Check against overflow
71734         during conversion from long_time_t to time_t.
71735         Reported by Matt Kraai <kraai@ftbfs.org>
71736         and Hasso Tepper <hasso@netbsd.org>.
71738 2009-09-17  Bruno Haible  <bruno@clisp.org>
71740         * modules/COPYING: Update copyright years.
71741         * modules/README: Likeiwse.
71742         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
71743         Reported by Ian Beckwith <ianb@erislabs.net>.
71745 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
71747         * users.txt: Update references for gnuit package.
71749 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
71751         * m4/getdelim.m4: Fix typo in copyright line.
71753 2009-09-17  Bruno Haible  <bruno@clisp.org>
71755         * lib/atoll.c: Use the standard header with GPL copyright.
71756         * lib/argz.in.h: Likewise.
71757         * lib/glob.c: Likewise.
71758         * lib/glob-libc.h: Likewise.
71759         * lib/random_r.c: Likewise.
71760         * lib/siglist.h: Likewise.
71761         * lib/strsignal.c: Likewise.
71762         Reported by Ian Beckwith <ianb@erislabs.net>.
71764 2009-09-17  Eric Blake  <ebb9@byu.net>
71766         rmdir: ensure correct dependency order
71767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
71769 2009-09-17  Bruno Haible  <bruno@clisp.org>
71771         Disable assertion that fails on NetBSD 5 / i386.
71772         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
71773         Reported by Sam Steingold <sds@gnu.org>
71774         and Hasso Tepper <hasso@netbsd.org>.
71776 2009-09-16  Eric Blake  <ebb9@byu.net>
71778         unlinkdir: port to mingw
71779         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
71780         on which no one can unlink a directory.
71782         stdlib: sort witness names
71783         * modules/stdlib (Makefile.am): Sort replacements.
71784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
71785         * lib/stdlib.in.h: Likewise.
71787         parse-duration-tests: avoid link failure
71788         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
71789         LIBINTL.
71790         Reported by Tom G. Christensen.
71792         openat-tests: ensure unlinkat behaves like rmdir
71793         * tests/test-rmdir.c (main): Factor guts...
71794         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
71795         * modules/rmdir-tests (Files): Ship new file.
71796         * modules/openat-tests: New test.
71797         * tests/test-unlinkat.c: Likewise.
71799         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
71800         * modules/rmdir-errno (Status, Notice): Now obsolete.
71802         rmdir: work around cygwin 1.5.x and mingw bugs
71803         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
71804         * lib/rmdir.c (rmdir): Work around it.
71805         * modules/rmdir (Status, Notice): No longer obsolete.
71806         (Files): Add dos.m4.
71807         (Depends-on): Add unistd.
71808         (configure.ac): Set witnesses.
71809         (License): Relax to LGPLv2+.
71810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
71811         * modules/unistd (Makefile.am): Substitute witnesses.
71812         * lib/unistd.in.h (rmdir): Declare replacement.
71813         * doc/posix-functions/rmdir.texi (rmdir): Document this.
71814         * modules/rmdir-tests: New tests.
71815         * tests/test-rmdir.c: Likewise.
71817 2009-09-15  Eric Blake  <ebb9@byu.net>
71819         fchdir: improve use of replacement functions
71820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
71821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
71822         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
71823         REPLACE_CLOSEDIR.
71824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
71825         * modules/sys_stat (Makefile.am): Substitute correct witness.
71826         * modules/dirent (Makefile.am): Likewise.
71827         * modules/unistd (Makefile.am): Likewise.
71828         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
71829         * lib/unistd.in.h (dup): Likewise.
71830         * lib/sys_stat.in.h (fstat): Likewise.
71832         maint: ignore gnulib-tool temp files
71833         * .gitignore: Ignore files created during gnulib-tool --test.
71835 2009-09-13  Jim Meyering  <meyering@redhat.com>
71837         posixtm: don't reject a time that specify "60" as the number of seconds
71838         * lib/posixtm.c (posixtime): The code to reject invalid dates
71839         would also reject a time specified with the .60 suffix.
71840         But POSIX allows that, in order to accommodate leap seconds.
71841         So don't reject it.
71842         (main): Adjust tests accordingly.
71843         * modules/posixtm (Depends-on): Add stpcpy.
71845 2009-09-11  Jim Meyering  <meyering@redhat.com>
71847         announce-gen: include [$release_type] in emitted Subject:
71848         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
71849         e.g., [stable] in the emitted Subject: line.
71851 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71853         Remove obsolete macros from several modules.
71854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
71855         obsolete Autoconf macros with their modern counterparts.
71856         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
71857         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
71858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
71859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
71860         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
71861         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
71862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
71863         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
71864         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
71865         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
71866         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
71867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
71868         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
71869         * m4/sockets.m4 (gl_SOCKETS): Likewise.
71870         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
71871         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
71872         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
71873         * m4/time_r.m4 (gl_TIME_R): Likewise.
71874         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
71875         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
71876         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71878         Fix copyright header in build-aux scripts.
71879         * build-aux/git-version-gen: Fix copyright header to match GPLv3
71880         recommendation.
71881         * build-aux/ncftpput-ftp: Likewise.
71882         * build-aux/update-copyright: Likewise.
71884 2009-09-09  Eric Blake  <ebb9@byu.net>
71886         test-link: allow Linux choice of errno
71887         * tests/test-link.c (main): Relax test for alternate error.
71889         strndup: fix improper m4 caching
71890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
71891         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
71892         (gl_PREREQ_STRNDUP): Delete.
71893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
71894         * modules/string (Makefile.am): Substitute it.
71895         * lib/string.in.h (strndup): Modernize prototype.
71897         getcwd: port to mingw
71898         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
71899         different from the POSIX assumptions made throughout the getcwd
71900         module; fortunately, the mingw getcwd does not need replacement.
71901         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
71902         * modules/getcwd-tests: New test.
71903         * tests/test-getcwd.c: Likewise.
71905         link: fix platform bugs
71906         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
71907         * lib/link.c (link): Work around them.  Fix related mingw bug.
71908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
71909         * modules/unistd (Makefile.am): Substitute it.
71910         * lib/unistd.in.h (link): Declare replacement.
71911         * doc/posix-functions/link.texi (link): Document this.
71912         * modules/link (Depends-on): Add strdup-posix, sys_stat.
71914         test-link: consolidate into single C program, test more cases
71915         * tests/test-link.sh: Delete.
71916         * tests/test-link.c: Test more error conditions.  Exposes bugs on
71917         at least Cygwin and Solaris.
71918         * modules/link-tests (Files): Remove unused file.
71919         (Depends-on): Add errno, sys_stat.
71920         (Makefile.am): Simplify.
71922 2009-09-08  Bruno Haible  <bruno@clisp.org>
71924         Work around towlower, towupper bug on mingw.
71925         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
71926         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
71927         * doc/posix-functions/towlower.texi: Mention the mingw bug.
71928         * doc/posix-functions/towupper.texi: Likewise.
71929         Reported by Eric Blake.
71931 2009-09-08  Jim Meyering  <meyering@redhat.com>
71933         build: don't try to run autoheader if we don't use it
71934         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
71935         is not used in configure.ac.
71937 2009-09-08  Eric Blake  <ebb9@byu.net>
71939         euidaccess: fix compilation error
71940         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
71942         rawmemchr: relax license
71943         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
71944         okay.
71945         Reported by Jim Meyering.
71947         mkfifoat: new module
71948         * modules/mkfifoat: New file.
71949         * lib/mkfifoat.c: Likewise.
71950         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
71951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
71952         * modules/sys_stat (Makefile.am): Use them.
71953         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
71954         * MODULES.html.sh (File system functions): Mention module.
71955         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
71956         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
71957         * modules/mkfifoat-tests: New test.
71958         * tests/test-mkfifoat.c: Likewise.
71960         strchrnul: relax license
71961         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
71962         okay.
71963         Reported by Jim Meyering.
71965 2009-09-08  Eric Blake  <ebb9@byu.net>
71967         fstatat: fix compilation on Solaris
71968         * lib/fstatat.c (includes): Add fcntl.h.
71969         Reported by Pádraig Brady.
71971 2009-09-07  Eric Blake  <ebb9@byu.net>
71973         rename: modernize replacement
71974         * modules/rename (Depends-on): Add stdio.
71975         (configure.ac): Declare witness.
71976         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
71977         stdio take care of replacement.
71978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
71979         * modules/stdio (Makefile.am): Substitute them.
71980         * lib/stdio.in.h (rename): Declare replacement.
71981         * lib/rename.c (includes): Allow cross-compilation to non-windows
71982         machines.
71983         * doc/posix-functions/rename.texi (rename): Improve
71984         documentation.
71986         stdio: sort witness names
71987         * modules/stdio (Makefile.am): Sort replacements.
71988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71989         * lib/stdio.in.h: Likewise.
71991         getcwd: minor cleanups
71992         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
71993         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
71995         openat: provide more convenience names
71996         * modules/faccessat (configure.ac): Add C witness.
71997         * lib/unistd.in.h (readlinkat): Fix typo.
71998         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
71999         convenience wrappers.
72000         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
72001         wrappers in syntax checks.
72003 2009-09-06  Eric Blake  <ebb9@byu.net>
72005         doc: fix comments in recent patches
72006         * lib/faccessat.c: Mention correct function.
72007         * lib/fchmodat.c: Likewise.
72008         * lib/fchownat.c: Likewise.
72009         * lib/symlinkat.c: Likewise.
72010         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
72011         constants.
72013         faccessat, symlinkat: continue cleanup of previous patch
72014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
72015         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72016         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
72017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
72018         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
72019         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
72020         set.
72022 2009-09-06  Bruno Haible  <bruno@clisp.org>
72024         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
72025         (fstatat): Declare if GNULIB_FSTATAT is set.
72026         (mkdirat): Declare if GNULIB_MKDIRAT is set.
72027         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
72028         (unlinkat): Declare if GNULIB_UNLINKAT is set.
72029         * modules/fcntl-h (Files): Remove m4/openat.m4.
72030         * modules/sys_stat (Files): Remove m4/openat.m4.
72031         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
72032         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
72033         * modules/unistd (Files): Remove m4/openat.m4.
72034         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
72035         GNULIB_OPENAT.
72036         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
72037         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
72038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
72039         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
72040         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
72041         gl_OPENAT_DEFAULTS.
72042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
72043         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
72044         Don't require gl_OPENAT_DEFAULTS.
72045         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
72046         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
72047         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
72048         (gl_OPENAT_DEFAULTS): Remove macro.
72050 2009-09-06  Bruno Haible  <bruno@clisp.org>
72052         * modules/openat (configure.ac): Remove unneeded witness.
72054 2009-09-06  Bruno Haible  <bruno@clisp.org>
72056         Set errno to ENOSYS when a function is entirely unsupported.
72057         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
72058         EOPNOTSUPP.
72059         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
72060         * modules/chown (Depends-on): Remove errno.
72062 2009-09-06  Bruno Haible  <bruno@clisp.org>
72064         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
72066 2009-09-06  Bruno Haible  <bruno@clisp.org>
72068         * lib/sys_stat.in.h: Fix preprocessor command indentation.
72070 2009-09-06  Ben Pfaff  <blp@gnu.org>
72071             Bruno Haible  <bruno@clisp.org>
72073         Work around a glibc bug in strtok_r.
72074         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
72075         Undefine if UNDEFINE_STRTOK_R is set.
72076         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
72077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72078         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
72079         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
72080         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
72081         UNDEFINE_STRTOK_R.
72082         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
72084 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
72086         exclude: minor fix
72087         * lib/exclude.c: Include wctype.h
72089 2009-09-06  Akim Demaille  <demaille@gostai.com>
72091         bootstrap: improve error message
72092         * build-aux/bootstrap (find_tool): Upon failure, report the list
72093         of candidates.
72094         Honor the initial value of the envvar.
72096 2009-09-05  Eric Blake  <ebb9@byu.net>
72098         symlinkat: new module
72099         * modules/symlinkat: New file.
72100         * lib/symlinkat.c: Likewise.
72101         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
72102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
72103         * modules/unistd (Makefile.am): Use them.
72104         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
72105         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
72106         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
72107         * MODULES.html.sh (File system functions): Mention module.
72108         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
72109         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
72110         * modules/symlinkat-tests: New test.
72111         * tests/test-symlinkat.c: Likewise.
72113         test-openat-safer: add more checks
72114         * tests/test-openat-safer.c (main): Check more code paths.
72116 2009-09-05  Jim Meyering  <meyering@redhat.com>
72118         syntax-check: detect unnecessary inclusion of openat.h
72119         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
72121 2009-09-05  Bruno Haible  <bruno@clisp.org>
72123         Support towlower, towupper.
72124         * doc/posix-functions/towlower.texi: Mention module wctype.
72125         * doc/posix-functions/towupper.texi: Likewise.
72126         * lib/wctype.in.h (towlower, towupper): New functions.
72127         * tests/test-wctype.c: Include stdio.h, stdlib.h.
72128         (ASSERT): New macro.
72129         (e): New variable.
72130         (main): Test also towlower, towupper. Test WEOF argument.
72131         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
72133 2009-09-05  Bruno Haible  <bruno@clisp.org>
72135         Fix conversion behaviour when the input is invalid.
72136         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
72137         mark occurring in first pass of indirect conversion.
72138         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
72139         input.
72140         Found by clang's static analyzer.
72142 2009-09-05  Bruno Haible  <bruno@clisp.org>
72144         * tests/test-striconveh.c (main): Test indirect conversion on platforms
72145         where direct conversion is possible.
72147 2009-09-04  Eric Blake  <ebb9@byu.net>
72149         openat: fail with ENOENT on empty name
72150         * lib/openat-proc.c (openat_proc_name): Special-case the empty
72151         buffer.
72153         link-follow: fix logic bug in prior patch
72154         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
72155         reversed sense of yes and no in prior patch.  Avoid confusing
72156         compilation failure with desired semantics.
72158         link-follow: accommodate mingw and cross-compilation
72159         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
72160         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
72161         cross-compilation results to -1, to make linkat easier to
72162         implement when cross-compiling.  Trivially support mingw.
72163         * modules/link-follow (configure.ac): Call new name.
72164         * NEWS: Mention this.
72166 2009-09-03  Eric Blake  <ebb9@byu.net>
72168         faccessat: compile replacement
72169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
72170         needed.
72172         fts: fix compilation error
72173         * lib/fts.c (includes): Re-add "openat.h", for
72174         openat_needs_fchdir.
72176         faccessat: new module
72177         * modules/faccessat: New file.
72178         * lib/faccessat.c: Likewise.
72179         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
72180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72181         * modules/unistd (Makefile.am): Use it.
72182         * lib/unistd.in.h (faccessat): Declare it.
72183         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
72184         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
72185         * MODULES.html.sh (File system functions): Mention it.
72186         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
72187         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72189         euidaccess: prefer POSIX over non-standard implementation
72190         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
72191         * lib/euidaccess.c (euidaccess): Use it if available.
72193         openat: make template easier to use
72194         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
72195         AT_FUNC_F2 to be undefined.
72196         (VALIDATE_FLAG): New macro; use it to reject bad flags.
72197         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
72198         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
72199         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
72200         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
72201         Likewise.
72202         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
72203         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
72204         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
72205         Likewise.
72207         openat: declare in POSIX headers
72208         * NEWS: Mention this.
72209         * modules/openat (configure.ac): Declare witnesses.
72210         (Depends-on): Add fcntl-h, sys_stat, unistd.
72211         (Include): Mention correct headers.
72212         * modules/fcntl-h (Depends-on): Add link-warning.
72213         (Files): Add openat.m4.
72214         (Makefile.am): Substitute witnesses.
72215         * modules/sys_stat (Files, Makefile.am): Likewise.
72216         * modules/unistd (Files, Makefile.am): Likewise.
72217         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
72218         (gl_OPENAT_DEFAULTS): New macro.
72219         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
72220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
72221         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
72222         (SYS_STAT_H): Remove unused variable.
72223         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
72224         * lib/fcntl--.h (includes): Remove unneeded header.
72225         * lib/openat-safer.c (includes): Likewise.
72226         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
72227         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
72228         appropriate headers.
72229         (__OPENAT_PREFIX): Delete.
72230         * lib/fcntl.in.h (openat): Provide declaration.
72231         (AT_FDCWD): Fix Solaris bug.
72232         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
72233         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
72234         * lib/fchmodat.c (includes):  Adjust to find declaration.
72235         * lib/fchownat.c (includes): Likewise.
72236         * lib/mkdirat.c (includes): Likewise.
72237         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
72238         still visible.
72240 2009-09-02  Eric Blake  <ebb9@byu.net>
72242         errno: use consistently
72243         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
72244         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
72245         * lib/canonicalize.c (ELOOP): Likewise.
72246         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
72247         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
72248         * lib/lchown.c (EOPNOTSUPP): Likewise.
72249         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
72250         * lib/savewd.c (ESTALE): Likewise.
72251         * lib/settime.c (ENOSYS): Likewise.
72252         * lib/utimens.c (ENOSYS): Likewise.
72253         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
72254         * lib/chdir-safer.c (ELOOP): Likewise.
72255         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
72256         * modules/c-stack (Depends-on): Add errno.
72257         * modules/canonicalize (Depends-on): Likewise.
72258         * modules/chdir-safer (Depends-on): Likewise.
72259         * modules/fdopendir (Depends-on): Likewise.
72260         * modules/inet_ntop (Depends-on): Likewise.
72261         * modules/inet_pton (Depends-on): Likewise.
72262         * modules/lchown (Depends-on): Likewise.
72263         * modules/openat (Depends-on): Likewise.
72264         * modules/savewd (Depends-on): Likewise.
72265         * modules/settime (Depends-on): Likewise.
72266         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
72268         fts: avoid leaking fds
72269         * modules/fts (Depends-on): Add cloexec.
72270         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
72271         flag.
72273         fts: make directory fds more robust
72274         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
72275         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
72277         backupfile, chdir-long, fts, savedir: make safer
72278         * lib/backupfile.c (includes): Use "dirent--.h", since
72279         numbered_backup can write to stderr during readdir.
72280         * lib/savedir.c (includes): Likewise.
72281         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
72282         emulation can write to stderr on failure.
72283         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
72284         * lib/getcwd.c: Document why opendir_safer is unused.
72285         * lib/glob.c: Likewise.
72286         * lib/scandir.c: Likewise.
72287         * lib/openat-proc.c: Likewise, for open_safer.
72288         * modules/backupfile (Depends-on): Add dirent-safer.
72289         * modules/savedir (Depends-on): Likewise.
72290         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
72291         * modules/chdir-long (Depends-on): Add openat-safer.
72293         openat-safer: new module
72294         * modules/openat-safer: New file.
72295         * lib/openat-safer.c: Likewise.
72296         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
72297         * lib/fcntl-safer.h (openat_safer): Declare.
72298         * lib/fcntl--.h (openat): Override.
72299         * MODULES.html.sh (File descriptor based I/O): Mention it.
72300         * lib/openat.h: Add double-inclusion guards.
72301         * lib/openat.c (includes): Only include "fcntl-safer.h", not
72302         "fcntl--.h", so we can implement openat.
72303         * modules/openat-safer-tests: New test.
72304         * tests/test-openat-safer.c: New file.
72306         dirent-safer: new module
72307         * modules/dirent-safer: New file.
72308         * lib/dirent--.h: Likewise.
72309         * lib/dirent-safer.h: Likewise.
72310         * lib/opendir-safer.c: Likewise.
72311         * m4/dirent-safer.m4: Likewise.
72312         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
72313         * modules/dirent-safer-tests: New test.
72314         * tests/test-dirent-safer.c: New file.
72315         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
72317         fdopendir: optimize on mingw
72318         * lib/unistd.in.h (_gl_directory_name): New prototype.
72319         * lib/fchdir.c (_gl_directory_name): Implement it.
72320         (fchdir): Use it to simplify implementation.
72321         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
72322         fchdir, when available, to avoid calling [f]chdir().
72324         fdopendir: split into its own module
72325         * lib/openat.c (fdopendir): Move...
72326         * lib/fdopendir.c: ...into new file.
72327         * modules/fdopendir: New module.
72328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
72329         * modules/openat (Depends-on): Add fdopendir.
72330         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
72331         fdopendir here.
72332         * modules/savedir (Depends-on): Only need fdopendir, not full
72333         openat.
72334         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
72335         * lib/openat.h (fdopendir): Drop prototype.
72336         * lib/dirent.in.h (fdopendir): Provide prototype.
72337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
72338         * modules/dirent (Makefile.am): Substitute them.
72339         * MODULES.html.sh (File system functions): Mention it.
72340         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
72341         * modules/fdopendir-tests: New file.
72342         * tests/test-fdopendir.c: Likewise.
72344         fchdir: use more consistent macro convention
72345         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
72346         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
72347         REPLACE_FCHDIR, rather than relying on config.h macros.
72348         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
72349         inside a single make-time REPLACE_FCHDIR block, rather than using
72350         the config.h FCHDIR_REPLACEMENT.
72351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
72352         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
72353         Manage fstat replacement.
72354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
72355         REPLACE_FCHDIR.
72356         * modules/sys_stat (Files): Add m4/unistd_h.m4.
72357         (Makefile.am): Substitute REPLACE_FCHDIR.
72358         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
72359         FCHDIR_REPLACEMENT.
72360         * lib/dup-safer.c (dup_safer): Likewise.
72361         * lib/dup2.c (rpl_dup2): Likewise.
72362         * lib/dup3.c (rpl_dup3): Likewise.
72363         * lib/open.c (rpl_open): Likewise.
72365         fchdir: simplify error handling, and support dup3
72366         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
72367         stdbool, malloc-posix, realloc-posix.
72368         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
72369         (ensure_dirs_slot): Return false on allocation failure.
72370         (rpl_dup2): Delete.
72371         (_gl_register_dup): New function.
72372         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
72373         (_gl_register_fd): Close fd on allocation failure.
72374         * lib/fcntl.in.h (_gl_register_fd): Update signature.
72375         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
72376         prototype.
72377         (rpl_dup2_fchdir): Delete prototype.
72378         * lib/open.c (open): Update caller.
72379         * lib/dup2.c (dup2): Track fchdir metadata.
72380         * lib/dup3.c (dup3): Likewise.
72381         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
72382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
72384 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72386         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
72387         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
72388         don't pass arguments to AC_OUTPUT.
72390 2009-09-02  Bruno Haible  <bruno@clisp.org>
72392         * modules/mkdtemp (License): Relicense under LGPLv2+.
72393         Reported by Paolo Bonzini.
72395 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72397         Replace uses of obsolete autoconf macros in Jim's modules.
72398         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
72399         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
72400         can evoke a warning from autoconf when run with -Wobsolete
72401         enabled.  They were declared obsolete for good reasons (see
72402         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
72403         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
72404         should not continue using the deprecated macros.
72405         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
72406         obsolete Autoconf macros with modern counterparts.
72407         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72408         * m4/dos.m4 (gl_AC_DOS): Likewise.
72409         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
72410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
72411         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
72412         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
72413         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
72414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
72415         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
72416         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
72417         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72418         Likewise.
72419         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
72420         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72421         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
72422         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
72423         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72424         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72426 2009-09-01  Eric Blake  <ebb9@byu.net>
72428         fchdir: fix off-by-one bug in previous patch
72429         * lib/fchdir.c (rpl_fstat): Use correct bounds.
72430         (_gl_unregister_fd): Delete useless if.
72432 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
72434         maint.mk: sort the list of syntax-check rules
72435         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
72436         easier to get a sense of progress when the rules are run sequentially
72437         and take a long time.
72439 2009-09-01  Simon Josefsson  <simon@josefsson.org>
72441         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
72442         * modules/netinet_in: Likewise.
72443         * modules/sys_file: Likewise.
72444         * modules/sys_ioctl: Likewise.
72445         * modules/sys_select: Likewise.
72446         * modules/sys_socket: Likewise.
72447         * modules/sys_stat: Likewise.
72448         * modules/sys_time: Likewise.
72449         * modules/sys_times: Likewise.
72450         * modules/sys_utsname: Likewise.
72451         * modules/sys_wait: Likewise.
72453 2009-09-01  Jim Meyering  <meyering@redhat.com>
72455         fts: help ensure that return values are not ignored
72456         * lib/fts_.h (__GNUC_PREREQ): Define.
72457         (__attribute_warn_unused_result__): Define.
72458         (fts_children, fts_close, fts_open, fts_read): Declare with
72459         __attribute_warn_unused_result__.
72461         fts: fts_close now fails also when closing a dir file descriptor fails
72462         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
72463         and propagate to caller, along with errno.
72465         announce-gen: correct formatting in --help output
72466         * build-aux/announce-gen (usage): Move the one-line description in
72467         --help output "up", to where it belongs, just after Usage:.
72469 2009-08-31  Eric Blake  <ebb9@byu.net>
72471         fchdir: port to mingw
72472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
72473         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
72474         opened, then use a substitute.
72475         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
72476         replacement.
72477         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
72478         (_gl_register_fd): No need to check stat if open already filters
72479         all directories.
72480         (fchdir): Fix error condition to match POSIX.
72481         * modules/fchdir (Depends-on): Add sys_stat.
72482         * doc/posix-functions/open.texi (open): Document the limitation.
72483         * modules/fchdir-tests: New file.
72484         * tests/test-fchdir.c: Likewise.
72486         canonicalize: allow cross-testing from cygwin to mingw
72487         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
72488         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
72489         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
72490         Likewise.
72491         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
72492         target does not support symlinks.
72493         * tests/test-canonicalize-lgpl.sh: Likewise.
72495         chown: avoid compilation warning on mingw
72496         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
72497         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
72498         mingw.
72499         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
72500         * modules/chown (Depends-on): Add errno.
72502 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
72504         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
72505         command.
72507 2009-08-31  Jim Meyering  <meyering@redhat.com>
72509         canonicalize: remove useless initialization
72510         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
72511         initialization of local, "end".
72513 2009-08-30  Bruno Haible  <bruno@clisp.org>
72515         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
72516         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
72517         ENOSYS.
72519 2009-08-30  Bruno Haible  <bruno@clisp.org>
72521         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
72522         /usr/xpg4/bin/tr when it exists.
72523         * tests/test-pipe-filter-gi1.sh: Likewise.
72525 2009-08-30  Bruno Haible  <bruno@clisp.org>
72527         Work around deficient /usr/bin/id program on Solaris.
72528         * tests/test-file-has-acl.sh (ID): New variable.
72529         * tests/test-set-mode-acl.sh (ID): Likewise.
72530         * tests/test-copy-acl.sh (ID): Likewise.
72531         * tests/test-copy-file.sh (ID): Likewise.
72533 2009-08-30  Bruno Haible  <bruno@clisp.org>
72535         New module 'xstriconveh'.
72536         * lib/xstriconveh.h: New file.
72537         * lib/xstriconveh.c: New file.
72538         * modules/xstriconveh: New file.
72540 2009-08-30  Bruno Haible  <bruno@clisp.org>
72542         Make it easier to use mem_cd_iconveh.
72543         * lib/striconveh.h (iconveh_t): New type.
72544         (iconveh_open, iconveh_close): New declarations.
72545         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
72546         with a single 'const iconveh_t *' argument.
72547         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
72548         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
72549         with a single 'const iconveh_t *' argument.
72550         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
72551         * tests/test-striconveh.c (main): Update.
72552         * NEWS: Mention the change.
72554 2009-08-30  Bruno Haible  <bruno@clisp.org>
72556         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
72557         problem.
72559 2009-08-30  Bruno Haible  <bruno@clisp.org>
72561         Work around iconv_open problem on Solaris.
72562         * lib/iconv_open-solaris.gperf: New file.
72563         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
72564         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
72565         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
72566         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
72567         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
72568         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
72570 2009-08-29  Jim Meyering  <meyering@redhat.com>
72572         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
72573         * top/maint.mk (cvs-check): Remove target; it was just an alias
72574         to the better-named vc-diff-check.
72575         (maintainer-distcheck): Remove rule.  It was used only from
72576         the (alpha/beta/major) target, and all of its commands but one
72577         were coreutils-specific.
72578         (vc-dist): Remove rule.
72579         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
72580         Run vc-diff-check, not vc-dist.
72581         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
72583 2009-08-27  Bruno Haible  <bruno@clisp.org>
72585         * tests/test-bitrotate.c (main): Remove test that uses a shift count
72586         of 0.
72588 2009-08-27  Bruno Haible  <bruno@clisp.org>
72590         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
72591         compilers.
72592         * doc/func.texi: Document the SunPRO C bug.
72594 2009-08-27  Bruno Haible  <bruno@clisp.org>
72596         Fix link error on Solaris.
72597         * tests/test-parse-duration.c (xstrdup): Remove function.
72599 2009-08-26  Pádraig Brady  <P@draigbrady.com>
72601         ignore-value: handle pointer types, too
72602         * lib/ignore-value.h (__attribute__): Remove definition.
72603         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
72604         of a more concise and more-often effective "(void) i" statement.
72605         (ignore_ptr): New function to suppress warnings from functions that
72606         return pointers, and to make it explicit that one function doesn't
72607         handle all cases.
72609 2009-08-25  Bruno Haible  <bruno@clisp.org>
72611         dup2: work around a Linux bug.
72612         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
72613         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
72614         * doc/posix-functions/dup2.texi: Mention the Linux bug.
72615         Reported by Simon Josefsson.
72617 2009-08-25  Jim Meyering  <meyering@redhat.com>
72619         libguestfs uses gnulib
72620         * users.txt: Add libguestfs.
72622 2009-08-24  Eric Blake  <ebb9@byu.net>
72624         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
72625         * lib/pipe2.c (includes): Add binary-io.h.
72626         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
72628 2009-08-24  Bruno Haible  <bruno@clisp.org>
72630         Tolerate declared but missing accept4 syscall.
72631         * lib/accept4.c (accept4): Invoke original accept4 function first, if
72632         available.
72633         * lib/sys_socket.in.h (accept4): If the function is already present,
72634         override it.
72635         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
72636         * modules/accept4 (Makefile.am): Compile accept4.c always.
72637         Reported by Paolo Bonzini and Eric Blake.
72639 2009-08-23  Bruno Haible  <bruno@clisp.org>
72641         New module 'accept4'.
72642         * lib/sys_socket.in.h (accept4): New declaration.
72643         * lib/accept4.c: New file.
72644         * m4/accept4.m4: New file.
72645         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
72646         GNULIB_ACCEPT4, HAVE_ACCEPT4.
72647         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
72648         HAVE_ACCEPT4.
72649         * modules/accept4: New file.
72650         * doc/glibc-functions/accept4.texi: Mention the new module.
72652 2009-08-24  Jim Meyering  <meyering@redhat.com>
72654         progname: also set global program_invocation_name, when possible
72655         Before this change, a libtool-enabled program that calls glibc's
72656         error function would report the program name as
72657         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
72658         * modules/progname (configure.ac): Check for a declaration of
72659         program_invocation_name.
72660         * lib/progname.c:  Include <errno.h>.
72661         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
72662         Set program_invocation_name.
72664 2009-08-23  Bruno Haible  <bruno@clisp.org>
72666         * lib/dup3.c: Include <string.h>.
72668 2009-08-23  Bruno Haible  <bruno@clisp.org>
72670         * lib/dup3.c (dup3): Test only once whether the system actually exists.
72671         * lib/pipe2.c (pipe2): Likewise.
72672         Suggested by Eric Blake.
72674 2009-08-23  Bruno Haible  <bruno@clisp.org>
72676         Tolerate declared but missing dup3 syscall.
72677         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
72678         * lib/unistd.in.h (dup3): If the function is already present,
72679         override it.
72680         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
72681         * modules/dup3 (Makefile.am): Compile dup3.c always.
72682         Reported by Paolo Bonzini.
72684 2009-08-23  Bruno Haible  <bruno@clisp.org>
72686         Tolerate declared but missing pipe2 syscall.
72687         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
72688         available.
72689         * lib/unistd.in.h (pipe2): If the function is already present,
72690         override it.
72691         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
72692         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
72693         Reported by Paolo Bonzini.
72695 2009-08-23  Bruno Haible  <bruno@clisp.org>
72697         * lib/pipe2.c (pipe2): Move #ifs inside function.
72699 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
72701         quotearg: document limitations of quote_these_too
72702         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
72703         those limitations are created.
72704         * lib/quotearg.h (set_char_quoting): Document that digits and
72705         letters that are special after backslash are not permitted.
72706         (quotearg_char): Cross-reference set_char_quoting documentation.
72708 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
72710         quotearg: implement custom_quoting_style
72711         * lib/quotearg.c: (struct quoting_options): Add left_quote and
72712         right_quote fields.
72713         (set_custom_quoting): New public function.
72714         (quotearg_buffer_restyled): Add left_quote and right_quote
72715         arguments, handle them very much like locale quoting, and update
72716         all uses.
72717         (quotearg_n_custom): New public function.
72718         (quotearg_n_custom_mem): New public function.
72719         (quotearg_custom): New public function.
72720         (quotearg_custom_mem): New public function.
72721         * lib/quotearg.h: Prototype and document new public functions.
72722         (enum quoting_style): For escape_quoting_style and
72723         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
72724         ignored even though they're otherwise like c_quoting_style.
72725         Add custom_quoting_style member and document with comparison to
72726         clocale_quoting_style.
72727         * tests/test-quotearg.c (custom_quotes): New array.
72728         (custom_results): New array.
72729         (main): Extend to test custom quoting.
72731 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
72733         quotearg: fix right quote escaping when it's in quote_these_too
72734         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
72735         quote, be sure to prepend only one backslash.
72736         * tests/test-quotearg.c (use_quote_double_quotes): New function.
72737         (main): Test it.
72739 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
72741         quotearg-tests: test escaping of embedded locale quotes
72742         * tests/test-quotearg.c (struct result_strings): Add member for
72743         new input.
72744         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
72745         (inputs): Add new input.
72746         (results_g): Add expected results.
72747         (flag_results): Likewise.
72748         (locale_results): Likewise.
72749         (compare_strings): Check those.
72751 2009-08-23  Bruno Haible  <bruno@clisp.org>
72753         Tests for module 'dup3'.
72754         * modules/dup3-tests: New file.
72755         * tests/test-dup3.c: New file.
72757         New module 'dup3'.
72758         * lib/unistd.in.h (dup3): New declaration.
72759         * lib/dup3.c: New file.
72760         * m4/dup3.m4: New file.
72761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
72762         HAVE_DUP3.
72763         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
72764         * modules/dup3: New file.
72765         * doc/glibc-functions/dup3.texi: Mention the new module.
72767 2009-08-23  Bruno Haible  <bruno@clisp.org>
72769         Tweak the dup2 test.
72770         * tests/test-dup2.c (main): Create the test file empty. Verify that an
72771         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
72772         the test file is still empty. Fix argument order of lseek.
72774 2009-08-23  Bruno Haible  <bruno@clisp.org>
72776         Avoid test link errors when the modules getopt-gnu, gettext are used.
72777         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
72778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72780 2009-08-23  Bruno Haible  <bruno@clisp.org>
72782         Fix getdtablesize() on mingw.
72783         * lib/getdtablesize.c (getdtablesize): Implement differently.
72784         * lib/unistd.in.h (getdtablesize): Improve comment.
72786 2009-08-23  Bruno Haible  <bruno@clisp.org>
72788         New module 'mkostemp'.
72789         Based on Ulrich Drepper's 2007-08-10 change in glibc.
72790         * lib/stdlib.in.h (mksotemp): New declaration.
72791         * lib/mkostemp.c: New file, from glibc with modifications.
72792         * lib/tempname.h (GT_FILE): Remove outdated comment.
72793         (gen_tempname): Add flags argument.
72794         * lib/tempname.c (__GT_BIGFILE): Remove macro.
72795         (__GT_FILE): Map to 1.
72796         (small_open, large_open): Remove macros.
72797         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
72798         * lib/mkstemp.c (mkstemp): Update.
72799         * lib/mkdtemp.c (mkdtemp): Likewise.
72800         * m4/mkostemp.m4: New file.
72801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
72802         HAVE_MKOSTEMP.
72803         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
72804         HAVE_MKOSTEMP.
72805         * modules/mkostemp: New file, based on modules/mkstemp.
72806         * doc/glibc-functions/mkostemp.texi: Mention the new module.
72807         * NEWS: Mention the change.
72809 2009-08-23  Bruno Haible  <bruno@clisp.org>
72811         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
72812         Reported by Eric Blake.
72814 2009-08-23  Bruno Haible  <bruno@clisp.org>
72816         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
72817         Reported by Eric Blake.
72819 2009-08-23  Bruno Haible  <bruno@clisp.org>
72821         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
72822         * modules/pipe2 (Depends-on): Likewise.
72824 2009-08-23  Eric Blake  <ebb9@byu.net>
72826         fcntl-h: add O_TTY_INIT support
72827         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
72828         * tests/test-fcntl-h.c (o): Test it.
72829         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72831         fcntl-h: rename from fcntl, in preparation for fcntl(2)
72832         * modules/fcntl: Move <fcntl.h> header replacement...
72833         * modules/fcntl-h: ...to new name, so as not to collide with
72834         like-named function.
72835         * tests/test-fcntl.c: Rename...
72836         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
72837         * modules/fcntl-tests: Rename...
72838         * modules/fcntl-h-tests: ...to this.  Update test file name.
72839         * modules/chdir-long (Depends-on): Update clients.
72840         * modules/chdir-safer (Depends-on): Likewise.
72841         * modules/fcntl-safer (Depends-on): Likewise.
72842         * modules/fts (Depends-on): Likewise.
72843         * modules/mkancesdirs (Depends-on): Likewise.
72844         * modules/mkdir-p (Depends-on): Likewise.
72845         * modules/open (Depends-on): Likewise.
72846         * modules/savewd (Depends-on): Likewise.
72847         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
72848         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72850 2009-08-22  Bruno Haible  <bruno@clisp.org>
72852         * modules/binary-io (License): Relicense under LGPL.
72853         * modules/pipe2 (License): Likewise.
72855 2009-08-22  Bruno Haible  <bruno@clisp.org>
72857         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
72858         return value.
72859         * lib/pipe-filter-gi.c (filter_init): Likewise.
72860         Reported by Eric Blake.
72862 2009-08-22  Bruno Haible  <bruno@clisp.org>
72864         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
72865         * modules/pipe (Depends-on): Add pipe2.
72867 2009-08-22  Bruno Haible  <bruno@clisp.org>
72869         Tests for module 'pipe2'.
72870         * modules/pipe2-tests: New file.
72871         * tests/test-pipe2.c: New file.
72873         New module 'pipe2'.
72874         * lib/unistd.in.h (pipe2): New declaration.
72875         * lib/pipe2.c: New file.
72876         * m4/pipe2.m4: New file.
72877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
72878         HAVE_PIPE2.
72879         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
72880         * modules/pipe2: New file.
72881         * doc/glibc-functions/pipe2.texi: Mention the new module.
72883 2009-08-22  Bruno Haible  <bruno@clisp.org>
72885         Reference some new glibc functions.
72886         * doc/glibc-functions/accept4.texi: New file.
72887         * doc/glibc-functions/dup3.texi: New file.
72888         * doc/glibc-functions/mkostemp.texi: New file.
72889         * doc/glibc-functions/pipe2.texi: New file.
72890         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
72891         (Glibc sys/socket.h): Refer to accept4.
72892         (Glibc unistd.h): Refer to dup3, pipe2.
72893         Reported by Eric Blake.
72895 2009-08-22  Jim Meyering  <meyering@redhat.com>
72896             Bruno Haible  <bruno@clisp.org>
72898         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
72899         This makes it so packages using automake-1.11's silent-rules option
72900         can print e.g., a single "GEN    configmake.h" line, rather than
72901         the 30+ statements that perform the job.  If you want to see the
72902         actual commands, you can still run "make V=1".
72903         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
72904         so that make output is abbreviated when those variables are defined
72905         appropriately.
72906         * modules/argz: Likewise.
72907         * modules/arpa_inet: Likewise.
72908         * modules/byteswap: Likewise.
72909         * modules/configmake: Likewise.
72910         * modules/dirent: Likewise.
72911         * modules/errno: Likewise.
72912         * modules/fcntl: Likewise.
72913         * modules/float: Likewise.
72914         * modules/fnmatch: Likewise.
72915         * modules/getopt-posix: Likewise.
72916         * modules/glob: Likewise.
72917         * modules/iconv_open: Likewise.
72918         * modules/inttypes: Likewise.
72919         * modules/localcharset: Likewise.
72920         * modules/locale: Likewise.
72921         * modules/math: Likewise.
72922         * modules/netdb: Likewise.
72923         * modules/netinet_in: Likewise.
72924         * modules/poll: Likewise.
72925         * modules/posix_spawnp-tests: Likewise.
72926         * modules/sched: Likewise.
72927         * modules/search: Likewise.
72928         * modules/selinux-h: Likewise.
72929         * modules/signal: Likewise.
72930         * modules/spawn: Likewise.
72931         * modules/stdarg: Likewise.
72932         * modules/stdbool: Likewise.
72933         * modules/stddef: Likewise.
72934         * modules/stdint: Likewise.
72935         * modules/stdio: Likewise.
72936         * modules/stdlib: Likewise.
72937         * modules/string: Likewise.
72938         * modules/strings: Likewise.
72939         * modules/sys_file: Likewise.
72940         * modules/sys_ioctl: Likewise.
72941         * modules/sys_select: Likewise.
72942         * modules/sys_socket: Likewise.
72943         * modules/sys_stat: Likewise.
72944         * modules/sys_time: Likewise.
72945         * modules/sys_times: Likewise.
72946         * modules/sys_utsname: Likewise.
72947         * modules/sys_wait: Likewise.
72948         * modules/sysexits: Likewise.
72949         * modules/time: Likewise.
72950         * modules/unistd: Likewise.
72951         * modules/wchar: Likewise.
72952         * modules/wctype: Likewise.
72954 2009-08-22  Jim Meyering  <meyering@redhat.com>
72956         announce-gen: detect write failure
72957         * build-aux/announce-gen: Add Coda at end.
72958         Remove equivalent-but-more-verbose block at top.
72960 2009-08-19  Akim Demaille  <demaille@gostai.com>
72962         bootstrap: --help to stdout.
72963         * bootstrap (usage): Don't send --help to stderr.
72964         Use a here doc instead of a long string.
72966 2009-08-21  Eric Blake  <ebb9@byu.net>
72968         test-popen-safer: split from test-popen
72969         * tests/test-popen.c (main): Move...
72970         * tests/test-popen.h: ...into new file.
72971         * tests/test-popen-safer2.c: New file.
72972         * modules/popen-tests (Files): Add test-popen.h.
72973         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
72974         Suggested by Bruno Haible.
72976         test-fcntl-safer: split from test-open
72977         * tests/test-open.c (main): Move...
72978         * tests/test-open.h: ...into new file.
72979         * tests/test-fcntl-safer.c: New file.
72980         * modules/open-tests (Files): Add test-open.h.
72981         * modules/fcntl-safer-tests: New file.
72982         Suggested by Bruno Haible.
72984         test-fopen-safer: split from test-fopen
72985         * tests/test-fopen.c (main): Move...
72986         * tests/test-fopen.h: ...into new file.
72987         * tests/test-fopen-safer.c: New file.
72988         * modules/fopen-tests (Files): Add test-fopen.h.
72989         * modules/fopen-safer-tests: New file.
72990         Suggested by Bruno Haible.
72992 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
72994         popen-safer: test O_CLOEXEC at run-time.
72995         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
72997 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
72999         fcntl: move more flags to the header
73000         * lib/cloexec.c: Do not define FD_CLOEXEC here.
73001         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
73002         * lib/fcntl.in.h: Do both things here.
73004 2009-08-21  Jim Meyering  <meyering@redhat.com>
73006         consistently remove $@-t before redirecting to it
73007         * modules/argz: Remove $@-t and $@ before redirecting to the former.
73008         * modules/alloca-opt: Likewise.
73009         * modules/byteswap: Likewise.
73010         * modules/fnmatch: Likewise.
73011         * modules/getopt-posix: Likewise.
73012         * modules/glob: Likewise.
73013         * modules/poll: Likewise.
73014         * modules/posix_spawnp-tests: Likewise.
73015         * modules/sys_socket: Likewise.
73016         * modules/sysexits: Likewise.
73018 2009-08-21  Eric Blake  <ebb9@byu.net>
73020         popen: simplify access to original popen
73021         * lib/popen.c (rpl_popen): No need to worry about popen being a
73022         macro.
73023         Reported by Bruno Haible.
73025 2009-08-20  Eric Blake  <ebb9@byu.net>
73027         build: avoid some compiler warnings
73028         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
73029         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
73030         type.
73031         (new_exclude_segment, excluded_file_pattern_p)
73032         (excluded_file_name_p): Reduce scope.
73033         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
73034         old-style declaration.
73036 2009-08-20  Simon Josefsson  <simon@josefsson.org>
73038         * tests/test-exclude1.sh: Handle Windows EOL.
73039         * tests/test-exclude2.sh: Likewise.
73040         * tests/test-exclude3.sh: Likewise.
73041         * tests/test-exclude4.sh: Likewise.
73042         * tests/test-exclude5.sh: Likewise.
73043         * tests/test-exclude6.sh: Likewise.
73044         * tests/test-exclude7.sh: Likewise.
73046 2009-08-19  Akim Demaille  <demaille@gostai.com>
73048         bootstrap: find sha1sum when named gsha1sum.
73049         * bootstrap (find_tool): New.
73050         ($SHA1SUM): New.
73051         Use it.
73053 2009-08-20  Jim Meyering  <meyering@redhat.com>
73055         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
73056         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
73057         expression that converts "." in a file name to "\." in the resulting
73058         regexp.  Start with a dummy statement, so that prior shell variable
73059         definitions are expanded portably.  Reported by Simon Josefsson.
73061 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
73063         Fix polling for writeability of a screen buffer.
73064         * lib/poll.c: Distinguish input and screen buffers for the
73065         Win32 implementation.
73066         * lib/select.c: Likewise.
73068 2009-08-19  Eric Blake  <ebb9@byu.net>
73070         popen-safer: prevent popen from clobbering std descriptors
73071         * modules/popen-safer: New file.
73072         * lib/popen-safer.c: Likewise.
73073         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
73074         * lib/stdio--.h (popen): Provide override.
73075         * lib/stdio-safer.h (popen_safer): Provide declaration.
73076         * tests/test-popen.c (includes): Partially test this.
73077         * modules/popen-safer-tests: New file, for more tests.
73078         * tests/test-popen-safer.c: Likewise.
73079         * MODULES.html.sh (file stream based Input/Output): Mention it.
73081         tests: test some of the *-safer modules
73082         * modules/fopen-safer (Depends-on): Add fopen.
73083         * modules/fcntl-safer (Depends-on): Add fcntl.
73084         * modules/stdlib-safer (Depends-on): Add stdlib.
73085         (configure.ac): Set indicator.
73086         * modules/unistd-safer (configure.ac): Likewise.
73087         * modules/tmpfile-safer (configure.ac): Likewise.
73088         (Depends-on): Add tmpfile.
73089         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
73090         active.
73091         * tests/test-fopen.c (includes): Test safer versions when they are
73092         in use.
73093         * tests/test-open.c (includes): Likewise.
73095         popen: fix cygwin 1.5 bug when stdin closed
73096         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
73097         * modules/popen: New file.
73098         * modules/popen-tests: Likewise.
73099         * tests/test-popen.c: Likewise.
73100         * m4/popen.m4: Likewise.
73101         * lib/popen.c: Likewise.
73102         * lib/stdio.in.h (popen): New declaration.
73103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
73104         * modules/stdio (Makefile.am): Likewise.
73105         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
73107 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
73109         maint.mk: give full control over update-copyright exclusions
73110         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
73111         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
73112         (update-copyright): Don't force inclusion of top-level
73113         ChangeLog.  Don't force exclusion of all COPYING files, but make
73114         them the default exclusion instead.
73116 2009-08-16  Bruno Haible  <bruno@clisp.org>
73118         Fix test failures on Solaris 10.
73119         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
73120         tests when Solaris iconv() is used.
73121         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
73122         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
73123         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
73124         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
73125         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
73127 2009-08-16  Bruno Haible  <bruno@clisp.org>
73129         Fix test failures on Solaris 10.
73130         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
73131         'tr' program and pass it as first argument.
73132         * tests/test-pipe-filter-gi1.sh: Likewise.
73133         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
73134         program as first argument.
73135         * tests/test-pipe-filter-gi1.c (main): Likewise.
73137 2009-08-16  Eric Blake  <ebb9@byu.net>
73139         fpurge: fix previous commits
73140         * modules/fpurge (Makefile.am): Make replacement conditional,
73141         partially reverting 2007-04-29 change; missed in previous
73142         attempt.
73143         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
73144         is missing.
73146 2009-08-16  Bruno Haible  <bruno@clisp.org>
73148         Clarify fpurge's effect on the file position.
73149         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
73150         * tests/test-fpurge.c (main): Make a second pass for checking the file
73151         position.
73153 2009-08-16  Bruno Haible  <bruno@clisp.org>
73155         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
73156         declaration of fpurge is missing.
73157         * tests/test-fpurge.c (main): Check that the file has not more contents
73158         than expected. Close the file before removing it.
73160 2009-08-15  Eric Blake  <ebb9@byu.net>
73162         fpurge: don't wrap working cygwin implementation
73163         * lib/fpurge.c (fpurge): Fix comment typo.
73164         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
73165         1.7 to avoid replacement.
73166         * tests/test-fpurge.c (main): Enhance test.
73168 2009-08-15  Eric Blake  <ebb9@byu.net>
73169         and Jim Meyering  <meyering@redhat.com>
73171         test-update-copyright: skip if perl is insufficient
73172         * tests/test-update-copyright.sh: Failure to run maintainer tool
73173         should not cause testsuite failure on cygwin 1.5.
73175 2009-08-14  Eric Blake  <ebb9@byu.net>
73177         doc: mention more functions added in cygwin 1.7.0
73178         * doc/posix-headers/limits.texi (limits.h): Update for recent
73179         cygwin additions.
73180         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
73181         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
73182         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
73183         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
73184         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
73186 2009-08-14  Eric Blake  <ebb9@byu.net>
73188         maint.mk: simplify update-copyright rule
73189         * top/maint.mk (update-copyright-local): Delete, and document how
73190         to do it in cfg.mk instead.
73191         (update-copyright-exclude-regexp): Delete, and document how to do
73192         it in .x-update-copyright instead.
73193         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
73194         exclude ChangeLog.
73196 2009-08-14  Bruno Haible  <bruno@clisp.org>
73198         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
73200 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73202         maint.mk: support update-copyright-env
73203         * top/maint.mk (update-copyright-env): Define place-holder.
73204         (update-copyright): Expand $(update-copyright-env) before
73205         invoking update-copyright.
73207 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73209         update-copyright: implement forced reformatting
73210         * build-aux/update-copyright: Implement and document
73211         UPDATE_COPYRIGHT_FORCE.
73212         * tests/test-update-copyright.sh: Test it.
73214 2009-08-14  Eric Blake  <ebb9@byu.net>
73215         and Bruno Haible  <bruno@clisp.org>
73217         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
73218         * tests/test-locale.c: Revert previous patch related to NULL.
73219         * tests/test-stdio.c: Likewise.
73220         * tests/test-stdlib.c: Likewise.
73221         * tests/test-string.c: Likewise.
73222         * tests/test-unistd.c: Likewise.
73223         * modules/time-tests (Depends-on): Add verify.
73224         * modules/wchar-tests (Depends-on): Likewise.
73225         * tests/test-time.c: Test for NULL compliance.
73226         * tests/test-wchar.c: Likewise.
73227         * modules/locale (Depends-on): Add stddef.
73228         * modules/stdio (Depends-on): Likewise.
73229         * modules/stdlib (Depends-on): Likewise.
73230         * modules/string (Depends-on): Likewise.
73231         * modules/time (Depends-on): Likewise.
73232         * modules/unistd (Depends-on): Likewise.
73233         * modules/wchar (Depends-on): Likewise.
73234         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
73235         * lib/stdlib.in.h (includes): Likewise.
73236         * lib/string.in.h (includes): Likewise.
73237         * lib/time.in.h (includes): Likewise.
73238         * lib/unistd.in.h (includes): Likewise.
73239         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
73240         replaced.
73241         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73242         * m4/stddef_h.m4: New file.
73243         * modules/stddef: Likewise.
73244         * lib/stddef.in.h: Likewise.
73245         * modules/stddef-tests: Likewise.
73246         * tests/test-stddef.c: Likewise.
73247         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
73248         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
73249         * doc/posix-headers/locale.texi (locale.h): Likewise.
73250         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
73251         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
73252         * doc/posix-headers/string.texi (string.h): Likewise.
73253         * doc/posix-headers/time.texi (time.h): Likewise.
73254         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
73255         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
73257 2009-08-14  Eric Blake  <ebb9@byu.net>
73259         doc: improve git diff of texinfo files
73260         * .gitattributes: Add rule for *.texi files, with hint on how to
73261         use it.
73262         Copied from m4, and based on a report by Bruno Haible.
73264 2009-08-14  Bruno Haible  <bruno@clisp.org>
73266         Disable multithread support by default on Cygwin 1.5.x for real.
73267         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
73269 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
73271         update-copyright: much ado about intervals
73272         * build-aux/update-copyright: Implement and document
73273         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
73274         of copyright year intervals.
73275         Also, document UPDATE_COPYRIGHT_YEAR.
73276         * tests/test-update-copyright.sh: Test it.
73278         update-copyright: convert 2-digit to 4-digit years
73279         * build-aux/update-copyright: Implement and document.
73280         * tests/test-update-copyright.sh: Update.
73282 2009-08-14  Jim Meyering  <meyering@redhat.com>
73284         test-exclude: avoid coreutils "make check" failure
73285         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
73286         just as in test-argmatch.c.
73288 2009-08-13  Eric Blake  <ebb9@byu.net>
73290         test-dup2: fix bad assumption
73291         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
73292         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
73294         test-version-etc: fix CRLF portability issue
73295         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
73296         recognize \r.
73297         * tests/test-argp-version-etc-1.sh: Likewise.
73299         getopt: update client modules
73300         * modules/argp (Depends-on): Use getopt-gnu.
73301         * modules/git-merge-changelog (Depends-on): Likewise.
73302         * modules/long-options (Depends-on): Likewise.
73303         * modules/xstrtol (Depends-on): Likewise.
73305 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73307         * tests/test-version-etc.sh: Don't fail on different
73308         project/version.  Don't fail on CRLF differences.  Rewrite to use
73309         multiple -e instead of multiple sed forks, suggested by Eric Blake
73310         <ebb9@byu.net>.
73311         * tests/test-argp-version-etc-1.sh: Likewise.
73313 2009-08-13  Simon Josefsson  <simon@josefsson.org>
73315         * tests/test-version-etc.sh: Don't fail on different
73316         project/version.
73318 2009-08-12  Bruno Haible  <bruno@clisp.org>
73320         Tests for modules 'getopt-posix', 'getopt-gnu'.
73321         * modules/getopt-posix-tests: New file.
73322         * tests/test-getopt.c: New file.
73323         * tests/test-getopt.h: New file.
73324         * tests/test-getopt_long.h: New file.
73326         New modules 'getopt-posix', 'getopt-gnu'.
73327         * modules/getopt-gnu: New file, renamed from modules/getopt.
73328         * modules/getopt-posix: New file.
73329         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
73330         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
73331         (gl_GETOPT): Remove macro.
73332         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
73333         Disable the test against BSD systems that declare optreset. Test
73334         against mingw bug. Test against lack of support of optional arguments
73335         on many platforms.
73336         * doc/glibc-headers/getopt.texi: Update module name and list of
73337         relevant platforms.
73338         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
73339         'getopt-gnu' and more portability problems.
73340         * NEWS: Mention the changes.
73342 2009-08-12  Bruno Haible  <bruno@clisp.org>
73344         Ensure that optarg etc. get declared by <unistd.h>.
73345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
73346         AC_USE_SYSTEM_EXTENSIONS.
73347         * modules/getopt (Depends-on): Add 'extensions'.
73349 2009-08-12  Bruno Haible  <bruno@clisp.org>
73351         Avoid test link errors.
73352         * modules/pipe-filter-ii-tests (Makefile.am): Define
73353         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
73354         * modules/pipe-filter-gi-tests (Makefile.am): Define
73355         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
73356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73358 2009-08-12  Bruno Haible  <bruno@clisp.org>
73360         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
73361         gl_GETOPT_SUBSTITUTE before.
73362         (gl_GETOPT): Use it.
73363         * m4/argp.m4 (gl_ARGP): Update.
73364         Reported by Sergey Poznyakoff.
73366         * m4/getopt.m4: Reorder macros.
73367         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
73368         (gl_GETOPT_SUBSTITUTE): Remove macro.
73370 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73372         Minor improvement in gitlog-to-changelog
73374         * build-aux/gitlog-to-changelog: New option `--format' makes
73375         output format string configurable.
73377 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73379         Optimize exclude: use hash tables for non-wildcard patterns.
73381         * lib/exclude.c: Include hash.h and mbuiter.h
73382         (struct exclude_pattern, exclude_segment): New data types.
73383         (struct exclude): Rewrite.
73384         (fnmatch_pattern_has_wildcards): New function.
73385         (new_exclude_segment, free_exclude_segment): New functions.
73386         (excluded_file_pattern_p, excluded_file_name_p): New functions.
73387         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
73388         * lib/exclude.h (is_fnmatch_pattern): New prototype.
73389         * modules/exclude: Depend on hash and mbuiter.
73391         * modules/exclude-tests: New file.
73392         * tests/test-exclude.c: New file.
73393         * tests/test-exclude1.sh: New file.
73394         * tests/test-exclude2.sh: New file.
73395         * tests/test-exclude3.sh: New file.
73396         * tests/test-exclude4.sh: New file.
73397         * tests/test-exclude5.sh: New file.
73398         * tests/test-exclude6.sh: New file.
73399         * tests/test-exclude7.sh: New file.
73401 2009-08-12  Bruno Haible  <bruno@clisp.org>
73403         Ensure that getopt() gets declared by <unistd.h>.
73404         * lib/unistd.in.h: Conditionally include getopt.h.
73405         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
73406         Set GNULIB_UNISTD_H_GETOPT.
73407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73408         GNULIB_UNISTD_H_GETOPT.
73409         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
73411 2009-08-12  Bruno Haible  <bruno@clisp.org>
73413         Clarify logic.
73414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
73415         gl_replace_getopt instead of GETOPT_H.
73417 2009-08-12  Bruno Haible  <bruno@clisp.org>
73419         * m4/getopt.m4: Add comments.
73421 2009-08-12  Bruno Haible  <bruno@clisp.org>
73423         Disable multithread support by default on Cygwin 1.5.x.
73424         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
73425         set gl_use_threads=no if not specified otherwise.
73427 2009-08-11  Bruno Haible  <bruno@clisp.org>
73429         Avoid compilation error on NetBSD 5.0.
73430         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
73431         * tests/test-stdio.c: Likewise.
73432         * tests/test-stdlib.c: Likewise.
73433         * tests/test-string.c: Likewise.
73434         * tests/test-unistd.c: Likewise.
73435         Reported by Greg Troxel <gdt@ir.bbn.com>
73436         at <https://savannah.gnu.org/support/?106973>.
73438 2009-08-11  Bruno Haible  <bruno@clisp.org>
73440         * modules/dup2-tests (Depends-on): Remove close.
73442         Undo 2009-07-19 commit.
73443         * modules/acl-tests (Depends-on): Remove close.
73444         * modules/binary-io-tests (Depends-on): Likewise.
73445         * modules/closein-tests (Depends-on): Likewise.
73446         * modules/flock-tests (Depends-on): Likewise.
73447         * modules/fsync-tests (Depends-on): Likewise.
73448         * modules/lseek-tests (Depends-on): Likewise.
73449         * modules/pipe-tests (Depends-on): Likewise.
73450         * modules/posix_spawn-tests (Depends-on): Likewise.
73451         * modules/posix_spawnp-tests (Depends-on): Likewise.
73452         * modules/stat-time-tests (Depends-on): Likewise.
73453         * modules/yesno-tests (Depends-on): Likewise.
73455 2009-08-10  Bruno Haible  <bruno@clisp.org>
73457         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
73459 2009-08-10  Bruno Haible  <bruno@clisp.org>
73461         Fix a gcc warning.
73462         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
73464 2009-08-10  Bruno Haible  <bruno@clisp.org>
73466         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
73467         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
73468         not only the first time.
73469         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
73470         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
73471         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
73472         is 1, not only the first time.
73474 2009-08-10  Bruno Haible  <bruno@clisp.org>
73476         Make it possible to use module 'gethostname' without module 'close'.
73477         * lib/unistd.in.h (close): Evoke a link error only if
73478         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
73479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73481         * modules/unistd (Makefile.am): Substitute
73482         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73483         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
73484         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
73485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
73486         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73487         * modules/sys_ioctl (Makefile.am): Substitute
73488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73489         * modules/socket (configure.ac): On native Windows, set
73490         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
73491         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
73492         Reported by Sam Steingold <sds@gnu.org>.
73494 2009-08-10  Bruno Haible  <bruno@clisp.org>
73496         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
73497         * modules/ioctl (configure.ac): Likewise.
73499 2009-08-10  Bruno Haible  <bruno@clisp.org>
73501         Avoid collision between gnulib wrapper and libintl wrapper.
73502         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
73503         already defined in intl/printf.c.
73504         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
73505         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
73507 2009-08-09  Bruno Haible  <bruno@clisp.org>
73509         Make <sys/select.h> really self-contained, also on Solaris 10.
73510         * lib/sys_select.in.h: Include <string.h>.
73511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
73512         Solaris 10 problem.
73513         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
73514         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
73515         Reported by Jim Meyering.
73517 2009-08-09  Bruno Haible  <bruno@clisp.org>
73519         Avoid warnings from 'aclocal' that are due to a use of macro name
73520         AM_XGETTEXT_OPTION that is not defined in automake.
73521         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
73522         automake.
73523         * modules/error (configure.ac): Likewise.
73524         * modules/propername (configure.ac): Likewise.
73525         * modules/vasprintf (configure.ac): Likewise.
73526         * modules/verror (configure.ac): Likewise.
73527         * modules/xprintf (configure.ac): Likewise.
73528         * modules/xvasprintf (configure.ac): Likewise.
73530 2009-08-08  Bruno Haible  <bruno@clisp.org>
73532         Avoid compilation error in C++ mode.
73533         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
73534         Reported by Sam Steingold <sds@gnu.org>.
73536 2009-08-08  Bruno Haible  <bruno@clisp.org>
73538         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
73539         for the various Unix platforms.
73540         * doc/posix-headers/limits.texi: Update platforms list regarding
73541         HOST_NAME_MAX.
73542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73544 2009-08-07  Jim Meyering  <meyering@redhat.com>
73546         selinux-at: fix typo in a comment
73547         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
73548         Spotted by Paolo Bonzini.
73550         selinux-at: remove redundant m4 code, add documentation
73551         * modules/selinux-at (configure.ac): Remove redundant code.
73552         LIB_SELINUX is already set via the dependent module, selinux-h.
73553         (Include): Add quotes around selinux-at.h.
73554         * lib/selinux-at.h: Add documentation.
73555         Reported by Bruno Haible in
73556         http://marc.info/?l=gnulib-bug&m=124958988300749
73558 2009-08-07  Bruno Haible  <bruno@clisp.org>
73560         Avoid link error on MacOS X 10.3 and 10.4.
73561         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
73562         on non-ELF systems.
73563         * lib/argp-pv.c (argp_program_version): Likewise.
73564         Reported by Simon Josefsson.
73566 2009-08-07  Simon Josefsson  <simon@josefsson.org>
73568         * tests/test-version-etc.sh: Use $EXEEXT.
73570 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
73572         update-copyright: update documentation to point to maint.mk
73573         * build-aux/update-copyright: Here.
73575 2009-08-06  Jim Meyering  <meyering@redhat.com>
73577         maint.mk: support update-copyright-local
73578         * top/maint.mk (update-copyright-local): Define place-holder.
73579         (update-copyright): Depend on $(update-copyright-local).
73581 2009-08-06  Jim Meyering  <meyering@redhat.com>
73583         selinux-at: new module
73584         Initially written for coreutils, this module will soon be
73585         used by findutils, too.
73586         * MODULES.html.sh [Misc]: Add selinux-at.
73587         * lib/selinux-at.h: New file, from coreutils.
73588         * lib/selinux-at.c: Likewise.
73589         * modules/selinux-at: Likewise.
73590         (License): Change from LGPL to GPL, since it depends
73591         on the GPL'd openat module.
73593         doc: update README
73594         * README: Remove references to cogito.
73595         Remove cvs-repo-updating instructions from 2007.
73596         Don't imply that CVS is better if you have limited disk space.
73598 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
73600         update-copyright: support C-style comments
73601         * build-aux/update-copyright: Implement and document.
73602         * tests/test-update-copyright.sh: Test.
73604 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
73606         update-copyright: support omitted "(C)"
73607         * build-aux/update-copyright: Implement and document.  Also,
73608         allow variable whitespace before "(C)".
73609         * tests/test-update-copyright.sh: Test.
73611 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
73613         update-copyright: don't trip on non-FSF copyright statements
73614         * build-aux/update-copyright: Fix so that the first correctly
73615         formatted FSF copyright statement is recognized no matter what
73616         appears before it.  Update documentation.
73617         * tests/test-update-copyright.sh: Test that.
73619 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
73621         update-copyright: clean up code a little
73622         * build-aux/update-copyright: Append "_re" to the name of any
73623         variable holding a regular expression.
73624         Replace "old" and "new" with "stmt" in variable names.
73625         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
73626         handled correctly.
73627         Format code more consistently.
73629 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
73631         update-copyright-tests: improve portability
73632         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
73633         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
73635 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
73637         update-copyright: support @copyright{} and &copy;
73638         * build-aux/update-copyright: Implement and document.
73639         * tests/test-update-copyright.sh: Test.
73641 2009-08-04  Jim Meyering  <meyering@redhat.com>
73643         update-copyright-tests: correctly test EOL=\r\n handling
73644         * tests/test-update-copyright.sh: Put \r at the end of some lines
73645         for the dos-eol tests.  Based on a patch by Joel E. Denny.
73647         maint.mk: make update-copyright exclusion list more configurable
73648         * top/maint.mk (update-copyright): Default to excluding COPYING,
73649         but allow an override, in case someone does want to update that file.
73651         maint.mk: don't update copyright date in COPYING
73652         * top/maint.mk (update-copyright): Exclude COPYING.
73654         maint.mk: add a copyright-updating rule
73655         * top/maint.mk (update-copyright): New rule.
73656         Derived from coreutils/Makefile.am.
73658         update-copyright: rename some variables
73659         * build-aux/update-copyright: Rename a few variables for clarity.
73660         Tweak syntax.  List Joel E. Denny as coauthor.
73662 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
73664         update-copyright: fix bug for 2-digit last year and add tests
73665         * build-aux/update-copyright: Fix bug.
73666         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
73667         specified.
73668         * modules/update-copyright-tests: New
73669         * tests/test-update-copyright.sh: New.
73671 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
73673         update-copyright: handle leading tabs in line prefix
73674         * build-aux/update-copyright: Count leading tabs as 8 spaces
73675         when computing margin.  This helps with the formatting of
73676         ChangeLogs, for example.
73677         Fix documentation a little.
73679 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
73681         update-copyright: support EOL=\r\n
73682         * build-aux/update-copyright: Implement that.
73684 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
73686         update-copyright: automatically format copyright statements
73687         * build-aux/update-copyright: Implement that.
73688         Also, be a little more predictable and safer by always failing
73689         when the full copyright format is not perfectly recognized as an
73690         unbroken whole.  Discussed at
73691         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
73692         Rewrite documentation.
73694 2009-08-03  Bruno Haible  <bruno@clisp.org>
73696         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
73698 2009-08-02  Bruno Haible  <bruno@clisp.org>
73700         Tests for module 'uname'.
73701         * modules/uname-tests: New file.
73702         * tests/test-uname.c: New file.
73704         New module 'uname'.
73705         * lib/uname.c: New file.
73706         * m4/uname.m4: New file.
73707         * modules/uname: New file.
73708         * doc/posix-functions/uname.texi: Mention the new module.
73710 2009-08-02  Bruno Haible  <bruno@clisp.org>
73712         Tests for module 'sys_utsname'.
73713         * modules/sys_utsname-tests: New file.
73714         * tests/test-sys_utsname.c: New file.
73716         New module 'sys_utsname'.
73717         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
73718         * m4/sys_utsname_h.m4: New file.
73719         * modules/sys_utsname: New file.
73720         * doc/posix-headers/sys_utsname.texi: Mention the new module.
73722 2009-08-02  Bruno Haible  <bruno@clisp.org>
73724         Implicitly initialize the sockets library.
73725         * lib/gethostname.c: Include sockets.h.
73726         (rpl_gethostname): Invoke gl_sockets_startup.
73727         * lib/socket.c: Include sockets.h.
73728         (rpl_socket): Invoke gl_sockets_startup.
73729         * modules/gethostname (Depends-on): Add sockets.
73730         * modules/socket (Depends-on): Likewise.
73731         * tests/test-poll.c: Don't include sockets.h.
73732         (main): Don't invoke gl_sockets_startup.
73733         * tests/test-select.c: Don't include sockets.h.
73734         (main): Don't invoke gl_sockets_startup.
73736 2009-08-02  Bruno Haible  <bruno@clisp.org>
73738         Allow multiple calls to gl_sockets_startup.
73739         * lib/sockets.c (initialized_sockets_version): New variable.
73740         (gl_sockets_startup): Do nothing if already called for this or a higher
73741         version.
73742         (gl_sockets_cleanup): Reset initialized_sockets_version.
73744 2009-08-03  Simon Josefsson  <simon@josefsson.org>
73746         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
73747         different project/version.
73749 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
73750             Bruno Haible  <bruno@clisp.org>
73752         Tests for module 'pipe-filter-gi'.
73753         * modules/pipe-filter-gi-tests: New file.
73754         * tests/test-pipe-filter-gi1.sh: New file.
73755         * tests/test-pipe-filter-gi1.c: New file.
73756         * tests/test-pipe-filter-gi2.sh: New file.
73757         * tests/test-pipe-filter-gi2-main.c: New file.
73758         * tests/test-pipe-filter-gi2-child.c: New file.
73760         New module 'pipe-filter-gi'.
73761         * lib/pipe-filter-gi.c: New file.
73762         * modules/pipe-filter-gi: New file.
73764 2009-08-02  Bruno Haible  <bruno@clisp.org>
73765             Paolo Bonzini  <bonzini@gnu.org>
73767         Tests for module 'pipe-filter-ii'.
73768         * modules/pipe-filter-ii-tests: New file.
73769         * tests/test-pipe-filter-ii1.sh: New file.
73770         * tests/test-pipe-filter-ii1.c: New file.
73771         * tests/test-pipe-filter-ii2.sh: New file.
73772         * tests/test-pipe-filter-ii2-main.c: New file.
73773         * tests/test-pipe-filter-ii2-child.c: New file.
73775         New module 'pipe-filter-ii'.
73776         * lib/pipe-filter.h: New file.
73777         * lib/pipe-filter-ii.c: New file.
73778         * lib/pipe-filter-aux.h: New file.
73779         * modules/pipe-filter-ii: New file.
73781 2009-08-02  Simon Josefsson  <simon@josefsson.org>
73783         * lib/gc-libgcrypt.c: Change copyright to FSF.
73784         * lib/gc-gnulib.c: Likewise.
73786 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
73788         * lib/gethostname.c: Include limits.h.
73790 2009-08-02  Simon Josefsson  <simon@josefsson.org>
73791             Bruno Haible  <bruno@clisp.org>
73793         Ensure HOST_NAME_MAX as part of the gethostname module.
73794         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
73795         define also HOST_NAME_MAX.
73796         * tests/test-gethostname.c: Include <limits.h>.
73797         (main): Check also HOST_NAME_MAX.
73798         * doc/posix-headers/limits.texi: Document the mingw problem.
73800 2009-08-02  Bruno Haible  <bruno@clisp.org>
73802         * lib/gethostname.c (gethostname): Fix handling of large len argument.
73803         Add comments.
73805 2009-03-31  Simon Josefsson  <simon@josefsson.org>
73807         * lib/gethostname.c: Add Windows wrapper.
73808         * m4/gethostname.m4: Look for gethostname in -lws2_32.
73809         * modules/gethostname: Depend on sys_socket & errno, for also
73810         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
73811         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
73813 2009-07-31  Jim Meyering  <meyering@redhat.com>
73815         getloadavg: fix symbol name in comment
73816         * lib/getloadavg.c: Correct a typo I introduced when adding
73817         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
73818         Matt Kraai spotted the problem.
73820 2009-07-29  Matt Kraai  <mkraai@beckman.com>
73822         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
73823         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
73824         code also if ! defined N_NAME_POINTER.
73825         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
73826         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
73827         but the n_name member is a 12-byte array.
73829 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
73831         update-copyright: generalize comment handling
73832         * build-aux/update-copyright: Handle copyright statements
73833         within more comment styles.
73834         Document usage.
73835         Report any file with an external copyright holder or parse failure.
73837 2009-07-29  Jim Meyering  <meyering@redhat.com>
73839         mktime: correct setting of REPLACE_MKTIME
73840         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
73842         update-copyright: new module
73843         * modules/update-copyright: New file.
73844         * build-aux/update-copyright: New file.
73845         * MODULES.html.sh (maint+release support): Add update-copyright.
73847 2009-07-27  Bruno Haible  <bruno@clisp.org>
73849         Fix compilation error when <ctime> is used and mktime is replaced.
73850         * lib/time.in.h (mktime): New declaration.
73851         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
73852         REPLACE_MKTIME instead of defining mktime in config.h.
73853         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
73854         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
73855         Reported by Ross McFarland <rwmcfa1@neces.com>.
73857 2009-07-27  Bruno Haible  <bruno@clisp.org>
73859         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
73860         Reported by Matt Kraai <mkraai@beckman.com>.
73862 2009-07-25  Jim Meyering  <meyering@redhat.com>
73864         maint.mk: avoid warnings about missing files
73865         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
73866         diagnostic when .prev-version does not exist.
73867         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
73868         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
73869         nonexistent cfg.mk.
73870         Suggestions from Simon Josefsson.
73872 2009-07-25  Bruno Haible  <bruno@clisp.org>
73874         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
73875         defined as macros. Needed on QNX 6.4.1.
73876         Reported by Matt Kraai <mkraai@beckman.com>.
73878 2009-07-23  Jim Meyering  <meyering@redhat.com>
73880         maint.mk: invoke "make dist" with a working value of XZ_OPT
73881         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
73883 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
73885         Make fseeko.c compile on QNX.
73886         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
73888 2009-07-22  Peter Simons  <simons@cryp.to>
73890         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
73891         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
73892         * lib/md4.h: Likewise.
73893         * lib/md5.h: Likewise.
73894         * lib/sha1.h: Likewise.
73895         * lib/sha256.h: Likewise.
73896         * lib/sha512.h: Likewise.
73898         tests-sha1: don't assign literal string to 'char *' variable
73899         * tests/test-sha1.c (main): Declare locals with "const" to match
73900         attributes of the right hand side.
73902 2009-07-21  Eric Blake  <ebb9@byu.net>
73904         dup2: fix more mingw problems
73905         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
73906         fd to itself.
73907         * doc/posix-functions/dup2.texi (dup2): Document the bug.
73908         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
73909         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
73910         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
73911         care of mingw bugs.
73913 2009-07-21  Jim Meyering  <meyering@redhat.com>
73915         vc-list-files: avoid failure when /bin/sh is dash
73916         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
73917         On some Debian based systems, /bin/sh is a symlink to dash, and running
73918         this command would omit the "/" following each 'tests' prefix:
73919           dash -x build-aux/vc-list-files -C . tests
73920         That is because bash and dash work differently:
73921           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
73922           bash ok
73923           dash odd
73925 2009-07-21  Eric Blake  <ebb9@byu.net>
73927         dup2-tests: test previous patch
73928         * modules/dup2-tests: New file.
73929         * tests/test-dup2.c: Likewise.
73930         * tests/test-open.c (main): Avoid unspecified behavior.
73931         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
73932         test.
73934         dup2: work around mingw and cygwin 1.5 bug
73935         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
73936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73937         * modules/unistd (Makefile.am): Substitute it.
73938         * lib/unistd.in.h (dup2): Declare the replacement.
73939         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
73940         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
73941         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
73942         * modules/execute (Depends-on): Add dup2.
73943         * modules/fseterr (Depends-on): Likewise.
73944         * modules/pipe (Depends-on): Likewise.
73945         * modules/posix_spawn-internal (Depends-on): Likewise.
73947 2009-07-21  Bruno Haible  <bruno@clisp.org>
73949         * modules/.gitattributes: New file.
73951 2009-07-20  Bruno Haible  <bruno@clisp.org>
73953         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
73954         (main): Use it.
73956 2009-07-20  Eric Blake  <ebb9@byu.net>
73958         test-pipe: make a bit more robust.
73959         * tests/test-pipe.c (myerr): Allow error messages regardless of
73960         what we do to stderr.
73961         (test_pipe): Rearrange to avoid deadlock.
73962         (child_main): Try a larger read, to ensure we avoided deadlock.
73963         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
73964         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
73965         if misused.
73967 2009-07-19  Jim Meyering  <meyering@redhat.com>
73969         fts: avoid false-positive cycle-detection
73970         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
73971         for each new command line argument.
73973 2009-07-19  Bruno Haible  <bruno@clisp.org>
73975         Fix build error on mingw with the modules sys_select and unistd.
73976         * modules/acl-tests (Depends-on): Add close.
73977         * modules/binary-io-tests (Depends-on): Likewise.
73978         * modules/closein-tests (Depends-on): Likewise.
73979         * modules/flock-tests (Depends-on): Likewise.
73980         * modules/fsync-tests (Depends-on): Likewise.
73981         * modules/lseek-tests (Depends-on): Likewise.
73982         * modules/pipe-tests (Depends-on): Likewise.
73983         * modules/posix_spawn-tests (Depends-on): Likewise.
73984         * modules/posix_spawnp-tests (Depends-on): Likewise.
73985         * modules/stat-time-tests (Depends-on): Likewise.
73986         * modules/yesno-tests (Depends-on): Likewise.
73988 2009-07-19  Bruno Haible  <bruno@clisp.org>
73990         Unify conditionals.
73991         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
73992         macros, not at the compiler macros.
73993         * lib/pipe.c: Likewise.
73994         * lib/execute.c: Likewise.
73995         * lib/spawni.c: Likewise.
73997 2009-07-19  Bruno Haible  <bruno@clisp.org>
73999         Fix handling of closed stdin/stdout/stderr on mingw.
74000         * lib/w32spawn.h: Include unistd.h.
74001         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
74002         file descriptor with O_NOINHERIT flag.
74003         (fd_safer_noinherit): New function, based on fd-safer.c.
74004         (dup_safer_noinherit): New function, based on dup-safer.c.
74005         (undup_safer_noinherit): New function.
74006         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
74007         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
74008         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
74009         instead of fd_safer.
74010         * tests/test-pipe.c: Include <windows.h>.
74011         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
74012         result.
74014         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
74015         from main.
74016         (test_pipe): Pass an extra argument for disambiguation.
74017         (main): Invoke parent_main or child_main.
74019         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
74020         consistently.
74022 2009-07-18  Eric Blake  <ebb9@byu.net>
74024         test-pipe: fix mingw build
74025         * tests/test-pipe.c (main): Avoid fcntl on mingw.
74027 2009-07-18  Bruno Haible  <bruno@clisp.org>
74029         * modules/pipe-tests (Makefile.am): Fix typo.
74031 2009-07-18  Eric Blake  <ebb9@byu.net>
74033         error: fix mingw build
74034         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
74035         Reported by Bruno Haible.
74037         error: avoid undefined use of stdout
74038         * lib/error.c (error, error_at_line): Check that fd 1 is open
74039         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
74040         is handling faults and the close_stdout module wants to report the
74041         detection of closed stdout as an error.
74043 2009-07-17  Eric Blake  <ebb9@byu.net>
74045         pipe: be robust in face of closed fds
74046         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
74047         should cause child to misbehave.
74048         * modules/pipe-tests: New module.
74049         * tests/test-pipe.c: New file.
74050         * tests/test-pipe.sh: New file.
74051         Reported by Akim Demaille.
74053 2009-07-14  Bruno Haible  <bruno@clisp.org>
74055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
74056         Reported by anonymous kc.
74058 2009-07-07  Jim Meyering  <meyering@redhat.com>
74060         maint.mk: don't look for translatable strings in *.m4 or *.mk
74061         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
74062         when searching for translatable strings.
74064 2009-07-05  Jim Meyering  <meyering@redhat.com>
74066         remove superfluous parentheses in STREQ definition
74067         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
74068         * lib/getugroups.c (STREQ): Likewise.
74069         * lib/fnmatch.c (STREQ): Likewise.
74070         Spotted by Bruno Haible.
74072 2009-07-04  Jim Meyering  <meyering@redhat.com>
74074         argv-iter: new module
74075         * MODULES.html.sh: Add argv-iter.
74076         * lib/argv-iter.c, lib/argv-iter.h: New files.
74077         * modules/argv-iter: New file.
74078         * modules/argv-iter-tests: New file.
74079         * tests/test-argv-iter.c: Test it.
74081 2009-07-04  Bruno Haible  <bruno@clisp.org>
74083         Fix assertion.
74084         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
74085         contains more exact copies of a given entry than file2, leave the extra
74086         copies unpaired rather than aborting.
74087         Reported by Eric Blake.
74089 2009-07-02  Bruno Haible  <bruno@clisp.org>
74091         Speedup git-merge-changelog for git cherry-pick.
74092         * lib/git-merge-changelog.c (struct entries_mapping): New type.
74093         (entries_mapping_get): New function, extracted from compute_mapping.
74094         (entries_mapping_reverse_get): New function.
74095         (compute_mapping): Add a 'full' argument. Return the result in a
74096         'struct entries_mapping'.
74097         (main): Update. Access the mappings through entries_mapping_get.
74098         Reported by Eric Blake.
74100 2009-07-02  Bruno Haible  <bruno@clisp.org>
74102         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
74103         best_i.
74105 2009-07-02  Bruno Haible  <bruno@clisp.org>
74107         Speed up approximate search for matching ChangeLog entries.
74108         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
74109         argument. Call fstrcmp_bounded instead of fstrcmp.
74110         (compute_mapping, try_split_merged_entry, main): Update callers.
74112 2009-07-02  Bruno Haible  <bruno@clisp.org>
74114         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
74116 2009-06-30  Bruno Haible  <bruno@clisp.org>
74118         Reduce the number of uc_is_cased calls.
74119         * lib/unicase.h (casing_suffix_context_t): Add
74120         'first_char_except_ignorable' field.
74121         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
74122         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
74123         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
74124         Update initializer.
74125         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
74126         case-ignorable characters.
74127         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
74128         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
74129         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
74130         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
74131         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
74133 2009-06-30  Bruno Haible  <bruno@clisp.org>
74135         Tests for module 'unicase/ignorable'.
74136         * modules/unicase/ignorable-tests: New file.
74137         * tests/unicase/test-ignorable.c: New file, generated by
74138         gen-uni-tables.
74140         Tests for module 'unicase/cased'.
74141         * modules/unicase/cased-tests: New file.
74142         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
74143         * tests/unicase/test-predicate-part1.h: New file, derived from
74144         tests/unictype/test-predicate-part1.h.
74145         * tests/unicase/test-predicate-part2.h: New file, same as
74146         tests/unictype/test-predicate-part2.h.
74148         Fix evaluation of "Before C" condition of FINAL_SIGMA.
74149         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
74150         (output_casing_properties): New function.
74151         (main): Call it.
74152         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
74153         * lib/unicase/cased.c: Include unictype/bitmap.h.
74154         (uc_is_cased): Define through a bitmap lookup.
74155         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
74156         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
74157         (uc_is_case_ignorable): Define through a bitmap lookup.
74158         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
74159         lib/unictype/bitmap.h.
74160         (Depends-on): Add inline. Clean up.
74161         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
74162         lib/unictype/bitmap.h.
74163         (Depends-on): Add inline. Clean up.
74164         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
74165         recognition.
74166         * tests/unicase/test-u16-tolower.c (main): Likewise.
74167         * tests/unicase/test-u32-tolower.c (main): Likewise.
74169 2009-06-30  Bruno Haible  <bruno@clisp.org>
74171         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
74172         * lib/unicase/u16-casemap.c: Likewise.
74173         * lib/unicase/u32-casemap.c: Likewise.
74175 2009-06-29  Bruno Haible  <bruno@clisp.org>
74177         Define u32_casefold as a wrapper around u32_ct_casefold.
74178         * lib/unicase/u32-casefold.c: Update.
74179         * modules/unicase/u32-casefold (Depends-on): Add
74180         unicase/u32-ct-casefold, unicase/empty-prefix-context,
74181         unicase/empty-suffix-context. Clean up.
74183         Define u16_casefold as a wrapper around u16_ct_casefold.
74184         * lib/unicase/u16-casefold.c: Update.
74185         * modules/unicase/u16-casefold (Depends-on): Add
74186         unicase/u16-ct-casefold, unicase/empty-prefix-context,
74187         unicase/empty-suffix-context. Clean up.
74189         Define u8_casefold as a wrapper around u8_ct_casefold.
74190         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
74191         * lib/unicase/u8-casefold.c: Update.
74192         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
74193         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74195         Define u32_totitle as a wrapper around u32_ct_totitle.
74196         * lib/unicase/u32-totitle.c: Update.
74197         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
74198         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74200         Define u16_totitle as a wrapper around u16_ct_totitle.
74201         * lib/unicase/u16-totitle.c: Update.
74202         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
74203         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74205         Define u8_totitle as a wrapper around u8_ct_totitle.
74206         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
74207         functions.
74208         (FUNC): Delegate to U_CT_TOTITLE.
74209         * lib/unicase/u8-totitle.c: Update.
74210         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
74211         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
74213         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
74214         invocation.
74215         * modules/unicase/u32-tolower (Depends-on): Add
74216         unicase/empty-prefix-context, unicase/empty-suffix-context.
74218         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
74219         invocation.
74220         * modules/unicase/u16-tolower (Depends-on): Add
74221         unicase/empty-prefix-context, unicase/empty-suffix-context.
74223         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
74224         * modules/unicase/u8-tolower (Depends-on): Add
74225         unicase/empty-prefix-context, unicase/empty-suffix-context.
74227         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
74228         invocation.
74229         * modules/unicase/u32-toupper (Depends-on): Add
74230         unicase/empty-prefix-context, unicase/empty-suffix-context.
74232         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
74233         invocation.
74234         * modules/unicase/u16-toupper (Depends-on): Add
74235         unicase/empty-prefix-context, unicase/empty-suffix-context.
74237         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
74238         * modules/unicase/u8-toupper (Depends-on): Add
74239         unicase/empty-prefix-context, unicase/empty-suffix-context.
74241         New module 'unicase/u32-ct-casefold'.
74242         * lib/unicase/u32-ct-casefold.c: New file.
74243         * modules/unicase/u32-ct-casefold: New file.
74245         New module 'unicase/u16-ct-casefold'.
74246         * lib/unicase/u16-ct-casefold.c: New file.
74247         * modules/unicase/u16-ct-casefold: New file.
74249         New module 'unicase/u8-ct-casefold'.
74250         * lib/unicase/u8-ct-casefold.c: New file.
74251         * lib/unicase/u-ct-casefold.h: New file, derived from
74252         lib/unicase/u-casefold.h.
74253         * modules/unicase/u8-ct-casefold: New file.
74255         New module 'unicase/u32-ct-totitle'.
74256         * lib/unicase/u32-ct-totitle.c: New file.
74257         * modules/unicase/u32-ct-totitle: New file.
74259         New module 'unicase/u16-ct-totitle'.
74260         * lib/unicase/u16-ct-totitle.c: New file.
74261         * modules/unicase/u16-ct-totitle: New file.
74263         New module 'unicase/u8-ct-totitle'.
74264         * lib/unicase/u8-ct-totitle.c: New file.
74265         * lib/unicase/u-ct-totitle.h: New file, derived from
74266         lib/unicase/u-totitle.h.
74267         * modules/unicase/u8-ct-totitle: New file.
74269         New module 'unicase/u32-ct-tolower'.
74270         * lib/unicase/u32-ct-tolower.c: New file.
74271         * modules/unicase/u32-ct-tolower: New file.
74273         New module 'unicase/u16-ct-tolower'.
74274         * lib/unicase/u16-ct-tolower.c: New file.
74275         * modules/unicase/u16-ct-tolower: New file.
74277         New module 'unicase/u8-ct-tolower'.
74278         * lib/unicase/u8-ct-tolower.c: New file.
74279         * modules/unicase/u8-ct-tolower: New file.
74281         New module 'unicase/u32-ct-toupper'.
74282         * lib/unicase/u32-ct-toupper.c: New file.
74283         * modules/unicase/u32-ct-toupper: New file.
74285         New module 'unicase/u16-ct-toupper'.
74286         * lib/unicase/u16-ct-toupper.c: New file.
74287         * modules/unicase/u16-ct-toupper: New file.
74289         New module 'unicase/u8-ct-toupper'.
74290         * lib/unicase/u8-ct-toupper.c: New file.
74291         * modules/unicase/u8-ct-toupper: New file.
74293         Add context arguments to u*_casemap functions.
74294         * lib/unicase/unicasemap.h: Include unicase.h.
74295         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
74296         suffix_context arguments.
74297         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
74298         functions.
74299         (FUNC): Add prefix_context and suffix_context arguments. Use
74300         uc_is_cased and uc_is_case_ignorable.
74301         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
74302         * lib/unicase/u16-casemap.c: Likewise.
74303         * lib/unicase/u32-casemap.c: Likewise.
74304         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
74305         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74306         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
74307         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74308         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
74309         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
74311         New module 'unicase/u32-suffix-context'.
74312         * lib/unicase/u32-suffix-context.c: New file.
74313         * modules/unicase/u32-suffix-context: New file.
74315         New module 'unicase/u16-suffix-context'.
74316         * lib/unicase/u16-suffix-context.c: New file.
74317         * modules/unicase/u16-suffix-context: New file.
74319         New module 'unicase/u8-suffix-context'.
74320         * lib/unicase/u8-suffix-context.c: New file.
74321         * lib/unicase/u-suffix-context.h: New file.
74322         * modules/unicase/u8-suffix-context: New file.
74324         New module 'unicase/empty-suffix-context'.
74325         * lib/unicase/empty-suffix-context.c: New file.
74326         * modules/unicase/empty-suffix-context: New file.
74328         New module 'unicase/u32-prefix-context'.
74329         * lib/unicase/u32-prefix-context.c: New file.
74330         * modules/unicase/u32-prefix-context: New file.
74332         New module 'unicase/u16-prefix-context'.
74333         * lib/unicase/u16-prefix-context.c: New file.
74334         * modules/unicase/u16-prefix-context: New file.
74336         New module 'unicase/u8-prefix-context'.
74337         * lib/unicase/u8-prefix-context.c: New file.
74338         * lib/unicase/u-prefix-context.h: New file.
74339         * lib/unicase/context.h: New file.
74340         * modules/unicase/u8-prefix-context: New file.
74342         New module 'unicase/empty-prefix-context'.
74343         * lib/unicase/empty-prefix-context.c: New file.
74344         * modules/unicase/empty-prefix-context: New file.
74346         New module 'unicase/ignorable'.
74347         * lib/unicase/ignorable.c: New file.
74348         * modules/unicase/ignorable: New file.
74350         New module 'unicase/cased'.
74351         * lib/unicase/caseprop.h: New file.
74352         * lib/unicase/cased.c: New file.
74353         * modules/unicase/cased: New file.
74355         New functions for case mapping of substrings.
74356         * lib/unicase.h (casing_prefix_context_t): New type.
74357         (unicase_empty_prefix_context): New variable.
74358         (u8_casing_prefix_context, u16_casing_prefix_context,
74359         u32_casing_prefix_context, u8_casing_prefixes_context,
74360         u16_casing_prefixes_context, u32_casing_prefixes_context): New
74361         declarations.
74362         (casing_suffix_context_t): New type.
74363         (unicase_empty_suffix_context): New variable.
74364         (u8_casing_suffix_context, u16_casing_suffix_context,
74365         u32_casing_suffix_context, u8_casing_suffixes_context,
74366         u16_casing_suffixes_context, u32_casing_suffixes_context,
74367         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
74368         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
74369         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
74370         declarations.
74372 2009-06-28  Jim Meyering  <meyering@redhat.com>
74374         boostrap: indent only with spaces
74375         * build-aux/bootstrap: Indent only with spaces, never TABs.
74377         bootstrap: split long lines
74378         * build-aux/bootstrap: Keep line length < 80.
74380         bootstrap: sync from coreutils
74381         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
74382         just as autoreconf does.  Verify a list of prerequisite
74383         package-name,version-number pairs if defined in bootstrap.conf.
74384         Refer to README-prereq, if prerequisites are not satisfied.
74386 2009-06-27  Eric Blake  <ebb9@byu.net>
74388         tests: add test for bogus NULL definition
74389         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
74390         * tests/test-stdlib.c: Likewise.
74391         * tests/test-string.c: Likewise.
74392         * tests/test-locale.c: Likewise.
74393         * tests/test-unistd.c: Likewise.
74394         * modules/stdio-tests (Depends-on): Add verify.
74395         * modules/stdlib-tests (Depends-on): Likewise.
74396         * modules/string-tests (Depends-on): Likewise.
74397         * modules/locale-tests (Depends-on): Likewise.
74398         * modules/unistd-tests (Depends-on): Likewise.
74400 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
74402         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
74403         self-explaining comment.
74404         * m4/selinux-selinux-h: Update serial.
74405         (gl_LIBSELINUX): New macro, adding a warning for missing development
74406         packages to code extracted from...
74407         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
74408         Add warning for missing development packages here, too.
74410 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
74412         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
74414 2009-06-25  Eric Blake  <ebb9@byu.net>
74416         version-etc: fix regression
74417         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
74418         gcc.
74419         (version_etc): Use it, to catch bugs with trailing NULL.
74420         * lib/version-etc.c (version_etc_arn): Delete unused argument.
74421         (version_etc_va): Fix logic bug.
74422         * modules/version-etc-tests: Add test.
74423         * tests/test-version-etc.c: New file.
74424         * tests/test-version-etc.sh: Likewise.
74426 2009-06-25  Sam Steingold  <sds@gnu.org>
74428         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
74429         mbtowc declaration.
74431 2009-06-25  Eric Blake  <ebb9@byu.net>
74433         fpurge: migrate into <stdio.h>
74434         * lib/fpurge.h: Delete...
74435         * lib/stdio.in.h (fpurge): ...and declare here, instead.
74436         * lib/fpurge.c (fpurge): Change declaring header.
74437         * modules/fpurge (Files): Drop deleted file.
74438         (Depends-on): Add stdio.
74439         (configure.ac): Set witness.
74440         * modules/stdio (Makefile.am): Support fpurge macros.
74441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74442         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
74443         * lib/fflush.c: Update client.
74444         * tests/test-fpurge.c: Likewise.
74445         * NEWS: Mention the change.
74447 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74449         * lib/argp-version-etc.c (program_authors): Add const
74450         qualifier.
74451         * lib/version-etc.c: Fix typos in the comments.
74452         * modules/argp-version-etc: Depends on version-etc.
74454 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74456         argp-version-etc: new module.
74458         * lib/argp-version-etc.c: New file.
74459         * lib/argp-version-etc.h: New file.
74460         * modules/argp-version-etc: New file.
74461         * modules/argp-version-etc-tests: New file.
74462         * tests/test-argp-version-etc.c: New test.
74463         * tests/test-argp-version-etc-1.sh: New test.
74465 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74467         Provide additional interfaces and documentation for version-etc
74468         module.
74470         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
74471         interfaces.
74472         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
74473         prototypes.
74475 2009-06-24  Bruno Haible  <bruno@clisp.org>
74477         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
74478         HAVE_LIB${NAME} macro.
74479         Reported by Sam Steingold <sds@gnu.org>.
74481 2009-06-23  Simon Josefsson  <simon@josefsson.org>
74483         * modules/hash-tests (test_hash_LDADD): Link to libintl when
74484         needed.
74486 2009-06-21  Bruno Haible  <bruno@clisp.org>
74488         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
74489         work.
74490         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
74491         together with LIB${NAME}, LTLIB${NAME}.
74492         Reported by Sam Steingold <sds@gnu.org>.
74494 2009-06-20  Jim Meyering  <meyering@redhat.com>
74496         tests: make sc_require_test_exit_idiom more generic
74497         * top/maint.mk (Exit_witness_file): New overridable variable.
74498         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
74499         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
74501 2009-06-19  Jim Meyering  <meyering@redhat.com>
74503         hash: reverse order of src/dst parameters in an internal interface
74504         * lib/hash.c (transfer_entries): Reverse order of parameters to
74505         put DST before SRC.  Adjust callers.
74507         tests: test-hash: avoid wholesale duplication
74508         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
74509         Instead, use a loop and add a single conditional.
74511         tests: test-hash: allow seed selection via a command line argument
74512         * tests/test-hash.c (get_seed): New function.
74513         (main): Use it.
74515 2009-06-19  Eric Blake  <ebb9@byu.net>
74517         hash: avoid memory leak on allocation failure
74518         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
74519         failure.  Factor repeated algorithm...
74520         (transfer_entries): ...into new helper routine.
74521         (hash_delete): React to hash_rehash return value.
74523         hash: reduce memory pressure in hash_rehash no-op case
74524         * lib/hash.c (next_prime): Avoid overflow.
74525         (hash_initialize): Factor bucket size computation...
74526         (compute_bucket_size): ...into new helper function.
74527         (hash_rehash): Use new function and open coding to reduce memory
74528         pressure, and avoid a memory leak in USE_OBSTACK code.
74529         Reported by Jim Meyering.
74531 2009-06-18  Eric Blake  <ebb9@byu.net>
74533         hash: make rotation more obvious
74534         * modules/hash (Depends-on): Add bitrotate and stdint.
74535         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
74536         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
74537         (SIZE_MAX): Rely on headers for definition.
74538         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
74539         (raw_hasher): Use rotr_sz.
74540         Suggested by Jim Meyering.
74542         hash: fix memory leak in last patch
74543         * lib/hash.c (hash_rehash): Avoid memory leak.
74545         hash: avoid no-op rehashing
74546         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
74548         hash: provide default callback functions
74549         * lib/hash.c (raw_hasher, raw_comparator): New functions.
74550         (hash_initialize): Use them as defaults.
74551         * tests/test-hash.c (main): Test this.
74553         hash: minor optimization
74554         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
74555         when possible.
74556         (hash_initialize): Document this promise.
74557         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
74558         * tests/test-hash.c (hash_compare_strings): Test this.
74560 2009-06-18  Bruno Haible  <bruno@clisp.org>
74562         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
74563         going to be replaced anyway.
74565 2009-06-18  Bruno Haible  <bruno@clisp.org>
74567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
74568         in one place.
74569         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
74570         be replaced anyway.
74572 2009-06-18  Eric Blake  <ebb9@byu.net>
74574         hash: check for resize before insertion
74575         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
74576         threshold before insertion, so that a pathological hash_rehash
74577         that fills every bucket can still trigger another rehash.
74579 2009-06-18  Jim Meyering  <meyering@redhat.com>
74581         hash-tests: add a loop around the small tests
74582         * tests/test-hash.c (main): Repeat small tests with selected
74583         small initial table sizes.
74585 2009-06-17  Eric Blake  <ebb9@byu.net>
74587         hash: minor cleanups
74588         * lib/hash.h (hash_entry): Make opaque, by moving...
74589         * lib/hash.c (hash_entry): ...here.
74590         (hash_insert): Clarify restrictions on what can be inserted.
74591         (hash_get_next): Clarify when it is safe to remove an element
74592         during traversal.
74593         (check_tuning): Skip verification when tuning is known safe.
74594         (hash_initialize): Clarify restrictions on tuning.
74596 2009-06-17  Jim Meyering  <jim@meyering.net>
74597         and Eric Blake  <ebb9@byu.net>
74599         hash-tests: new module
74600         * modules/hash-tests: New file.
74601         * tests/test-hash.c: New file.
74603 2009-06-17  Eric Blake  <ebb9@byu.net>
74605         strstr-simple: document new module
74606         * MODULES.html.sh: Document new module.
74608         strstr, strcasestr: replace on platforms with broken memchr
74609         * modules/strstr: Split into...
74610         * modules/strstr-simple: ...new module that does not care about
74611         performance, but does care about glibc bug.
74612         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
74613         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
74614         if platform memchr is broken, per Debian bug 521737.
74615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
74616         memchr.
74617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
74618         * doc/posix-functions/strstr.texi (strstr): Document the fix.
74619         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
74620         * modules/mountlist (Depends-on): Add strstr-simple.
74621         * modules/gen-uni-tables (Depends-on): Likewise.
74622         * modules/argz (Depends-on): Add strstr.
74624 2009-06-17  Bruno Haible  <bruno@clisp.org>
74626         * modules/posix_spawn-internal (Depends-on): Add errno.
74628 2009-06-17  Bruno Haible  <bruno@clisp.org>
74630         Define missing ESTALE on Interix 3.5.
74631         * lib/errno.in.h (ESTALE): Assign a value if missing.
74632         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
74633         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
74634         missing.
74635         * doc/posix-headers/errno.texi: Mention the Interix bug.
74636         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
74638 2009-06-15  Eric Blake  <ebb9@byu.net>
74640         memchr, memchr2: add valgrind exception
74641         * lib/memchr.valgrind: New file.
74642         * lib/memchr2.valgrind: New file.
74643         * modules/memchr (Files): Distribute valgrind file.
74644         * modules/memchr2 (Files): Likewise.
74646         docs: memchr is no longer obsolete
74647         * MODULES.html.sh: Move memchr from obsolete to string.h section.
74648         * lib/string.in.h (memchr): Simplify logic.
74650 2009-06-14  Jim Meyering  <meyering@redhat.com>
74652         link-follow: fix the "checking..." message to not mention trailing slash
74653         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
74654         never considered trailing slashes.
74656 2009-06-14  Bruno Haible  <bruno@clisp.org>
74658         * m4/memchr.m4: Mention also the bug on IA-64.
74659         * doc/posix-functions/memchr.texi: Likewise.
74661 2009-06-12  Eric Blake  <ebb9@byu.net>
74663         memchr: detect broken x86_64 and alpha implementations
74664         * modules/memchr-tests (Depends-on): Move mmap detection...
74665         * modules/memchr (Depends-on): ...here.
74666         (configure.ac): Set indicator.
74667         * lib/string.in.h (memchr): Declare replacement.
74668         * modules/string (Makefile.am): Trigger replacement.
74669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
74670         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
74671         bugs.
74672         * doc/posix-functions/memchr.texi (memchr): Document the bug.
74673         * modules/getpagesize (License): Relax license.
74675 2009-06-11  Bruno Haible  <bruno@clisp.org>
74677         * lib/idpriv.h: Add more references.
74679 2009-06-08  Bruno Haible  <bruno@clisp.org>
74681         Tests for module 'idpriv-droptemp'.
74682         * modules/idpriv-droptemp-tests: New file.
74683         * tests/test-idpriv-droptemp.sh: New file.
74684         * tests/test-idpriv-droptemp.su.sh: New file.
74685         * tests/test-idpriv-droptemp.c: New file.
74687         New module 'idpriv-droptemp'.
74688         * lib/idpriv-droptemp.c: New file.
74689         * modules/idpriv-droptemp: New file.
74691 2009-06-08  Bruno Haible  <bruno@clisp.org>
74693         Tests for module 'idpriv-drop'.
74694         * modules/idpriv-drop-tests: New file.
74695         * tests/test-idpriv-drop.sh: New file.
74696         * tests/test-idpriv-drop.su.sh: New file.
74697         * tests/test-idpriv-drop.c: New file.
74699         New module 'idpriv-drop'.
74700         * lib/idpriv.h: New file.
74701         * lib-idpriv-drop.c: New file.
74702         * m4/idpriv.m4: New file.
74703         * modules/idpriv-drop: New file.
74705 2009-06-08  Bruno Haible  <bruno@clisp.org>
74707         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
74708         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74709         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74710         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74711         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74712         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74713         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74715 2009-06-08  Eric Blake  <ebb9@byu.net>
74717         test-strstr: use memory fence, when possible
74718         * tests/test-strstr.c (main): Use memory fence, in order to be
74719         more likely to trigger Debian bug 521737.
74720         * modules/strstr-tests (Files): Pull in additional files.
74722         memchr: no longer obsolete, for wider field testing
74723         * modules/memchr (Status, Notice): Delete, this module is no
74724         longer obsolete.
74725         * modules/vasnprintf (Depends-on): Add memchr.
74727 2009-06-07  Jim Meyering  <meyering@redhat.com>
74729         hash: declare some functions with the warn_unused_result attribute
74730         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
74732 2009-06-07  Bruno Haible  <bruno@clisp.org>
74734         * tests/test-alignof.c: Don't test int64_t if it does not exist.
74735         Reported by Eric Blake.
74737 2009-06-06  Eric Blake  <ebb9@byu.net>
74739         test-alignof: fix typo with long double
74740         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
74741         compiler error.
74743 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
74745         Escape non-texinfo { and }s.
74746         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
74747         markup error.
74749 2009-06-04  Jim Meyering  <meyering@redhat.com>
74751         gitlog-to-changelog: don't infloop on an empty commit log
74752         * build-aux/gitlog-to-changelog: Warn about an empty log message.
74753         Reported by Boris Petersen <transacid@centerim.org>.
74755 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
74757         version-etc: extend for packagers
74758         Add three new configure options, intended for packagers:
74759           --with-packager="packager name"
74760           --with-packager-version="packager-specific version"
74761           --with-packager-bug-reports="packager bug reporting"
74762         An example with coreutils:
74763           $ ./configure \
74764             --with-packager=Gentoo \
74765             --with-packager-bug-report=http://bugs.gentoo.org/ \
74766             --with-packager-version="patchset 1.6"
74767           $ ./src/ls --version | head -n2
74768           ls (GNU coreutils) 7.1-dirty
74769           Packaged by Gentoo (patchset 1.6)
74770         Note that the bug reporting info via --help doesn't show up because
74771         coreutils uses its own custom emit_bug_reporting_address() implementation
74772         in src/system.h.  If it didn't, it'd look like:
74773           $ ./src/ls --help | tail -n4
74774           Report bugs to <bug-coreutils@gnu.org>.
74775           Report Gentoo bugs to <http://bugs.gentoo.org/>.
74776           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
74777           General help using GNU software: <http://www.gnu.org/gethelp/>.
74778         * lib/version-etc.c: Print new information, if provided.
74779         * m4/version-etc.m4: New file.
74780         * modules/version-etc (Files): Add m4/version-etc.m4.
74781         (configure.ac): Add gl_VERSION_ETC.
74783 2009-05-31  Bruno Haible  <bruno@clisp.org>
74785         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
74786         and 'int64_t'.
74787         * modules/alignof-tests (Dependencies): Add stdint.
74788         Reported by Eric Blake.
74790 2009-05-31  Bruno Haible  <bruno@clisp.org>
74792         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
74793         restriction due to compiler bugs.
74794         Reported by Eric Blake.
74796 2009-05-31  Simon Josefsson  <simon@josefsson.org>
74797             Bruno Haible  <bruno@clisp.org>
74799         Fix test-alignof failure.
74800         * lib/alignof.h (alignof_slot): New macro.
74801         (alignof_type): New macro, with the same semantics as the previous
74802         'alignof'.
74803         (alignof): Alias to alignof_slot.
74804         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
74805         check that the results are usable as constant expressions.
74807 2009-05-31  Bruno Haible  <bruno@clisp.org>
74809         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
74810         * tests/test-memchr.c (main): Check that memchr does not read past the
74811         first occurrence of the byte.
74812         * tests/test-strstr.c (main): Update comment.
74813         Suggested by Eric Blake.
74815 2009-05-30  Bruno Haible  <bruno@clisp.org>
74817         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
74818         detail how to use dumpbin.
74819         Reported by David Byron <dbyron@dbyron.com>.
74821 2009-06-02  Simon Josefsson  <simon@josefsson.org>
74823         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
74825 2009-06-02  Simon Josefsson  <simon@josefsson.org>
74827         * m4/manywarnings.m4: Add GCC 4.4 warnings.
74829 2009-05-28  Bruno Haible  <bruno@clisp.org>
74831         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
74832         build-aux/ files.
74834 2009-05-28  Simon Josefsson  <simon@josefsson.org>
74836         * gnulib-tool (func_import): Transform license on build-aux/ files too.
74838 2009-05-27  Simon Josefsson  <simon@josefsson.org>
74840         * gnulib-tool (sed_transform_main_lib_file)
74841         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
74842         regexps.
74844 2009-05-26  Simon Josefsson  <simon@josefsson.org>
74846         * tests/test-strstr.c: Add another self-test.
74847         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
74848         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
74850 2009-05-23  Bruno Haible  <bruno@clisp.org>
74852         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
74853         change.
74855 2009-05-21  Bruno Haible  <bruno@clisp.org>
74857         Simplify use of mode_t varargs.
74858         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
74859         uses 'mode_t' or 'int'.
74860         * lib/openat.c (openat): Likewise.
74861         * lib/open-safer.c (open_safer): Likewise.
74862         * m4/mode_t.m4: New file.
74863         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
74864         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
74865         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
74866         * modules/open (Files): Add m4/mode_t.m4.
74867         * modules/openat (Files): Likewise.
74868         * modules/fcntl-safer (Files): Likewise.
74869         Suggested by Eric Blake.
74871 2009-05-21  Pádraig Brady  <P@draigbrady.com>
74873         * doc/glibc-functions/fallocate.texi: New file.
74874         * doc/gnulib.texi: Include it.
74876 2009-05-21  Eric Blake  <ebb9@byu.net>
74877             Bruno Haible  <bruno@clisp.org>
74879         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
74880         invocations.
74881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74883 2009-05-21  Eric Blake  <ebb9@byu.net>
74884             Bruno Haible  <bruno@clisp.org>
74886         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
74887         include_next. Fix of 2008-11-20 commit.
74888         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
74889         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
74890         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
74891         NEXT_MATH_H.
74892         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
74893         instead of NEXT_MATH_H.
74895 2009-05-21  Bruno Haible  <bruno@clisp.org>
74897         Avoid redefinition warnings for SIZE_MAX.
74898         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
74899         Reported by Simon Josefsson.
74901 2009-05-21  Bruno Haible  <bruno@clisp.org>
74903         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
74904         AC_CACHE_VAL.
74906 2009-05-20  Bruno Haible  <bruno@clisp.org>
74908         Make zeroptr.h work on mingw.
74909         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
74910         mprotect.
74911         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
74912         * modules/memchr2-tests (configure.ac): Likewise.
74913         * modules/memcmp-tests (configure.ac): Likewise.
74914         * modules/memmem-tests (configure.ac): Likewise.
74915         * modules/memrchr-tests (configure.ac): Likewise.
74916         Reported by Simon Josefsson.
74918 2009-05-20  Simon Josefsson  <simon@josefsson.org>
74920         * tests/test-glob.c: Include string.h for strcmp prototype.
74922 2009-05-20  Simon Josefsson  <simon@josefsson.org>
74924         * modules/getdelim (Depends-on): Add explicit stdint, although it
74925         was implicitly already pulled in via realloc-posix.
74926         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
74928 2009-05-20  Simon Josefsson  <simon@josefsson.org>
74930         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
74931         G. Christensen" <tgc@jupiterrise.com>.
74932         * m4/sys_socket_h.m4: Check for sa_family_t.
74933         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
74934         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
74935         * tests/test-sys_socket.c: Check that sa_family_t works.
74937 2009-05-18  Eric Blake  <ebb9@byu.net>
74939         maint.mk: allow gnulib_dir in VPATH build
74940         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
74942 2009-05-15  Jim Meyering  <meyering@redhat.com>
74944         maint.mk: Give gnulib_dir a default definition.
74945         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
74946         Thus, most packages no longer need to specify this variable in cfg.mk
74948 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
74950         rename.m4: fix typos that would make non-mingw cross-configure fail
74951         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
74953 2009-05-13  Eric Blake  <ebb9@byu.net>
74955         mmap-anon: avoid out-of-order autoconf expansion
74956         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
74957         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
74958         * modules/memchr-tests (Depends-on): Add extensions.
74959         * modules/memchr2-tests (Depends-on): Add extensions.
74960         * modules/memcmp-tests (Depends-on): Add extensions.
74961         * modules/memmem-tests (Depends-on): Add extensions.
74962         * modules/memrchr-tests (Depends-on): Add extensions.
74964 2009-05-13  Bruno Haible  <bruno@clisp.org>
74966         Make some tests ISO C 99 compliant.
74967         * tests/zerosize-ptr.h: New file.
74968         * tests/test-memchr.c: Include zerosize-ptr.h.
74969         (main): Use a zero-size object pointer instead of NULL.
74970         * tests/test-memchr2.c: Include zerosize-ptr.h.
74971         (main): Use a zero-size object pointer instead of NULL.
74972         * tests/test-memcmp.c: Include zerosize-ptr.h.
74973         (main): Use a zero-size object pointer instead of NULL.
74974         * tests/test-memmem.c: Include zerosize-ptr.h.
74975         (main): Use a zero-size object pointer instead of NULL.
74976         * tests/test-memrchr.c: Include zerosize-ptr.h.
74977         (main): Use a zero-size object pointer instead of NULL.
74978         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
74979         m4/mmap-anon.m4.
74980         (Depends-on): Add getpagesize.
74981         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
74982         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
74983         m4/mmap-anon.m4.
74984         (Depends-on): Add getpagesize.
74985         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
74986         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
74987         m4/mmap-anon.m4.
74988         (Depends-on): Add getpagesize.
74989         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
74990         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
74991         m4/mmap-anon.m4.
74992         (Depends-on): Add getpagesize.
74993         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
74994         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
74995         m4/mmap-anon.m4.
74996         (Depends-on): Add getpagesize.
74997         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
74999 2009-05-12  Bruno Haible  <bruno@clisp.org>
75001         Tests for module 'alignof'.
75002         * modules/alignof-tests: New file.
75003         * tests/test-alignof.c: New file.
75005 2009-05-12  Bruno Haible  <bruno@clisp.org>
75007         Fix alignof macro.
75008         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
75009         vendor compilers that are always correct.
75011 2009-05-12  Bruno Haible  <bruno@clisp.org>
75013         Make the MAP_ANONYMOUS detection work on HP-UX 11.
75014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
75015         not whether its fully works.
75017 2009-05-12  Bruno Haible  <bruno@clisp.org>
75019         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
75021 2009-05-12  Jim Meyering  <meyering@redhat.com>
75023         * top/maint.mk: Adjust backslash alignment.
75025 2009-05-11  Simon Josefsson  <simon@josefsson.org>
75027         * top/maint.mk: Make $(srcdir)/build-aux configurable.
75029 2009-05-11  Eric Blake  <ebb9@byu.net>
75031         argp: avoid undefined behavior
75032         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
75033         macros.
75035 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75037         * tests/test-vc-list-files-git.sh: Do git config of user.email and
75038         user.name to prevent git commit from complaining.
75040 2009-05-10  Bruno Haible  <bruno@clisp.org>
75042         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
75043         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
75044         it rewrites every file name only once.
75045         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
75047 2009-05-08  Bruno Haible  <bruno@clisp.org>
75049         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
75050         instead of 'max'.
75052 2009-05-08  Simon Josefsson  <simon@josefsson.org>
75054         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
75055         sockaddr_storage test.
75057 2009-05-07  Simon Josefsson  <simon@josefsson.org>
75059         * modules/sys_socket (Makefile.am): Substitute
75060         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
75061         * m4/sys_socket_h.m4: Check for sockaddr_storage.
75062         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
75063         * tests/test-sys_socket.c: Check sockaddr_storage.
75065 2009-05-08  Bruno Haible  <bruno@clisp.org>
75067         New module 'alignof'.
75068         * lib/alignof.h: New file.
75069         * modules/alignof: New file.
75071 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75072             Bruno Haible  <bruno@clisp.org>
75074         Fix test-file-has-acl on FreeBSD.
75075         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
75076         mask is implicitly added.
75077         * tests/test-file-has-acl.c: Include <signal.h>.
75078         (main): Terminate the test after 5 seconds.
75079         * modules/acl-tests (configure.ac): Check for alarm function.
75081 2009-05-04  Bruno Haible  <bruno@clisp.org>
75083         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
75084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
75085         * modules/errno (configure.ac): Drop AC_REQUIRE.
75086         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
75087         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
75089 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75091         * modules/glob-tests: New module.
75092         * tests/test-glob.c: Add.
75094 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75096         * modules/fnmatch-tests: New module.
75097         * tests/test-fnmatch.c: Add.
75099 2009-05-04  Eric Blake  <ebb9@byu.net>
75101         maint: make the new no-submodule-changes rule VPATH-safe
75102         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
75104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75105             Bruno Haible  <bruno@clisp.org>
75107         acl: Fix infinite loop on FreeBSD.
75108         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
75109         of return value from acl_get_entry.
75110         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
75111         Likewise.
75113 2009-05-03  Bruno Haible  <bruno@clisp.org>
75115         * lib/acl-internal.h (acl_entries): Clarify return value.
75116         * lib/acl_entries.c (acl_entries): Likewise.
75118 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75120         Bug fix in acl module.
75121         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
75123 2009-05-03  Bruno Haible  <bruno@clisp.org>
75125         Create gperf-generated file in the source dir, not in the build dir.
75126         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
75127         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
75128         * modules/unicase/locale-language (unicase/locale-languages.h):
75129         Likewise.
75130         * modules/unicase/special-casing (unicase/special-casing-table.h):
75131         Likewise.
75132         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
75133         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
75134         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
75135         Reported by Ralf Wildenhues.
75137 2009-05-03  Bruno Haible  <bruno@clisp.org>
75139         * modules/fnmatch (Description, configure.ac): Taken from
75140         fnmatch-posix.
75141         * modules/fnmatch-posix: Turn into a symbolic reference to the
75142         'fnmatch' module, and deprecate.
75143         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
75145 2009-05-03  Bruno Haible  <bruno@clisp.org>
75147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
75148         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
75149         Reported by Ralf Wildenhues.
75151 2009-05-04  Simon Josefsson  <simon@josefsson.org>
75153         * m4/fnmatch.m4: Fix fnmatch re-define.
75155 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
75157         priv-set: new module and tests; adapt write-any-file
75158         * lib/priv-set.c: New file.
75159         * lib/priv-set.h: New file.
75160         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
75161         * lib/write-any-file.c: Simplify by using priv-set module.
75162         * m4/priv-set.m4: New file.
75163         * modules/priv-set: New file.
75164         * modules/unlinkdir: Add dependency on priv-set module.
75165         * modules/write-any-file: Likewise.
75167         Tests for module 'priv-set'.
75168         * modules/priv-set-tests: New file.
75169         * tests/test-priv-set.c: New file.
75171 2009-05-03  Jim Meyering  <meyering@redhat.com>
75172             Bruno Haible  <bruno@clisp.org>
75174         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
75175         use the converted UTF-8 variant of the name instead.
75177 2009-05-03  Jim Meyering  <meyering@redhat.com>
75179         tests: tighten some getdate tests
75180         * tests/test-getdate.c (main): Tighten tests: require equality,
75181         not just greater than.  Set TZ envvar to UTC0.
75183 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
75185         getdate: correctly interpret "next monday" when run on a Monday
75186         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
75187         that e.g., "next tues" (when run on a tuesday) results in a date
75188         that is one week in the future, and not today's date.
75189         I.e., add a week when the wday is the same as the current one.
75190         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
75191         and earlier by Martin Bernreuther and Jan Minář.
75192         * tests/test-getdate.c (main): Check that "next DAY" is always in
75193         the future and that "last DAY" is always in the past.
75195 2009-05-02  Jim Meyering  <meyering@redhat.com>
75197         build: ensure that a release build fails when a submodule is unclean
75198         * top/maint.mk (no-submodule-changes): New rule.
75199         (alpha beta major): Depend on it.
75201 2009-05-02  Bruno Haible  <bruno@clisp.org>
75203         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
75204         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
75205         shell variable gl_fnmatch_required to detect which variant is
75206         requested.
75207         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
75208         gl_FUNC_FNMATCH_POSIX.
75209         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
75210         exclude fnmatch-posix.
75212 2009-05-02  Bruno Haible  <bruno@clisp.org>
75214         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
75215         * modules/mbsrtowcs (License): Change to LGPLv2+.
75216         * modules/strnlen1 (License): Likewise.
75217         Reported by Simon Josefsson.
75219 2009-05-02  Bruno Haible  <bruno@clisp.org>
75221         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
75222         "cross".
75223         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
75224         gnulib-tool was called with option --source-base=lib.
75226 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75228         Use automake *-local hooks without commands, for extensibility.
75229         * modules/localcharset (Makefile.am): Rename install-exec-local
75230         rule to install-exec-localcharset, and make it a prerequisite of
75231         install-exec-local.  Likewise, rename the uninstall-local rule to
75232         uninstall-localcharset, and make it a prerequisite of the former.
75234 2009-05-01  Bruno Haible  <bruno@clisp.org>
75236         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
75237         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75238         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
75239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
75240         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
75241         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75242         m4/locale-zh.m4, m4/codeset.m4.
75244         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
75245         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
75246         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
75247         m4/locale-zh.m4.
75249         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
75250         REPLACE_WCRTOMB if mbstate_t must be replaced.
75251         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
75252         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
75254 2009-05-01  Bruno Haible  <bruno@clisp.org>
75256         Avoid compiler warnings when redefining macros defined by <libintl.h>.
75257         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
75258         dngettext, dcngettext, textdomain, bindtextdomain,
75259         bind_textdomain_codeset): Undefine before redefining.
75261 2009-04-30  Bruno Haible  <bruno@clisp.org>
75263         Fix bug introduced on 2009-04-25.
75264         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
75265         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
75266         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
75267         is defined.
75268         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
75269         is defined.
75270         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
75271         is defined.
75272         Reported by Elbert_Pol <elbert.pol@gmail.com>.
75274 2009-04-28  Bruno Haible  <bruno@clisp.org>
75276         Comment tweaks.
75277         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
75278         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
75279         * lib/unicase.h (u*_casexfrm): Likewise.
75280         Reported by Paolo Bonzini.
75282 2009-04-28  Bruno Haible  <bruno@clisp.org>
75284         Fix a compilation error.
75285         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
75286         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
75287         Reported by Jim Meyering.
75289 2009-04-27  Bruno Haible  <bruno@clisp.org>
75291         New module 'libunistring'.
75292         * modules/libunistring: New file.
75293         * m4/libunistring.m4: New file.
75294         * MODULES.html.sh (Unicode string functions): Add it.
75296 2009-04-27  Eric Blake  <ebb9@byu.net>
75298         maint.mk: allow package-specific header to provide <config.h>
75299         * top/maint.mk (sc_require_config_h): New variable.
75300         (sc_require_config_h, sc_require_config_h_first): Use it.
75302 2009-04-27  Simon Josefsson  <simon@josefsson.org>
75304         * top/maint.mk (sc_avoid_if_before_free): Except
75305         useless-if-before-free script.
75307 2009-04-27  Eric Blake  <ebb9@byu.net>
75309         maintainer-makefile: depend on all required helper scripts
75310         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
75311         useless-if-before-free.
75312         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
75313         version, rather than assuming gnulib checkout is available.
75314         Reported by Simen Josefsson.
75316 2009-04-26  Bruno Haible  <bruno@clisp.org>
75318         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
75319         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
75320         "../" or "..".
75322 2009-04-26  Bruno Haible  <bruno@clisp.org>
75324         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
75325         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
75326         AC_LIB_HAVE_LINKFLAGS.
75328 2009-04-26  Bruno Haible  <bruno@clisp.org>
75330         Simplify calling convention of u*_conv_from_encoding.
75331         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
75332         u32_conv_from_encoding): Expect a resultbuf argument and return the
75333         result directly as a pointer.
75334         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
75335         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
75336         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
75337         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
75338         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
75339         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75340         Update.
75341         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
75342         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
75343         * lib/vasnprintf.c (VASNPRINTF): Update.
75344         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
75345         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
75346         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
75347         * NEWS: Mention the change.
75349 2009-04-26  Bruno Haible  <bruno@clisp.org>
75351         Simplify calling convention of u*_conv_to_encoding.
75352         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
75353         u32_conv_to_encoding): Expect a resultbuf argument and return the
75354         result directly as a pointer.
75355         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75356         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
75357         freeing scaled_offsets if mem_iconveha failed.
75358         * lib/unicase/u-casexfrm.h (FUNC): Update.
75359         * lib/uninorm/u-normxfrm.h (FUNC): Update.
75360         * lib/vasnprintf.c (VASNPRINTF): Update.
75361         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
75362         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
75363         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
75364         * NEWS: Mention the change.
75366 2009-04-26  Bruno Haible  <bruno@clisp.org>
75368         Avoid test failures on AIX and OSF/1.
75369         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
75370         malloc(0).
75371         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
75372         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
75373         Likewise.
75374         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
75375         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
75376         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
75377         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
75378         * doc/posix-functions/malloc.texi: Document the portability problem
75379         related to malloc(0).
75381 2009-04-26  Bruno Haible  <bruno@clisp.org>
75383         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
75384         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
75385         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
75387 2009-04-25  Bruno Haible  <bruno@clisp.org>
75389         Avoid link error when creating a namespace clean library.
75390         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
75391         as macro with arguments if already defined as an alias.
75392         * lib/signbitf.c (gl_signbitf): Don't undefine.
75393         * lib/signbitd.c (gl_signbitd): Don't undefine.
75394         * lib/signbitl.c (gl_signbitl): Don't undefine.
75396 2009-04-25  Jim Meyering  <meyering@redhat.com>
75398         vc-list-files: fix another quoting bug
75399         * build-aux/vc-list-files: Avoid sed backslash expansion
75400         of pathological directory names.
75402 2009-04-25  Eric Blake  <ebb9@byu.net>
75404         vc-list-files: fix shell quoting error
75405         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
75406         timestamp.
75408 2009-04-25  Jim Meyering  <meyering@redhat.com>
75410         vc-list-files: restore lost functionality with subdir argument
75411         * build-aux/vc-list-files: When given a non-"." sub-directory
75412         argument, substitute the $dir/ prefix back onto each resulting name.
75413         Otherwise, coreutils' root_tests check would fail.
75415 2009-04-24  Eric Blake  <ebb9@byu.net>
75417         vc-list-files: ignore git symlinks
75418         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
75419         than ls-files, to ignore git symlinks.
75421         maint.mk: import improvements from m4
75422         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
75423         (move_if_change): Delete unused macro.
75424         (news-date-check, vc-diff-check): Support VPATH builds.
75425         (announcement): Likewise.  Split --bootstrap-tools list...
75426         (boostrap-tools): ...into separate list, which can be overridden
75427         in cfg.mk.
75428         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
75429         requiring dependency on useless-if-before-free module.
75430         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
75431         Support VPATH builds.
75433 2009-04-24  Jim Meyering  <meyering@redhat.com>
75435         maint.mk: remove coreutils-specific rules and variables
75436         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
75437         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
75438         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
75440         maint.mk: remove obsolete rule
75441         * top/maint.mk (rel-check): Remove rule.
75442         (WGET, WGETFLAGS): Remove now-unused variables.
75444 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75446         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
75447         consistency.
75449         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
75450         '$(PATH_SEPARATOR)' instead of ':'.
75452 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75454         * lib/getopt1.c (main): Use 'const' for static array.
75456 2009-04-24  Simon Josefsson  <simon@josefsson.org>
75458         * top/maint.mk: Sync with coreutils.
75459         * NEWS: Explain incompatibilities.
75461 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75462             Bruno Haible  <bruno@clisp.org>
75464         Fix cross-compilation results.
75465         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
75466         statement, as third argument of AC_TRY_RUN.
75467         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
75468         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
75469         Likewise.
75470         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
75471         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
75472         Likewise.
75473         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
75474         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
75475         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
75477 2009-04-20  Bruno Haible  <bruno@clisp.org>
75479         Avoid test failure on mingw.
75480         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
75482 2009-04-20  Bruno Haible  <bruno@clisp.org>
75484         Avoid compilation error on mingw.
75485         * modules/localename-tests (Depends-on): Add locale.
75487 2009-04-19  Bruno Haible  <bruno@clisp.org>
75489         Support for building a shared library on Windows platforms.
75490         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
75491         (main): Test the presence of UNINORM_NFC here.
75492         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
75493         (main): Test the presence of UNINORM_NFD here.
75494         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
75495         (main): Test the presence of UNINORM_NFKC here.
75496         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
75497         (main): Test the presence of UNINORM_NFKD here.
75499 2009-04-19  Bruno Haible  <bruno@clisp.org>
75501         Avoid a compiler warning.
75502         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
75503         Change type of variable 'sequence'.
75505 2009-04-19  Bruno Haible  <bruno@clisp.org>
75507         * modules/configmake (Makefile.am): When the contents of configmake.h
75508         does not change, arrange to preserve its modification time.
75510 2009-04-17  Simon Josefsson  <simon@josefsson.org>
75512         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
75513         gettext domain.
75515 2009-04-16  Jim Meyering  <meyering@redhat.com>
75517         useless-if-before-free: improve conversion code
75518         * build-aux/useless-if-before-free: Adjust code-in-comment to match
75519         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
75521 2009-04-14  Bruno Haible  <bruno@clisp.org>
75523         * modules/fcntl (Depends-on): Add extensions.
75524         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
75526 2009-04-12  Ben Pfaff  <blp@gnu.org>
75528         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
75529         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
75531 2009-03-20  Ben Pfaff  <blp@gnu.org>
75533         Make rename replace existing destinations on Windows.
75534         * m4/rename.m4: Add test for Mingw.
75535         * lib/rename.c: Add rename replacement that uses MoveFileEx with
75536         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
75537         * doc/posix-functions/rename.texi: Document.
75539 2009-04-10  Bruno Haible  <bruno@clisp.org>
75541         New include file "iconveh.h".
75542         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
75543         * lib/striconveh.h: Include it.
75544         (enum iconv_ilseq_handler): Remove definition.
75545         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
75546         striconveh.h.
75547         * lib/striconveha.c: Include striconveh.h.
75548         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
75549         * modules/striconveh (Files): Add lib/iconveh.h.
75550         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
75551         lib/striconveh.h.
75553 2009-04-10  Bruno Haible  <bruno@clisp.org>
75555         * lib/uniconv.h: Update comment.
75557 2009-04-10  Bruno Haible  <bruno@clisp.org>
75559         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
75560         always.
75561         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
75562         * lib/unistr/u16-mbtouc-aux.c: Likewise.
75563         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
75564         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
75565         "unistring-notinline.h", so that the function gets defined always.
75566         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
75567         * lib/unistr/u8-uctomb.c: Likewise.
75568         * lib/unistr/u16-mbtouc.c: Likewise.
75569         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
75570         * lib/unistr/u16-uctomb.c: Likewise.
75571         * lib/unistr/u32-mbtouc.c: Likewise.
75572         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
75573         * lib/unistr/u32-uctomb.c: Likewise.
75575 2009-04-10  Bruno Haible  <bruno@clisp.org>
75577         Mark 'utime' obsolete.
75578         * modules/utime (Status, Notice): New sections.
75579         Suggested by Jim Meyering.
75581         Fix cross-compile guess for utime test.
75582         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
75583         autoconf.
75584         * doc/posix-functions/utime.texi: Give more precisions.
75585         Reported by Jan <ipif@ymail.com>.
75587 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
75589         filevercmp: correct today's change
75590         * lib/filevercmp.c: Also handle coreutils' test inputs.
75591         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
75593         Fix regression in 'filevercmp' module. Thanks Sven Joachim
75594         for reporting it.
75595         * lib/filevercmp.c: Special handle for "", "." and "..".
75596         * tests/test-filevercmp.c: Enlarge the set suite.
75598 2009-04-07  Jim Meyering  <meyering@redhat.com>
75600         useless-if-before-free: show how to remove braced useless free, too
75601         * build-aux/useless-if-before-free: still only in a comment, though.
75603 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
75605         maint.mk: import changes to syntax-check macros from coreutils
75606         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
75607         Use them in the relevant macros.
75609 2009-04-06  Bruno Haible  <bruno@clisp.org>
75611         Fix unportable use of bit-fields.
75612         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
75613         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
75614         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
75616 2009-04-06  Bruno Haible  <bruno@clisp.org>
75618         Avoid test failures on AIX and OSF/1.
75619         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
75620         that malloc(0) = NULL.
75621         * tests/unicase/test-u8-tolower.c (check): Likewise.
75622         * tests/unicase/test-u8-totitle.c (check): Likewise.
75623         * tests/unicase/test-u8-toupper.c (check): Likewise.
75624         * tests/unicase/test-u16-casefold.c (check): Likewise.
75625         * tests/unicase/test-u16-tolower.c (check): Likewise.
75626         * tests/unicase/test-u16-totitle.c (check): Likewise.
75627         * tests/unicase/test-u16-toupper.c (check): Likewise.
75628         * tests/unicase/test-u32-casefold.c (check): Likewise.
75629         * tests/unicase/test-u32-tolower.c (check): Likewise.
75630         * tests/unicase/test-u32-totitle.c (check): Likewise.
75631         * tests/unicase/test-u32-toupper.c (check): Likewise.
75632         * tests/uninorm/test-u8-nfc.c (check): Likewise.
75633         * tests/uninorm/test-u8-nfd.c (check): Likewise.
75634         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
75635         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
75636         * tests/uninorm/test-u16-nfc.c (check): Likewise.
75637         * tests/uninorm/test-u16-nfd.c (check): Likewise.
75638         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
75639         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
75640         * tests/uninorm/test-u32-nfc.c (check): Likewise.
75641         * tests/uninorm/test-u32-nfd.c (check): Likewise.
75642         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
75643         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
75645 2009-04-05  Bruno Haible  <bruno@clisp.org>
75647         Work around an autoconf limitation.
75648         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
75649         comment line if it would be longer than 3 KB.
75651 2009-04-05  Bruno Haible  <bruno@clisp.org>
75653         Avoid test failure with libiconv-1.13.
75654         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
75655         of the expected test results.
75657 2009-04-05  Bruno Haible  <bruno@clisp.org>
75659         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
75660         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
75661         that it should be installed.
75663 2009-04-05  Bruno Haible  <bruno@clisp.org>
75665         * gnulib-tool: New option --copy-file.
75666         (func_usage): Document it.
75667         (func_dest_tmpfilename): Moved out of func_import.
75668         (func_add_file, func_update_file): New functions, extracted from
75669         func_import.
75670         (func_import): Update.
75672 2009-04-05  Karl Berry  <karl@gnu.org>
75674         * README: prominently mention gnulib-tool.
75675         Rearrange sections so getting the code is near the top.
75677 2009-04-05  Bruno Haible  <bruno@clisp.org>
75679         * lib/unicase.h: Mention u*_cmp2.
75680         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
75681         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
75682         * lib/unicase/ulc-casecmp.c: Likewise.
75683         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
75684         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
75685         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
75686         unistr/u8-cmp.
75687         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
75688         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
75689         unistr/u16-cmp.
75690         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
75691         unistr/u32-cmp.
75693         * lib/uninorm.h: Mention u*_cmp2.
75694         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
75695         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
75696         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
75697         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
75698         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
75699         unistr/u8-cmp.
75700         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
75701         unistr/u16-cmp.
75702         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
75703         unistr/u32-cmp.
75705         New module 'unistr/u32-cmp2'.
75706         * lib/unistr/u32-cmp2.c: New file.
75707         * modules/unistr/u32-cmp2: New file.
75709         New module 'unistr/u16-cmp2'.
75710         * lib/unistr/u16-cmp2.c: New file.
75711         * modules/unistr/u16-cmp2: New file.
75713         New module 'unistr/u8-cmp2'.
75714         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
75715         * lib/unistr/u8-cmp2.c: New file.
75716         * lib/unistr/u-cmp2.h: New file.
75717         * modules/unistr/u8-cmp2: New file.
75719 2009-04-05  Bruno Haible  <bruno@clisp.org>
75721         * lib/unictype.h (uc_property_is_valid): New macro.
75722         * tests/unictype/test-pr_byname.c (main): Use it.
75724         * lib/unistr.h: Doc fixes.
75725         * lib/uniconv.h: Doc fixes.
75726         * lib/unictype.h: Doc fixes.
75728 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
75730         Port coreutils 7.2 to Solaris 8.
75732         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
75733         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
75734         for Solaris 8.  This is a bit of a hack, as it means it's the
75735         caller's responsibility to add -lnsl if needed, but most likely it
75736         won't be needed since only getaddrinfo uses this and getaddrinfo
75737         isn't needed on Solaris 8.
75739         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
75740         problem to Solaris 8 encountered with coreutils 7.2, which
75741         resulted in a message "fnmatch.c:292: warning: passing argument 4
75742         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
75743         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
75745 2009-04-03  Simon Josefsson  <simon@josefsson.org>
75747         * m4/ld-version-script.m4: Add FIXME comment.
75749 2009-04-02  Simon Josefsson  <simon@josefsson.org>
75751         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
75752         SOVERSION variable.
75754 2009-04-02  Bruno Haible  <bruno@clisp.org>
75756         * Makefile (info, html, dvi, pdf): Combine the rules.
75757         Suggested by Jim Meyering.
75759 2009-04-01  Bruno Haible  <bruno@clisp.org>
75761         * Makefile (info, html, dvi, pdf): New targets.
75762         Reported by Reuben Thomas <rrt@sc3d.org>.
75764 2009-04-01  Bruno Haible  <bruno@clisp.org>
75766         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
75767         can be put into PATH.
75768         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
75770 2009-04-01  Bruno Haible  <bruno@clisp.org>
75772         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
75774 2009-04-01  Bruno Haible  <bruno@clisp.org>
75776         Rename module 'visibility'.
75777         * modules/lib-symbol-visibility: Renamed from modules/visibility.
75778         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
75779         * doc/gnulib.texi: Update.
75780         * MODULES.html.sh (Misc): Update.
75781         * NEWS: Mention the change.
75783 2009-04-01  Simon Josefsson  <simon@josefsson.org>
75785         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
75786         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
75787         Eric Blake <ebb9@byu.net> for review.
75788         * MODULES.html.sh: Add lib-msvc-compat.
75789         * doc/gnulib.texi: Link to new section.
75790         * m4/ld-output-def.m4: New file.
75791         * doc/ld-output-def.texi: New file.
75793 2009-04-01  Simon Josefsson  <simon@josefsson.org>
75795         Rename ld-version-script to lib-symbol-versions.  Suggested by
75796         Bruno Haible <bruno@clisp.org>.
75797         * modules/ld-version-script: Renamed to lib-symbol-versions.
75798         * doc/ld-version-script.texi: Fix module name.
75799         * MODULES.html.sh: Add lib-symbol-versions.
75801 2009-03-31  Simon Josefsson  <simon@josefsson.org>
75803         * modules/u64-tests: New file.
75804         * tests/test-u64.c: New file.
75806 2009-03-04  Simon Josefsson  <simon@josefsson.org>
75808         * MODULES.html.sh: Mention u64.
75809         * modules/u64: New module.
75810         * modules/crypto/sha512: Depend on u64 module instead of providing
75811         u64.h.
75813 2009-03-27  Eric Blake  <ebb9@byu.net>
75815         test-strerror: make debugging EAI_SYSTEM easier
75816         * modules/getaddrinfo-tests (Depends-on): Add strerror.
75817         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
75818         failure was EAI_SYSTEM.
75820 2009-03-25  Bruno Haible  <bruno@clisp.org>
75822         Fix a problem with --enable-relocatable on Solaris 7.
75823         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
75824         since 2008-02-24.
75826 2009-03-25  Eric Blake  <ebb9@byu.net>
75828         test-sockets: avoid gcc warning
75829         * tests/test-sockets.c (main): Silence compiler warning.
75831 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75833         New modules nproc, pthread, contributed by Glen Lenker.
75835         * MODULES.html.sh: Add pthread, nproc.
75836         * lib/nproc.c: New file.
75837         * lib/nproc.h: New file.
75838         * lib/pthread.in.h: New file.
75839         * m4/pthread.m4: New file.
75840         * modules/nproc: New file.
75841         * modules/pthread: New file.
75843 2009-03-24  Simon Josefsson  <simon@josefsson.org>
75845         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
75846         New variable.
75848 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
75850         filevercmp: handle simple~ and numbered.~3~ backup suffixes
75851         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
75852         * tests/test-filevercmp.c: Add tests for backup suffixes.
75854 2009-03-24  Simon Josefsson  <simon@josefsson.org>
75856         * modules/stdlib (Depends-on): Add stdint, needed when defining
75857         struct random_data on, for example, HP-UX 10.20.  Reported by
75858         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75860 2009-03-24  Simon Josefsson  <simon@josefsson.org>
75862         * lib/readline.c (readline): Call fflush on stdout after printing
75863         prompt.
75865 2009-03-20  Bruno Haible  <bruno@clisp.org>
75867         Remove dependency from 'close' module to -lws2_32 on native Windows.
75868         * lib/close-hook.h: New file.
75869         * lib/close-hook.c: New file.
75870         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
75871         w32sock.h.
75872         (_gl_close_fd_maybe_socket): Remove function.
75873         (rpl_close): Invoke execute_all_close_hooks instead of
75874         _gl_close_fd_maybe_socket.
75875         * lib/sockets.c: Include close-hook.h, w32sock.h.
75876         (close_fd_maybe_socket): New function, essentially from lib/close.c.
75877         (close_sockets_hook): New variable.
75878         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
75879         (gl_sockets_cleanup): Unregister it.
75880         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
75881         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
75882         * modules/close-hook: New file.
75883         * modules/close (Files): Remove lib/w32sock.h.
75884         (Depends-on): Add close-hook.
75885         (Link): Remove section.
75886         * modules/sockets (Files): Add lib/w32sock.h.
75887         (Depends-on): Add close-hook.
75888         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
75889         invocation.
75890         * NEWS: Mention that LIB_CLOSE is gone.
75892 2009-03-23  Eric Blake  <ebb9@byu.net>
75894         signal-tests: test previous patch
75895         * tests/test-signal.c: New file.
75896         * modules/signal-tests: Likewise.
75898         signal.h: always support 'volatile sig_atomic_t'
75899         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
75900         (gl_SIGNAL_H_DEFAULTS): Add a default.
75901         * modules/signal (Makefile.am): Substitute if needed.
75902         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
75903         users can blindly add volatile.
75904         * doc/posix-headers/signal.texi (signal.h): Document it.
75905         Reported by Matthew Woehlke.
75907 2009-03-23  Jim Meyering  <meyering@redhat.com>
75909         pathmax: PATH_MAX: use pathconf only when available
75910         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
75911         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
75912         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
75913         This avoids a link failure in a PSP cross-compilation environment
75914         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
75916         * lib/vasnprintf.c (divide): Fix typo in comment.
75918 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75920         * gnulib-tool (func_filter_filelist): Fix comment.
75922 2009-03-20  Bruno Haible  <bruno@clisp.org>
75924         Make sockets.h self-contained.
75925         * lib/sockets.c: Include sockets.h first.
75926         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
75928 2009-03-19  Eric Blake  <ebb9@byu.net>
75930         doc: mention more functions added in cygwin 1.7.0
75931         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
75932         addition.
75933         * doc/posix-functions/log2f.texi: Likewise.
75935 2009-03-19  Jim Meyering  <meyering@redhat.com>
75937         fsusage: avoid syntax error due to statement-before-declaration
75938         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
75939         after all declarations.  Reported by Matthew Woehlke in
75940         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
75942 2009-03-18  Eric Blake  <ebb9@byu.net>
75944         build-aux/compile: sync from automake
75945         * build-aux/compile: New file, from automake.
75946         * config/srclist.txt: Mention build-aux/compile.
75948 2009-03-17  Bruno Haible  <bruno@clisp.org>
75950         * lib/git-merge-changelog.c: Fix typo in comment.
75951         Reported by Reuben Thomas <rrt@sc3d.org>.
75953 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
75955         * m4/regex.m4: update and improve help for
75956         --without-included-regex.
75958 2009-03-17  Simon Josefsson  <simon@josefsson.org>
75960         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
75961         failure on missing include files.
75963 2009-03-17  Eric Blake  <ebb9@byu.net>
75965         doc: mention more functions added in cygwin 1.7.0
75966         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
75967         addition.
75968         * doc/posix-functions/fwscanf.texi: Likewise.
75969         * doc/posix-functions/swprintf.texi: Likewise.
75970         * doc/posix-functions/swscanf.texi: Likewise.
75971         * doc/posix-functions/vfwprintf.texi: Likewise.
75972         * doc/posix-functions/vfwscanf.texi: Likewise.
75973         * doc/posix-functions/vswprintf.texi: Likewise.
75974         * doc/posix-functions/vswscanf.texi: Likewise.
75975         * doc/posix-functions/vwprintf.texi: Likewise.
75976         * doc/posix-functions/vwscanf.texi: Likewise.
75977         * doc/posix-functions/wcscasecmp.texi: Likewise.
75978         * doc/posix-functions/wcsdup.texi: Likewise.
75979         * doc/posix-functions/wcsftime.texi: Likewise.
75980         * doc/posix-functions/wcsncasecmp.texi: Likewise.
75981         * doc/posix-functions/wprintf.texi: Likewise.
75982         * doc/posix-functions/wscanf.texi: Likewise.
75983         * doc/glibc-functions/gethostbyname2.texi: Likewise.
75985 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75987         maint.mk: really add $(AM_MAKEFLAGS)
75988         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
75989         was inadvertently omitted in the last commit.
75990         Spotted by Bruno Haible.
75992         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
75993         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
75994         $(AM_MAKEFLAGS)' rather than plain `make'.
75996         gnulib-tool: execute $MAKE not make
75997         * gnulib-tool: Default $MAKE to 'make'.
75998         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
75999         than make.  Initialize $MAKE in the do-autobuild script.
76001         gnulib-tool: use $MAKE not make in generated files
76002         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
76003         make, in generated files.  Initialize $MAKE in the do-autobuild
76004         script.
76006         * top/GNUmakefile (_have-git-version-gen): Fix typo.
76008         GNUmakefile: disable parallelism only for multiple, recursive targets
76009         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
76010         additions in the Makefile.
76011         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
76012         by Automake.
76013         (.NOTPARALLEL): Only disable parallel builds if multiple targets
76014         are listed on the command line and at least one of them is
76015         listed in $(ALL_RECURSIVE_TARGETS).
76017 2009-03-14  Bruno Haible  <bruno@clisp.org>
76019         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
76020         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
76021         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
76022         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
76023         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
76024         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
76025         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
76026         unistr/u8-uctomb.
76027         * modules/unistr/u8-strchr (Depends-on): Likewise.
76028         * modules/unistr/u8-strrchr (Depends-on): Likewise.
76029         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
76030         unistr/u16-uctomb.
76031         * modules/unistr/u16-strchr (Depends-on): Likewise.
76032         * modules/unistr/u16-strrchr (Depends-on): Likewise.
76034 2009-03-12  Bruno Haible  <bruno@clisp.org>
76036         Work around select() bug on Interix 3.5.
76037         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
76038         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
76039         * m4/select.m4: New file.
76040         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
76041         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
76042         * modules/select (Files): Add m4/select.m4.
76043         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
76044         * modules/nanosleep (Depends-on): Add select.
76045         * modules/poll (Depends-on): Likewise.
76046         * doc/posix-functions/select.texi: Mention the Interix bug.
76047         Reported by Markus Duft <mduft@gentoo.org>.
76049         * lib/select.c: Renamed from lib/winsock-select.c.
76050         * modules/select (Files): Add lib/select.c, remove
76051         lib/winsock-select.c.
76052         (configure.ac): Update.
76054 2009-03-12  Jim Meyering  <meyering@redhat.com>
76056         avoid gcc warnings about unused macro definitions
76057         * lib/readtokens.c (STREQ): Remove unused definition.
76058         * lib/xmalloc.c (SIZE_MAX): Likewise.
76059         * lib/openat-die.c (N_): Likewise.
76060         * lib/mountlist.c (SIZE_MAX): Remove definition.
76061         Instead, include <stdint.h>.
76062         * lib/readutmp.c: Likewise.
76063         * modules/readutmp (Depends-on): Add stdint.
76064         * modules/mountlist (Depends-on): Add stdint.
76065         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
76067 2009-03-10  Bruno Haible  <bruno@clisp.org>
76069         Tests for module 'mbmemcasecoll'.
76070         * modules/mbmemcasecoll-tests: New file.
76071         * tests/test-mbmemcasecoll1.sh: New file.
76072         * tests/test-mbmemcasecoll2.sh: New file.
76073         * tests/test-mbmemcasecoll3.sh: New file.
76074         * tests/test-mbmemcasecoll.c: New file.
76076         New module 'mbmemcasecoll'.
76077         * lib/mbmemcasecoll.h: New file.
76078         * lib/mbmemcasecoll.c: New file.
76079         * modules/mbmemcasecoll: New file.
76081         * tests/test-mbmemcasecmp.h: New file, extracted from
76082         tests/test-mbmemcasecmp.c.
76083         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
76084         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
76085         (main): Update.
76086         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
76088 2009-03-09  Bruno Haible  <bruno@clisp.org>
76090         Tests for module 'mbmemcasecmp'.
76091         * modules/mbmemcasecmp-tests: New file.
76092         * tests/test-mbmemcasecmp1.sh: New file.
76093         * tests/test-mbmemcasecmp2.sh: New file.
76094         * tests/test-mbmemcasecmp3.sh: New file.
76095         * tests/test-mbmemcasecmp.c: New file.
76097         New module 'mbmemcasecmp'.
76098         * lib/mbmemcasecmp.h: New file.
76099         * lib/mbmemcasecmp.c: New file.
76100         * modules/mbmemcasecmp: New file.
76102 2009-03-09  Bruno Haible  <bruno@clisp.org>
76104         Tests for module 'unicase/ulc-casecoll'.
76105         * modules/unicase/ulc-casecoll-tests: New file.
76106         * tests/unicase/test-ulc-casecoll1.sh: New file.
76107         * tests/unicase/test-ulc-casecoll2.sh: New file.
76108         * tests/unicase/test-ulc-casecoll.c: New file.
76110         New module 'unicase/ulc-casecoll'.
76111         * lib/unicase.h (ulc_casecoll): New declaration.
76112         * lib/unicase/ulc-casecoll.c: New file.
76113         * modules/unicase/ulc-casecoll: New file.
76115         New module 'unicase/ulc-casexfrm'.
76116         * lib/unicase.h (ulc_casexfrm): New declaration.
76117         * lib/unicase/ulc-casexfrm.c: New file.
76118         * modules/unicase/ulc-casexfrm: New file.
76120 2009-03-09  Bruno Haible  <bruno@clisp.org>
76122         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
76123         invocations.
76125         * m4/mbscasecmp.m4: Remove file.
76126         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
76127         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
76129         * m4/mbscasestr.m4: Remove file.
76130         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
76131         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
76133         * m4/mbschr.m4: Remove file.
76134         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
76135         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
76137         * m4/mbscspn.m4: Remove file.
76138         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
76139         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
76141         * m4/mbslen.m4: Remove file.
76142         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
76143         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
76145         * m4/mbsncasecmp.m4: Remove file.
76146         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
76147         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
76149         * m4/mbsnlen.m4: Remove file.
76150         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
76151         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
76153         * m4/mbspbrk.m4: Remove file.
76154         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
76155         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
76157         * m4/mbspcasecmp.m4: Remove file.
76158         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
76159         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
76161         * m4/mbsrchr.m4: Remove file.
76162         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
76163         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
76165         * m4/mbssep.m4: Remove file.
76166         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
76167         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
76169         * m4/mbsspn.m4: Remove file.
76170         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
76171         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
76173         * m4/mbsstr.m4: Remove file.
76174         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
76175         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
76177         * m4/mbstok_r.m4: Remove file.
76178         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
76179         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
76181         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
76183         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
76184         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
76186         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
76188 2009-03-08  Bruno Haible  <bruno@clisp.org>
76190         Tests for module 'unicase/ulc-casecmp'.
76191         * modules/unicase/ulc-casecmp-tests: New file.
76192         * tests/unicase/test-ulc-casecmp1.sh: New file.
76193         * tests/unicase/test-ulc-casecmp2.sh: New file.
76194         * tests/unicase/test-ulc-casecmp.c: New file.
76196         New module 'unicase/ulc-casecmp'.
76197         * lib/unicase.h (ulc_casecmp): New declaration.
76198         * lib/unicase/ulc-casecmp.c: New file.
76199         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
76200         'const SRC_UNIT *'.
76201         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
76202         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
76203         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
76204         * modules/unicase/ulc-casecmp: New file.
76206         Tests for module 'unicase/u32-is-cased'.
76207         * modules/unicase/u32-is-cased-tests: New file.
76208         * tests/unicase/test-u32-is-cased.c: New file.
76210         Tests for module 'unicase/u16-is-cased'.
76211         * modules/unicase/u16-is-cased-tests: New file.
76212         * tests/unicase/test-u16-is-cased.c: New file.
76214         Tests for module 'unicase/u8-is-cased'.
76215         * modules/unicase/u8-is-cased-tests: New file.
76216         * tests/unicase/test-u8-is-cased.c: New file.
76217         * tests/unicase/test-is-cased.h: New file.
76219         New module 'unicase/u32-is-cased'.
76220         * lib/unicase/u32-is-cased.c: New file.
76221         * modules/unicase/u32-is-cased: New file.
76223         New module 'unicase/u16-is-cased'.
76224         * lib/unicase/u16-is-cased.c: New file.
76225         * modules/unicase/u16-is-cased: New file.
76227         New module 'unicase/u8-is-cased'.
76228         * lib/unicase/u8-is-cased.c: New file.
76229         * lib/unicase/u-is-cased.h: New file.
76230         * modules/unicase/u8-is-cased: New file.
76232         Tests for module 'unicase/u32-is-casefolded'.
76233         * modules/unicase/u32-is-casefolded-tests: New file.
76234         * tests/unicase/test-u32-is-casefolded.c: New file.
76236         Tests for module 'unicase/u16-is-casefolded'.
76237         * modules/unicase/u16-is-casefolded-tests: New file.
76238         * tests/unicase/test-u16-is-casefolded.c: New file.
76240         Tests for module 'unicase/u8-is-casefolded'.
76241         * modules/unicase/u8-is-casefolded-tests: New file.
76242         * tests/unicase/test-u8-is-casefolded.c: New file.
76243         * tests/unicase/test-is-casefolded.h: New file.
76245         New module 'unicase/u32-is-casefolded'.
76246         * lib/unicase/u32-is-casefolded.c: New file.
76247         * modules/unicase/u32-is-casefolded: New file.
76249         New module 'unicase/u16-is-casefolded'.
76250         * lib/unicase/u16-is-casefolded.c: New file.
76251         * modules/unicase/u16-is-casefolded: New file.
76253         New module 'unicase/u8-is-casefolded'.
76254         * lib/unicase/u8-is-casefolded.c: New file.
76255         * modules/unicase/u8-is-casefolded: New file.
76257         Tests for module 'unicase/u32-is-titlecase'.
76258         * modules/unicase/u32-is-titlecase-tests: New file.
76259         * tests/unicase/test-u32-is-titlecase.c: New file.
76261         Tests for module 'unicase/u16-is-titlecase'.
76262         * modules/unicase/u16-is-titlecase-tests: New file.
76263         * tests/unicase/test-u16-is-titlecase.c: New file.
76265         Tests for module 'unicase/u8-is-titlecase'.
76266         * modules/unicase/u8-is-titlecase-tests: New file.
76267         * tests/unicase/test-u8-is-titlecase.c: New file.
76268         * tests/unicase/test-is-titlecase.h: New file.
76270         New module 'unicase/u32-is-titlecase'.
76271         * lib/unicase/u32-is-titlecase.c: New file.
76272         * modules/unicase/u32-is-titlecase: New file.
76274         New module 'unicase/u16-is-titlecase'.
76275         * lib/unicase/u16-is-titlecase.c: New file.
76276         * modules/unicase/u16-is-titlecase: New file.
76278         New module 'unicase/u8-is-titlecase'.
76279         * lib/unicase/u8-is-titlecase.c: New file.
76280         * modules/unicase/u8-is-titlecase: New file.
76282         Tests for module 'unicase/u32-is-lowercase'.
76283         * modules/unicase/u32-is-lowercase-tests: New file.
76284         * tests/unicase/test-u32-is-lowercase.c: New file.
76286         Tests for module 'unicase/u16-is-lowercase'.
76287         * modules/unicase/u16-is-lowercase-tests: New file.
76288         * tests/unicase/test-u16-is-lowercase.c: New file.
76290         Tests for module 'unicase/u8-is-lowercase'.
76291         * modules/unicase/u8-is-lowercase-tests: New file.
76292         * tests/unicase/test-u8-is-lowercase.c: New file.
76293         * tests/unicase/test-is-lowercase.h: New file.
76295         New module 'unicase/u32-is-lowercase'.
76296         * lib/unicase/u32-is-lowercase.c: New file.
76297         * modules/unicase/u32-is-lowercase: New file.
76299         New module 'unicase/u16-is-lowercase'.
76300         * lib/unicase/u16-is-lowercase.c: New file.
76301         * modules/unicase/u16-is-lowercase: New file.
76303         New module 'unicase/u8-is-lowercase'.
76304         * lib/unicase/u8-is-lowercase.c: New file.
76305         * modules/unicase/u8-is-lowercase: New file.
76307         Tests for module 'unicase/u32-is-uppercase'.
76308         * modules/unicase/u32-is-uppercase-tests: New file.
76309         * tests/unicase/test-u32-is-uppercase.c: New file.
76311         Tests for module 'unicase/u16-is-uppercase'.
76312         * modules/unicase/u16-is-uppercase-tests: New file.
76313         * tests/unicase/test-u16-is-uppercase.c: New file.
76315         Tests for module 'unicase/u8-is-uppercase'.
76316         * modules/unicase/u8-is-uppercase-tests: New file.
76317         * tests/unicase/test-u8-is-uppercase.c: New file.
76318         * tests/unicase/test-is-uppercase.h: New file.
76320         New module 'unicase/u32-is-uppercase'.
76321         * lib/unicase/u32-is-uppercase.c: New file.
76322         * modules/unicase/u32-is-uppercase: New file.
76324         New module 'unicase/u16-is-uppercase'.
76325         * lib/unicase/u16-is-uppercase.c: New file.
76326         * modules/unicase/u16-is-uppercase: New file.
76328         New module 'unicase/u8-is-uppercase'.
76329         * lib/unicase/u8-is-uppercase.c: New file.
76330         * modules/unicase/u8-is-uppercase: New file.
76332         New module 'unicase/u32-is-invariant'.
76333         * lib/unicase/u32-is-invariant.c: New file.
76334         * modules/unicase/u32-is-invariant: New file.
76336         New module 'unicase/u16-is-invariant'.
76337         * lib/unicase/u16-is-invariant.c: New file.
76338         * modules/unicase/u16-is-invariant: New file.
76340         New module 'unicase/u8-is-invariant'.
76341         * lib/unicase/u8-is-invariant.c: New file.
76342         * lib/unicase/invariant.h: New file.
76343         * lib/unicase/u-is-invariant.h: New file.
76344         * modules/unicase/u8-is-invariant: New file.
76346         Tests for module 'unicase/u32-casecoll'.
76347         * modules/unicase/u32-casecoll-tests: New file.
76348         * tests/unicase/test-u32-casecoll.c: New file.
76350         Tests for module 'unicase/u16-casecoll'.
76351         * modules/unicase/u16-casecoll-tests: New file.
76352         * tests/unicase/test-u16-casecoll.c: New file.
76354         Tests for module 'unicase/u8-casecoll'.
76355         * modules/unicase/u8-casecoll-tests: New file.
76356         * tests/unicase/test-u8-casecoll.c: New file.
76358         New module 'unicase/u32-casecoll'.
76359         * lib/unicase/u32-casecoll.c: New file.
76360         * modules/unicase/u32-casecoll: New file.
76362         New module 'unicase/u16-casecoll'.
76363         * lib/unicase/u16-casecoll.c: New file.
76364         * modules/unicase/u16-casecoll: New file.
76366         New module 'unicase/u8-casecoll'.
76367         * lib/unicase/u8-casecoll.c: New file.
76368         * lib/unicase/u-casecoll.h: New file.
76369         * modules/unicase/u8-casecoll: New file.
76371         New module 'unicase/u32-casexfrm'.
76372         * lib/unicase/u32-casexfrm.c: New file.
76373         * modules/unicase/u32-casexfrm: New file.
76375         New module 'unicase/u16-casexfrm'.
76376         * lib/unicase/u16-casexfrm.c: New file.
76377         * modules/unicase/u16-casexfrm: New file.
76379         New module 'unicase/u8-casexfrm'.
76380         * lib/unicase/u8-casexfrm.c: New file.
76381         * lib/unicase/u-casexfrm.h: New file.
76382         * modules/unicase/u8-casexfrm: New file.
76384         Tests for module 'unicase/u32-casecmp'.
76385         * modules/unicase/u32-casecmp-tests: New file.
76386         * tests/unicase/test-u32-casecmp.c: New file.
76388         Tests for module 'unicase/u16-casecmp'.
76389         * modules/unicase/u16-casecmp-tests: New file.
76390         * tests/unicase/test-u16-casecmp.c: New file.
76392         Tests for module 'unicase/u8-casecmp'.
76393         * modules/unicase/u8-casecmp-tests: New file.
76394         * tests/unicase/test-u8-casecmp.c: New file.
76395         * tests/unicase/test-casecmp.h: New file.
76397         New module 'unicase/u32-casecmp'.
76398         * lib/unicase/u32-casecmp.c: New file.
76399         * modules/unicase/u32-casecmp: New file.
76401         New module 'unicase/u16-casecmp'.
76402         * lib/unicase/u16-casecmp.c: New file.
76403         * modules/unicase/u16-casecmp: New file.
76405         New module 'unicase/u8-casecmp'.
76406         * lib/unicase/u8-casecmp.c: New file.
76407         * lib/unicase/u-casecmp.h: New file.
76408         * modules/unicase/u8-casecmp: New file.
76410         Tests for module 'unicase/u32-casefold'.
76411         * modules/unicase/u32-casefold-tests: New file.
76412         * tests/unicase/test-u32-casefold.c: New file.
76414         Tests for module 'unicase/u16-casefold'.
76415         * modules/unicase/u16-casefold-tests: New file.
76416         * tests/unicase/test-u16-casefold.c: New file.
76418         Tests for module 'unicase/u8-casefold'.
76419         * modules/unicase/u8-casefold-tests: New file.
76420         * tests/unicase/test-u8-casefold.c: New file.
76422         New module 'unicase/u32-casefold'.
76423         * lib/unicase/u32-casefold.c: New file.
76424         * modules/unicase/u32-casefold: New file.
76426         New module 'unicase/u16-casefold'.
76427         * lib/unicase/u16-casefold.c: New file.
76428         * modules/unicase/u16-casefold: New file.
76430         New module 'unicase/u8-casefold'.
76431         * lib/unicase/u8-casefold.c: New file.
76432         * lib/unicase/u-casefold.h: New file.
76433         * modules/unicase/u8-casefold: New file.
76435         New module 'unicase/tocasefold'.
76436         * lib/unicase/casefold.h: New file.
76437         * lib/unicase/tocasefold.c: New file.
76438         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
76439         * modules/unicase/tocasefold: New file.
76441         Tests for module 'unicase/u32-totitle'.
76442         * modules/unicase/u32-totitle-tests: New file.
76443         * tests/unicase/test-u32-totitle.c: New file.
76445         Tests for module 'unicase/u16-totitle'.
76446         * modules/unicase/u16-totitle-tests: New file.
76447         * tests/unicase/test-u16-totitle.c: New file.
76449         Tests for module 'unicase/u8-totitle'.
76450         * modules/unicase/u8-totitle-tests: New file.
76451         * tests/unicase/test-u8-totitle.c: New file.
76453         New module 'unicase/u32-totitle'.
76454         * lib/unicase/u32-totitle.c: New file.
76455         * modules/unicase/u32-totitle: New file.
76457         New module 'unicase/u16-totitle'.
76458         * lib/unicase/u16-totitle.c: New file.
76459         * modules/unicase/u16-totitle: New file.
76461         New module 'unicase/u8-totitle'.
76462         * lib/unicase/u8-totitle.c: New file.
76463         * lib/unicase/u-totitle.h: New file.
76464         * modules/unicase/u8-totitle: New file.
76466         Tests for module 'unicase/u32-tolower'.
76467         * modules/unicase/u32-tolower-tests: New file.
76468         * tests/unicase/test-u32-tolower.c: New file.
76470         Tests for module 'unicase/u16-tolower'.
76471         * modules/unicase/u16-tolower-tests: New file.
76472         * tests/unicase/test-u16-tolower.c: New file.
76474         Tests for module 'unicase/u8-tolower'.
76475         * modules/unicase/u8-tolower-tests: New file.
76476         * tests/unicase/test-u8-tolower.c: New file.
76478         New module 'unicase/u32-tolower'.
76479         * lib/unicase/u32-tolower.c: New file.
76480         * modules/unicase/u32-tolower: New file.
76482         New module 'unicase/u16-tolower'.
76483         * lib/unicase/u16-tolower.c: New file.
76484         * modules/unicase/u16-tolower: New file.
76486         New module 'unicase/u8-tolower'.
76487         * lib/unicase/u8-tolower.c: New file.
76488         * modules/unicase/u8-tolower: New file.
76490         Tests for module 'unicase/u32-toupper'.
76491         * modules/unicase/u32-toupper-tests: New file.
76492         * tests/unicase/test-u32-toupper.c: New file.
76494         Tests for module 'unicase/u16-toupper'.
76495         * modules/unicase/u16-toupper-tests: New file.
76496         * tests/unicase/test-u16-toupper.c: New file.
76498         Tests for module 'unicase/u8-toupper'.
76499         * modules/unicase/u8-toupper-tests: New file.
76500         * tests/unicase/test-u8-toupper.c: New file.
76502         New module 'unicase/u32-toupper'.
76503         * lib/unicase/u32-toupper.c: New file.
76504         * modules/unicase/u32-toupper: New file.
76506         New module 'unicase/u16-toupper'.
76507         * lib/unicase/u16-toupper.c: New file.
76508         * modules/unicase/u16-toupper: New file.
76510         New module 'unicase/u8-toupper'.
76511         * lib/unicase/u8-toupper.c: New file.
76512         * modules/unicase/u8-toupper: New file.
76514         New module 'unicase/u32-casemap'.
76515         * lib/unicase/u32-casemap.c: New file.
76516         * modules/unicase/u32-casemap: New file.
76518         New module 'unicase/u16-casemap'.
76519         * lib/unicase/u16-casemap.c: New file.
76520         * modules/unicase/u16-casemap: New file.
76522         New module 'unicase/u8-casemap'.
76523         * lib/unicase/unicasemap.h: New file.
76524         * lib/unicase/u8-casemap.c: New file.
76525         * lib/unicase/u-casemap.h: New file.
76526         * modules/unicase/u8-casemap: New file.
76528         New module 'unicase/special-casing'.
76529         * lib/unicase/special-casing.h: New file.
76530         * lib/unicase/special-casing.c: New file.
76531         * lib/unicase/special-casing-table.gperf: New file, generated by
76532         gen-uni-tables.c.
76533         * modules/unicase/special-casing: New file.
76535         Tests for module 'unicase/locale-language'.
76536         * modules/unicase/locale-language-tests: New file.
76537         * tests/unicase/test-locale-language.sh: New file.
76538         * tests/unicase/test-locale-language.c: New file.
76540         New module 'unicase/locale-language'.
76541         * lib/unicase/locale-language.c: New file.
76542         * lib/unicase/locale-languages.gperf: New file.
76543         * modules/unicase/locale-language: New file.
76545         Generate more tables for case conversion and case folding.
76546         * lib/gen-uni-tables.c (SCC_*): New enum items.
76547         (struct special_casing_rule): New type.
76548         (casing_rules, num_casing_rules, allocated_casing_rules): New
76549         variables.
76550         (add_casing_rule, fill_casing_rules): New functions.
76551         (struct casefold_rule): New type.
76552         (casefolding_rules, num_casefolding_rules,
76553         allocated_casefolding_rules): New variables.
76554         (fill_casefolding_rules): New function.
76555         (unicode_casefold): New variable.
76556         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
76557         sort_casing_rules, output_casing_rules): New functions.
76558         (main): Accept to more arguments: SpecialCasing.txt and
76559         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
76560         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
76561         Output mapping for casefolding.
76563         * lib/unicase.h: Include stdbool.h, uninorm.h.
76564         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
76565         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
76566         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
76567         arguments.
76568         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
76569         resultp arguments.
76570         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
76571         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
76572         resultp arguments.
76573         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
76574         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
76575         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
76576         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
76577         declarations.
76578         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
76580 2009-03-08  Bruno Haible  <bruno@clisp.org>
76582         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
76583         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
76584         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
76585         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
76587 2009-03-07  Bruno Haible  <bruno@clisp.org>
76589         Adjust u*_normcmp, u*_normcoll API.
76590         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
76591         u16_normcoll, u32_normcoll): Change failure conventions.
76592         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
76593         errno and return -1.
76594         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
76596 2009-03-07  Bruno Haible  <bruno@clisp.org>
76598         Tests for module 'uninorm/u32-normcoll'.
76599         * modules/uninorm/u32-normcoll-tests: New file.
76600         * tests/uninorm/test-u32-normcoll.c: New file.
76602         Tests for module 'uninorm/u16-normcoll'.
76603         * modules/uninorm/u16-normcoll-tests: New file.
76604         * tests/uninorm/test-u16-normcoll.c: New file.
76606         Tests for module 'uninorm/u8-normcoll'.
76607         * modules/uninorm/u8-normcoll-tests: New file.
76608         * tests/uninorm/test-u8-normcoll.c: New file.
76610 2009-03-07  Bruno Haible  <bruno@clisp.org>
76612         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
76613         tests/uninorm/test-u32-normcmp.c.
76614         * tests/uninorm/test-u32-normcmp.c: Include it.
76615         (test_nonascii): New function, extracted from main. Add some more
76616         tests.
76617         (main): Invoke test_ascii and test_nonascii.
76618         * modules/uninorm/u32-normcmp-tests (Files): Add
76619         tests/uninorm/test-u32-normcmp.h.
76620         (Depends-on): Remove uninorm/u32-normcmp.
76622         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
76623         tests/uninorm/test-u16-normcmp.c.
76624         * tests/uninorm/test-u16-normcmp.c: Include it.
76625         (test_nonascii): New function, extracted from main. Add some more
76626         tests.
76627         (main): Invoke test_ascii and test_nonascii.
76628         * modules/uninorm/u16-normcmp-tests (Files): Add
76629         tests/uninorm/test-u16-normcmp.h.
76630         (Depends-on): Remove uninorm/u16-normcmp.
76632         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
76633         tests/uninorm/test-u8-normcmp.c.
76634         * tests/uninorm/test-u8-normcmp.c: Include it.
76635         (test_nonascii): New function, extracted from main. Add some more
76636         tests.
76637         (main): Invoke test_ascii and test_nonascii.
76638         * modules/uninorm/u8-normcmp-tests (Files): Add
76639         tests/uninorm/test-u8-normcmp.h.
76640         (Depends-on): Remove uninorm/u8-normcmp.
76642 2009-03-07  Bruno Haible  <bruno@clisp.org>
76644         New module 'uninorm/u32-normcoll'.
76645         * lib/uninorm/u32-normcoll.c: New file.
76646         * modules/uninorm/u32-normcoll: New file.
76648         New module 'uninorm/u16-normcoll'.
76649         * lib/uninorm/u16-normcoll.c: New file.
76650         * modules/uninorm/u16-normcoll: New file.
76652         New module 'uninorm/u8-normcoll'.
76653         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
76654         declarations.
76655         * lib/uninorm/u8-normcoll.c: New file.
76656         * lib/uninorm/u-normcoll.h: New file.
76657         * modules/uninorm/u8-normcoll: New file.
76659         New module 'uninorm/u32-normxfrm'.
76660         * lib/uninorm/u32-normxfrm.c: New file.
76661         * modules/uninorm/u32-normxfrm: New file.
76663         New module 'uninorm/u16-normxfrm'.
76664         * lib/uninorm/u16-normxfrm.c: New file.
76665         * modules/uninorm/u16-normxfrm: New file.
76667         New module 'uninorm/u8-normxfrm'.
76668         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
76669         declarations.
76670         * lib/uninorm/u8-normxfrm.c: New file.
76671         * lib/uninorm/u-normxfrm.h: New file.
76672         * modules/uninorm/u8-normxfrm: New file.
76674 2009-03-07  Bruno Haible  <bruno@clisp.org>
76676         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
76677         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
76678         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
76680 2009-03-07  Bruno Haible  <bruno@clisp.org>
76682         New module 'memxfrm'.
76683         * lib/memxfrm.h: New file.
76684         * lib/memxfrm.c: New file.
76685         * modules/memxfrm: New file.
76687 2009-03-07  Bruno Haible  <bruno@clisp.org>
76689         New module 'memcmp2'.
76690         * lib/memcmp2.h: New file.
76691         * lib/memcmp2.c: New file.
76692         * modules/memcmp2: New file.
76694 2009-03-07  Bruno Haible  <bruno@clisp.org>
76696         Tests for module 'uninorm/decomposing-form'.
76697         * modules/uninorm/decomposing-form-tests: New file.
76698         * tests/uninorm/test-decomposing-form.c: New file.
76700         New module 'uninorm/decomposing-form'.
76701         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
76702         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
76703         Add 'decomposing_variant' field.
76704         * lib/uninorm/decomposing-form.c: New file.
76705         * lib/uninorm/nfc.c (uninorm_nfc): Update.
76706         * lib/uninorm/nfd.c (uninorm_nfd): Update.
76707         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
76708         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
76709         * modules/uninorm/decomposing-form: New file.
76710         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
76711         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
76713 2009-03-07  Bruno Haible  <bruno@clisp.org>
76715         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
76716         strings.
76718 2009-03-06  Bruno Haible  <bruno@clisp.org>
76720         Tests for module 'uninorm/u32-normcmp'.
76721         * tests/uninorm/test-u32-normcmp.c: New file.
76722         * modules/uninorm/u32-normcmp-tests: New file.
76724         Tests for module 'uninorm/u16-normcmp'.
76725         * tests/uninorm/test-u16-normcmp.c: New file.
76726         * modules/uninorm/u16-normcmp-tests: New file.
76728         Tests for module 'uninorm/u8-normcmp'.
76729         * tests/uninorm/test-u8-normcmp.c: New file.
76730         * modules/uninorm/u8-normcmp-tests: New file.
76732         New module 'uninorm/u32-normcmp'.
76733         * lib/uninorm/u32-normcmp.c: New file.
76734         * modules/uninorm/u32-normcmp: New file.
76736         New module 'uninorm/u16-normcmp'.
76737         * lib/uninorm/u16-normcmp.c: New file.
76738         * modules/uninorm/u16-normcmp: New file.
76740         New module 'uninorm/u8-normcmp'.
76741         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
76742         declarations.
76743         * lib/uninorm/u8-normcmp.c: New file.
76744         * lib/uninorm/u-normcmp.h: New file.
76745         * modules/uninorm/u8-normcmp: New file.
76747 2009-03-06  Bruno Haible  <bruno@clisp.org>
76749         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
76750         Reported by Eric Blake.
76752 2009-03-06  Eric Blake  <ebb9@byu.net>
76753             Bruno Haible  <bruno@clisp.org>
76755         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
76756         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
76757         condition.
76758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
76759         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
76760         condition.
76761         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
76763 2009-03-06  Eric Blake  <ebb9@byu.net>
76765         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
76766         to avoid compiler warnings.
76767         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
76769 2009-03-05  Bruno Haible  <bruno@clisp.org>
76771         * tests/test-ftell.c (main): Disable test beyond end of file on
76772         FreeMiNT.
76773         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
76775 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
76777         * lib/filevercmp.c: Move hidden files up in ordering.
76778         * tests/test-filevercmp.c: Add tests for hidden files.
76780 2009-03-04  Bruno Haible  <bruno@clisp.org>
76782         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
76783         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
76784         AM_CFLAGS.
76785         Reported by Simon Josefsson.
76787 2009-03-03  Bruno Haible  <bruno@clisp.org>
76789         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
76790         Reported by Simon Josefsson.
76792         * doc/ld-version-script.texi: Update node reference.
76794 2009-03-03  Bruno Haible  <bruno@clisp.org>
76796         * modules/visibility (License): Change to 'unlimited'.
76797         Suggested by Simon Josefsson.
76799 2009-03-03  Jim Meyering  <meyering@redhat.com>
76801         unlinkdir: cannot_unlink_dir may modify process state
76802         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
76803         it's neither thread-safe nor appropriate for use in a library.
76805 2009-03-03  Eric Blake  <ebb9@byu.net>
76807         test-closein: silence test under Darwin
76808         * tests/test-closein.sh: Ignore stderr from cat, since we don't
76809         care if it dies from EPIPE or EBADF.
76811 2009-03-03  Bruno Haible  <bruno@clisp.org>
76813         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
76814         earlier.
76815         * doc/visibility.texi: Fix @node and @section.
76817 2009-03-03  Simon Josefsson  <simon@josefsson.org>
76819         * doc/gnulib.texi: Link to sections for ld version script and
76820         visibility.
76821         * doc/visibility.texi: Add @node and @section.
76822         * modules/ld-version-script: New module.
76823         * m4/ld-version-script.m4: New file.
76824         * doc/ld-version-script.texi: New file.
76826 2009-03-02  David Lutterkort  <lutter@redhat.com>
76828         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
76829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76831 2009-03-02  Bruno Haible  <bruno@clisp.org>
76833         * doc/visibility.texi: Mention libtool's -export-symbols option.
76835 2009-03-02  Jim Meyering  <meyering@redhat.com>
76837         announce-gen: new option: --no-print-checksums
76838         * build-aux/announce-gen (usage): Describe it.
76839         (print_checksums): Print a newline here, not in the [*] footnote.
76840         (main): Honor it.
76842 2009-03-01  Bruno Haible  <bruno@clisp.org>
76844         Use socklen_t in the native Windows replacements prototypes.
76845         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
76846         instead of 'int'.
76847         * lib/getsockopt.c (rpl_getsockopt): Likewise.
76848         * lib/setsockopt.c (rpl_setsockopt): Likewise.
76849         * modules/getsockopt (Depends-on): Add socklen.
76850         * modules/setsockopt (Depends-on): Add socklen.
76852 2009-03-01  Bruno Haible  <bruno@clisp.org>
76854         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
76855         least 4.2.
76857 2009-03-01  Eric Blake  <ebb9@byu.net>
76858             Bruno Haible  <bruno@clisp.org>
76860         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
76861         error messages.
76862         * lib/wait-process.c (wait_subprocess): Omit error message about
76863         deadly signal sent to the child of termsigp != NULL.
76865 2009-03-01  Eric Blake  <ebb9@byu.net>
76867         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
76869 2009-03-01  Bruno Haible  <bruno@clisp.org>
76871         Avoid a gcc warning.
76872         * tests/test-sched.c (b): Make global.
76873         Reported by Eric Blake.
76875 2009-01-19  Martin Lambers  <marlam@marlam.de>
76877         Provide POSIX semantics for socket timeout options on W32.
76878         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
76879         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
76880         * modules/setsockopt: Depend on sys_time module for struct timeval.
76881         * modules/getsockopt: Depend on sys_time module for struct timeval.
76883 2009-03-01  Simon Josefsson  <simon@josefsson.org>
76885         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
76886         __USE_GNU, for consistency with netdb.in.h.
76887         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76889 2009-03-01  Bruno Haible  <bruno@clisp.org>
76891         More support for FreeMiNT.
76892         * lib/fseeko.c (rpl_fseeko): Complete last commit.
76893         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76895 2009-03-01  Bruno Haible  <bruno@clisp.org>
76897         More support for FreeMiNT.
76898         * lib/fpurge.c (fpurge): Correct last commit.
76899         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76901 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76903         Fix unportable awk script in vc-list-files.
76904         * build-aux/vc-list-files: In the replacement awk script, use
76905         substr with a second argument of 1, not zero.
76906         Report by Simon Josefsson.
76908 2009-02-28  Bruno Haible  <bruno@clisp.org>
76910         More support for FreeMiNT.
76911         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
76912         to FreeMiNT today.
76913         * lib/fwriting.c (fwriting): Likewise.
76914         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
76916 2009-02-28  Bruno Haible  <bruno@clisp.org>
76918         * tests/test-freadseek.c (main): Disable test beyond end of file on
76919         FreeMiNT.
76920         * tests/test-ftello.c (main): Likewise.
76921         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
76923 2009-02-28  Bruno Haible  <bruno@clisp.org>
76925         Add tentative support for FreeMiNT.
76926         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
76927         * lib/fpurge.c (fpurge): Likewise.
76928         * lib/freadable.c (freadable): Likewise.
76929         * lib/freading.c (freading): Likewise.
76930         * lib/freadptr.c (freadptr): Likewise.
76931         * lib/freadseek.c (freadptrinc): Likewise.
76932         * lib/fseeko.c (rpl_fseeko): Likewise.
76933         * lib/fseterr.c (fseterr): Likewise.
76934         * lib/fwritable.c (fwritable): Likewise.
76935         * lib/fwriting.c (fwriting): Likewise.
76936         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
76937         Hourihane.
76938         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76940 2009-02-28  Bruno Haible  <bruno@clisp.org>
76942         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
76943         SIGCHLD.
76944         Reported by Jim Meyering.
76946 2009-02-28  Bruno Haible  <bruno@clisp.org>
76948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
76949         Mention the results of these tests on various platforms.
76950         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
76951         order.
76952         * doc/posix-functions/printf.texi: Likewise.
76953         * doc/posix-functions/snprintf.texi: Likewise.
76954         * doc/posix-functions/sprintf.texi: Likewise.
76955         * doc/posix-functions/vfprintf.texi: Likewise.
76956         * doc/posix-functions/vprintf.texi: Likewise.
76957         * doc/posix-functions/vsnprintf.texi: Likewise.
76958         * doc/posix-functions/vsprintf.texi: Likewise.
76959         * doc/glibc-functions/obstack_printf.texi: Likewise.
76960         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
76962 2009-02-28  Bruno Haible  <bruno@clisp.org>
76964         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
76965         Reported by Loïc Minier <lool@dooz.org>.
76967 2009-02-27  Bruno Haible  <bruno@clisp.org>
76969         * gnulib-tool (func_import): Make the sed expression used to create the
76970         sed script for updating the .gitignore file POSIX compliant.
76971         Reported by Eric Blake.
76973 2009-02-27  Bruno Haible  <bruno@clisp.org>
76975         * gnulib-tool (sed): Don't alias as "sed --posix".
76976         Reported by Eric Blake.
76978 2009-02-27  Bruno Haible  <bruno@clisp.org>
76980         Avoid test link errors.
76981         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
76982         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
76983         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
76984         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
76985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76987 2009-02-27  Bruno Haible  <bruno@clisp.org>
76989         Avoid spurious "(cached)" in configure output.
76990         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
76991         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
76992         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
76993         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
76994         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
76995         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
76996         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
76997         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
76998         Reported by Eric Blake.
77000 2009-02-27  Eric Blake  <ebb9@byu.net>
77002         printf: fix regression in previous patch
77003         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
77005 2009-02-27  Bruno Haible  <bruno@clisp.org>
77007         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
77008         value.
77009         * lib/stdint.in.h: Likewise.
77010         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
77012 2009-02-27  Eric Blake  <ebb9@byu.net>
77014         doc: mention more functions added in cygwin 1.7.0
77015         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
77016         addition.
77017         * doc/posix-functions/open_wmemstream.texi: Likewise.
77018         * doc/posix-functions/wcsnlen.texi: Likewise.
77019         * doc/posix-functions/wcsnrtombs.texi: Likewise.
77020         * doc/posix-functions/wcstod.texi: Likewise.
77021         * doc/posix-functions/wcstof.texi: Likewise.
77022         * doc/posix-functions/wcstoimax.texi: Likewise.
77023         * doc/posix-functions/wcstok.texi: Likewise.
77024         * doc/posix-functions/wcstoumax.texi: Likewise.
77026         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
77027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
77028         * doc/posix-functions/fprintf.texi: Update.
77029         * doc/posix-functions/printf.texi: Update.
77030         * doc/posix-functions/snprintf.texi: Update.
77031         * doc/posix-functions/sprintf.texi: Update.
77032         * doc/posix-functions/vfprintf.texi: Update.
77033         * doc/posix-functions/vprintf.texi: Update.
77034         * doc/posix-functions/vsnprintf.texi: Update.
77035         * doc/posix-functions/vsprintf.texi: Update.
77036         * doc/glibc-functions/obstack_printf.texi: Update.
77037         * doc/glibc-functions/obstack_vprintf.texi: Update.
77039 2009-02-26  Eric Blake  <ebb9@byu.net>
77041         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
77042         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
77043         compilation bug by using runtime conversion.
77044         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
77045         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
77046         * modules/ceill-tests (Files): Use nan.h.
77047         * modules/floorl-tests (Files): Likewise.
77048         * modules/frexpl-tests (Files): Likewise.
77049         * modules/isnanl-tests (Files): Likewise.
77050         * modules/ldexpl-tests (Files): Likewise.
77051         * modules/roundl-tests (Files): Likewise.
77052         * modules/truncl-tests (Files): Likewise.
77053         * tests/test-ceill.c (main): Use a working NaN.
77054         * tests/test-floorl.c (main): Likewise.
77055         * tests/test-frexpl.c (main): Likewise.
77056         * tests/test-isnan.c (test_long_double): Likewise.
77057         * tests/test-isnanl.h (main): Likewise.
77058         * tests/test-ldexpl.h (main): Likewise.
77059         * tests/test-roundl.h (main): Likewise.
77060         * tests/test-truncl.h (main): Likewise.
77061         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
77063 2009-02-26  Eric Blake  <ebb9@byu.net>
77064             Bruno Haible  <bruno@clisp.org>
77066         Work around a *printf bug with %ls on Solaris.
77067         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
77068         precision is specified, sprintf stops converting the wide string
77069         argument when the number of bytes that have been produced by this
77070         conversion equals or exceeds the precision.
77071         * doc/posix-functions/fprintf.texi: Update.
77072         * doc/posix-functions/printf.texi: Update.
77073         * doc/posix-functions/snprintf.texi: Update.
77074         * doc/posix-functions/sprintf.texi: Update.
77075         * doc/posix-functions/vfprintf.texi: Update.
77076         * doc/posix-functions/vprintf.texi: Update.
77077         * doc/posix-functions/vsnprintf.texi: Update.
77078         * doc/posix-functions/vsprintf.texi: Update.
77079         * doc/glibc-functions/obstack_printf.texi: Update.
77080         * doc/glibc-functions/obstack_vprintf.texi: Update.
77082 2009-02-26  Eric Blake  <ebb9@byu.net>
77084         stdlib: favor compiler check of random.h
77085         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
77086         to avoid an ObjC random.h installed by Swarm.
77088 2009-02-26  Bruno Haible  <bruno@clisp.org>
77090         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
77091         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
77092         Reported by Gary V. Vaughan <gary@gnu.org>.
77094 2009-02-26  Bruno Haible  <bruno@clisp.org>
77096         Fix *printf behaviour regarding the %ls directive.
77097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
77098         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
77099         NEED_PRINTF_DIRECTIVE_LS.
77100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
77101         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77102         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77103         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
77104         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
77105         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
77106         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77110         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77111         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
77112         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77115         * doc/posix-functions/fprintf.texi: Update.
77116         * doc/posix-functions/printf.texi: Update.
77117         * doc/posix-functions/snprintf.texi: Update.
77118         * doc/posix-functions/sprintf.texi: Update.
77119         * doc/posix-functions/vfprintf.texi: Update.
77120         * doc/posix-functions/vprintf.texi: Update.
77121         * doc/posix-functions/vsnprintf.texi: Update.
77122         * doc/posix-functions/vsprintf.texi: Update.
77123         * doc/glibc-functions/obstack_printf.texi: Update.
77124         * doc/glibc-functions/obstack_vprintf.texi: Update.
77125         Reported by Eric Blake.
77127 2009-02-25  Bruno Haible  <bruno@clisp.org>
77129         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
77130         with known value.
77131         Reported by Gary V. Vaughan <gary@gnu.org>.
77133 2009-02-25  Bruno Haible  <bruno@clisp.org>
77135         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
77136         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
77137         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
77138         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
77139         Reported by Gary V. Vaughan <gary@gnu.org>.
77141 2009-02-25  Bruno Haible  <bruno@clisp.org>
77143         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
77144         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
77145         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
77146         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
77147         Reported by Gary V. Vaughan <gary@gnu.org>.
77149 2009-02-25  Eric Blake  <ebb9@byu.net>
77151         tests: skip fseek/ftell tests if ungetc is broken
77152         * m4/ungetc.m4: New file.
77153         * modules/fseek-tests: Split test, so ungetc dependency is
77154         separate from rest of test.
77155         * modules/fseeko-tests: Likewise.
77156         * modules/ftell-tests: Likewise.
77157         * modules/ftello-tests: Likewise.
77158         * tests/test-fseek.c (main): Isolate ungetc dependency.
77159         * tests/test-fseeko.c (main): Likewise.
77160         * tests/test-ftell.c (main): Likewise.
77161         * tests/test-ftello.c (main): Likewise.
77162         * tests/test-fseek2.sh: New file.
77163         * tests/test-fseeko2.sh: Likewise.
77164         * tests/test-ftell2.sh: Likewise.
77165         * tests/test-ftello2.sh: Likewise.
77167 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
77169         test-getaddrinfo: fix usage of skip return code 77
77170         * tests/test-gettaddrinfo.c: Return skip code 77 only
77171         for first occurrence of skip (4x77 is not 77)
77173 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
77175         strtod: avoid C99 decl-after-statement
77176         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
77178 2009-02-24  Eric Blake  <ebb9@byu.net>
77180         strtod: detect HP-UX 11.31 bug
77181         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
77182         Reported by Gary V. Vaughan.
77184 2009-02-23  Bruno Haible  <bruno@clisp.org>
77186         Fix invalid read past end of memory block.
77187         * lib/vasnprintf.c (DCHAR_SET): Define.
77188         (local_wcslen): Define only when needed.
77189         (local_strnlen, local_wcsnlen): New functions.
77190         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
77191         directives that involve a conversion ourselves.
77192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
77193         wcsnlen, mbrtowc, wcrtomb.
77194         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
77195         * tests/test-vasprintf-posix.c (test_function): Likewise.
77196         * tests/test-snprintf-posix.h (test_function): Likewise.
77197         * tests/test-sprintf-posix.h (test_function): Likewise.
77198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77200 2009-02-22  Bruno Haible  <bruno@clisp.org>
77202         Implement new clarified decomposition of Hangul syllables.
77203         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
77204         of type LTV, return only a pairwise decomposition.
77205         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
77206         Likewise.
77207         * tests/uninorm/test-decomposition.c (main): Updated expected result.
77208         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
77209         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
77211 2009-02-22  Bruno Haible  <bruno@clisp.org>
77213         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
77214         zero-length results and shrink excess allocated memory.
77215         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
77216         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
77217         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
77218         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
77219         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
77220         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
77221         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
77222         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
77223         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
77224         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
77225         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
77226         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
77228 2009-02-21  Bruno Haible  <bruno@clisp.org>
77230         * doc/gnulib.texi: Include safe-alloc.texi earlier.
77231         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
77232         spaces after a period. Put a space between a macro name and its
77233         argument list. Trivial rewordings.
77234         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
77235         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
77236         (main): Return 0 explicitly.
77238 2009-02-21  Bruno Haible  <bruno@clisp.org>
77240         Tests for module 'uninorm/filter'.
77241         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
77242         * modules/uninorm/filter-tests: New file.
77244         New module 'uninorm/filter'.
77245         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
77246         uninorm_filter_flush, uninorm_filter_free): New declarations.
77247         * lib/uninorm/uninorm-filter.c: New file.
77248         * modules/uninorm/filter: New file.
77250 2009-02-21  Bruno Haible  <bruno@clisp.org>
77252         Tests for module 'uninorm/nfkc'.
77253         * tests/uninorm/test-nfkc.c: New file.
77254         * tests/uninorm/test-u8-nfkc.c: New file.
77255         * tests/uninorm/test-u16-nfkc.c: New file.
77256         * tests/uninorm/test-u32-nfkc.c: New file.
77257         * tests/uninorm/test-u32-nfkc-big.sh: New file.
77258         * tests/uninorm/test-u32-nfkc-big.c: New file.
77259         * modules/uninorm/nfkc-tests: New file.
77261         New module 'uninorm/nfkc'.
77262         * lib/uninorm/nfkc.c: New file.
77263         * modules/uninorm/nfkc: New file.
77265         Tests for module 'uninorm/nfkd'.
77266         * tests/uninorm/test-nfkd.c: New file.
77267         * tests/uninorm/test-u8-nfkd.c: New file.
77268         * tests/uninorm/test-u16-nfkd.c: New file.
77269         * tests/uninorm/test-u32-nfkd.c: New file.
77270         * tests/uninorm/test-u32-nfkd-big.sh: New file.
77271         * tests/uninorm/test-u32-nfkd-big.c: New file.
77272         * modules/uninorm/nfkd-tests: New file.
77274         New module 'uninorm/nfkd'.
77275         * lib/uninorm/nfkd.c: New file.
77276         * modules/uninorm/nfkd: New file.
77278         Tests for module 'uninorm/nfc'.
77279         * tests/uninorm/test-nfc.c: New file.
77280         * tests/uninorm/test-u8-nfc.c: New file.
77281         * tests/uninorm/test-u16-nfc.c: New file.
77282         * tests/uninorm/test-u32-nfc.c: New file.
77283         * tests/uninorm/test-u32-nfc-big.sh: New file.
77284         * tests/uninorm/test-u32-nfc-big.c: New file.
77285         * modules/uninorm/nfc-tests: New file.
77287         New module 'uninorm/nfc'.
77288         * lib/uninorm/nfc.c: New file.
77289         * modules/uninorm/nfc: New file.
77291         Tests for module 'uninorm/nfd'.
77292         * tests/uninorm/test-nfd.c: New file.
77293         * tests/uninorm/test-u8-nfd.c: New file.
77294         * tests/uninorm/test-u16-nfd.c: New file.
77295         * tests/uninorm/test-u32-nfd.c: New file.
77296         * tests/uninorm/test-u32-nfd-big.sh: New file.
77297         * tests/uninorm/test-u32-nfd-big.c: New file.
77298         * tests/uninorm/test-u32-normalize-big.h: New file.
77299         * tests/uninorm/test-u32-normalize-big.c: New file.
77300         * tests/uninorm/NormalizationTest.txt: New file, created from
77301         Unicode 5.1.0 NormalizationTest.txt.
77302         * modules/uninorm/nfd-tests: New file.
77304         New module 'uninorm/nfd'.
77305         * lib/uninorm/nfd.c: New file.
77306         * modules/uninorm/nfd: New file.
77308         New module 'uninorm/u32-normalize'.
77309         * lib/uninorm/u32-normalize.c: New file.
77310         * modules/uninorm/u32-normalize: New file.
77312         New module 'uninorm/u16-normalize'.
77313         * lib/uninorm/u16-normalize.c: New file.
77314         * modules/uninorm/u16-normalize: New file.
77316         New module 'uninorm/u8-normalize'.
77317         * lib/uninorm/u8-normalize.c: New file.
77318         * lib/uninorm/normalize-internal.h: New file.
77319         * lib/uninorm/u-normalize-internal.h: New file.
77320         * modules/uninorm/u8-normalize: New file.
77322         New module 'uninorm/decompose-internal'.
77323         * lib/uninorm/decompose-internal.c: New file.
77324         * modules/uninorm/decompose-internal: New file.
77326         Tests for module 'uninorm/composition'.
77327         * tests/uninorm/test-composition.c: New file.
77328         * modules/uninorm/composition-tests: New file.
77330         New module 'uninorm/composition'.
77331         * lib/uninorm/composition.c: New file.
77332         * lib/uninorm/composition-table.gperf: New file, generated by
77333         gen-uni-tables.
77334         * modules/uninorm/composition: New file.
77336         Tests for module 'uninorm/compat-decomposition'.
77337         * tests/uninorm/test-compat-decomposition.c: New file.
77338         * modules/uninorm/compat-decomposition-tests: New file.
77340         New module 'uninorm/compat-decomposition'.
77341         * lib/uninorm/decompose-internal.h: New file.
77342         * lib/uninorm/compat-decomposition.c: New file.
77343         * modules/uninorm/compat-decomposition: New file.
77345         Tests for module 'uninorm/canonical-decomposition'.
77346         * tests/uninorm/test-canonical-decomposition.c: New file.
77347         * modules/uninorm/canonical-decomposition-tests: New file.
77349         New module 'uninorm/canonical-decomposition'.
77350         * lib/uninorm/canonical-decomposition.c: New file.
77351         * modules/uninorm/canonical-decomposition: New file.
77353         Tests for module 'uninorm/decomposition'.
77354         * tests/uninorm/test-decomposition.c: New file.
77355         * modules/uninorm/decomposition-tests: New file.
77357         New module 'uninorm/decomposition'.
77358         * lib/uninorm/decomposition.c: New file.
77359         * modules/uninorm/decomposition: New file.
77361         New module 'uninorm/decomposition-table'.
77362         * lib/uninorm/decomposition-table.h: New file.
77363         * lib/uninorm/decomposition-table.c: New file.
77364         * lib/uninorm/decomposition-table1.h: New file, generated by
77365         gen-uni-tables.
77366         * lib/uninorm/decomposition-table2.h: New file, generated by
77367         gen-uni-tables.
77368         * modules/uninorm/decomposition-table: New file.
77370         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
77371         (UC_DECOMP_*): New enumeration items.
77372         (get_decomposition): New function.
77373         (struct decomp_table): New type.
77374         (output_decomposition, output_decomposition_tables): New functions.
77375         (unicode_composition_exclusions): New variable.
77376         (fill_composition_exclusions, debug_output_composition_tables): New
77377         functions.
77378         (main): Accept one more argument. Invoke fill_composition_exclusions.
77379         Output decomposition and composition tables.
77381         New module 'uninorm/base'.
77382         * lib/uninorm.h: New file.
77383         * lib/unictype.h: Update comment.
77384         * modules/uninorm/base: New file.
77386 2009-02-21  David Lutterkort  <lutter@redhat.com>
77388         Tests for module 'safe-alloc'.
77389         * tests/test-safe-alloc.c: New file.
77390         * modules/safe-alloc-tests: New file.
77392         New module 'safe-alloc'.
77393         * lib/safe-alloc.h: New file.
77394         * lib/safe-alloc.c: New file.
77395         * m4/safe-alloc.m4: New file.
77396         * modules/safe-alloc: New file.
77397         * doc/safe-alloc.texi: New file.
77398         * doc/gnulib.texi: Include it.
77399         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
77400         safe-alloc.
77402 2009-02-18  Bruno Haible  <bruno@clisp.org>
77404         Fix link error on non-glibc systems.
77405         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
77406         variable.
77407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77409 2009-02-18  Jim Meyering  <meyering@redhat.com>
77411         fts: avoid used-uninitialized error due to recent change
77412         * lib/fts.c (fts_read): Guard uses of the new member,
77413         parent->fts_n_dirs_remaining, since it's not relevant for
77414         the parent of a directory specified on the command-line.
77416 2009-02-17  James Youngman  <jay@gnu.org>
77417             Bruno Haible  <bruno@clisp.org>
77419         * m4/include_next.m4: Reformulate comment.
77421 2009-02-16  Jim Meyering  <meyering@redhat.com>
77423         fts: add #if guards so that the fts_lgpl module still builds
77424         * lib/fts.c: Guard just-added hash-table-using parts with
77425         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
77426         Reported by Simon Josefsson.
77428 2009-02-15  Bruno Haible  <bruno@clisp.org>
77430         * modules/array-mergesort-tests: New file.
77431         * tests/test-array-mergesort.c: New file.
77433         New module 'array-mergesort'.
77434         * modules/array-mergesort: New file.
77435         * lib/array-mergesort.h: New file.
77437 2009-02-15  Bruno Haible  <bruno@clisp.org>
77439         Fix 2009-02-07 commit.
77440         * lib/gen-uni-tables.c (output_predicate, output_category,
77441         output_combclass, output_bidi_category, output_decimal_digit,
77442         output_digit, output_numeric, output_mirror, output_scripts,
77443         output_ident_category, output_simple_mapping): Fix format directives.
77444         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
77446 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
77448         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
77449         fixes are available from IBM.
77451 2009-02-13  Jim Meyering  <meyering@redhat.com>
77453         fts: arrange not to stat non-directories in more cases
77454         This makes GNU find (when it doesn't need to stat each file)
77455         *much* more efficient at traversing reiserfs file systems.
77456         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
77457         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
77458         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
77459         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
77460         (leaf_optimization_applies): New function.
77461         (LCO_hash, LCO_compare): New helper functions.
77462         (link_count_optimize_ok): New function.
77463         (fts_stat): Initialize new member (if dir).
77464         (fts_read): Decrement parent's fts_n_dirs_remaining count if
77465         we've just stat'ed a directory.  Skip the stat call when possible.
77466         ---
77467         Note this AFS-related exchange:
77468         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
77469         and note find's pioctl call in find/fstype.c.
77470         But that is necessary only if you want to enable the
77471         optimization for AFS, and for now, I don't.
77473         fts: move a function definition "up" (no semantic change)
77474         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
77475         "up" to precede upcoming use of a related function.
77477 2009-02-11  Jim Meyering  <meyering@redhat.com>
77479         fts: correct internal computation of nlinks (optimization-related)
77480         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
77481         whether the current entry is a directory, so don't test it.
77483 2009-02-10  Bruno Haible  <bruno@clisp.org>
77485         Tests for module 'uniwbrk/ulc-wordbreaks'.
77486         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
77487         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
77488         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
77490         Tests for module 'uniwbrk/u32-wordbreaks'.
77491         * modules/uniwbrk/u32-wordbreaks-tests: New file.
77492         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
77494         Tests for module 'uniwbrk/u16-wordbreaks'.
77495         * modules/uniwbrk/u16-wordbreaks-tests: New file.
77496         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
77498         Tests for module 'uniwbrk/u8-wordbreaks'.
77499         * modules/uniwbrk/u8-wordbreaks-tests: New file.
77500         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
77502 2009-02-10  Bruno Haible  <bruno@clisp.org>
77504         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
77505         property.
77506         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
77507         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
77508         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
77510 2009-02-10  Simon Josefsson  <simon@josefsson.org>
77512         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
77513         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
77515 2009-02-10  Bruno Haible  <bruno@clisp.org>
77517         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
77518         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
77519         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
77520         * lib/unilbrk/u8-possible-linebreaks.c: Update.
77521         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
77522         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
77524 2009-02-09  Simon Josefsson  <simon@josefsson.org>
77526         * lib/sockets.h (gl_fd_to_handle): New function.
77528         * tests/test-sockets.c: Call gl_fd_to_handle.
77530 2009-02-09  Bruno Haible  <bruno@clisp.org>
77532         * doc/havelib.texi: Document the conventions on bi-arch systems.
77534 2009-02-08  Bruno Haible  <bruno@clisp.org>
77536         Document the AC_LIB_LINKFLAGS macro.
77537         * doc/havelib.texi: New file, mostly written on 2005-05-24.
77538         * doc/gnulib.texi: Include it.
77540 2009-02-08  Bruno Haible  <bruno@clisp.org>
77542         Fix wrong order of sections, compared to TOC.
77543         * doc/gnulib.texi: Include relocatable-maint.texi after the
77544         "Regular expressions" node, not before.
77546 2009-02-08  Bruno Haible  <bruno@clisp.org>
77548         Tests for module 'unicase/totitle'.
77549         * modules/unicase/totitle-tests: New file.
77551         Tests for module 'unicase/tolower'.
77552         * modules/unicase/tolower-tests: New file.
77554         Tests for module 'unicase/toupper'.
77555         * modules/unicase/toupper-tests: New file.
77556         * tests/unicase/test-mapping-part1.h: New file.
77557         * tests/unicase/test-mapping-part2.h: New file.
77559         New module 'unicase/totitle'.
77560         * modules/unicase/totitle: New file.
77561         * lib/unicase/totitle.c: New file.
77563         New module 'unicase/tolower'.
77564         * modules/unicase/tolower: New file.
77565         * lib/unicase/tolower.c: New file.
77567         New module 'unicase/toupper'.
77568         * modules/unicase/toupper: New file.
77569         * lib/unicase/toupper.c: New file.
77570         * lib/unicase/simple-mapping.h: New file.
77572         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
77573         (mapping_table): New structure.
77574         (output_simple_mapping): New function.
77575         (main): Invoke output_simple_mapping_test and output_simple_mapping.
77576         * modules/gen-uni-tables (Description): Update.
77577         * lib/unicase/toupper.h: New file, automatically generated by
77578         gen-uni-tables.
77579         * lib/unicase/tolower.h: New file, automatically generated by
77580         gen-uni-tables.
77581         * lib/unicase/totitle.h: New file, automatically generated by
77582         gen-uni-tables.
77583         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
77584         gen-uni-tables.
77585         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
77586         gen-uni-tables.
77587         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
77588         gen-uni-tables.
77590         New module 'unicase/base'.
77591         * modules/unicase/base: New file.
77592         * lib/unicase.h: New file.
77594 2009-02-08  Bruno Haible  <bruno@clisp.org>
77596         New module 'uniwbrk/ulc-wordbreaks'.
77597         * modules/uniwbrk/ulc-wordbreaks: New file.
77598         * lib/uniwbrk/ulc-wordbreaks.c: New file.
77600         New module 'uniwbrk/u32-wordbreaks'.
77601         * modules/uniwbrk/u32-wordbreaks: New file.
77602         * lib/uniwbrk/u32-wordbreaks.c: New file.
77604         New module 'uniwbrk/u16-wordbreaks'.
77605         * modules/uniwbrk/u16-wordbreaks: New file.
77606         * lib/uniwbrk/u16-wordbreaks.c: New file.
77608         New module 'uniwbrk/u8-wordbreaks'.
77609         * modules/uniwbrk/u8-wordbreaks: New file.
77610         * lib/uniwbrk/u8-wordbreaks.c: New file.
77611         * lib/uniwbrk/u-wordbreaks.h: New file.
77613         New module 'uniwbrk/table'.
77614         * modules/uniwbrk/table: New file.
77615         * lib/uniwbrk/wbrktable.h: New file.
77616         * lib/uniwbrk/wbrktable.c: New file.
77618         New module 'uniwbrk/wordbreak-property'.
77619         * modules/uniwbrk/wordbreak-property: New file.
77620         * lib/uniwbrk/wordbreak-property.c: New file.
77622         * lib/gen-uni-tables.c (WBP_*): New enum items.
77623         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
77624         (unicode_org_wbp): New variable.
77625         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
77626         New functions.
77627         (wbp_table): New structure.
77628         (output_wbp, output_wbrk_tables): New functions.
77629         (main): Accept additional argument. Invoke fill_org_wbp,
77630         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
77631         output_wbrk_tables.
77632         * modules/gen-uni-tables (Description): Update.
77633         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
77634         gen-uni-tables.
77636         New module 'uniwbrk/base'.
77637         * modules/uniwbrk/base: New file.
77638         * lib/uniwbrk.h: New file.
77640 2009-02-08  Bruno Haible  <bruno@clisp.org>
77642         Update to Unicode 5.1.0.
77643         * lib/gen-uni-tables.c (is_property_alphabetic): Include
77644         U+2185..U+2188.
77645         (is_property_default_ignorable_code_point): Don't include characters
77646         of category Cc or Cs and not-a-characters.
77647         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
77648         U+0D79, U+109E, U+109F, U+A60C.
77649         * lib/unictype/bidi_of.h: Regenerated.
77650         * lib/unictype/blocks.h: Regenerated.
77651         * lib/unictype/categ_C.h: Regenerated.
77652         * lib/unictype/categ_Cf.h: Regenerated.
77653         * lib/unictype/categ_Cn.h: Regenerated.
77654         * lib/unictype/categ_L.h: Regenerated.
77655         * lib/unictype/categ_Ll.h: Regenerated.
77656         * lib/unictype/categ_Lm.h: Regenerated.
77657         * lib/unictype/categ_Lo.h: Regenerated.
77658         * lib/unictype/categ_Lu.h: Regenerated.
77659         * lib/unictype/categ_M.h: Regenerated.
77660         * lib/unictype/categ_Mc.h: Regenerated.
77661         * lib/unictype/categ_Me.h: Regenerated.
77662         * lib/unictype/categ_Mn.h: Regenerated.
77663         * lib/unictype/categ_N.h: Regenerated.
77664         * lib/unictype/categ_Nd.h: Regenerated.
77665         * lib/unictype/categ_Nl.h: Regenerated.
77666         * lib/unictype/categ_No.h: Regenerated.
77667         * lib/unictype/categ_P.h: Regenerated.
77668         * lib/unictype/categ_Pd.h: Regenerated.
77669         * lib/unictype/categ_Pe.h: Regenerated.
77670         * lib/unictype/categ_Pf.h: Regenerated.
77671         * lib/unictype/categ_Pi.h: Regenerated.
77672         * lib/unictype/categ_Po.h: Regenerated.
77673         * lib/unictype/categ_Ps.h: Regenerated.
77674         * lib/unictype/categ_S.h: Regenerated.
77675         * lib/unictype/categ_Sk.h: Regenerated.
77676         * lib/unictype/categ_Sm.h: Regenerated.
77677         * lib/unictype/categ_So.h: Regenerated.
77678         * lib/unictype/categ_of.h: Regenerated.
77679         * lib/unictype/combining.h: Regenerated.
77680         * lib/unictype/ctype_alnum.h: Regenerated.
77681         * lib/unictype/ctype_alpha.h: Regenerated.
77682         * lib/unictype/ctype_graph.h: Regenerated.
77683         * lib/unictype/ctype_lower.h: Regenerated.
77684         * lib/unictype/ctype_print.h: Regenerated.
77685         * lib/unictype/ctype_punct.h: Regenerated.
77686         * lib/unictype/ctype_upper.h: Regenerated.
77687         * lib/unictype/decdigit.h: Regenerated.
77688         * lib/unictype/digit.h: Regenerated.
77689         * lib/unictype/mirror.h: Regenerated.
77690         * lib/unictype/numeric.h: Regenerated.
77691         * lib/unictype/pr_alphabetic.h: Regenerated.
77692         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
77693         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
77694         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
77695         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
77696         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
77697         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
77698         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
77699         * lib/unictype/pr_combining.h: Regenerated.
77700         * lib/unictype/pr_dash.h: Regenerated.
77701         * lib/unictype/pr_decimal_digit.h: Regenerated.
77702         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
77703         * lib/unictype/pr_deprecated.h: Regenerated.
77704         * lib/unictype/pr_diacritic.h: Regenerated.
77705         * lib/unictype/pr_extender.h: Regenerated.
77706         * lib/unictype/pr_format_control.h: Regenerated.
77707         * lib/unictype/pr_grapheme_base.h: Regenerated.
77708         * lib/unictype/pr_grapheme_extend.h: Regenerated.
77709         * lib/unictype/pr_grapheme_link.h: Regenerated.
77710         * lib/unictype/pr_id_continue.h: Regenerated.
77711         * lib/unictype/pr_id_start.h: Regenerated.
77712         * lib/unictype/pr_ideographic.h: Regenerated.
77713         * lib/unictype/pr_ignorable_control.h: Regenerated.
77714         * lib/unictype/pr_lowercase.h: Regenerated.
77715         * lib/unictype/pr_math.h: Regenerated.
77716         * lib/unictype/pr_numeric.h: Regenerated.
77717         * lib/unictype/pr_other_alphabetic.h: Regenerated.
77718         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
77719         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
77720         * lib/unictype/pr_other_id_continue.h: Regenerated.
77721         * lib/unictype/pr_other_lowercase.h: Regenerated.
77722         * lib/unictype/pr_other_math.h: Regenerated.
77723         * lib/unictype/pr_punctuation.h: Regenerated.
77724         * lib/unictype/pr_sentence_terminal.h: Regenerated.
77725         * lib/unictype/pr_soft_dotted.h: Regenerated.
77726         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
77727         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
77728         * lib/unictype/pr_unified_ideograph.h: Regenerated.
77729         * lib/unictype/pr_uppercase.h: Regenerated.
77730         * lib/unictype/pr_xid_continue.h: Regenerated.
77731         * lib/unictype/pr_xid_start.h: Regenerated.
77732         * lib/unictype/pr_zero_width.h: Regenerated.
77733         * lib/unictype/scripts.h: Regenerated.
77734         * lib/unictype/scripts_byname.gperf: Regenerated.
77735         * lib/unictype/sy_java_ident.h: Regenerated.
77736         * lib/unilbrk/lbrkprop1.h: Regenerated.
77737         * lib/unilbrk/lbrkprop2.h: Regenerated.
77738         * tests/unictype/test-categ_C.c: Regenerated.
77739         * tests/unictype/test-categ_Cf.c: Regenerated.
77740         * tests/unictype/test-categ_Cn.c: Regenerated.
77741         * tests/unictype/test-categ_L.c: Regenerated.
77742         * tests/unictype/test-categ_Ll.c: Regenerated.
77743         * tests/unictype/test-categ_Lm.c: Regenerated.
77744         * tests/unictype/test-categ_Lo.c: Regenerated.
77745         * tests/unictype/test-categ_Lu.c: Regenerated.
77746         * tests/unictype/test-categ_M.c: Regenerated.
77747         * tests/unictype/test-categ_Mc.c: Regenerated.
77748         * tests/unictype/test-categ_Me.c: Regenerated.
77749         * tests/unictype/test-categ_Mn.c: Regenerated.
77750         * tests/unictype/test-categ_N.c: Regenerated.
77751         * tests/unictype/test-categ_Nd.c: Regenerated.
77752         * tests/unictype/test-categ_Nl.c: Regenerated.
77753         * tests/unictype/test-categ_No.c: Regenerated.
77754         * tests/unictype/test-categ_P.c: Regenerated.
77755         * tests/unictype/test-categ_Pd.c: Regenerated.
77756         * tests/unictype/test-categ_Pe.c: Regenerated.
77757         * tests/unictype/test-categ_Pf.c: Regenerated.
77758         * tests/unictype/test-categ_Pi.c: Regenerated.
77759         * tests/unictype/test-categ_Po.c: Regenerated.
77760         * tests/unictype/test-categ_Ps.c: Regenerated.
77761         * tests/unictype/test-categ_S.c: Regenerated.
77762         * tests/unictype/test-categ_Sk.c: Regenerated.
77763         * tests/unictype/test-categ_Sm.c: Regenerated.
77764         * tests/unictype/test-categ_So.c: Regenerated.
77765         * tests/unictype/test-ctype_alnum.c: Regenerated.
77766         * tests/unictype/test-ctype_alpha.c: Regenerated.
77767         * tests/unictype/test-ctype_graph.c: Regenerated.
77768         * tests/unictype/test-ctype_lower.c: Regenerated.
77769         * tests/unictype/test-ctype_print.c: Regenerated.
77770         * tests/unictype/test-ctype_punct.c: Regenerated.
77771         * tests/unictype/test-ctype_upper.c: Regenerated.
77772         * tests/unictype/test-decdigit.h: Regenerated.
77773         * tests/unictype/test-digit.h: Regenerated.
77774         * tests/unictype/test-numeric.h: Regenerated.
77775         * tests/unictype/test-pr_alphabetic.c: Regenerated.
77776         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
77777         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
77778         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
77779         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
77780         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
77781         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
77782         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
77783         * tests/unictype/test-pr_combining.c: Regenerated.
77784         * tests/unictype/test-pr_dash.c: Regenerated.
77785         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
77786         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
77787         * tests/unictype/test-pr_deprecated.c: Regenerated.
77788         * tests/unictype/test-pr_diacritic.c: Regenerated.
77789         * tests/unictype/test-pr_extender.c: Regenerated.
77790         * tests/unictype/test-pr_format_control.c: Regenerated.
77791         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
77792         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
77793         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
77794         * tests/unictype/test-pr_id_continue.c: Regenerated.
77795         * tests/unictype/test-pr_id_start.c: Regenerated.
77796         * tests/unictype/test-pr_ideographic.c: Regenerated.
77797         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
77798         * tests/unictype/test-pr_lowercase.c: Regenerated.
77799         * tests/unictype/test-pr_math.c: Regenerated.
77800         * tests/unictype/test-pr_numeric.c: Regenerated.
77801         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
77802         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
77803         Regenerated.
77804         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
77805         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
77806         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
77807         * tests/unictype/test-pr_other_math.c: Regenerated.
77808         * tests/unictype/test-pr_punctuation.c: Regenerated.
77809         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
77810         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
77811         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
77812         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
77813         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
77814         * tests/unictype/test-pr_uppercase.c: Regenerated.
77815         * tests/unictype/test-pr_xid_continue.c: Regenerated.
77816         * tests/unictype/test-pr_xid_start.c: Regenerated.
77817         * tests/unictype/test-pr_zero_width.c: Regenerated.
77819         Update to Unicode 5.1.0.
77820         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
77821         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
77822         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
77823         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
77824         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
77825         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
77826         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
77827         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
77828         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
77829         (nonspacing_table_ind): Update.
77830         * tests/uniwidth/test-uc_width2.sh: Update expected result.
77832         Update to Unicode 5.1.0.
77833         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
77834         code transform.
77835         * lib/uniname/uniname.c (unicode_character_name,
77836         unicode_name_character): Add the range 0x1Fxxx to the code transform.
77837         * lib/uniname/uninames.h: Regenerated.
77838         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
77840 2009-02-07  Bruno Haible  <bruno@clisp.org>
77842         Merge gen-ctype and gen-lbrk into a single program.
77843         * lib/gen-uni-tables.c: New file, incorporating
77844         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
77845         Add directory prefixes to the names of the generated files.
77846         * lib/unictype/gen-ctype.c: Remove file.
77847         * lib/unilbrk/gen-lbrk.c: Remove file.
77848         * modules/gen-uni-tables: New file.
77849         * modules/unictype/gen-ctype: Remove file.
77850         * modules/unilbrk/gen-lbrk: Remove file.
77852 2009-02-07  Bruno Haible  <bruno@clisp.org>
77854         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
77856         New module 'unistr/u32-strcoll'.
77857         * modules/unistr/u32-strcoll: New file.
77858         * lib/unistr/u32-strcoll.c: New file.
77860         New module 'unistr/u16-strcoll'.
77861         * modules/unistr/u16-strcoll: New file.
77862         * lib/unistr/u16-strcoll.c: New file.
77864         New module 'unistr/u8-strcoll'.
77865         * modules/unistr/u8-strcoll: New file.
77866         * lib/unistr/u8-strcoll.c: New file.
77867         * lib/unistr/u-strcoll.h: New file.
77869 2009-02-07  Bruno Haible  <bruno@clisp.org>
77871         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
77872         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
77873         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
77874         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
77875         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
77876         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
77878 2009-02-07  Bruno Haible  <bruno@clisp.org>
77880         Make 64-bit clean.
77881         * lib/unictype/gen-ctype.c (output_predicate, output_category,
77882         output_combclass, output_bidi_category, output_decimal_digit,
77883         output_digit, output_numeric, output_mirror, output_scripts,
77884         output_ident_category): Use proper width specifier in format strings.
77886 2009-02-07  Bruno Haible  <bruno@clisp.org>
77888         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
77889         failure behaviour.
77891 2009-02-07  Jim Meyering  <meyering@redhat.com>
77893         regex: avoid compilation failure with upcoming gcc-4.4
77894         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
77895         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
77896         "... error: integer overflow in preprocessor expression".
77898 2009-02-05  Ben Pfaff  <blp@gnu.org>
77900         Fix link errors on Windows when close module is used.
77901         * modules/close: Add $(LIB_CLOSE) to Link section.
77902         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
77903         $(LIB_CLOSE) on Windows.
77905 2009-02-05  Jim Meyering  <meyering@redhat.com>
77907         still avoid unused-parameter warnings, but do it cleanly
77908         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
77909         (get_fs_usage): Cast to void instead.
77910         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
77911         (dev_from_mount_options, read_file_system_list): Cast to void.
77912         Prompted by Bruno Haible.
77914 2009-02-04  Jim Meyering  <meyering@redhat.com>
77916         fsusage.c: correct copyright year
77917         * lib/fsusage.c: Reflect year in which the change is pushed into
77919         avoid misc. warnings
77920         * lib/fsusage.c (UNUSED_PARAM): Define.
77921         (get_fs_usage): Mark parameter "disk" as unused.
77922         * lib/getugroups.c (getgrent): Use "void" in prototype.
77923         * lib/mountlist.c: Mark unused parameters.
77924         (read_file_system_list): Declare a local with "const".
77925         * lib/nanosleep.c (getnow): Declare static.
77926         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
77928         dirfd: set errno upon failure
77929         * lib/dirfd.c: Include <errno.h>.
77930         Set errno to ENOTSUP when returning -1.
77931         * modules/dirfd (Depends-on): Add errno.
77932         Suggested by John Kodis <kodis@comcast.net>.
77934 2009-02-01  Bruno Haible  <bruno@clisp.org>
77936         Don't assume sizeof (long) >= sizeof (void *).
77937         * lib/memcmp.c: Include stdint.h.
77938         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
77939         srcp2 to 'const byte *'.
77940         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
77941         types to uintptr_t.
77942         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
77943         * modules/memcmp (Depends-on): Add stdint.
77944         Reported by Ozkan Sezer <sezeroz@gmail.com>.
77946 2009-01-30  Eric Blake  <ebb9@byu.net>
77948         fix more require-before-expand issues
77949         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
77950         expand, AC_PROG_AWK.
77951         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
77953 2009-01-28  Eric Blake  <ebb9@byu.net>
77955         version-etc: use consistent URL formatting
77956         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
77957         Improve formatting.  Use fputs for string without %.
77959 2009-01-28  Jim Meyering  <meyering@redhat.com>
77961         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
77962         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
77963         "underquoted definition of NAME" from autoconf-2.59.
77965 2009-01-28  Bruno Haible  <bruno@clisp.org>
77967         * doc/gnulib.texi: Add "Obsolete modules" to index.
77969 2009-01-28  Jim Meyering  <meyering@redhat.com>
77971         useless-if-before-free: recognize more variants
77972         * build-aux/useless-if-before-free: Also recognize e.g.,
77973         if (NULL != p) free (p);
77975 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
77977         test-getaddrinfo: skip (don't fail) this test when there's no network
77978         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
77979         on the presumption that it means you lack network access.
77981 2009-01-26  Jim Meyering  <meyering@redhat.com>
77983         fflush: avoid warnings on modern systems
77984         * lib/fflush.c (rpl_fflush): Move declarations of locals,
77985         pos and result, into scopes where they're used.
77987 2009-01-26  Eric Blake  <ebb9@byu.net>
77989         Silence warning reintroduced by recent extensions patch.
77990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
77991         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
77992         autoconf.
77994         Backport improved autoconf semantics of AC_DEFUN_ONCE.
77995         * m4/00gnulib.m4: New file.
77996         * gnulib-tool (func_get_filelist): Always use it.
77997         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
77998         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
78000 2009-01-25  Bruno Haible  <bruno@clisp.org>
78002         Make test-quotearg work on MacOS X and AIX.
78003         * tests/test-quotearg.sh: New file.
78004         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
78005         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
78006         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
78007         include <libintl.h>.
78008         (fake_locale): Remove variable.
78009         (gettext, dgettext, dcgettext): Remove functions.
78010         (main): Instead of setting a fake locale, set a real locale. Call
78011         textdomain and bindtextdomain.
78012         * modules/quotearg-tests (Files): Add the new files.
78013         (Depends-on): Add gettext, setenv, unsetenv.
78014         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
78015         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
78016         Augment TESTS_ENVIRONMENT.
78018 2009-01-25  Bruno Haible  <bruno@clisp.org>
78020         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
78021         fr_FR.ISO8859-1 locale on MacOS X.
78022         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
78023         ja_JP.eucJP locale on MacOS X.
78024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
78025         zh_CN.GB18030 locale on MacOS X.
78027 2009-01-25  Bruno Haible  <bruno@clisp.org>
78029         Avoid link errors on MacOS X 10.3.
78030         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
78031         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
78033 2009-01-25  Bruno Haible  <bruno@clisp.org>
78035         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78036         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
78037         * modules/pipe (Files): Remove m4/posix_spawn.m4.
78038         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78039         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
78040         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78041         posix_spawnattr_init, posix_spawnattr_setsigmask,
78042         posix_spawnattr_setflags, posix_spawnattr_destroy.
78044         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
78045         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
78046         * modules/execute (Files): Remove m4/posix_spawn.m4.
78047         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
78048         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
78049         posix_spawnattr_init, posix_spawnattr_setsigmask,
78050         posix_spawnattr_setflags, posix_spawnattr_destroy.
78052 2009-01-25  Bruno Haible  <bruno@clisp.org>
78054         * lib/glthread/threadlib.c: Include <stdlib.h>.
78056 2009-01-25  Bruno Haible  <bruno@clisp.org>
78058         * lib/glthread/threadlib.c (dummy): New declaration.
78060 2009-01-25  Bruno Haible  <bruno@clisp.org>
78062         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
78063         multibyte characters also for the GB18030 encoding. Don't crash when
78064         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
78066 2009-01-25  Bruno Haible  <bruno@clisp.org>
78068         Avoid redefining 'struct random_data' on OSF/1 5.1.
78069         * lib/stdlib.in.h: Include <random.h> if it exists.
78070         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
78071         HAVE_RANDOM_H. Include <random.h> when testing whether
78072         'struct random_data' exists.
78073         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
78075 2009-01-25  Bruno Haible  <bruno@clisp.org>
78077         Don't install charset.alias on MacOS X >= 10.3.
78078         * lib/localcharset.c (DARWIN7): New macro.
78079         (get_charset_aliases): Hardcode the result for Darwin7.
78080         * modules/localcharset (install-exec-local): Don't install
78081         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
78083 2009-01-25  Bruno Haible  <bruno@clisp.org>
78085         Don't install charset.alias on mingw and Cygwin.
78086         * modules/localcharset (install-exec-local): Don't install
78087         charset.alias on mingw and Cygwin, if the file does not yet exist.
78088         The result for these platforms is hardcoded in localcharset.c.
78090 2009-01-25  Bruno Haible  <bruno@clisp.org>
78092         Make it possible again to use AC_GNU_SOURCE together with gnulib.
78093         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
78094         before requiring AC_USE_SYSTEM_EXTENSIONS.
78096 2009-01-25  Jim Meyering  <meyering@redhat.com>
78098         c-strtod: avoid warnings
78099         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
78100         "assignment discards qualifiers from pointer target type" warnings.
78102 2009-01-24  Bruno Haible  <bruno@clisp.org>
78104         Add support for non-UTF-8 locales on MacOS X.
78105         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
78106         canonical encodings. For Darwin 7 and newer, don't map traditional
78107         encodings to UTF-8.
78108         Reported by Vincent Lefevre <vincent@vinc17.org>
78109         at <http://savannah.gnu.org/bugs/?25235>.
78111 2009-01-24  Bruno Haible  <bruno@clisp.org>
78113         * doc/gnulib.texi (Obsolete modules): New section.
78114         Reported by Mike Frysinger <vapier@gentoo.org>.
78116 2009-01-24  Bruno Haible  <bruno@clisp.org>
78118         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
78119         (%.dvi): New rule.
78121 2009-01-24  Bruno Haible  <bruno@clisp.org>
78123         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
78124         Reported by Eric Blake.
78126 2009-01-24  Bruno Haible  <bruno@clisp.org>
78128         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
78129         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
78130         Reported by Gary V. Vaughan <gary@gnu.org>.
78132 2009-01-24  Bruno Haible  <bruno@clisp.org>
78134         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
78136 2009-01-23  Bruno Haible  <bruno@clisp.org>
78138         Make c-strtod, c-strtold usable in libraries.
78139         * lib/c-strtod.c: Include string.h instead of xalloc.h.
78140         (C_STRTOD): Call strdup instead of xstrdup.
78141         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
78142         * modules/c-strtold (Depends-on): Likewise.
78143         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
78144         * NEWS: Mention the change.
78145         Reported by Michael Gold <mgold@ncf.ca>.
78147 2009-01-23  Jim Meyering  <meyering@redhat.com>
78149         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
78150         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
78151         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
78153 2009-01-23  Simon Josefsson  <simon@josefsson.org>
78155         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
78156         GNU CoreUtils.
78157         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
78158         * modules/version-etc (Description): Update.
78160 2009-01-22  Bruno Haible  <bruno@clisp.org>
78162         Cache the C locale object.
78163         * lib/c-strtod.c (c_locale_cache): New variable.
78164         (c_locale): New function.
78165         (C_STRTOD): Use it, and don't call freelocale.
78166         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
78167         Suggested by Paolo Bonzini.
78169 2009-01-21  Bruno Haible  <bruno@clisp.org>
78171         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
78172         conditions other than overflow.
78174 2009-01-21  Bruno Haible  <bruno@clisp.org>
78176         * lib/c-strtod.c: Include errno.h.
78177         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
78178         value from STRTOD_L and STRTOD.
78180 2009-01-21  Bruno Haible  <bruno@clisp.org>
78181         and Jim Meyering  <meyering@redhat.com>
78183         nanosleep: skip configure test (fail it) for apple universal builds
78184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
78185         universal builds, assume that nanosleep does not work.
78186         * modules/nanosleep (Depends-on): Add multiarch.
78188         mktime: skip configure test (fail it) for apple universal builds
78189         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
78190         universal builds, assume that mktime does not work.
78191         * modules/mktime (Depends-on): Add multiarch.
78193 2009-01-21  Eric Blake  <ebb9@byu.net>
78195         multiarch: avoid expand-before-require warning
78196         * modules/multiarch (configure.ac): Require, rather than expand,
78197         gl_MULTIARCH.
78198         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
78199         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
78200         enforce that all clients require it.  Partial reversion of
78201         2008-12-29 patch.
78203         error: avoid expand-before-require warning
78204         * modules/errno (configure.ac): Require, rather than expand,
78205         gl_HEADER_ERRNO_H.
78206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
78207         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
78208         enforce that all clients require it.
78210         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
78211         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
78212         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
78213         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
78215 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
78217         Revert:
78218         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78220         regex: do not depend on obsolete modules.
78221         * modules/regex: Remove memcmp and memmove.
78223 2009-01-20  Bruno Haible  <bruno@clisp.org>
78225         Make the 'link' module link on Windows NT 4.
78226         * lib/link.c (_WIN32_WINNT): Don't define.
78227         (CreateHardLinkFuncType): New type.
78228         (CreateHardLinkFunc, initialized): New variables.
78229         (initialize): New function.
78230         (link): Invoke CreateHardLink indirectly through the function pointer.
78232 2009-01-20  Bruno Haible  <bruno@clisp.org>
78234         Fix compilation failure on mingw.
78235         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
78237 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
78239         * doc/c-strtod.texi: Mention a couple of restrictions.
78241 2009-01-20  Jim Meyering  <meyering@redhat.com>
78243         gettimeofday: move more declarations out of functions
78244         * lib/gettimeofday.c: Move extern declarations of tzset and
78245         gmtime out of containing functions.  Prompted by Bruno Haible.
78247 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
78249         regex: do not depend on obsolete modules.
78250         * modules/regex: Remove memcmp and memmove.
78252 2009-01-19  Bruno Haible  <bruno@clisp.org>
78254         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78255         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
78256         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78257         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
78258         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
78260 2009-01-19  Bruno Haible  <bruno@clisp.org>
78262         * tests/test-link.c: Include <errno.h>.
78263         (main): Exit with code 77 when a hard link cannot be created due to
78264         the file system.
78265         * tests/test-link.sh: Skip test when a hard link cannot be created due
78266         to the file system.
78267         Suggested by Eric Blake.
78269 2009-01-19  Martin Lambers  <marlam@marlam.de>
78271         * modules/link-tests: New file.
78272         * tests/test-link.sh: New file.
78273         * tests/test-link.c: New file.
78275 2009-01-19  Eric Blake  <ebb9@byu.net>
78277         doc: mention another function added in cygwin 1.7.0
78278         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
78279         Another new function in cygwin 1.7.
78281 2009-01-19  Bruno Haible  <bruno@clisp.org>
78283         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
78284         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
78285         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
78286         gl_BIGENDIAN, not AC_C_BIGENDIAN.
78287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
78288         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
78289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
78290         * m4/md4.m4 (gl_MD4): Likewise.
78291         * m4/md5.m4 (gl_MD5): Likewise.
78292         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
78293         * m4/sha1.m4 (gl_SHA1): Likewise.
78294         * m4/sha256.m4 (gl_SHA256): Likewise.
78295         * m4/sha512.m4 (gl_SHA512): Likewise.
78297 2009-01-19  Bruno Haible  <bruno@clisp.org>
78299         * modules/uniname/uniname-tests (Depends-on): Add progname.
78300         * tests/uniname/test-uninames.c: Include progname.h.
78301         (main): Call set_program_name.
78303         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
78304         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
78305         (main): Call set_program_name.
78307         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
78308         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
78309         (main): Call set_program_name.
78311         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
78312         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
78313         (main): Call set_program_name.
78315         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
78316         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
78317         (main): Call set_program_name.
78319         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
78320         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
78321         (main): Call set_program_name.
78323         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
78324         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
78325         (main): Call set_program_name.
78327         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
78328         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
78329         (main): Call set_program_name.
78331         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
78332         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
78333         (main): Call set_program_name.
78335 2009-01-19  Eric Blake  <ebb9@byu.net>
78337         test-unistd: test previous patch
78338         * tests/test-unistd.c: Test *_FILENO macros.
78340         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
78341         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78342         Guarantee a definition.
78343         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
78344         * modules/unistd-safer (Depends-on): Add dependency on unistd.
78345         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
78346         * lib/dup-safer.c (STDERR_FILENO): Likewise.
78347         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78348         Likewise.
78349         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
78350         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
78351         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
78352         Likewise.
78353         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
78354         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
78355         (STDERR_FILENO): Likewise.
78356         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
78357         (STDERR_FILENO): Likewise.
78358         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
78359         (STDERR_FILENO): Likewise.
78360         Reported by Elbert Pol.
78362 2009-01-19  Eric Blake  <ebb9@byu.net>
78364         doc: mention more functions added in cygwin 1.7.0
78365         * doc/posix-functions/abort.texi (abort): Update wording related
78366         to cygwin.
78367         * doc/posix-functions/daylight.texi (daylight): Likewise.
78368         * doc/posix-functions/optarg.texi (optarg): Likewise.
78369         * doc/posix-functions/optarg.texi (opterr): Likewise.
78370         * doc/posix-functions/optarg.texi (optind): Likewise.
78371         * doc/posix-functions/optarg.texi (optopt): Likewise.
78372         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
78373         worked in 1.5.x, and was withdrawn in 1.7.
78374         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
78375         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
78376         cygwin versions.
78377         * doc/posix-functions/perror.texi (perror): Likewise.
78378         * doc/posix-functions/printf.texi (printf): Likewise.
78379         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
78380         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
78381         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
78382         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
78383         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
78384         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
78385         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
78386         Likewise.
78387         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
78388         Likewise.
78389         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
78390         this function.
78391         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
78392         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
78393         Likewise.
78394         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
78395         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
78396         * doc/posix-functions/confstr.texi (confstr): Likewise.
78397         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
78398         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
78399         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
78400         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
78401         * doc/posix-functions/fputws.texi (fputws): Likewise.
78402         * doc/posix-functions/fwide.texi (fwide): Likewise.
78403         * doc/posix-functions/getwc.texi (getwc): Likewise.
78404         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
78405         * doc/posix-functions/putwc.texi (putwc): Likewise.
78406         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
78407         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
78408         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
78409         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
78410         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
78411         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
78412         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
78413         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
78414         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
78415         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
78416         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
78418 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78420         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
78421         * lib/ioctl.c: Include <sys/ioctl.h>.
78423 2009-01-19  Simon Josefsson  <simon@josefsson.org>
78425         * modules/getdate-tests (Depends-on): Add progname.
78426         * tests/test-getdate.c: Use progname module, to avoid link errors
78427         on non-glibc systems.
78429 2009-01-18  Simon Josefsson  <simon@josefsson.org>
78431         * modules/filenamecat-tests (Depends-on): Add progname.
78432         * modules/fstrcmp-tests (Depends-on): Likewise.
78434         * tests/test-filenamecat.c: Use progname module, to avoid link
78435         errors on non-glibc systems.
78436         * tests/test-fstrcmp.c: Likewise.
78438 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
78440         gettimeofday: avoid warning: nested extern declaration of 'localtime'
78441         * lib/gettimeofday.c: Move extern declaration out of function.
78443 2009-01-18  Bruno Haible  <bruno@clisp.org>
78445         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
78446         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
78447         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
78449 2009-01-18  Bruno Haible  <bruno@clisp.org>
78451         * lib/strftime.c (MEMPCPY): Remove unused macro.
78452         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
78454 2009-01-18  Martin Lambers  <marlam@marlam.de>
78456         New module 'link'.
78457         * lib/unistd.in.h (link): New declaration.
78458         * lib/link.c: New file.
78459         * m4/link.m4: New file.
78460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
78461         HAVE_LINK.
78462         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
78463         * modules/link: New file.
78464         * doc/posix-functions/link.texi: Mention the new module.
78466 2009-01-18  Bruno Haible  <bruno@clisp.org>
78468         * tests/test-avltree_list.c (main): Call set_program_name.
78469         * tests/test-avltree_oset.c (main): Likewise.
78470         * tests/test-obstack-printf.c: Include progname.h.
78471         (main): Call set_program_name.
78472         * tests/test-quotearg.c: Include progname.h.
78473         (main): Call set_program_name.
78474         * tests/test-xmemdup0.c: Include progname.h.
78475         (main): Call set_program_name.
78477 2009-01-18  Bruno Haible  <bruno@clisp.org>
78479         New module 'alphasort'.
78480         * lib/dirent.in.h (alphasort): New declaration.
78481         * lib/alphasort.c: New file, from glibc with modifications.
78482         * m4/alphasort.m4: New file.
78483         * modules/alphasort: New file.
78484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
78485         HAVE_ALPHASORT.
78486         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
78487         HAVE_ALPHASORT.
78488         * doc/posix-functions/alphasort.texi: Mention the new module and the
78489         portability problems.
78491 2009-01-18  Bruno Haible  <bruno@clisp.org>
78493         New module 'scandir'.
78494         * lib/dirent.in.h (scandir): New declaration.
78495         * lib/scandir.c: New file, from glibc with modifications.
78496         * m4/scandir.m4: New file.
78497         * modules/scandir: New file.
78498         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
78499         HAVE_SCANDIR.
78500         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
78501         HAVE_SCANDIR.
78502         * doc/posix-functions/scandir.texi: Mention the new module and the
78503         portability problems.
78505 2009-01-17  Bruno Haible  <bruno@clisp.org>
78507         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
78508         Update documentation.
78509         (func_remove_suffix): Escape all dots in the suffix. Update
78510         documentation.
78511         (func_filter_filelist): Update documentation.
78512         Reported by Ralf Wildenhues.
78514 2009-01-17  Bruno Haible  <bruno@clisp.org>
78516         * modules/dprintf-posix-tests: New file.
78517         * tests/test-dprintf-posix.sh: New file.
78518         * tests/test-dprintf-posix.c: New file.
78520         New modules 'dprintf', 'dprintf-posix'.
78521         * lib/stdio.in.h (dprintf): New declaration.
78522         * lib/dprintf.c: New file.
78523         * m4/dprintf.m4: New file.
78524         * m4/dprintf-posix.m4: New file.
78525         * modules/dprintf: New file.
78526         * modules/dprintf-posix: New file.
78527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
78528         HAVE_DPRINTF, REPLACE_DPRINTF.
78529         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
78530         HAVE_DPRINTF, REPLACE_DPRINTF.
78531         * doc/posix-functions/dprintf.texi: Mention the new modules.
78533 2009-01-17  Bruno Haible  <bruno@clisp.org>
78535         * modules/vdprintf-posix-tests: New file.
78536         * tests/test-vdprintf-posix.sh: New file.
78537         * tests/test-vdprintf-posix.c: New file.
78539         New modules 'vdprintf', 'vdprintf-posix'.
78540         * lib/stdio.in.h (vdprintf): New declaration.
78541         * lib/vdprintf.c: New file.
78542         * m4/vdprintf.m4: New file.
78543         * m4/vdprintf-posix.m4: New file.
78544         * modules/vdprintf: New file.
78545         * modules/vdprintf-posix: New file.
78546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
78547         HAVE_VDPRINTF, REPLACE_VDPRINTF.
78548         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
78549         HAVE_VDPRINTF, REPLACE_VDPRINTF.
78550         * doc/posix-functions/vdprintf.texi: Mention the new modules.
78552 2009-01-17  Bruno Haible  <bruno@clisp.org>
78554         Fix replacement of fopen on mingw.
78555         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
78556         mingw.
78558 2009-01-17  Bruno Haible  <bruno@clisp.org>
78560         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
78561         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
78563 2009-01-17  Bruno Haible  <bruno@clisp.org>
78565         Avoid test-fflush2.sh failure on mingw.
78566         * tests/test-fflush2.c: Include binary-io.h.
78567         (main): Put standard input into binary mode.
78568         * modules/fflush-tests (Depends-on): Add binary-io.
78570 2009-01-17  Bruno Haible  <bruno@clisp.org>
78572         * lib/wchar.in.h: In another particular situation, include only the
78573         system's <wchar.h> file.
78574         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
78575         Reported by Albert Chin-A-Young <china@thewrittenword.com>
78576         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
78578 2009-01-17  Bruno Haible  <bruno@clisp.org>
78580         Support for stripping executables in --enable-relocatable.
78581         * build-aux/install-reloc: Expect one more argument, or an environment
78582         variable RELOC_STRIP_PROG. If set, strip the destination program and
78583         its wrapper.
78584         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
78585         RELOC_STRIP_PROG.
78586         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
78587         to set RELOCATABLE_STRIP.
78588         * NEWS: Mention the new Makefile requirement.
78590 2009-01-17  Bruno Haible  <bruno@clisp.org>
78592         * build-aux/install-reloc: Remove debugging information left over by
78593         C compiler on MacOS X.
78595 2009-01-17  Bruno Haible  <bruno@clisp.org>
78597         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
78598         * lib/progreloc.c (find_executable): Fix type of pointer passed to
78599         _NSGetExecutablePath.
78601 2009-01-16  Jim Meyering  <meyering@redhat.com>
78603         strerror: avoid warnings about discarding "const"
78604         * lib/strerror.c (rpl_strerror): Instead of returning a const
78605         string from each and every "case", use a variable, and add a single
78606         cast after the switch.
78608 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
78610         * lib/arpa_inet.in.h: Add extern "C" block for C++.
78612 2009-01-16  Bruno Haible  <bruno@clisp.org>
78614         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
78615         array initializer syntax that also works in C++ mode.
78616         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78618 2009-01-16  Jim Meyering  <meyering@redhat.com>
78620         poll: suppress a warning
78621         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
78622         to ignore "...unsigned expression < 0 is always false" warnings.
78624 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
78626         poll: remove declarations of unused variables
78627         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
78628         sockbuf and optlen.
78630 2009-01-15  Bruno Haible  <bruno@clisp.org>
78632         Make fflush-after-ungetc POSIX compliant on BSD systems.
78633         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
78634         (clear_ungetc_buffer): Implement also for other systems.
78635         (rpl_fflush): On glibc systems, invoke
78636         clear_ungetc_buffer_preserving_position. Otherwise, invoke
78637         clear_ungetc_buffer after fetching the stream's position, not before.
78639 2009-01-15  Bruno Haible  <bruno@clisp.org>
78641         Make fflush-after-ungetc POSIX compliant on glibc systems.
78642         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
78643         after ungetc.
78644         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
78645         (rpl_fflush): On glibc systems, simply call the system's fflush
78646         function after clearing the ungetc buffer.
78647         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
78648         Instead, lseek only to the end of file, then use the system's fseeko
78649         for the rest. On glibc systems, reset the EOF indicator bit.
78651 2009-01-15  Jim Meyering  <meyering@redhat.com>
78653         openmp.m4: revert quote-adding change, for portability to older autoconf
78654         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
78655         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
78656         Simon Josefsson noticed the problem when using autoconf-2.61.
78658 2009-01-15  Bruno Haible  <bruno@clisp.org>
78660         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
78661         * tests/test-fflush2.c (ASSERT): Always fail.
78662         (main): Add two tests for fflush() after ungetc(), taking into account
78663         the Austin Group's clarification.
78664         Suggested by Eric Blake.
78666 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
78668         mktime.m4: remove K&R-style function prototypes
78669         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
78670         for the Sun C++ compiler.
78672 2009-01-14  Bruno Haible  <bruno@clisp.org>
78674         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
78675         while including <wchar.h>.
78676         * lib/wchar.in.h: In two particular situations on HP-UX, include only
78677         the system's <wchar.h> file.
78678         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78680 2009-01-14  Bruno Haible  <bruno@clisp.org>
78682         * m4/csharp.m4: Don't mention gettext on the serial number line.
78683         * m4/csharpexec.m4: Likewise.
78684         * m4/eaccess.m4: Likewise.
78685         * m4/javaexec.m4: Likewise.
78686         * m4/sig_atomic_t.m4: Likewise.
78687         * m4/tmpdir.m4: Likewise.
78688         * m4/intldir.m4: Bump gettext version.
78689         * m4/lib-ld.m4: Likewise.
78691 2009-01-14  Bruno Haible  <bruno@clisp.org>
78693         * lib/progname.c (set_program_name): Add more comments.
78694         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78696 2009-01-14  Simon Josefsson  <simon@josefsson.org>
78698         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
78699         were sys/stat.h does not define it.
78701 2009-01-14  Jim Meyering  <meyering@redhat.com>
78703         many *.m4 files: improve m4 quoting
78704         99% of this change was performed by running the following commands:
78705         git ls-files | grep '\.m4$' | xargs perl -pi \
78706           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
78707           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
78708           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
78709           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
78710         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
78711         The remainder were to add Copyright dates, increment serial numbers,
78712         undo some changes in comments, exclude m4/intl.m4, and add quotes
78713         around the "1" in ",1" where the unusual spacing prohibited the
78714         above regexps from doing the job.  For more details, see
78715         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
78716         * m4/acl.m4: Modified.
78717         * m4/afs.m4: Likewise.
78718         * m4/alloca.m4: Likewise.
78719         * m4/argp.m4: Likewise.
78720         * m4/argz.m4: Likewise.
78721         * m4/atexit.m4: Likewise.
78722         * m4/bison-i18n.m4: Likewise.
78723         * m4/bison.m4: Likewise.
78724         * m4/byteswap.m4: Likewise.
78725         * m4/c-stack.m4: Likewise.
78726         * m4/c-strtod.m4: Likewise.
78727         * m4/calloc.m4: Likewise.
78728         * m4/canonicalize-lgpl.m4: Likewise.
78729         * m4/chown.m4: Likewise.
78730         * m4/clock_time.m4: Likewise.
78731         * m4/codeset.m4: Likewise.
78732         * m4/copy-file.m4: Likewise.
78733         * m4/csharp.m4: Likewise.
78734         * m4/csharpcomp.m4: Likewise.
78735         * m4/csharpexec.m4: Likewise.
78736         * m4/d-ino.m4: Likewise.
78737         * m4/d-type.m4: Likewise.
78738         * m4/dirfd.m4: Likewise.
78739         * m4/double-slash-root.m4: Likewise.
78740         * m4/eaccess.m4: Likewise.
78741         * m4/eealloc.m4: Likewise.
78742         * m4/environ.m4: Likewise.
78743         * m4/errno_h.m4: Likewise.
78744         * m4/euidaccess.m4: Likewise.
78745         * m4/execute.m4: Likewise.
78746         * m4/fatal-signal.m4: Likewise.
78747         * m4/fchdir.m4: Likewise.
78748         * m4/fcntl_h.m4: Likewise.
78749         * m4/fileblocks.m4: Likewise.
78750         * m4/filenamecat.m4: Likewise.
78751         * m4/findprog.m4: Likewise.
78752         * m4/flexmember.m4: Likewise.
78753         * m4/fnmatch.m4: Likewise.
78754         * m4/fopen.m4: Likewise.
78755         * m4/fpending.m4: Likewise.
78756         * m4/fprintf-posix.m4: Likewise.
78757         * m4/free.m4: Likewise.
78758         * m4/frexp.m4: Likewise.
78759         * m4/frexpl.m4: Likewise.
78760         * m4/fsusage.m4: Likewise.
78761         * m4/ftruncate.m4: Likewise.
78762         * m4/gc-camellia.m4: Likewise.
78763         * m4/gc-random.m4: Likewise.
78764         * m4/gc.m4: Likewise.
78765         * m4/getaddrinfo.m4: Likewise.
78766         * m4/getcwd-abort-bug.m4: Likewise.
78767         * m4/getcwd-path-max.m4: Likewise.
78768         * m4/getdate.m4: Likewise.
78769         * m4/getdomainname.m4: Likewise.
78770         * m4/getgroups.m4: Likewise.
78771         * m4/gethostname.m4: Likewise.
78772         * m4/gethrxtime.m4: Likewise.
78773         * m4/getline.m4: Likewise.
78774         * m4/getloadavg.m4: Likewise.
78775         * m4/getndelim2.m4: Likewise.
78776         * m4/getpass.m4: Likewise.
78777         * m4/gettext.m4: Likewise.
78778         * m4/gettime.m4: Likewise.
78779         * m4/gettimeofday.m4: Likewise.
78780         * m4/gnulib-common.m4: Likewise.
78781         * m4/group-member.m4: Likewise.
78782         * m4/host-os.m4: Likewise.
78783         * m4/iconv.m4: Likewise.
78784         * m4/iconv_open.m4: Likewise.
78785         * m4/inet_ntop.m4: Likewise.
78786         * m4/inet_pton.m4: Likewise.
78787         * m4/inline.m4: Likewise.
78788         * m4/intldir.m4: Likewise.
78789         * m4/intlmacosx.m4: Likewise.
78790         * m4/intmax.m4: Likewise.
78791         * m4/intmax_t.m4: Likewise.
78792         * m4/inttypes.m4: Likewise.
78793         * m4/inttypes_h.m4: Likewise.
78794         * m4/inttypes-pri.m4: Likewise.
78795         * m4/isapipe.m4: Likewise.
78796         * m4/isnand.m4: Likewise.
78797         * m4/isnanf.m4: Likewise.
78798         * m4/isnanl.m4: Likewise.
78799         * m4/javacomp.m4: Likewise.
78800         * m4/javaexec.m4: Likewise.
78801         * m4/jm-winsz1.m4: Likewise.
78802         * m4/jm-winsz2.m4: Likewise.
78803         * m4/lchown.m4: Likewise.
78804         * m4/lcmessage.m4: Likewise.
78805         * m4/ldexpl.m4: Likewise.
78806         * m4/lib-ld.m4: Likewise.
78807         * m4/lib-link.m4: Likewise.
78808         * m4/libsigsegv.m4: Likewise.
78809         * m4/link-follow.m4: Likewise.
78810         * m4/localcharset.m4: Likewise.
78811         * m4/locale-fr.m4: Likewise.
78812         * m4/locale-ja.m4: Likewise.
78813         * m4/locale-tr.m4: Likewise.
78814         * m4/locale-zh.m4: Likewise.
78815         * m4/lock.m4: Likewise.
78816         * m4/longlong.m4: Likewise.
78817         * m4/ls-mntd-fs.m4: Likewise.
78818         * m4/lstat.m4: Likewise.
78819         * m4/malloc.m4: Likewise.
78820         * m4/mathl.m4: Likewise.
78821         * m4/mbrtowc.m4: Likewise.
78822         * m4/mbstate_t.m4: Likewise.
78823         * m4/mbswidth.m4: Likewise.
78824         * m4/memchr.m4: Likewise.
78825         * m4/memcmp.m4: Likewise.
78826         * m4/memcpy.m4: Likewise.
78827         * m4/memmem.m4: Likewise.
78828         * m4/memmove.m4: Likewise.
78829         * m4/mempcpy.m4: Likewise.
78830         * m4/memrchr.m4: Likewise.
78831         * m4/memset.m4: Likewise.
78832         * m4/minmax.m4: Likewise.
78833         * m4/mkdir-slash.m4: Likewise.
78834         * m4/mkdtemp.m4: Likewise.
78835         * m4/mktime.m4: Likewise.
78836         * m4/mmap-anon.m4: Likewise.
78837         * m4/mountlist.m4: Likewise.
78838         * m4/nanosleep.m4: Likewise.
78839         * m4/nls.m4: Likewise.
78840         * m4/nocrash.m4: Likewise.
78841         * m4/open.m4: Likewise.
78842         * m4/openat.m4: Likewise.
78843         * m4/openmp.m4: Likewise.
78844         * m4/pathmax.m4: Likewise.
78845         * m4/perl.m4: Likewise.
78846         * m4/physmem.m4: Likewise.
78847         * m4/pipe.m4: Likewise.
78848         * m4/po.m4: Likewise.
78849         * m4/poll.m4: Likewise.
78850         * m4/posixtm.m4: Likewise.
78851         * m4/posixver.m4: Likewise.
78852         * m4/printf-frexp.m4: Likewise.
78853         * m4/printf-frexpl.m4: Likewise.
78854         * m4/printf-posix.m4: Likewise.
78855         * m4/printf-posix-rpl.m4: Likewise.
78856         * m4/printf.m4: Likewise.
78857         * m4/progtest.m4: Likewise.
78858         * m4/putenv.m4: Likewise.
78859         * m4/readline.m4: Likewise.
78860         * m4/readlink.m4: Likewise.
78861         * m4/readutmp.m4: Likewise.
78862         * m4/realloc.m4: Likewise.
78863         * m4/regex.m4: Likewise.
78864         * m4/relocatable.m4: Likewise.
78865         * m4/relocatable-lib.m4: Likewise.
78866         * m4/rename-dest-slash.m4: Likewise.
78867         * m4/rename.m4: Likewise.
78868         * m4/rmdir-errno.m4: Likewise.
78869         * m4/rmdir.m4: Likewise.
78870         * m4/roundf.m4: Likewise.
78871         * m4/roundl.m4: Likewise.
78872         * m4/rpmatch.m4: Likewise.
78873         * m4/save-cwd.m4: Likewise.
78874         * m4/selinux-selinux-h.m4: Likewise.
78875         * m4/setenv.m4: Likewise.
78876         * m4/settime.m4: Likewise.
78877         * m4/sig2str.m4: Likewise.
78878         * m4/sig_atomic_t.m4: Likewise.
78879         * m4/signalblocking.m4: Likewise.
78880         * m4/signbit.m4: Likewise.
78881         * m4/sigpipe.m4: Likewise.
78882         * m4/sockets.m4: Likewise.
78883         * m4/sockpfaf.m4: Likewise.
78884         * m4/st_dm_mode.m4: Likewise.
78885         * m4/stat-time.m4: Likewise.
78886         * m4/stdbool.m4: Likewise.
78887         * m4/stdint.m4: Likewise.
78888         * m4/stdint_h.m4: Likewise.
78889         * m4/stpcpy.m4: Likewise.
78890         * m4/stpncpy.m4: Likewise.
78891         * m4/strcase.m4: Likewise.
78892         * m4/strchrnul.m4: Likewise.
78893         * m4/strcspn.m4: Likewise.
78894         * m4/strdup.m4: Likewise.
78895         * m4/strftime.m4: Likewise.
78896         * m4/strndup.m4: Likewise.
78897         * m4/strnlen.m4: Likewise.
78898         * m4/strpbrk.m4: Likewise.
78899         * m4/strptime.m4: Likewise.
78900         * m4/strsep.m4: Likewise.
78901         * m4/strtod.m4: Likewise.
78902         * m4/strtoimax.m4: Likewise.
78903         * m4/strtok_r.m4: Likewise.
78904         * m4/strtol.m4: Likewise.
78905         * m4/strtoll.m4: Likewise.
78906         * m4/strtoul.m4: Likewise.
78907         * m4/strtoull.m4: Likewise.
78908         * m4/strtoumax.m4: Likewise.
78909         * m4/strverscmp.m4: Likewise.
78910         * m4/threadlib.m4: Likewise.
78911         * m4/timegm.m4: Likewise.
78912         * m4/tm_gmtoff.m4: Likewise.
78913         * m4/tmpdir.m4: Likewise.
78914         * m4/tmpfile.m4: Likewise.
78915         * m4/tzset.m4: Likewise.
78916         * m4/uintmax_t.m4: Likewise.
78917         * m4/unlinkdir.m4: Likewise.
78918         * m4/unlocked-io.m4: Likewise.
78919         * m4/uptime.m4: Likewise.
78920         * m4/userspec.m4: Likewise.
78921         * m4/utimbuf.m4: Likewise.
78922         * m4/utime.m4: Likewise.
78923         * m4/utimes-null.m4: Likewise.
78924         * m4/utimes.m4: Likewise.
78925         * m4/vararrays.m4: Likewise.
78926         * m4/vasnprintf.m4: Likewise.
78927         * m4/vfprintf-posix.m4: Likewise.
78928         * m4/vprintf-posix.m4: Likewise.
78929         * m4/wait-process.m4: Likewise.
78930         * m4/wchar_t.m4: Likewise.
78931         * m4/wint_t.m4: Likewise.
78932         * m4/write-any-file.m4: Likewise.
78933         * m4/yield.m4: Likewise.
78935 2009-01-13  Bruno Haible  <bruno@clisp.org>
78937         Avoid test-copy-file.sh failures when ACL support insufficient.
78938         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
78939         TESTS_ENVIRONMENT.
78940         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
78941         Reported by Jim Meyering.
78943 2009-01-13  Bruno Haible  <bruno@clisp.org>
78945         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
78946         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
78947         * modules/unistdio/u8-printf-parse (Files): Likewise.
78948         * modules/unistdio/u32-printf-parse (Files): Likewise.
78949         * modules/unistdio/ulc-printf-parse (Files): Likewise.
78951 2009-01-13  Simon Josefsson  <simon@josefsson.org>
78953         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
78954         and m4/inttypes_h.m4 too.
78956 2009-01-12  Eric Blake  <ebb9@byu.net>
78958         tests: IRIX 6.2 cc can't compile -0.0 into .data
78959         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
78960         rather than at compile-time.
78961         * tests/test-floorl.c (minus_zero): Likewise.
78962         * tests/test-frexpl.c (minus_zero): Likewise.
78963         * tests/test-isnan.c (minus_zerol): Likewise.
78964         * tests/test-isnanl.h (minus_zero): Likewise.
78965         * tests/test-ldexpl.c (minus_zero): Likewise.
78966         * tests/test-roundl.c (minus_zero): Likewise.
78967         * tests/test-signbit.c (minus_zerol): Likewise.
78968         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
78969         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
78970         * tests/test-truncl.c (minus_zero): Likewise.
78971         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
78972         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
78973         Reported by Tom G. Christensen and Nelson H. F. Beebe.
78975 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
78977         regex: fix glibc bug 9697
78978         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
78979         handling.
78981 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
78983         regex: fix glibc bug 697
78984         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
78985         being NULL also if there are no backreferences.
78987 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
78989         regex: merge glibc changes
78990         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
78991         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
78992         re_string_skip_chars, re_string_reconstruct): Likewise.
78993         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
78995 2009-01-07  Jim Meyering  <meyering@redhat.com>
78997         poll: filter through cppi
78998         * lib/poll.c: Indent cpp directives to reflect nesting.
79000 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
79002         poll: don't return uninitialized
79003         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
79005 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
79007         avoid compile failure on AIX 6.1
79008         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
79009         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
79011 2009-01-04  Jim Meyering  <meyering@redhat.com>
79013         remove duplicate inclusion of <stdio.h>
79014         * tests/test-fprintf-posix.c: Likewise.
79015         * tests/test-printf-posix.c: Likewise.
79016         * tests/test-snprintf-posix.c: Likewise.
79017         * tests/test-sprintf-posix.c: Likewise.
79018         * tests/test-vasprintf-posix.c: Likewise.
79019         * tests/test-vfprintf-posix.c: Likewise.
79020         * tests/test-vprintf-posix.c: Likewise.
79021         * tests/test-vsnprintf-posix.c: Likewise.
79022         * tests/test-vsprintf-posix.c: Likewise.
79024 2009-01-03  Jim Meyering  <meyering@redhat.com>
79026         gnulib-tool: fix sed-based filtering
79027         * gnulib-tool (func_filter_filelist): Remove extra backslash
79028         in sed_fff_filter definition.
79030 2009-01-02  Jim Meyering  <meyering@redhat.com>
79032         strftime: avoid compilation failure on Solaris 2.6
79033         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
79034         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
79035         Don't #define mbrlen or mbsinit, since now they're guaranteed to
79036         be available.  Reported by Tom G. Christensen.  Details in
79037         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
79039 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79040             Bruno Haible  <bruno@clisp.org>
79042         Speed up gnulib-tool by doing more string processing through shell
79043         built-ins.
79044         * gnulib-tool (fast_func_append): New variable.
79045         (func_remove_prefix, func_remove_suffix): New functions.
79046         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
79047         (func_filter_filelist): New function.
79048         (func_get_dependencies): Use func_remove_suffix instead of sed.
79049         (func_get_automake_snippet): Use func_filter_filelist instead of a
79050         subshell and sed invocation.
79052 2009-01-01  Bruno Haible  <bruno@clisp.org>
79054         Fix a security bug.
79055         * gnulib-tool (func_import, import, update): Don't allow the characters
79056         '"', '$', '`', '\' in macro arguments that become part of commands that
79057         are evaluated.
79059 2009-01-01  Bruno Haible  <bruno@clisp.org>
79061         * gnulib-tool (func_reset_sigpipe): Add more comments.
79063 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79065         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
79066         func_emit_tests_Makefile_am, func_import): Abort loops early if we
79067         already know the answer.
79069 2009-01-01  Jim Meyering  <meyering@redhat.com>
79071         * lib/version-etc.c (version_etc_va): Update copyright year.
79073 2008-12-30  Bruno Haible  <bruno@clisp.org>
79075         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
79076         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
79077         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
79079 2008-12-29  Eric Blake  <ebb9@byu.net>
79081         multiarch: avoid autoconf AC_REQUIRE bug
79082         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
79083         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
79084         2.63 and older.
79085         Reported by Bruno Haible, and analyzed in
79086         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
79088 2008-12-29  Bruno Haible  <bruno@clisp.org>
79090         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
79091         files in subdirectories correctly.
79092         Reported by Ralf Wildenhues.
79094 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79096         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
79097         rather than 'join FILE -', for Solaris join.
79099 2008-12-29  Bruno Haible  <bruno@clisp.org>
79101         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
79102         quoting.
79103         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79104         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
79105         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
79106         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
79107         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
79108         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
79109         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
79110         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
79111         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79112         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
79113         * m4/nls.m4 (AM_NLS): Likewise.
79114         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
79115         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
79116         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79117         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
79118         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
79119         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
79120         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
79121         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
79122         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
79123         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
79124         * m4/xsize.m4 (gl_XSIZE): Likewise.
79125         Suggested by Jim Meyering.
79127 2008-11-17  Bruce Korb  <bkorb@gnu.org>
79129         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
79130         * lib/parse-duration.c: use a switch instead of cascading if's.
79132 2008-12-29  Eric Blake  <ebb9@byu.net>
79134         wchar.h: supply WEOF on Irix 5.3
79135         * lib/wchar.in.h (wint_t): Also supply WEOF.
79136         * lib/wctype.in.h (wint_t): Likewise.
79137         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
79138         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
79139         Reported by Tom G. Christensen.
79141 2008-12-26  Bruno Haible  <bruno@clisp.org>
79143         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
79144         i486, i586, i686.
79146 2008-12-26  Bruno Haible  <bruno@clisp.org>
79148         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
79150 2008-12-26  Bruno Haible  <bruno@clisp.org>
79152         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
79153         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
79154         not __STDC_CONSTANT_MACROS.
79155         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
79157 2008-12-25  Bruno Haible  <bruno@clisp.org>
79159         Add support for universal builds to vasnprintf.
79160         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
79161         universal builds, guess no.
79162         * modules/vasnprintf-posix (Depends-on): Add multiarch.
79163         * modules/vasprintf-posix (Depends-on): Likewise.
79164         * modules/fprintf-posix (Depends-on): Likewise.
79165         * modules/vfprintf-posix (Depends-on): Likewise.
79166         * modules/snprintf-posix (Depends-on): Likewise.
79167         * modules/vsnprintf-posix (Depends-on): Likewise.
79168         * modules/sprintf-posix (Depends-on): Likewise.
79169         * modules/vsprintf-posix (Depends-on): Likewise.
79170         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79178         Add support for universal builds to <inttypes.h>.
79179         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
79180         _SCNu64_PREFIX): In Apple
79181         universal builds, define directly, using _LP64.
79182         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
79183         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
79184         * modules/inttypes (Depends-on): Add multiarch.
79185         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79187         Add support for universal builds to <stdint.h>.
79188         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
79189         universal builds, define directly, using _LP64.
79190         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
79191         Apple universal builds, don't test for the size and suffix of ptrdiff_t
79192         and size_t.
79193         * modules/stdint (Depends-on): Add multiarch.
79194         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
79196         New module 'multiarch'.
79197         * modules/multiarch: New file.
79198         * m4/multiarch.m4: New file.
79200 2008-12-25  Bruno Haible  <bruno@clisp.org>
79202         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
79204 2008-12-25  Bruno Haible  <bruno@clisp.org>
79206         * modules/btowc (License): Relicense under LGPLv2+.
79207         * modules/mbsinit (License): Likewise.
79208         * modules/mbrtowc (License): Likewise.
79209         * modules/wcrtomb (License): Likewise.
79210         * modules/streq (License): Likewise.
79211         Reported by David Lutterkort <lutter@redhat.com>.
79213 2008-12-23  Bruno Haible  <bruno@clisp.org>
79215         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
79217 2008-12-23  Bruno Haible  <bruno@clisp.org>
79219         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
79220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
79221         GETADDRINFO_LIB, not in LIBS.
79222         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
79223         * modules/canon-host (Link): Likewise.
79224         * NEWS: Mention the change.
79225         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
79226         GETADDRINFO_LIB.
79228 2008-12-22  Bruno Haible  <bruno@clisp.org>
79230         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
79231         * doc/posix-functions/iswalpha_l.texi: Likewise.
79232         * doc/posix-functions/iswblank_l.texi: Likewise.
79233         * doc/posix-functions/iswcntrl_l.texi: Likewise.
79234         * doc/posix-functions/iswctype_l.texi: Likewise.
79235         * doc/posix-functions/iswdigit_l.texi: Likewise.
79236         * doc/posix-functions/iswgraph_l.texi: Likewise.
79237         * doc/posix-functions/iswlower_l.texi: Likewise.
79238         * doc/posix-functions/iswprint_l.texi: Likewise.
79239         * doc/posix-functions/iswpunct_l.texi: Likewise.
79240         * doc/posix-functions/iswspace_l.texi: Likewise.
79241         * doc/posix-functions/iswupper_l.texi: Likewise.
79242         * doc/posix-functions/iswxdigit_l.texi: Likewise.
79243         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
79244         * doc/posix-functions/open_wmemstream.texi: Likewise.
79245         * doc/posix-functions/swscanf.texi: Likewise.
79246         * doc/posix-functions/towctrans_l.texi: Likewise.
79247         * doc/posix-functions/towlower.texi: Likewise.
79248         * doc/posix-functions/towlower_l.texi: Likewise.
79249         * doc/posix-functions/towupper.texi: Likewise.
79250         * doc/posix-functions/towupper_l.texi: Likewise.
79251         * doc/posix-functions/vfwprintf.texi: Likewise.
79252         * doc/posix-functions/vfwscanf.texi: Likewise.
79253         * doc/posix-functions/vswscanf.texi: Likewise.
79254         * doc/posix-functions/vwprintf.texi: Likewise.
79255         * doc/posix-functions/vwscanf.texi: Likewise.
79256         * doc/posix-functions/wcpcpy.texi: Likewise.
79257         * doc/posix-functions/wcpncpy.texi: Likewise.
79258         * doc/posix-functions/wcscasecmp.texi: Likewise.
79259         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
79260         * doc/posix-functions/wcscoll_l.texi: Likewise.
79261         * doc/posix-functions/wcsdup.texi: Likewise.
79262         * doc/posix-functions/wcsncasecmp.texi: Likewise.
79263         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
79264         * doc/posix-functions/wcsnlen.texi: Likewise.
79265         * doc/posix-functions/wcsnrtombs.texi: Likewise.
79266         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
79267         * doc/posix-functions/wctrans_l.texi: Likewise.
79268         * doc/posix-functions/wctype_l.texi: Likewise.
79269         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
79270         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
79271         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
79272         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
79273         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
79274         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
79275         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
79276         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
79277         * doc/glibc-functions/wcschrnul.texi: Likewise.
79278         * doc/glibc-functions/wcsftime_l.texi: Likewise.
79279         * doc/glibc-functions/wcstod_l.texi: Likewise.
79280         * doc/glibc-functions/wcstof_l.texi: Likewise.
79281         * doc/glibc-functions/wcstol_l.texi: Likewise.
79282         * doc/glibc-functions/wcstold_l.texi: Likewise.
79283         * doc/glibc-functions/wcstoll_l.texi: Likewise.
79284         * doc/glibc-functions/wcstoq.texi: Likewise.
79285         * doc/glibc-functions/wcstoul_l.texi: Likewise.
79286         * doc/glibc-functions/wcstoull_l.texi: Likewise.
79287         * doc/glibc-functions/wcstouq.texi: Likewise.
79288         * doc/glibc-functions/wmempcpy.texi: Likewise.
79290 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
79291             Eric Blake  <ebb9@byu.net>
79292             Paolo Bonzini  <bonzini@gnu.org>
79293             Bruno Haible  <bruno@clisp.org>
79295         Make c-stack work on Haiku.
79296         * lib/c-stack.c (SA_ONSTACK): Define fallback.
79297         (c_stack_action): Use SA_ONSTACK flag.
79299 2008-12-22  Bruno Haible  <bruno@clisp.org>
79301         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
79303 2008-12-22  Bruno Haible  <bruno@clisp.org>
79305         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
79306         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
79307         being overridden.
79308         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
79309         New macros.
79310         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
79311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
79312         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
79313         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
79315 2008-12-22  Bruno Haible  <bruno@clisp.org>
79317         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
79318         from test code.
79320 2008-12-22  Eric Blake  <ebb9@byu.net>
79322         Avoid gcc warnings on cygwin.
79323         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
79324         Avoid unused variable.
79325         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
79326         Likewise.
79328 2008-12-22  Bruno Haible  <bruno@clisp.org>
79330         Remove HAVE_MBRTOWC conditionals.
79331         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
79332         (mbscasecmp): Assume mbrtowc function.
79333         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
79334         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
79335         * lib/mbschr.c: Include mbuiter.h unconditionally.
79336         (mbschr): Assume mbrtowc function.
79337         * lib/mbscspn.c: Include mbuiter.h unconditionally.
79338         (mbscspn): Assume mbrtowc function.
79339         * lib/mbslen.c: Include mbuiter.h unconditionally.
79340         (mbslen): Assume mbrtowc function.
79341         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
79342         (mbsncasecmp): Assume mbrtowc function.
79343         * lib/mbsnlen.c: Include mbiter.h unconditionally.
79344         (mbsnlen): Assume mbrtowc function.
79345         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
79346         (mbspbrk): Assume mbrtowc function.
79347         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
79348         (mbspcasecmp): Assume mbrtowc function.
79349         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
79350         (mbsrchr): Assume mbrtowc function.
79351         * lib/mbssep.c: Include mbuiter.h unconditionally.
79352         (mbssep): Assume mbrtowc function.
79353         * lib/mbsspn.c: Include mbuiter.h unconditionally.
79354         (mbsspn): Assume mbrtowc function.
79355         * lib/mbsstr.c: Include mbuiter.h unconditionally.
79356         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
79357         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
79358         (mbstok_r): Assume mbrtowc function.
79359         * lib/propername.c: Include mbuiter.h unconditionally.
79360         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
79361         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
79362         (trim2): Assume mbrtowc function.
79363         * lib/mbswidth.c (mbsinit): Remove fallback definition.
79364         (mbsnwidth): Assume mbrtowc function.
79365         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
79366         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
79367         fallback definitions.
79368         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
79370 2008-12-22  Bruno Haible  <bruno@clisp.org>
79372         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
79374 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
79376         * modules/regex: Request emulations for the mb*/wc* functions we need.
79377         * m4/regex.m4: Don't look for those functions here.
79378         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
79380 2008-12-22  Bruno Haible  <bruno@clisp.org>
79382         * modules/fnmatch (Depends-on): Remove duplicated dependency.
79384 2008-12-21  Bruno Haible  <bruno@clisp.org>
79386         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
79387         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
79388         (Include): Remove conditionalization.
79389         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
79390         (Include): Remove conditionalization.
79391         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
79392         (Include): Remove conditionalization.
79393         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
79394         * m4/mbfile.m4 (gl_MBFILE): Likewise.
79395         * NEWS: Mention the change.
79396         Reported by Alan Hourihane <alanh@fairlite.co.uk>
79397         via Sergey Poznyakoff <gray@gnu.org.ua>.
79399 2008-12-21  Bruno Haible  <bruno@clisp.org>
79401         * MODULES.html.sh (Extended multibyte and wide character utilities
79402         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
79403         wcrtomb, wcsrtombs.
79404         (Support for systems lacking POSIX:2008): Add accept, bind, close,
79405         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
79406         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
79407         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
79409 2008-12-21  Bruno Haible  <bruno@clisp.org>
79411         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
79413 2008-12-21  Bruno Haible  <bruno@clisp.org>
79415         * modules/wcsnrtombs-tests: New file.
79416         * tests/test-wcsnrtombs1.sh: New file.
79417         * tests/test-wcsnrtombs2.sh: New file.
79418         * tests/test-wcsnrtombs3.sh: New file.
79419         * tests/test-wcsnrtombs4.sh: New file.
79420         * tests/test-wcsnrtombs.c: New file.
79422         New module 'wcsnrtombs'.
79423         * lib/wchar.in.h (wcsnrtombs): New declaration.
79424         * lib/wcsnrtombs.c: New file.
79425         * lib/wcsrtombs-state.c: New file.
79426         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
79427         (internal_state): Remove variable.
79428         * m4/wcsnrtombs.m4: New file.
79429         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
79430         compilation units.
79431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
79432         HAVE_WCSNRTOMBS.
79433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
79434         HAVE_WCSNRTOMBS.
79435         * modules/wcsnrtombs: New file.
79436         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
79437         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
79439 2008-12-21  Bruno Haible  <bruno@clisp.org>
79441         * modules/wcsrtombs-tests: New file.
79442         * tests/test-wcsrtombs1.sh: New file.
79443         * tests/test-wcsrtombs2.sh: New file.
79444         * tests/test-wcsrtombs3.sh: New file.
79445         * tests/test-wcsrtombs4.sh: New file.
79446         * tests/test-wcsrtombs.c: New file.
79448         New module 'wcsrtombs'.
79449         * lib/wchar.in.h (wcsrtombs): New declaration.
79450         * lib/wcsrtombs.c: New file.
79451         * m4/wcsrtombs.m4: New file.
79452         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
79453         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
79455         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
79456         * modules/wcsrtombs: New file.
79457         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
79458         bugs.
79460 2008-12-21  Bruno Haible  <bruno@clisp.org>
79462         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
79463         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
79464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
79465         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
79466         if not correct.
79467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
79468         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
79469         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
79470         m4/locale-zh.m4, m4/codeset.m4.
79471         * doc/posix-functions/wcrtomb.texi: Document the bug.
79473 2008-12-21  Bruno Haible  <bruno@clisp.org>
79475         Work around a btowc() bug on IRIX 6.5.
79476         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
79477         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
79478         REPLACE_WTOBC if not.
79479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
79480         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
79481         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
79483 2008-12-21  Bruno Haible  <bruno@clisp.org>
79485         * modules/wcrtomb-tests: New file.
79486         * tests/test-wcrtomb.sh: New file.
79487         * tests/test-wcrtomb.c: New file.
79489         New module 'wcrtomb'.
79490         * lib/wchar.in.h (wcrtomb): New declaration.
79491         * lib/wcrtomb.c: New file.
79492         * m4/wcrtomb.m4: New file.
79493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
79494         HAVE_WCRTOMB.
79495         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
79496         HAVE_WCRTOMB.
79497         * modules/wcrtomb: New file.
79498         * doc/posix-functions/wcrtomb.texi: Mention the new module.
79500 2008-12-21  Bruno Haible  <bruno@clisp.org>
79502         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
79503         * modules/mbsrtowcs (Files): Likewise.
79504         * modules/wctob (Files): Likewise.
79505         * modules/c-strcase-tests (Files): Likewise.
79506         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
79507         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
79508         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
79509         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
79510         * modules/vasnprintf-posix-tests (Files): Likewise.
79512 2008-12-21  William Pursell  <bill.pursell@gmail.com>
79514         gitlog-to-changelog: pass all command-line arguments to git-log
79515         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
79516         it is sometimes convenient to filter the commits in various ways.
79517         gitlog-to-changelog only allows --since to specify a start date,
79518         but git-log itself supports many other filtering mechanisms.
79519         At the moment, I want to filter by branch name.  Rather than
79520         adding a --branch option to gitlog-to-changelog, it seems more
79521         flexible to simply pass all options directly to git-log and let
79522         git do the work.  Notice that this effectively makes --since a
79523         redundant option for gitlog-to-changelog, but removing it would
79524         require current usage to change since calls would then require
79525         an additional '--'.
79527 2008-12-21  Bruno Haible  <bruno@clisp.org>
79529         * modules/mbsnrtowcs-tests: New file.
79530         * tests/test-mbsnrtowcs1.sh: New file.
79531         * tests/test-mbsnrtowcs2.sh: New file.
79532         * tests/test-mbsnrtowcs3.sh: New file.
79533         * tests/test-mbsnrtowcs4.sh: New file.
79534         * tests/test-mbsnrtowcs.c: New file.
79536         New module 'mbsnrtowcs'.
79537         * lib/wchar.in.h (mbsnrtowcs): New declaration.
79538         * lib/mbsnrtowcs.c: New file.
79539         * lib/mbsrtowcs-state.c: New file.
79540         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
79541         (internal_state): Remove variable.
79542         * m4/mbsnrtowcs.m4: New file.
79543         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
79544         compilation units.
79545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
79546         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
79547         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
79548         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
79549         * modules/mbsnrtowcs: New file.
79550         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
79551         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
79552         portability problem.
79554 2008-12-21  Bruno Haible  <bruno@clisp.org>
79556         Work around mbsrtowcs bug.
79557         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
79558         (gl_FUNC_MBSRTOWCS): Invoke it.
79559         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
79560         m4/locale-zh.m4.
79561         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
79563 2008-12-21  Bruno Haible  <bruno@clisp.org>
79565         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
79567 2008-12-21  Bruno Haible  <bruno@clisp.org>
79569         Update doc for AIX.
79570         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
79571         16-bit wchar_t type.
79572         * doc/posix-functions/btowc.texi: Likewise.
79573         * doc/posix-functions/fgetwc.texi: Likewise.
79574         * doc/posix-functions/fgetws.texi: Likewise.
79575         * doc/posix-functions/fputwc.texi: Likewise.
79576         * doc/posix-functions/fputws.texi: Likewise.
79577         * doc/posix-functions/fwide.texi: Likewise.
79578         * doc/posix-functions/fwprintf.texi: Likewise.
79579         * doc/posix-functions/fwscanf.texi: Likewise.
79580         * doc/posix-functions/getwchar.texi: Likewise.
79581         * doc/posix-functions/getwc.texi: Likewise.
79582         * doc/posix-functions/iswalnum.texi: Likewise.
79583         * doc/posix-functions/iswalpha.texi: Likewise.
79584         * doc/posix-functions/iswblank.texi: Likewise.
79585         * doc/posix-functions/iswcntrl.texi: Likewise.
79586         * doc/posix-functions/iswctype.texi: Likewise.
79587         * doc/posix-functions/iswdigit.texi: Likewise.
79588         * doc/posix-functions/iswgraph.texi: Likewise.
79589         * doc/posix-functions/iswlower.texi: Likewise.
79590         * doc/posix-functions/iswprint.texi: Likewise.
79591         * doc/posix-functions/iswpunct.texi: Likewise.
79592         * doc/posix-functions/iswspace.texi: Likewise.
79593         * doc/posix-functions/iswupper.texi: Likewise.
79594         * doc/posix-functions/iswxdigit.texi: Likewise.
79595         * doc/posix-functions/mbrtowc.texi: Likewise.
79596         * doc/posix-functions/mbsrtowcs.texi: Likewise.
79597         * doc/posix-functions/mbstowcs.texi: Likewise.
79598         * doc/posix-functions/mbtowc.texi: Likewise.
79599         * doc/posix-functions/putwchar.texi: Likewise.
79600         * doc/posix-functions/putwc.texi: Likewise.
79601         * doc/posix-functions/swprintf.texi: Likewise.
79602         * doc/posix-functions/tolower.texi: Likewise.
79603         * doc/posix-functions/toupper.texi: Likewise.
79604         * doc/posix-functions/towctrans.texi: Likewise.
79605         * doc/posix-functions/ungetwc.texi: Likewise.
79606         * doc/posix-functions/vswprintf.texi: Likewise.
79607         * doc/posix-functions/wcrtomb.texi: Likewise.
79608         * doc/posix-functions/wcscat.texi: Likewise.
79609         * doc/posix-functions/wcschr.texi: Likewise.
79610         * doc/posix-functions/wcscmp.texi: Likewise.
79611         * doc/posix-functions/wcscoll.texi: Likewise.
79612         * doc/posix-functions/wcscpy.texi: Likewise.
79613         * doc/posix-functions/wcscspn.texi: Likewise.
79614         * doc/posix-functions/wcsftime.texi: Likewise.
79615         * doc/posix-functions/wcslen.texi: Likewise.
79616         * doc/posix-functions/wcsncat.texi: Likewise.
79617         * doc/posix-functions/wcsncmp.texi: Likewise.
79618         * doc/posix-functions/wcsncpy.texi: Likewise.
79619         * doc/posix-functions/wcspbrk.texi: Likewise.
79620         * doc/posix-functions/wcsrchr.texi: Likewise.
79621         * doc/posix-functions/wcsrtombs.texi: Likewise.
79622         * doc/posix-functions/wcsspn.texi: Likewise.
79623         * doc/posix-functions/wcsstr.texi: Likewise.
79624         * doc/posix-functions/wcstod.texi: Likewise.
79625         * doc/posix-functions/wcstof.texi: Likewise.
79626         * doc/posix-functions/wcstoimax.texi: Likewise.
79627         * doc/posix-functions/wcstok.texi: Likewise.
79628         * doc/posix-functions/wcstold.texi: Likewise.
79629         * doc/posix-functions/wcstoll.texi: Likewise.
79630         * doc/posix-functions/wcstol.texi: Likewise.
79631         * doc/posix-functions/wcstombs.texi: Likewise.
79632         * doc/posix-functions/wcstoull.texi: Likewise.
79633         * doc/posix-functions/wcstoul.texi: Likewise.
79634         * doc/posix-functions/wcstoumax.texi: Likewise.
79635         * doc/posix-functions/wcswidth.texi: Likewise.
79636         * doc/posix-functions/wcsxfrm.texi: Likewise.
79637         * doc/posix-functions/wctob.texi: Likewise.
79638         * doc/posix-functions/wctomb.texi: Likewise.
79639         * doc/posix-functions/wctrans.texi: Likewise.
79640         * doc/posix-functions/wctype.texi: Likewise.
79641         * doc/posix-functions/wcwidth.texi: Likewise.
79642         * doc/posix-functions/wmemchr.texi: Likewise.
79643         * doc/posix-functions/wmemcmp.texi: Likewise.
79644         * doc/posix-functions/wmemcpy.texi: Likewise.
79645         * doc/posix-functions/wmemmove.texi: Likewise.
79646         * doc/posix-functions/wmemset.texi: Likewise.
79647         * doc/posix-functions/wprintf.texi: Likewise.
79648         * doc/posix-functions/wscanf.texi: Likewise.
79650 2008-12-21  Bruno Haible  <bruno@clisp.org>
79652         Update doc for HP-UX 11.11.
79653         * doc/posix-functions/btowc.texi: Clarify that the function is missing
79654         in HP-UX version 11.00, not in all versions of HP-UX 11.
79655         * doc/posix-functions/fwide.texi: Likewise.
79656         * doc/posix-functions/fwprintf.texi: Likewise.
79657         * doc/posix-functions/fwscanf.texi: Likewise.
79658         * doc/posix-functions/inet_ntop.texi: Likewise.
79659         * doc/posix-functions/inet_pton.texi: Likewise.
79660         * doc/posix-functions/mbrlen.texi: Likewise.
79661         * doc/posix-functions/mbrtowc.texi: Likewise.
79662         * doc/posix-functions/mbsinit.texi: Likewise.
79663         * doc/posix-functions/mbsrtowcs.texi: Likewise.
79664         * doc/posix-functions/swprintf.texi: Likewise.
79665         * doc/posix-functions/swscanf.texi: Likewise.
79666         * doc/posix-functions/towctrans.texi: Likewise.
79667         * doc/posix-functions/vfwprintf.texi: Likewise.
79668         * doc/posix-functions/vswprintf.texi: Likewise.
79669         * doc/posix-functions/vwprintf.texi: Likewise.
79670         * doc/posix-functions/wcrtomb.texi: Likewise.
79671         * doc/posix-functions/wcsrtombs.texi: Likewise.
79672         * doc/posix-functions/wcsstr.texi: Likewise.
79673         * doc/posix-functions/wctob.texi: Likewise.
79674         * doc/posix-functions/wctrans.texi: Likewise.
79675         * doc/posix-functions/wmemchr.texi: Likewise.
79676         * doc/posix-functions/wmemcmp.texi: Likewise.
79677         * doc/posix-functions/wmemcpy.texi: Likewise.
79678         * doc/posix-functions/wmemmove.texi: Likewise.
79679         * doc/posix-functions/wmemset.texi: Likewise.
79680         * doc/posix-functions/wprintf.texi: Likewise.
79681         * doc/posix-functions/wscanf.texi: Likewise.
79683 2008-12-21  Bruno Haible  <bruno@clisp.org>
79685         Work around a portability problem.
79686         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
79687         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
79689 2008-12-20  Bruno Haible  <bruno@clisp.org>
79691         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
79692         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
79693         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
79694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
79695         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
79697         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
79698         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
79699         set.
79700         (GNULIB_defined_mbstate_t): New macro.
79701         (mbsinit): Redefine if REPLACE_MBSINIT is set.
79702         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
79703         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
79704         reuses the system's mbrtowc function but works around the bugs.
79705         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
79706         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
79707         macros.
79708         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
79709         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
79710         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
79711         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
79712         REPLACE_MBSINIT if mbsinit needs to be overridden.
79713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
79714         REPLACE_MBSINIT, REPLACE_MBRTOWC.
79715         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
79716         REPLACE_MBSINIT, REPLACE_MBRTOWC.
79717         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
79718         m4/locale-zh.m4.
79719         (Depends): Add mbsinit.
79720         * modules/mbsinit (Depends): Add mbrtowc.
79721         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
79723 2008-12-20  Bruno Haible  <bruno@clisp.org>
79725         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
79726         so that there are no conversion errors on AIX.
79727         * tests/test-mbsrtowcs.c (main): LIkewise.
79729 2008-12-20  Bruno Haible  <bruno@clisp.org>
79731         Work around wctob bug on Solaris <= 9.
79732         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
79733         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
79734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
79735         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
79736         * modules/wctob (Files): Add m4/locale-fr.m4.
79737         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
79739 2008-12-20  Bruno Haible  <bruno@clisp.org>
79741         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
79742         /dev/null.
79743         * tests/test-select-in.sh: Likewise.
79744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79746 2008-12-20  Bruno Haible  <bruno@clisp.org>
79748         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
79749         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
79750         Cygwin 1.5.x.
79752 2008-12-20  Bruno Haible  <bruno@clisp.org>
79754         Ensure mbstate_t is defined on HP-UX 11.11.
79755         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
79756         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
79757         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
79758         AC_USE_SYSTEM_EXTENSIONS.
79759         * modules/fnmatch (Depends-on): Add extensions.
79760         * modules/mbrlen (Depends-on): Likewise.
79761         * modules/mbrtowc (Depends-on): Likewise.
79762         * modules/mbsinit (Depends-on): Likewise.
79763         * modules/mbsrtowcs (Depends-on): Likewise.
79764         * modules/mbswidth (Depends-on): Likewise.
79765         * modules/quotearg (Depends-on): Likewise.
79766         * modules/strftime (Depends-on): Likewise.
79768 2008-12-20  Bruno Haible  <bruno@clisp.org>
79770         Ensure wctob is declared on IRIX 6.5.
79771         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
79772         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
79773         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
79774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
79775         of HAVE_WCTOB.
79776         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
79777         HAVE_WCTOB.
79778         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
79780 2008-12-19  Bruno Haible  <bruno@clisp.org>
79782         * modules/mbsrtowcs-tests: New file.
79783         * tests/test-mbsrtowcs1.sh: New file.
79784         * tests/test-mbsrtowcs2.sh: New file.
79785         * tests/test-mbsrtowcs3.sh: New file.
79786         * tests/test-mbsrtowcs4.sh: New file.
79787         * tests/test-mbsrtowcs.c: New file.
79789         New module 'mbsrtowcs'.
79790         * lib/wchar.in.h (mbsrtowcs): New declaration.
79791         * lib/mbsrtowcs.c: New file.
79792         * m4/mbsrtowcs.m4: New file.
79793         * modules/mbsrtowcs: New file.
79794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
79795         HAVE_MBSRTOWCS.
79796         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
79797         HAVE_MBSRTOWCS.
79798         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
79800 2008-12-19  Bruno Haible  <bruno@clisp.org>
79802         New module 'mbrlen'.
79803         * lib/wchar.in.h (mbrlen): New declaration.
79804         * lib/mbrlen.c: New file.
79805         * m4/mbrlen.m4: New file.
79806         * modules/mbrlen: New file.
79807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
79808         HAVE_MBRLEN.
79809         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
79810         HAVE_MBRLEN.
79811         * doc/posix-functions/mbrlen.texi: Document the new module.
79813 2008-12-19  Bruno Haible  <bruno@clisp.org>
79815         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
79816         * modules/mbrtowc (Depends-on): Add verify.
79817         Suggested by Paul Eggert.
79819 2008-12-18  Bruno Haible  <bruno@clisp.org>
79821         * modules/mbsinit-tests: New file.
79822         * tests/test-mbsinit.sh: New file.
79823         * tests/test-mbsinit.c: New file.
79825 2008-12-18  Bruno Haible  <bruno@clisp.org>
79827         * modules/mbrtowc-tests: New file.
79828         * tests/test-mbrtowc1.sh: New file.
79829         * tests/test-mbrtowc2.sh: New file.
79830         * tests/test-mbrtowc3.sh: New file.
79831         * tests/test-mbrtowc4.sh: New file.
79832         * tests/test-mbrtowc.c: New file.
79834         New module 'mbrtowc'.
79835         * lib/wchar.in.h (mbstate_t): Override when the system does not have
79836         mbsinit and mbrtowc.
79837         (mbrtowc): New declaration.
79838         * lib/mbrtowc.c: New file.
79839         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
79840         * modules/mbrtowc: New file.
79841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
79842         HAVE_MBRTOWC.
79843         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
79844         HAVE_MBRTOWC.
79845         * doc/posix-functions/mbrtowc.texi: Document the new module.
79847 2008-12-18  Bruno Haible  <bruno@clisp.org>
79849         New module 'wctob'.
79850         * lib/wchar.in.h (wctob): New declaration.
79851         * lib/wctob.c: New file.
79852         * m4/wctob.m4: New file.
79853         * modules/wctob: New file.
79854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
79855         HAVE_WCTOB.
79856         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
79857         * doc/posix-functions/wctob.texi: Document the new module.
79859 2008-12-18  Bruno Haible  <bruno@clisp.org>
79861         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
79862         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
79864 2008-12-18  Simon Josefsson  <simon@josefsson.org>
79866         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
79867         G. Christensen" <tgc@jupiterrise.com>.
79869         * lib/flock.c: Need to include errno.h.  Reported by "Tom
79870         G. Christensen" <tgc@jupiterrise.com>.
79872         * lib/flock.c: Need to include string.h.  Reported by "Tom
79873         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
79874         <ebb9@byu.net>.
79876 2008-12-18  Bruno Haible  <bruno@clisp.org>
79878         * m4/locale-ja.m4: New file, from GNU gettext.
79880 2008-12-17  Bruno Haible  <bruno@clisp.org>
79882         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
79883         Suggested by Eric Blake.
79885 2008-12-17  Bruno Haible  <bruno@clisp.org>
79887         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
79889 2008-12-17  Bruno Haible  <bruno@clisp.org>
79891         * lib/mbsinit.c: Include verify.h. Verify an assumption.
79892         * modules/mbsinit (Depends-on): Add verify.
79893         Suggested by Paul Eggert.
79895 2008-12-17  Bruno Haible  <bruno@clisp.org>
79897         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
79898         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
79899         gl_FUNC_MBRTOWC.
79900         * m4/mbiter.m4 (gl_MBITER): LIkewise.
79901         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
79902         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
79903         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
79904         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
79905         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
79906         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
79907         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
79908         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
79909         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
79910         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
79911         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
79912         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
79913         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
79914         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
79915         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79916         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
79917         * modules/trim (configure.ac): Likewise.
79919 2008-12-17  Bruno Haible  <bruno@clisp.org>
79921         * modules/btowc-tests: New file.
79922         * tests/test-btowc1.sh: New file.
79923         * tests/test-btowc2.sh: New file.
79924         * tests/test-btowc.c: New file.
79926         New module 'btowc'.
79927         * lib/wchar.in.h (btowc): New declaration.
79928         * lib/btowc.c: New file.
79929         * m4/btowc.m4: New file.
79930         * modules/btowc: New file.
79931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
79932         HAVE_BTOWC.
79933         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
79934         * doc/posix-functions/btowc.texi: Document the new module.
79936 2008-12-17  Bruno Haible  <bruno@clisp.org>
79938         New module 'mbsinit'.
79939         * lib/wchar.in.h (mbsinit): New declaration.
79940         * lib/mbsinit.c: New file.
79941         * m4/mbsinit.m4: New file.
79942         * modules/mbsinit: New file.
79943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
79944         HAVE_MBSINIT.
79945         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
79946         HAVE_MBSINIT.
79947         * doc/posix-functions/mbsinit.texi: Document the new module.
79949 2008-12-16  Bruno Haible  <bruno@clisp.org>
79951         * lib/unistd.in.h: Add comment.
79952         * tests/test-environ.c: Don't include <stdlib.h>.
79954 2008-12-16  Bruno Haible  <bruno@clisp.org>
79956         * lib/parse-duration.h (parse_duration): Document return value
79957         convention.
79958         * lib/parse-duration.c: Include specification header first. Add
79959         comments.
79960         (_): Remove macro.
79961         (parse_year_month_day, parse_hour_minute_second): Move side effects
79962         outside of strchr call.
79963         (parse_non_iso8601): Move side effects outside of isspace call.
79964         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
79965         call.
79967 2008-12-16  Bruno Haible  <bruno@clisp.org>
79969         * tests/test-parse-duration.sh: Produce no output when the test
79970         succeeds.
79972 2008-12-16  Bruno Haible  <bruno@clisp.org>
79974         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
79975         expressions.
79977 2008-12-15  Bruno Haible  <bruno@clisp.org>
79979         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
79980         * doc/glibc-functions/flistxattr.texi: Likewise.
79981         * doc/glibc-functions/fopencookie.texi: Likewise.
79982         * doc/glibc-functions/fremovexattr.texi: Likewise.
79983         * doc/glibc-functions/fsetxattr.texi: Likewise.
79984         * doc/glibc-functions/getxattr.texi: Likewise.
79985         * doc/glibc-functions/lgetxattr.texi: Likewise.
79986         * doc/glibc-functions/listxattr.texi: Likewise.
79987         * doc/glibc-functions/llistxattr.texi: Likewise.
79988         * doc/glibc-functions/lremovexattr.texi: Likewise.
79989         * doc/glibc-functions/lsetxattr.texi: Likewise.
79990         * doc/glibc-functions/removexattr.texi: Likewise.
79991         * doc/glibc-functions/setxattr.texi: Likewise.
79992         * doc/posix-functions/open_memstream.texi: Likewise.
79994 2008-12-15  Eric Blake  <ebb9@byu.net>
79996         Update doc for cygwin 1.7.
79997         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
79998         functions.
79999         * doc/posix-functions/fchmodat.texi: Likewise.
80000         * doc/posix-functions/fchownat.texi: Likewise.
80001         * doc/posix-functions/fdopendir.texi: Likewise.
80002         * doc/posix-functions/fmemopen.texi: Likewise.
80003         * doc/posix-functions/freeaddrinfo.texi: Likewise.
80004         * doc/posix-functions/fstatat.texi: Likewise.
80005         * doc/posix-functions/futimens.texi: Likewise.
80006         * doc/posix-functions/gai_strerror.texi: Likewise.
80007         * doc/posix-functions/getaddrinfo.texi: Likewise.
80008         * doc/posix-functions/getnameinfo.texi: Likewise.
80009         * doc/posix-functions/if_freenameindex.texi: Likewise.
80010         * doc/posix-functions/if_indextoname.texi: Likewise.
80011         * doc/posix-functions/if_nameindex.texi: Likewise.
80012         * doc/posix-functions/if_nametoindex.texi: Likewise.
80013         * doc/posix-functions/insque.texi: Likewise.
80014         * doc/posix-functions/linkat.texi: Likewise.
80015         * doc/posix-functions/llrint.texi: Likewise.
80016         * doc/posix-functions/llrintf.texi: Likewise.
80017         * doc/posix-functions/llrintl.texi: Likewise.
80018         * doc/posix-functions/lockf.texi: Likewise.
80019         * doc/posix-functions/lrintl.texi: Likewise.
80020         * doc/posix-functions/mkdirat.texi: Likewise.
80021         * doc/posix-functions/mkfifoat.texi: Likewise.
80022         * doc/posix-functions/mknodat.texi: Likewise.
80023         * doc/posix-functions/mq_close.texi: Likewise.
80024         * doc/posix-functions/mq_getattr.texi: Likewise.
80025         * doc/posix-functions/mq_notify.texi: Likewise.
80026         * doc/posix-functions/mq_open.texi: Likewise.
80027         * doc/posix-functions/mq_receive.texi: Likewise.
80028         * doc/posix-functions/mq_send.texi: Likewise.
80029         * doc/posix-functions/mq_setattr.texi: Likewise.
80030         * doc/posix-functions/mq_timedreceive.texi: Likewise.
80031         * doc/posix-functions/mq_timedsend.texi: Likewise.
80032         * doc/posix-functions/mq_unlink.texi: Likewise.
80033         * doc/posix-functions/open_memstream.texi: Likewise.
80034         * doc/posix-functions/openat.texi: Likewise.
80035         * doc/posix-functions/posix_fadvise.texi: Likewise.
80036         * doc/posix-functions/posix_fallocate.texi: Likewise.
80037         * doc/posix-functions/posix_madvise.texi: Likewise.
80038         * doc/posix-functions/posix_memalign.texi: Likewise.
80039         * doc/posix-functions/posix_openpt.texi: Likewise.
80040         * doc/posix-functions/readlinkat.texi: Likewise.
80041         * doc/posix-functions/remque.texi: Likewise.
80042         * doc/posix-functions/renameat.texi: Likewise.
80043         * doc/posix-functions/rintl.texi: Likewise.
80044         * doc/posix-functions/sem_unlink.texi: Likewise.
80045         * doc/posix-functions/shm_open.texi: Likewise.
80046         * doc/posix-functions/shm_unlink.texi: Likewise.
80047         * doc/posix-functions/signgam.texi: Likewise.
80048         * doc/posix-functions/sigset.texi: Likewise.
80049         * doc/posix-functions/stpcpy.texi: Likewise.
80050         * doc/posix-functions/stpncpy.texi: Likewise.
80051         * doc/posix-functions/strerror.texi: Likewise.
80052         * doc/posix-functions/strtod.texi: Likewise.
80053         * doc/posix-functions/symlinkat.texi: Likewise.
80054         * doc/posix-functions/unlinkat.texi: Likewise.
80055         * doc/posix-functions/utimensat.texi: Likewise.
80056         * doc/glibc-functions/bindresvport.texi: Likewise.
80057         * doc/glibc-functions/dn_expand.texi: Likewise.
80058         * doc/glibc-functions/exp10.texi: Likewise.
80059         * doc/glibc-functions/exp10f.texi: Likewise.
80060         * doc/glibc-functions/fgetxattr.texi: Likewise.
80061         * doc/glibc-functions/flistxattr.texi: Likewise.
80062         * doc/glibc-functions/fopencookie.texi: Likewise.
80063         * doc/glibc-functions/freeifaddrs.texi: Likewise.
80064         * doc/glibc-functions/fremovexattr.texi: Likewise.
80065         * doc/glibc-functions/fsetxattr.texi: Likewise.
80066         * doc/glibc-functions/getifaddrs.texi: Likewise.
80067         * doc/glibc-functions/getxattr.texi: Likewise.
80068         * doc/glibc-functions/lgetxattr.texi: Likewise.
80069         * doc/glibc-functions/listxattr.texi: Likewise.
80070         * doc/glibc-functions/llistxattr.texi: Likewise.
80071         * doc/glibc-functions/lremovexattr.texi: Likewise.
80072         * doc/glibc-functions/lsetxattr.texi: Likewise.
80073         * doc/glibc-functions/pow10.texi: Likewise.
80074         * doc/glibc-functions/pow10f.texi: Likewise.
80075         * doc/glibc-functions/rcmd_af.texi: Likewise.
80076         * doc/glibc-functions/removexattr.texi: Likewise.
80077         * doc/glibc-functions/res_init.texi: Likewise.
80078         * doc/glibc-functions/res_mkquery.texi: Likewise.
80079         * doc/glibc-functions/res_query.texi: Likewise.
80080         * doc/glibc-functions/res_querydomain.texi: Likewise.
80081         * doc/glibc-functions/res_send.texi: Likewise.
80082         * doc/glibc-functions/rresvport_af.texi: Likewise.
80083         * doc/glibc-functions/setxattr.texi: Likewise.
80084         * doc/glibc-functions/strcasestr.texi: Likewise.
80086 2008-12-15  Bruno Haible  <bruno@clisp.org>
80088         Fix compilation error on OSF/1 4.0.
80089         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
80090         <sys/time.h>, simply delegate to the system header.
80091         Reported by Daniel Richard G. <oss@teragram.com>.
80093 2008-12-15  Bruno Haible  <bruno@clisp.org>
80095         * doc/posix-functions/openat.texi: Mention the 'openat' module.
80096         * doc/posix-functions/fchmodat.texi: Likewise.
80097         * doc/posix-functions/fchownat.texi: Likewise.
80098         * doc/posix-functions/fdopendir.texi: Likewise.
80099         * doc/posix-functions/fstatat.texi: Likewise.
80100         * doc/posix-functions/mkdirat.texi: Likewise.
80101         * doc/posix-functions/unlinkat.texi: Likewise.
80103 2008-12-14  Bruno Haible  <bruno@clisp.org>
80105         Update doc for POSIX:2008.
80106         * doc/posix-functions/faccessat.texi: New file.
80107         * doc/posix-functions/fchmodat.texi: New file.
80108         * doc/posix-functions/fchownat.texi: New file.
80109         * doc/posix-functions/fdopendir.texi: New file.
80110         * doc/posix-functions/fstatat.texi: New file.
80111         * doc/posix-functions/futimens.texi: New file.
80112         * doc/posix-functions/linkat.texi: New file.
80113         * doc/posix-functions/mkdirat.texi: New file.
80114         * doc/posix-functions/mkfifoat.texi: New file.
80115         * doc/posix-functions/mknodat.texi: New file.
80116         * doc/posix-functions/open_wmemstream.texi: New file.
80117         * doc/posix-functions/openat.texi: New file.
80118         * doc/posix-functions/psiginfo.texi: New file.
80119         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
80120         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
80121         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
80122         * doc/posix-functions/readlinkat.texi: New file.
80123         * doc/posix-functions/renameat.texi: New file.
80124         * doc/posix-functions/strerror_l.texi: New file.
80125         * doc/posix-functions/symlinkat.texi: New file.
80126         * doc/posix-functions/unlinkat.texi: New file.
80127         * doc/posix-functions/utimensat.texi: New file.
80128         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80130 2008-12-14  Bruno Haible  <bruno@clisp.org>
80132         Update doc for POSIX:2008.
80133         * doc/posix-functions/alphasort.texi: Renamed from
80134         doc/glibc-functions/alphasort.texi.
80135         * doc/posix-functions/dirfd.texi: Renamed from
80136         doc/glibc-functions/dirfd.texi.
80137         * doc/posix-functions/dprintf.texi: Renamed from
80138         doc/glibc-functions/dprintf.texi.
80139         * doc/posix-functions/duplocale.texi: Renamed from
80140         doc/glibc-functions/duplocale.texi.
80141         * doc/posix-functions/fexecve.texi: Renamed from
80142         doc/glibc-functions/fexecve.texi.
80143         * doc/posix-functions/fmemopen.texi: Renamed from
80144         doc/glibc-functions/fmemopen.texi.
80145         * doc/posix-functions/freelocale.texi: Renamed from
80146         doc/glibc-functions/freelocale.texi.
80147         * doc/posix-functions/getdate_err.texi: Renamed from
80148         doc/glibc-functions/getdate_err.texi.
80149         * doc/posix-functions/isalnum_l.texi: Renamed from
80150         doc/glibc-functions/isalnum_l.texi.
80151         * doc/posix-functions/isalpha_l.texi: Renamed from
80152         doc/glibc-functions/isalpha_l.texi.
80153         * doc/posix-functions/isblank_l.texi: Renamed from
80154         doc/glibc-functions/isblank_l.texi.
80155         * doc/posix-functions/iscntrl_l.texi: Renamed from
80156         doc/glibc-functions/iscntrl_l.texi.
80157         * doc/posix-functions/isdigit_l.texi: Renamed from
80158         doc/glibc-functions/isdigit_l.texi.
80159         * doc/posix-functions/isgraph_l.texi: Renamed from
80160         doc/glibc-functions/isgraph_l.texi.
80161         * doc/posix-functions/islower_l.texi: Renamed from
80162         doc/glibc-functions/islower_l.texi.
80163         * doc/posix-functions/isprint_l.texi: Renamed from
80164         doc/glibc-functions/isprint_l.texi.
80165         * doc/posix-functions/ispunct_l.texi: Renamed from
80166         doc/glibc-functions/ispunct_l.texi.
80167         * doc/posix-functions/isspace_l.texi: Renamed from
80168         doc/glibc-functions/isspace_l.texi.
80169         * doc/posix-functions/isupper_l.texi: Renamed from
80170         doc/glibc-functions/isupper_l.texi.
80171         * doc/posix-functions/iswalnum_l.texi: Renamed from
80172         doc/glibc-functions/iswalnum_l.texi.
80173         * doc/posix-functions/iswalpha_l.texi: Renamed from
80174         doc/glibc-functions/iswalpha_l.texi.
80175         * doc/posix-functions/iswblank_l.texi: Renamed from
80176         doc/glibc-functions/iswblank_l.texi.
80177         * doc/posix-functions/iswcntrl_l.texi: Renamed from
80178         doc/glibc-functions/iswcntrl_l.texi.
80179         * doc/posix-functions/iswctype_l.texi: Renamed from
80180         doc/glibc-functions/iswctype_l.texi.
80181         * doc/posix-functions/iswdigit_l.texi: Renamed from
80182         doc/glibc-functions/iswdigit_l.texi.
80183         * doc/posix-functions/iswgraph_l.texi: Renamed from
80184         doc/glibc-functions/iswgraph_l.texi.
80185         * doc/posix-functions/iswlower_l.texi: Renamed from
80186         doc/glibc-functions/iswlower_l.texi.
80187         * doc/posix-functions/iswprint_l.texi: Renamed from
80188         doc/glibc-functions/iswprint_l.texi.
80189         * doc/posix-functions/iswpunct_l.texi: Renamed from
80190         doc/glibc-functions/iswpunct_l.texi.
80191         * doc/posix-functions/iswspace_l.texi: Renamed from
80192         doc/glibc-functions/iswspace_l.texi.
80193         * doc/posix-functions/iswupper_l.texi: Renamed from
80194         doc/glibc-functions/iswupper_l.texi.
80195         * doc/posix-functions/iswxdigit_l.texi: Renamed from
80196         doc/glibc-functions/iswxdigit_l.texi.
80197         * doc/posix-functions/isxdigit_l.texi: Renamed from
80198         doc/glibc-functions/isxdigit_l.texi.
80199         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
80200         doc/glibc-functions/mbsnrtowcs.texi.
80201         * doc/posix-functions/mkdtemp.texi: Renamed from
80202         doc/glibc-functions/mkdtemp.texi.
80203         * doc/posix-functions/newlocale.texi: Renamed from
80204         doc/glibc-functions/newlocale.texi.
80205         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
80206         doc/glibc-functions/nl_langinfo_l.texi.
80207         * doc/posix-functions/open_memstream.texi: Renamed from
80208         doc/glibc-functions/open_memstream.texi.
80209         * doc/posix-functions/opterr.texi: Renamed from
80210         doc/glibc-functions/opterr.texi.
80211         * doc/posix-functions/optind.texi: Renamed from
80212         doc/glibc-functions/optind.texi.
80213         * doc/posix-functions/optopt.texi: Renamed from
80214         doc/glibc-functions/optopt.texi.
80215         * doc/posix-functions/psignal.texi: Renamed from
80216         doc/glibc-functions/psignal.texi.
80217         * doc/posix-functions/scandir.texi: Renamed from
80218         doc/glibc-functions/scandir.texi.
80219         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
80220         doc/glibc-functions/sched_get_priority_min.texi.
80221         * doc/posix-functions/signgam.texi: Renamed from
80222         doc/glibc-functions/signgam.texi.
80223         * doc/posix-functions/stpcpy.texi: Renamed from
80224         doc/glibc-functions/stpcpy.texi.
80225         * doc/posix-functions/stpncpy.texi: Renamed from
80226         doc/glibc-functions/stpncpy.texi.
80227         * doc/posix-functions/strcasecmp_l.texi: Renamed from
80228         doc/glibc-functions/strcasecmp_l.texi.
80229         * doc/posix-functions/strcoll_l.texi: Renamed from
80230         doc/glibc-functions/strcoll_l.texi.
80231         * doc/posix-functions/strfmon_l.texi: Renamed from
80232         doc/glibc-functions/strfmon_l.texi.
80233         * doc/posix-functions/strftime_l.texi: Renamed from
80234         doc/glibc-functions/strftime_l.texi.
80235         * doc/posix-functions/strncasecmp_l.texi: Renamed from
80236         doc/glibc-functions/strncasecmp_l.texi.
80237         * doc/posix-functions/strndup.texi: Renamed from
80238         doc/glibc-functions/strndup.texi.
80239         * doc/posix-functions/strnlen.texi: Renamed from
80240         doc/glibc-functions/strnlen.texi.
80241         * doc/posix-functions/strsignal.texi: Renamed from
80242         doc/glibc-functions/strsignal.texi.
80243         * doc/posix-functions/strxfrm_l.texi: Renamed from
80244         doc/glibc-functions/strxfrm_l.texi.
80245         * doc/posix-functions/timer_gettime.texi: Renamed from
80246         doc/glibc-functions/timer_gettime.texi.
80247         * doc/posix-functions/tolower_l.texi: Renamed from
80248         doc/glibc-functions/tolower_l.texi.
80249         * doc/posix-functions/toupper_l.texi: Renamed from
80250         doc/glibc-functions/toupper_l.texi.
80251         * doc/posix-functions/towctrans_l.texi: Renamed from
80252         doc/glibc-functions/towctrans_l.texi.
80253         * doc/posix-functions/towlower_l.texi: Renamed from
80254         doc/glibc-functions/towlower_l.texi.
80255         * doc/posix-functions/towupper_l.texi: Renamed from
80256         doc/glibc-functions/towupper_l.texi.
80257         * doc/posix-functions/uselocale.texi: Renamed from
80258         doc/glibc-functions/uselocale.texi.
80259         * doc/posix-functions/vdprintf.texi: Renamed from
80260         doc/glibc-functions/vdprintf.texi.
80261         * doc/posix-functions/wcpcpy.texi:
80262         Renamed from doc/glibc-functions/wcpcpy.texi.
80263         * doc/posix-functions/wcpncpy.texi: Renamed from
80264         doc/glibc-functions/wcpncpy.texi.
80265         * doc/posix-functions/wcscasecmp.texi: Renamed from
80266         doc/glibc-functions/wcscasecmp.texi.
80267         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
80268         doc/glibc-functions/wcscasecmp_l.texi.
80269         * doc/posix-functions/wcscoll_l.texi: Renamed from
80270         doc/glibc-functions/wcscoll_l.texi.
80271         * doc/posix-functions/wcsdup.texi: Renamed from
80272         doc/glibc-functions/wcsdup.texi.
80273         * doc/posix-functions/wcsncasecmp.texi: Renamed from
80274         doc/glibc-functions/wcsncasecmp.texi.
80275         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
80276         doc/glibc-functions/wcsncasecmp_l.texi.
80277         * doc/posix-functions/wcsnlen.texi: Renamed from
80278         doc/glibc-functions/wcsnlen.texi.
80279         * doc/posix-functions/wcsnrtombs.texi: Renamed from
80280         doc/glibc-functions/wcsnrtombs.texi.
80281         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
80282         doc/glibc-functions/wcsxfrm_l.texi.
80283         * doc/posix-functions/wctrans_l.texi: Renamed from
80284         doc/glibc-functions/wctrans_l.texi.
80285         * doc/posix-functions/wctype_l.texi: Renamed from
80286         doc/glibc-functions/wctype_l.texi.
80287         * doc/gnulib.texi (Function Substitutes): Add these subsections.
80288         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
80289         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
80290         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
80291         these subsections.
80292         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
80293         Remove sections.
80295 2008-12-14  Bruno Haible  <bruno@clisp.org>
80297         Update doc for POSIX:2008.
80298         * doc/posix-functions/*.texi: Update URL of POSIX specification.
80300 2008-12-14  Bruno Haible  <bruno@clisp.org>
80302         Update doc for POSIX:2008.
80303         * doc/pastposix-functions/bcmp.texi: Renamed from
80304         doc/posix-functions/bcmp.texi.
80305         * doc/pastposix-functions/bcopy.texi: Renamed from
80306         doc/posix-functions/bcopy.texi.
80307         * doc/pastposix-functions/bsd_signal.texi: Renamed from
80308         doc/posix-functions/bsd_signal.texi.
80309         * doc/pastposix-functions/bzero.texi: Renamed from
80310         doc/posix-functions/bzero.texi.
80311         * doc/pastposix-functions/ecvt.texi: Renamed from
80312         doc/posix-functions/ecvt.texi.
80313         * doc/pastposix-functions/fcvt.texi: Renamed from
80314         doc/posix-functions/fcvt.texi.
80315         * doc/pastposix-functions/ftime.texi: Renamed from
80316         doc/posix-functions/ftime.texi.
80317         * doc/pastposix-functions/gcvt.texi: Renamed from
80318         doc/posix-functions/gcvt.texi.
80319         * doc/pastposix-functions/getcontext.texi: Renamed from
80320         doc/posix-functions/getcontext.texi.
80321         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
80322         doc/posix-functions/gethostbyaddr.texi.
80323         * doc/pastposix-functions/gethostbyname.texi: Renamed from
80324         doc/posix-functions/gethostbyname.texi.
80325         * doc/pastposix-functions/getwd.texi: Renamed from
80326         doc/posix-functions/getwd.texi.
80327         * doc/pastposix-functions/h_errno.texi: Renamed from
80328         doc/posix-functions/h_errno.texi.
80329         * doc/pastposix-functions/index.texi: Renamed from
80330         doc/posix-functions/index.texi.
80331         * doc/pastposix-functions/makecontext.texi: Renamed from
80332         doc/posix-functions/makecontext.texi.
80333         * doc/pastposix-functions/mktemp.texi: Renamed from
80334         doc/posix-functions/mktemp.texi.
80335         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
80336         doc/posix-functions/pthread_attr_getstackaddr.texi.
80337         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
80338         doc/posix-functions/pthread_attr_setstackaddr.texi.
80339         * doc/pastposix-functions/rindex.texi: Renamed from
80340         doc/posix-functions/rindex.texi.
80341         * doc/pastposix-functions/scalb.texi: Renamed from
80342         doc/posix-functions/scalb.texi.
80343         * doc/pastposix-functions/setcontext.texi: Renamed from
80344         doc/posix-functions/setcontext.texi.
80345         * doc/pastposix-functions/swapcontext.texi: Renamed from
80346         doc/posix-functions/swapcontext.texi.
80347         * doc/pastposix-functions/ualarm.texi: Renamed from
80348         doc/posix-functions/ualarm.texi.
80349         * doc/pastposix-functions/usleep.texi: Renamed from
80350         doc/posix-functions/usleep.texi.
80351         * doc/pastposix-functions/vfork.texi: Renamed from
80352         doc/posix-functions/vfork.texi.
80353         * doc/pastposix-functions/wcswcs.texi: Renamed from
80354         doc/posix-functions/wcswcs.texi.
80355         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
80356         (Function Substitutes): Update.
80358 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80360         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
80361         m4/strerror.m4.
80363 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80364             Bruno Haible  <bruno@clisp.org>
80366         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
80368 2008-12-13  Bruno Haible  <bruno@clisp.org>
80370         * modules/strtoull (Depends-on): Remove unistd.
80372 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80374         * modules/strtoull (Depends-on): Add stdlib.
80376 2008-12-11  Simon Josefsson  <simon@josefsson.org>
80378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
80380 2008-12-10  Jim Meyering  <meyering@redhat.com>
80382         gl_ASSERT: don't say assertions are disabled when they're not
80383         * m4/assert.m4 (gl_ASSERT): Do not make configure report
80384         "checking whether to enable assertions... no", when they are in
80385         fact enabled.  This is solely a bug in the output of configure.
80386         In spite of saying "no", NDEBUG was not defined in that case.
80387         Also, as noted by Eric Blake, leave assertions enabled upon
80388         --enable-assert=INVALID.
80390 2008-12-10  Bruno Haible  <bruno@clisp.org>
80392         Change MODULES.html to refer to POSIX:2008 where possible.
80393         * MODULES.html.sh (POSIX2008_URL): New variable.
80394         (posix_headers): Remove sys/timeb, ucontext.
80395         (posix2001_headers): New variable.
80396         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
80397         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
80398         index, makecontext, mktemp, pthread_attr_getstackaddr,
80399         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
80400         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
80401         (posix2001_functions): New variable.
80402         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
80403         otherwise.
80405 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80407         add missing include to parse-duration.c
80408         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
80409         * modules/parse-duration (Depends-on): Add xalloc.
80411         fix sed script reading maint.mk
80412         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
80413         (syntax-check-rules): Use it.
80415 2008-12-09  Bruno Haible  <bruno@clisp.org>
80417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
80418         MacOS X 10.4/PowerPC.
80419         Reported by Simon Josefsson.
80421 2008-12-08  Jim Meyering  <meyering@redhat.com>
80423         work around mingw's lack of some S_IF definitions
80424         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
80425         Reported by Simon Josefsson.
80427 2008-12-08  Bruno Haible  <bruno@clisp.org>
80429         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
80430         applied to variables. Needed on MacOS X 10.4/PowerPC.
80431         Reported by Simon Josefsson.
80433 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
80434         and Eric Blake  <ebb9@byu.net>
80436         assert: honor --enable-assert
80437         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
80438         order to honor --enable-assert, rather than treating it as a
80439         synonym for --disable-assert.
80441 2008-12-08  Jim Meyering  <meyering@redhat.com>
80443         * lib/posixtm.c: Remove now-useless declaration of mktime.
80445         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
80447 2008-12-07  Bruno Haible  <bruno@clisp.org>
80449         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
80450         test_once): Mark functions as static.
80451         * tests/test-tls.c (test_tls): Likewise.
80453 2008-12-07  Bruno Haible  <bruno@clisp.org>
80455         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
80456         iconv_register_autodetect.
80458 2008-12-07  Jim Meyering  <meyering@redhat.com>
80460         posixtm.c: avoid a warning
80461         * lib/posixtm.c (posixtime): Don't initialize tm0.
80462         It's no longer needed to placate gcc4's -Wuninitialized,
80463         and the attempt to placate would elicit a new warning.
80465         unicodeio.c: mark unused parameters
80466         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
80467         (fallback_failure_callback): Likewise.
80469 2008-12-07  Bruno Haible  <bruno@clisp.org>
80471         * gnulib-tool (func_create_testdir): When building the tests
80472         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
80473         Reported by Simon Josefsson.
80475 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80477         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
80479 2008-12-06  Bruno Haible  <bruno@clisp.org>
80481         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
80482         Suggested by Eric Blake.
80484 2008-12-06  Bruno Haible  <bruno@clisp.org>
80486         Fix a c-stack test failure on MacOS X.
80487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
80488         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
80489         handler for SIGBUS as well.
80490         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
80491         install a signal handler for SIGBUS as well.
80492         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
80494 2008-12-06  Bruno Haible  <bruno@clisp.org>
80496         Advocacy documentation.
80497         * doc/gnulib-intro.texi (Benefits): New section.
80498         * doc/gnulib.texi: Update.
80500 2008-12-06  Bruno Haible  <bruno@clisp.org>
80502         Document the 'manywarnings' module.
80503         * doc/manywarnings.texi: New file.
80504         * doc/gnulib.texi: Include it.
80506 2008-12-05  Eric Blake  <ebb9@byu.net>
80508         tests: silence some gcc warnings
80509         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
80510         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
80511         type mismatches.
80513 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80514             Bruno Haible  <bruno@clisp.org>
80516         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
80518 2008-11-29  Jim Meyering  <meyering@redhat.com>
80520         unicodeio.c: mark unused parameters
80521         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
80522         (fallback_failure_callback): Likewise.
80524         fts: fix a thinko
80525         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
80526         (set_stat_type): Return S_IF*-valued "type" directly.
80527         Prompted by James Youngman's spotting a related bug.
80528         Confirmed by further testing through find.
80530         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
80531         * lib/fts.c (D_TYPE): Define.
80532         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
80533         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
80534         (s_ifmt_shift_bits): New function.
80535         (set_stat_type): New function.
80536         (fts_build): When not calling fts_stat, call set_stat_type
80537         to propagate dirent.d_type info to fts_read caller.
80538         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
80539         fts_statp->st_mode type information may be valid.
80541 2008-11-28  Simon Josefsson  <simon@josefsson.org>
80543         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
80544         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
80545         <sds@gnu.org>.
80547 2008-11-20  Bruno Haible  <bruno@clisp.org>
80549         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
80550         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
80551         INCLUDE_NEXT.
80552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
80553         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
80554         * modules/math (Makefile.am): Substitute
80555         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
80556         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80558 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
80559             Bruno Haible  <bruno@clisp.org>
80561         * lib/stdint.in.h: Define all type macros so that their expansion is
80562         a single typedef'ed token. Fixes a compilation failure in Boost which
80563         does "using ::int8_t;".
80565 2008-11-18  Simon Josefsson  <simon@josefsson.org>
80567         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
80568         gl_MANYWARN_ALL_GCC.
80569         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
80570         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
80571         * modules/manywarnings: New file.
80572         * MODULES.html.sh: Mention manywarnings module.
80574 2008-11-18  Bruno Haible  <bruno@clisp.org>
80576         * doc/gnulib-tool.texi (Unit tests): New section.
80578 2008-11-18  Simon Josefsson  <simon@josefsson.org>
80580         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
80581         paths like 'lib/po/foo.po'.
80583 2008-11-17  Simon Josefsson  <simon@josefsson.org>
80585         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
80586         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
80588 2008-11-17  Simon Josefsson  <simon@josefsson.org>
80590         * m4/warnings.m4: Use CPPFLAGS to really check whether the
80591         parameter works.
80593 2008-11-17  Simon Josefsson  <simon@josefsson.org>
80595         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
80597 2008-11-17  Bruce Korb  <bkorb@gnu.org>
80599         * modules/parse-duration-tests: New file.
80600         * tests/test-parse-duration.sh: New file.
80601         * tests/test-parse-duration.c: New file.
80603         New module 'parse-duration'.
80604         * lib/parse-duration.h: New file.
80605         * lib/parse-duration.c: New file.
80606         * modules/parse-duration: New file.
80608 2008-11-17  Bruno Haible  <bruno@clisp.org>
80610         * tests/test-select-out.sh: Comment out the first pipe test.
80611         Reported by Simon Josefsson.
80613 2008-11-17  Bruno Haible  <bruno@clisp.org>
80615         * modules/getaddrinfo (Depends-on): Add servent, hostent.
80616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
80617         gl_HOSTENT.
80619 2008-11-17  Bruno Haible  <bruno@clisp.org>
80621         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
80622         -lnetwork and -lnet. Needed for Haiku and BeOS.
80624 2008-11-16  Bruno Haible  <bruno@clisp.org>
80626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
80628 2008-11-16  Bruno Haible  <bruno@clisp.org>
80630         Avoid test failure on Haiku.
80631         * tests/test-fsync.c: Include <errno.h>.
80632         (main): Don't require that fsync (0) fails.
80634 2008-11-15  Bruno Haible  <bruno@clisp.org>
80636         New module 'hostent'.
80637         * modules/hostent: New file.
80638         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
80640 2008-11-15  Bruno Haible  <bruno@clisp.org>
80642         New module 'servent'.
80643         * modules/servent: New file.
80644         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
80646 2008-11-15  Bruno Haible  <bruno@clisp.org>
80648         Avoid generating same test program with two different rules.
80649         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
80650         test-frexp to test-frexp-nolibm.
80651         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
80652         test-frexpl to test-frexpl-nolibm.
80654 2008-11-15  Bruno Haible  <bruno@clisp.org>
80656         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
80657         $(FREXPL_LIBM).
80659 2008-11-15  Bruno Haible  <bruno@clisp.org>
80661         * lib/netdb.in.h: Activate the definitions also when the system's
80662         <netdb.h> has 'struct addrinfo'.
80663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
80664         EAI_OVERFLOW or AI_NUMERICSERV.
80665         * doc/posix-headers/netdb.texi: Document the problem.
80667 2008-11-15  Bruno Haible  <bruno@clisp.org>
80669         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
80671         Make the 'sched' module work on platforms where <sched.h> exists but
80672         is incomplete (such as Haiku).
80673         * lib/sched.in.h; Include the system's <sched.h> if it exists.
80674         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
80675         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
80676         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
80677         HAVE_STRUCT_SCHED_PARAM.
80678         * modules/sched (Depends-on): Add include_next.
80679         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
80680         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
80681         * doc/posix-headers/sched.texi: Document the issue.
80683 2008-11-13  Jim Meyering  <meyering@redhat.com>
80685         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
80686         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
80687         test would fail due to the difference in the Report bugs to ...
80688         line.  The expected address is empty, "<>", while the actual
80689         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
80691 2008-11-12  Bruno Haible  <bruno@clisp.org>
80693         lstat: don't compile lstat.c on systems lacking lstat
80694         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
80695         which don't have lstat; this is handled by lib/sys_stat.in.h already.
80696         Reported by Daniel P. Berrange via Jim Meyering.
80698 2008-11-12  Jim Meyering  <meyering@redhat.com>
80700         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
80702 2008-11-12  Simon Josefsson  <simon@josefsson.org>
80704         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
80705         instead.
80707 2008-11-12  Bruno Haible  <bruno@clisp.org>
80709         * lib/unicodeio.c: Include unistr.h.
80710         (utf8_wctomb): Remove function.
80711         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
80713 2008-11-12  Simon Josefsson  <simon@josefsson.org>
80715         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
80716         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
80717         <bruno@clisp.org>.
80718         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
80720 2008-11-12  Simon Josefsson  <simon@josefsson.org>
80722         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
80723         * doc/gnulib.texi: Add section for warnings.
80725 2008-11-11  Bruno Haible  <bruno@clisp.org>
80727         * lib/sockets.h: Add a comment.
80729 2008-11-11  Karl Berry  <karl@gnu.org>
80731         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
80733 2008-11-11  Eric Blake  <ebb9@byu.net>
80735         fdl.texi: avoid git symlinks
80736         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
80738 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
80740         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
80742 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
80744         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
80745         (gl_WARN_ADD): Substitute $2 if literal.
80747 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
80749         * m4/warning.m4: Remove.
80751 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
80753         * m4/warnings.m4: Almost complete rewrite. :-)
80755 2008-11-10  Simon Josefsson  <simon@josefsson.org>
80757         * modules/warnings: New module.
80758         * m4/warnings.m4: New file.
80759         * MODULES.html.sh: Mention warnings module.
80760         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
80761         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80763 2008-11-10  Eric Blake  <ebb9@byu.net>
80765         fdl.texi: make a symlink to the latest version
80766         * doc/standards.texi: Revert today's earlier change.
80767         * doc/fdl-1.2.texi: Rename from old fdl.texi...
80768         * doc/fdl.texi: ...and replace this with a symlink to the newer
80769         fdl-1.3.texi.
80771 2008-11-10  Bruno Haible  <bruno@clisp.org>
80773         * tests/test-select-fd.c (main): Accept the result file name as fourth
80774         argument.
80775         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
80776         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
80778 2008-11-10  Bruno Haible  <bruno@clisp.org>
80780         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
80781         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
80782         as autoconf-substituted macros.
80783         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
80784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
80785         gl_NETDB_H_DEFAULTS. Set these variables.
80786         * modules/netdb (Makefile.am): Substitute these variables.
80788 2008-11-10  Eric Blake  <ebb9@byu.net>
80790         standards.texi: include correct file for FDL 1.3
80791         * doc/standards.texi (GNU Free Documentation License): Change
80792         include file to pull in FDL 1.3, not 1.2.
80794         fdl.texi: revert accidental change to license
80795         * doc/fdl.texi: This is FDL 1.2, not 1.3.
80797 2008-11-10  Bruno Haible  <bruno@clisp.org>
80799         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
80800         cross-compiling guesses also when the native compile gives no result.
80802 2008-11-10  Bruno Haible  <bruno@clisp.org>
80804         * lib/spawni.c (__spawni): Force variable into the stack.
80806 2008-11-10  Bruno Haible  <bruno@clisp.org>
80808         Add support for Haiku.
80809         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
80810         glibc and BeOS, but also on Haiku.
80811         * lib/fpurge.c (fpurge): Likewise.
80812         * lib/freadable.c (freadable): Likewise.
80813         * lib/freadahead.c (freadahead): Likewise.
80814         * lib/freading.c (freading): Likewise.
80815         * lib/freadptr.c (freadptr): Likewise.
80816         * lib/freadseek.c (freadptrinc): Likewise.
80817         * lib/fseeko.c (rpl_fseeko): Likewise.
80818         * lib/fseterr.c (fseterr): Likewise.
80819         * lib/fwritable.c (fwritable): Likewise.
80820         * lib/fwriting.c (fwriting): Likewise.
80821         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
80823 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
80825         * lib/config.charset: Treat Haiku like BeOS.
80827 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
80829         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
80830         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
80832 2008-11-08  Bruno Haible  <bruno@clisp.org>
80834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
80835         AC_CACHE_CHECK.
80837 2008-11-08  Bruno Haible  <bruno@clisp.org>
80839         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
80841 2008-11-08  Bruno Haible  <bruno@clisp.org>
80843         * tests/test-select-fd.c: New file.
80844         * tests/test-select-in.sh: New file.
80845         * tests/test-select-out.sh: New file.
80846         * tests/test-select-stdin.c: New file.
80847         * modules/select-tests (Files): Add the new files.
80848         (Depends-on): Add gettimeofday.
80849         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
80850         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
80851         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
80853 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
80854             Bruno Haible  <bruno@clisp.org>
80856         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
80858 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
80860         * build-aux/pmccabe2html: Added support for C++ source files.
80862 2008-11-05  Ben Pfaff  <blp@gnu.org>
80864         Fix lib/close.c build on Windows.
80865         * modules/close (Files): Add lib/w32sock.h.
80867 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
80869         Accept Bison's NEWS format.
80870         * build-aux/announce-gen (print_news_deltas): Tweak
80871         $re_prefix.
80873 2008-11-04  Bruno Haible  <bruno@clisp.org>
80875         * modules/random_r (Maintainer): Add glibc.
80877 2008-11-04  Simon Josefsson  <simon@josefsson.org>
80879         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
80880         by karl@freefriends.org (Karl Berry).
80881         * doc/alloca.texi: Likewise.
80882         * doc/c-ctype.texi: Likewise.
80883         * doc/c-strcase.texi: Likewise.
80884         * doc/c-strcaseeq.texi: Likewise.
80885         * doc/c-strcasestr.texi: Likewise.
80886         * doc/c-strstr.texi: Likewise.
80887         * doc/c-strtod.texi: Likewise.
80888         * doc/c-strtold.texi: Likewise.
80889         * doc/ctime.texi: Likewise.
80890         * doc/error.texi: Likewise.
80891         * doc/fdl.texi: Likewise.
80892         * doc/gcd.texi: Likewise.
80893         * doc/getdate.texi: Likewise.
80894         * doc/gnulib-intro.texi: Likewise.
80895         * doc/gnulib-tool.texi: Likewise.
80896         * doc/gnulib.texi: Likewise.
80897         * doc/inet_ntoa.texi: Likewise.
80898         * doc/maintain.texi: Likewise.
80899         * doc/make-stds.texi: Likewise.
80900         * doc/quote.texi: Likewise.
80901         * doc/regexprops-generic.texi: Likewise.
80902         * doc/standards.texi: Likewise.
80903         * doc/verify.texi: Likewise.
80904         * doc/visibility.texi: Likewise.
80905         * doc/gnulib.texi (GNU Free Documentation License): Include
80906         fdl-1.3.texi instead of fdl.texi.
80908 2008-11-04  Simon Josefsson  <simon@josefsson.org>
80910         * doc/fdl-1.3.texi: New file, from
80911         <http://www.gnu.org/licenses/fdl-1.3.texi>.
80912         * modules/fdl-1.3: Add.
80913         * MODULES.html.sh: Add fdl-1.3.
80915 2008-11-03  Bruno Haible  <bruno@clisp.org>
80917         Make determination of absolute name of header file work with AIX xlc.
80918         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
80919         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
80920         preprocessing.
80921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80922         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
80924 2008-11-03  Simon Josefsson  <simon@josefsson.org>
80926         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
80927         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
80928         <ludo@gnu.org>.
80930 2008-11-02  Bruno Haible  <bruno@clisp.org>
80932         Mark 'strpbrk' obsolete.
80933         * modules/strpbrk (Status, Notice): New sections.
80934         * modules/strtok_r (Depends-on): Add strpbrk.
80936 2008-11-02  Bruno Haible  <bruno@clisp.org>
80938         Mark 'strdup' obsolete.
80939         * modules/strdup (Status, Notice): New sections.
80940         * modules/findprog (Depends-on): Add strdup.
80941         * modules/getaddrinfo (Depends-on): Likewise.
80942         * modules/localename (Depends-on): Likewise.
80943         * modules/relocatable-lib (Depends-on): Likewise.
80944         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
80945         * modules/relocatable-prog (Depends-on): Likewise.
80946         * modules/trim (Depends-on): Likewise.
80947         * modules/unictype/gen-ctype (Depends-on): Likewise.
80948         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
80950 2008-11-02  Bruno Haible  <bruno@clisp.org>
80952         Mark 'strcspn' obsolete.
80953         * modules/strcspn (Status, Notice): New sections.
80955 2008-11-02  Bruno Haible  <bruno@clisp.org>
80957         Mark 'rmdir' obsolete.
80958         * modules/rmdir (Status, Notice): New sections.
80959         * modules/clean-temp (Depends-on): Add rmdir.
80960         * modules/openat (Depends-on): Likewise.
80962 2008-11-02  Bruno Haible  <bruno@clisp.org>
80964         Mark 'raise' obsolete.
80965         * modules/raise (Status, Notice): New sections.
80966         (Include): Specify <signal.h>.
80967         * modules/stdio (Depends-on): Add raise.
80968         * modules/write (Depends-on): Likewise.
80970 2008-11-02  Bruno Haible  <bruno@clisp.org>
80972         Mark 'memset' obsolete.
80973         * modules/memset (Status, Notice): New sections.
80975 2008-11-02  Bruno Haible  <bruno@clisp.org>
80977         Mark 'memmove' obsolete.
80978         * modules/memmove (Status, Notice): New sections.
80979         * modules/argp (Depends-on): Add memmove.
80980         * modules/argz (Depends-on): Likewise.
80981         * modules/canonicalize (Depends-on): Likewise.
80982         * modules/canonicalize-lgpl (Depends-on): Likewise.
80983         * modules/fts (Depends-on): Likewise.
80984         * modules/getcwd (Depends-on): Likewise.
80985         * modules/human (Depends-on): Likewise.
80986         * modules/regex (Depends-on): Likewise.
80987         * modules/striconveh (Depends-on): Likewise.
80988         * modules/trim (Depends-on): Likewise.
80989         * modules/unistr/u8-move (Depends-on): Likewise.
80990         * modules/unistr/u16-move (Depends-on): Likewise.
80991         * modules/unistr/u32-move (Depends-on): Likewise.
80993 2008-11-02  Bruno Haible  <bruno@clisp.org>
80995         Mark 'memcpy' obsolete.
80996         * modules/memcpy (Status, Notice): New sections.
80998 2008-11-02  Bruno Haible  <bruno@clisp.org>
81000         Mark 'memcmp' obsolete.
81001         * modules/memcmp (Status, Notice): New sections.
81002         * modules/argmatch (Depends-on): Add memchr.
81003         * modules/backupfile (Depends-on): Likewise.
81004         * modules/c-strcasestr (Depends-on): Likewise.
81005         * modules/crypto/des (Depends-on): Likewise.
81006         * modules/csharpcomp (Depends-on): Likewise.
81007         * modules/fnmatch (Depends-on): Likewise.
81008         * modules/git-merge-changelog (Depends-on): Likewise.
81009         * modules/isnand (Depends-on): Likewise.
81010         * modules/isnand-nolibm (Depends-on): Likewise.
81011         * modules/isnanf (Depends-on): Likewise.
81012         * modules/isnanf-nolibm (Depends-on): Likewise.
81013         * modules/isnanl (Depends-on): Likewise.
81014         * modules/isnanl-nolibm (Depends-on): Likewise.
81015         * modules/mbchar (Depends-on): Likewise.
81016         * modules/memcoll (Depends-on): Likewise.
81017         * modules/quotearg (Depends-on): Likewise.
81018         * modules/regex (Depends-on): Likewise.
81019         * modules/relocatable-prog (Depends-on): Likewise.
81020         * modules/same (Depends-on): Likewise.
81021         * modules/signbit (Depends-on): Likewise.
81022         * modules/strcasestr-simple (Depends-on): Likewise.
81023         * modules/unictype/gen-ctype (Depends-on): Likewise.
81024         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
81025         * modules/uniname/uniname (Depends-on): Likewise.
81026         * modules/unistr/u8-cmp (Depends-on): Likewise.
81028 2008-11-02  Bruno Haible  <bruno@clisp.org>
81030         Mark 'memchr' obsolete.
81031         * modules/memchr (Status, Notice): New sections.
81032         * modules/argp (Depends-on): Add memchr.
81033         * modules/base64 (Depends-on): Likewise.
81034         * modules/c-strcasestr (Depends-on): Likewise.
81035         * modules/chdir-long (Depends-on): Likewise.
81036         * modules/fnmatch (Depends-on): Likewise.
81037         * modules/getsubopt (Depends-on): Likewise.
81038         * modules/git-merge-changelog (Depends-on): Likewise.
81039         * modules/glob (Depends-on): Likewise.
81040         * modules/strcasestr-simple (Depends-on): Likewise.
81041         * modules/strnlen (Depends-on): Likewise.
81043 2008-11-02  Bruno Haible  <bruno@clisp.org>
81045         Mark 'atexit' obsolete.
81046         * modules/atexit (Status, Notice): New sections.
81047         * modules/chdir-long (Depends-on): Add atexit.
81048         * modules/wait-process (Depends-on): Likewise.
81050 2008-11-02  Bruno Haible  <bruno@clisp.org>
81052         * gnulib-tool: New option --with-obsolete.
81053         (func_usage): Document it.
81054         (func_modules_transitive_closure): Drop obsolete dependencies if
81055         incobsolete is not true.
81056         (func_import): Read and save the incobsolete variable to the cache.
81058 2008-11-02  Bruno Haible  <bruno@clisp.org>
81060         * modules/TEMPLATE-EXTENDED: New field 'Status'.
81061         * gnulib-tool: New option --extract-status.
81062         (func_usage): Document it.
81063         (sed_extract_prog): Recognize it.
81064         (func_get_status): New function.
81066 2008-10-30  Simon Josefsson  <simon@josefsson.org>
81068         * modules/sockets (License): Change from LGPL to LGPLv2+.
81070 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81072         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
81074 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81076         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81077         Mention times and sys_times.
81078         * modules/sys_times, modules/sys_times-tests: New modules.
81079         * modules/times, modules/times-tests: Likewise
81080         * m4/sys_times_h.m4: New file.
81081         * lib/sys_times.in.h: Likewise
81082         * lib/times.c: Likewise.
81083         * tests/test-sys_times.c: Likewise.
81084         * tests/test-times.c: Likewise.
81085         * doc/posix-headers/sys_times.texi: Update.
81086         * doc/posix-functions/times.texi: Update.
81088 2008-10-28  Jim Meyering  <meyering@redhat.com>
81090         * modules/tempname (Depends-on): Add lstat.
81092         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
81094 2008-10-28  Simon Josefsson  <simon@josefsson.org>
81096         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
81097         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
81098         using idiom used elsewhere in gnulib.
81100 2008-10-27  Jim Meyering  <meyering@redhat.com>
81102         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
81104 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81106         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
81107         TESTS_ENVIRONMENT, for shell scripts that needs to call built
81108         programs.
81109         * tests/test-argp-2.sh: Use $EXEEXT when needed.
81111 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81113         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
81115 2008-10-27  Bruno Haible  <bruno@clisp.org>
81117         * tests/test-lstat.c: Include <stdio.h>.
81119 2008-10-27  Simon Josefsson  <simon@josefsson.org>
81121         * modules/lstat-tests: New module.
81122         * tests/test-lstat.c: New file.
81124 2008-10-26  Jim Meyering  <meyering@redhat.com>
81126         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
81128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81129             Bruno Haible  <bruno@clisp.org>
81131         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
81132         * modules/configmake (Include): Add a note that the include must come
81133         after all system headers.
81134         * lib/javaversion.c: Include configmake.h after all other includes.
81136 2008-10-26  Bruno Haible  <bruno@clisp.org>
81138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
81139         HAVE_STRUCT_RANDOM_DATA to 1.
81140         (gl_STDLIB_H): Simplify.
81142 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81144         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
81145         substitute HAVE_STRUCT_RANDOM_DATA.
81146         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
81147         random_data.
81148         * modules/stdlib (Makefile.am): Substitute
81149         HAVE_STRUCT_RANDOM_DATA.
81151 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81153         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
81154         * doc/gnulib-intro.texi (Copyright): Likewise.
81156 2008-10-26  Simon Josefsson  <simon@josefsson.org>
81158         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
81159         findings.
81161 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
81162             Bruno Haible  <bruno@clisp.org>
81164         * lib/unistd.in.h: Include <winsock2.h>.
81165         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
81166         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
81167         Provide dummy declarations.
81168         (gethostname): Override.
81169         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
81170         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
81171         gl_PREREQ_SYS_H_WINSOCK2.
81172         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
81173         * doc/posix-functions/gethostname.texi: More details.
81175 2008-10-25  Bruno Haible  <bruno@clisp.org>
81177         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
81178         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
81179         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
81181         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
81182         here ...
81183         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
81184         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
81185         gl_UNISTD_H_DEFAULTS.
81187 2008-10-25  Eric Blake  <ebb9@byu.net>
81189         signbit: avoid spurious compiler failure
81190         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
81191         declarations inside function.
81193 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81194             Bruno Haible  <bruno@clisp.org>
81196         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
81197         * modules/random_r (Depends-on): Add stdint.
81199 2008-10-24  Bruno Haible  <bruno@clisp.org>
81201         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
81202         Eggert.
81203         * modules/strerror (License): Likewise.
81205 2008-10-24  Jim Meyering  <meyering@redhat.com>
81207         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
81208         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
81210 2008-10-24  Eric Blake  <ebb9@byu.net>
81212         getgroups: fix compilation when getgroups is available
81213         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
81214         but with <config.h> override of getgroups disabled.
81216 2008-10-24  Simon Josefsson  <simon@josefsson.org>
81218         * doc/gnulib.texi (Header files): Add note about C++ problems.
81219         Explained by Bruno Haible <bruno@clisp.org>.
81221 2008-10-23  Bruno Haible  <bruno@clisp.org>
81223         Define a dummy SA_NODEFER macro on Interix.
81224         * lib/signal.in.h (SA_NODEFER): Define fallback.
81225         Reported by Aleksey Cheusov <cheusov@tut.by> via
81226         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
81228 2008-10-23  Bruno Haible  <bruno@clisp.org>
81230         * modules/freadahead (License): Change to LGPLv2+.
81231         Suggested by Simon Josefsson.
81233 2008-10-23  Jim Meyering  <meyering@redhat.com>
81235         random_r: new module
81236         * modules/random_r: New file.
81237         * m4/random_r.m4: New file.
81238         * lib/random_r.c: New file, from glibc.
81239         * modules/random_r-tests: New file.
81240         * tests/test-random_r.c: New file.
81241         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
81242          Declare.
81243         (RAND_MAX): Define.
81244         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
81245         * modules/stdlib: Substitute them, too.
81246         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
81247         * doc/glibc-functions/initstate_r.texi: Mention the new module.
81248         * doc/glibc-functions/random_r.texi: Likewise.
81249         * doc/glibc-functions/setstate_r.texi: Likewise.
81250         * doc/glibc-functions/srandom_r.texi: Likewise.
81251         * config/srclist.txt: Mention it.
81253 2008-10-23  David Lutterkort  <lutter@redhat.com>
81255         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
81256         link requirement
81258 2008-10-23  Jim Meyering  <meyering@redhat.com>
81260         selinux-h: mark parameters of stub functions as intentionally unused
81261         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
81262         * lib/se-context.in.h: Likewise.
81264 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81266         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
81268 2008-10-22  Simon Josefsson  <simon@josefsson.org>
81270         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
81272 2008-10-22  Eric Blake  <ebb9@byu.net>
81274         glthread/thread: avoid compiler warning
81275         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
81276         Add unreachable abort to silence compiler.
81278 2008-10-22  Eric Blake  <ebb9@byu.net>
81280         netdb: also supply struct addrinfo for cygwin 1.5.x
81281         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
81282         older cygwin.
81283         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
81284         cygwin.
81285         * doc/posix-headers/netdb.texi (netdb.h): Document this.
81287 2008-10-22  Bruno Haible  <bruno@clisp.org>
81289         * users.txt: Update entry about pspp.
81291 2008-10-21  Bruno Haible  <bruno@clisp.org>
81293         Simplification.
81294         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
81295         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
81297         Simplification.
81298         * lib/ioctl.c (ioctl): Don't undefine.
81299         * lib/socket.c (socket): Don't undefine.
81301         Remove unused module indicator macros.
81302         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
81303         GNULIB_$1 as a C macro.
81305         * doc/posix-functions/close.texi: Undo last change.
81306         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
81307         Windows platforms.
81309 2008-10-21  Bruno Haible  <bruno@clisp.org>
81311         Add gethostname() declaration to <unistd.h>.
81312         * lib/unistd.in.h (gethostname): New declaration.
81313         * lib/gethostname.c: Include <unistd.h>.
81314         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
81315         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
81316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
81317         and HAVE_GETHOSTNAME.
81318         * modules/gethostname (Depends-on): Add unistd.
81319         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81320         (Include): Specify <unistd.h>.
81321         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
81322         HAVE_GETHOSTNAME.
81323         * tests/test-gethostname.c: Include <unistd.h> first.
81325 2008-10-21  Bruno Haible  <bruno@clisp.org>
81327         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
81328         * modules/select-tests (Depends-on): Likewise.
81329         Reported by Simon Josefsson.
81331 2008-10-21  Simon Josefsson  <simon@josefsson.org>
81333         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
81334         * lib/accept.c: New file, based on winsock.c.
81335         * lib/bind.c: New file, based on winsock.c.
81336         * lib/connect.c: New file, based on winsock.c.
81337         * lib/getpeername.c: New file, based on winsock.c.
81338         * lib/getsockname.c: New file, based on winsock.c.
81339         * lib/getsockopt.c: New file, based on winsock.c.
81340         * lib/ioctl.c: New file, based on winsock.c.
81341         * lib/listen.c: New file, based on winsock.c.
81342         * lib/recv.c: New file, based on winsock.c.
81343         * lib/recvfrom.c: New file, based on winsock.c.
81344         * lib/send.c: New file, based on winsock.c.
81345         * lib/sendto.c: New file, based on winsock.c.
81346         * lib/setsockopt.c: New file, based on winsock.c.
81347         * lib/shutdown.c: New file, based on winsock.c.
81348         * lib/socket.c: New file, based on winsock.c.
81349         * lib/w32sock.h: New file, based on winsock.c.
81350         * lib/winsock.c: Remove file.
81351         * modules/accept: Likewise.
81352         * modules/bind: Likewise.
81353         * modules/connect: Likewise.
81354         * modules/getpeername: Likewise.
81355         * modules/getsockname: Likewise.
81356         * modules/getsockopt: Likewise.
81357         * modules/ioctl: Likewise.
81358         * modules/listen: Likewise.
81359         * modules/recv: Likewise.
81360         * modules/recvfrom: Likewise.
81361         * modules/send: Likewise.
81362         * modules/sendto: Likewise.
81363         * modules/setsockopt: Likewise.
81364         * modules/shutdown: Likewise.
81365         * modules/socket: Use socket.c instead of winsock.c.
81366         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
81367         * doc/posix-functions/accept.texi: Doc fix.
81368         * doc/posix-functions/bind.texi: Doc fix.
81369         * doc/posix-functions/close.texi: Doc fix.
81370         * doc/posix-functions/connect.texi: Doc fix.
81371         * doc/posix-functions/getpeername.texi: Doc fix.
81372         * doc/posix-functions/getsockname.texi: Doc fix.
81373         * doc/posix-functions/getsockopt.texi: Doc fix.
81374         * doc/posix-functions/ioctl.texi: Doc fix.
81375         * doc/posix-functions/listen.texi: Doc fix.
81376         * doc/posix-functions/recv.texi: Doc fix.
81377         * doc/posix-functions/recvfrom.texi: Doc fix.
81378         * doc/posix-functions/send.texi: Doc fix.
81379         * doc/posix-functions/sendto.texi: Doc fix.
81380         * doc/posix-functions/setsockopt.texi: Doc fix.
81381         * doc/posix-functions/shutdown.texi: Doc fix.
81382         * doc/posix-functions/socket.texi: Doc fix.
81384 2008-10-20  Bruno Haible  <bruno@clisp.org>
81386         Take into account the role of SIGABRT_COMPAT on Windows 2008.
81387         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
81388         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
81389         as an alias for SIGABRT.
81390         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
81391         (sigaction): Map it to SIGABRT.
81392         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
81394 2008-10-20  Bruno Haible  <bruno@clisp.org>
81396         * lib/fts.c: Don't include lstat.h.
81397         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
81399         Move the lstat() declaration to <sys/stat.h>.
81400         * lib/lstat.h: Remove file.
81401         * lib/sys_stat.in.h: Add special invocation convention.
81402         (lstat): New declaration.
81403         * lib/lstat.c (orig_lstat): New function.
81404         (rpl_lstat): Use orig_lstat instead of lstat.
81405         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
81406         AC_C_INLINE. Set REPLACE_LSTAT.
81407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
81408         and REPLACE_LSTAT.
81409         * modules/lstat (Files): Remove lib/lstat.h.
81410         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
81411         (Include): Specify <sys/stat.h> instead of lstat.h.
81412         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
81413         REPLACE_LSTAT.
81414         * NEWS: Mention the change.
81416 2008-10-20  Bruno Haible  <bruno@clisp.org>
81418         * modules/posix_spawn-tests: New file.
81419         * tests/test-posix_spawn3.c: New file.
81421 2008-10-20  Bruno Haible  <bruno@clisp.org>
81423         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
81424         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81425         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
81426         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
81427         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
81429 2008-10-20  Bruno Haible  <bruno@clisp.org>
81431         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
81432         of posix_spawn on AIX 5.3.
81434 2008-10-20  Bruno Haible  <bruno@clisp.org>
81436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
81438 2008-10-20  Bruno Haible  <bruno@clisp.org>
81440         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
81441         of AC_LANG_PROGRAM.
81443 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81445         * lib/netdb.in.h: Don't define GNU specific constants until they
81446         are supported or needed.  Reported by Bruno Haible
81447         <bruno@clisp.org>.
81449 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81451         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
81453 2008-10-20  Simon Josefsson  <simon@josefsson.org>
81455         * lib/getaddrinfo.h: Remove file.
81456         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
81457         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
81458         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
81459         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
81460         * modules/netdb: Substitute GNULIB_GETADDRINFO.
81461         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
81462         * tests/test-getaddrinfo.c: Likewise.
81463         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
81464         * NEWS: Mention change.
81466 2008-10-19  Bruno Haible  <bruno@clisp.org>
81468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
81470 2008-10-19  Bruno Haible  <bruno@clisp.org>
81472         * lib/wait-process.c: Include simply <sys/wait.h>.
81473         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
81474         WIFSTOPPED): Remove fallback definitions.
81475         * modules/wait-process (Depends-on): Add sys_wait.
81477         New module 'sys_wait'.
81478         * modules/sys_wait: New file.
81479         * lib/sys_wait.in.h: New file, partially copied from
81480         lib/wait-process.c.
81481         * m4/sys_wait_h.m4: New file.
81482         * doc/posix-headers/sys_wait.texi: Mention the new module.
81484 2008-10-19  Bruno Haible  <bruno@clisp.org>
81486         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
81488 2008-10-19  Bruno Haible  <bruno@clisp.org>
81490         Assume that waitpid() fills an 'int' status, not a 'union wait'.
81491         * lib/wait-process.c (WAIT_T): Remove type.
81492         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
81493         (wait_subprocess): Update.
81495 2008-10-19  Bruno Haible  <bruno@clisp.org>
81497         New module 'atoll'.
81498         * modules/atoll: New file.
81499         * lib/stdlib.in.h (atoll): New declaration.
81500         * lib/atoll.c: New file, from glibc with modifications.
81501         * m4/atoll.m4: New file.
81502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
81503         HAVE_ATOLL.
81504         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
81505         * doc/posix-functions/atoll.texi: Mention the new module.
81507 2008-10-19  Bruno Haible  <bruno@clisp.org>
81509         Add strtoull() declaration to <stdlib.h>.
81510         * lib/stdlib.in.h (strtoull): New declaration.
81511         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
81512         Set HAVE_STRTOULL.
81513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
81514         HAVE_STRTOULL.
81515         * modules/strtoull (Depends-on): Add stdlib.
81516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81517         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
81518         HAVE_STRTOULL.
81520 2008-10-19  Bruno Haible  <bruno@clisp.org>
81522         Add strtoll() declaration to <stdlib.h>.
81523         * lib/stdlib.in.h (strtoll): New declaration.
81524         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
81525         Set HAVE_STRTOLL.
81526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
81527         HAVE_STRTOLL.
81528         * modules/strtoll (Depends-on): Add stdlib.
81529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81530         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
81532 2008-10-19  Bruno Haible  <bruno@clisp.org>
81534         * modules/bcopy (Depends-on): Add strings.
81535         (Include): Specify <strings.h>.
81537 2008-10-19  Bruno Haible  <bruno@clisp.org>
81539         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
81541 2008-10-19  Bruno Haible  <bruno@clisp.org>
81543         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
81544         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
81545         mingw.
81547 2008-10-19  Bruno Haible  <bruno@clisp.org>
81549         * lib/atanl.c: Don't include isnanl.h.
81550         * lib/cosl.c: Likewise.
81551         * lib/ldexpl.c: Likewise.
81552         * lib/logl.c: Likewise.
81553         * lib/sinl.c: Likewise.
81554         * lib/sqrtl.c: Likewise.
81555         * lib/tanl.c: Likewise.
81557         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
81558         * lib/isnanf.h: Remove file.
81559         * lib/isnand.h: Remove file.
81560         * lib/isnanl.h: Remove file.
81561         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
81562         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
81563         macros.
81564         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
81565         HAVE_ISNANF, don't define it as a C macro.
81566         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
81567         HAVE_ISNAND, don't define it as a C macro.
81568         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
81569         HAVE_ISNANL, don't define it as a C macro.
81570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
81571         HAVE_ISNAN[FDL].
81572         * modules/isnanf (Files): Remove lib/isnanf.h.
81573         (Depends-on): Add math.
81574         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
81575         (Include): Specify <math.h> instead of isnanf.h.
81576         * modules/isnand (Files): Remove lib/isnand.h.
81577         (Depends-on): Add math.
81578         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
81579         (Include): Specify <math.h> instead of isnand.h.
81580         * modules/isnanl (Files): Remove lib/isnanl.h.
81581         (Depends-on): Add math.
81582         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
81583         (Include): Specify <math.h> instead of isnanl.h.
81584         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
81585         HAVE_ISNAN[FDL].
81586         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
81587         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
81588         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
81589         * NEWS: Mention the change.
81591 2008-10-18  Bruno Haible  <bruno@clisp.org>
81593         Add getusershell(), setusershell(), endusershell() declarations to
81594         <unistd.h>.
81595         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
81596         declarations.
81597         * lib/getusershell.c: Include unistd.h.
81598         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
81599         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
81600         HAVE_GETUSERSHELL.
81601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
81602         and HAVE_GETUSERSHELL.
81603         * modules/getusershell (Depends-on): Add unistd, extensions.
81604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81605         (Include): Specify <unistd.h>.
81606         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
81607         HAVE_GETUSERSHELL.
81609 2008-10-18  Bruno Haible  <bruno@clisp.org>
81611         Add a getloadavg() declaration to <stdlib.h>.
81612         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
81613         getloadavg declaration.
81614         (getloadavg): New declaration.
81615         * lib/getloadavg.c: Include <stdlib.h> first.
81616         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
81617         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
81618         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
81619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
81620         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
81621         * modules/getloadavg (Depends-on): Add stdlib, extensions.
81622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81623         (Include): Specify <stdlib.h>.
81624         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
81625         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
81627 2008-10-18  Bruno Haible  <bruno@clisp.org>
81629         * lib/dirchownmod.c: Don't include lchmod.h.
81631         Move the lchmod() declaration to <sys/stat.h>.
81632         * lib/lchmod.h: Remove file.
81633         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
81634         (lchmod): New declaration, moved here from lib/lchown.h.
81635         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
81636         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
81637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
81638         and HAVE_LCHMOD.
81639         * modules/lchmod (Files): Remove lib/lchmod.h.
81640         (Depends-on): Add sys_stat, extensions.
81641         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
81642         (Include): Specify <sys/stat.h> instead of lchmod.h.
81643         * modules/sys_stat (Depends-on): Add link-warning.
81644         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
81645         definition of GL_LINK_WARNING.
81646         * NEWS: Mention the change.
81648 2008-10-18  Bruno Haible  <bruno@clisp.org>
81650         * lib/fchdir.c: Don't include dirfd.h.
81651         * lib/fts.c: Likewise.
81652         * lib/getcwd.c: Likewise.
81653         * lib/glob.c: Likewise.
81655         Move the dirfd() declaration to <dirent.h>.
81656         * lib/dirfd.h: Remove file.
81657         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
81658         (dirfd): New declaration.
81659         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
81660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
81661         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
81662         HAVE_DECL_DIRFD.
81663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
81664         HAVE_DECL_DIRFD.
81665         * modules/dirfd (Files): Remove lib/dirfd.h.
81666         (Depends-on): Add dirent, extensions.
81667         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
81668         (Include): Specify <dirent.h> instead of dirfd.h.
81669         * modules/dirent (Depends-on): Add link-warning.
81670         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
81671         definition of GL_LINK_WARNING.
81672         * NEWS: Mention the change.
81674 2008-10-18  Bruno Haible  <bruno@clisp.org>
81676         Move the euidaccess() declaration to <unistd.h>.
81677         * lib/euidaccess.h: Remove file.
81678         * lib/unistd.in.h (euidaccess): New declaration.
81679         * lib/euidaccess.c: Don't include euidaccess.h.
81680         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
81681         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
81682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
81683         and HAVE_EUIDACCESS.
81684         * modules/euidaccess (Files): Remove lib/euidaccess.h.
81685         (Depends-on): Add unistd.
81686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81687         (Include): Specify <unistd.h> instead of euidaccess.h.
81688         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
81689         HAVE_EUIDACCESS.
81690         * NEWS: Mention the change.
81692 2008-10-18  Bruno Haible  <bruno@clisp.org>
81694         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
81696         Move the getdomainname() declaration to <unistd.h>.
81697         * lib/getdomainname.h: Remove file.
81698         * lib/unistd.in.h (getdomainname): New declaration.
81699         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
81700         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
81701         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
81702         HAVE_GETDOMAINNAME.
81703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81704         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
81705         * modules/getdomainname (Files): Remove lib/getdomainname.h.
81706         (Depends-on): Add unistd, extensions.
81707         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81708         (Includes): Specify <unistd.h> instead of getdomainname.h.
81709         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
81710         HAVE_GETDOMAINNAME.
81711         * NEWS: Mention the change.
81713 2008-10-18  Bruno Haible  <bruno@clisp.org>
81715         * modules/dirent: New file.
81716         * m4/dirent_h.m4: New file.
81717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
81718         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
81719         * modules/fchdir (Files): Remove lib/dirent.in.h.
81720         (Depends-on): Add dirent.
81721         (Makefile.am): Move rules to modules/dirent.
81722         * doc/posix-headers/dirent.texi: Mention the new module.
81724 2008-10-18  Bruno Haible  <bruno@clisp.org>
81726         Avoid -Wunused-parameter warnings in public gnulib header files.
81727         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
81728         macro.
81729         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
81731 2008-10-18  Bruno Haible  <bruno@clisp.org>
81733         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
81734         * doc/glibc-functions/error.texi: Mention the module 'error'.
81735         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
81736         * doc/glibc-functions/getdomainname.texi: Mention the module
81737         'getdomainname'.
81738         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
81739         * doc/glibc-functions/getpagesize.texi: Mention the module
81740         'getpagesize'.
81741         * doc/glibc-functions/getusershell.texi: Mention the module
81742         'getusershell'.
81743         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
81744         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
81745         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
81746         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
81747         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
81748         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
81749         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
81750         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
81751         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
81752         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
81753         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
81754         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
81755         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
81756         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
81758 2008-10-17  Bruno Haible  <bruno@clisp.org>
81760         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
81761         HP-UX and IRIX, use -0.0L.
81762         * tests/test-ceill.c (minus_zero): Likewise.
81763         * tests/test-floorl.c (minus_zero): Likewise.
81764         * tests/test-frexpl.c (minus_zero): Likewise.
81765         * tests/test-isnan.c (minus_zerol): Likewise.
81766         * tests/test-isnanl.h (minus_zero): Likewise.
81767         * tests/test-ldexpl.c (minus_zero): Likewise.
81768         * tests/test-roundl.c (minus_zero): Likewise.
81769         * tests/test-signbit.c (minus_zerol): Likewise.
81770         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
81771         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
81772         * tests/test-truncl.c (minus_zero): Likewise.
81773         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
81774         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
81775         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
81776         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
81778 2008-10-17  Bruno Haible  <bruno@clisp.org>
81780         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
81781         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
81782         that it gets activated only for gcc >= 3.0.
81783         * lib/dirent.in.h: Likewise.
81784         * lib/errno.in.h: Likewise.
81785         * lib/fcntl.in.h: Likewise.
81786         * lib/float.in.h: Likewise.
81787         * lib/iconv.in.h: Likewise.
81788         * lib/inttypes.in.h: Likewise.
81789         * lib/locale.in.h: Likewise.
81790         * lib/math.in.h: Likewise.
81791         * lib/netdb.in.h: Likewise.
81792         * lib/netinet_in.in.h: Likewise.
81793         * lib/search.in.h: Likewise.
81794         * lib/signal.in.h: Likewise.
81795         * lib/spawn.in.h: Likewise.
81796         * lib/stdarg.in.h: Likewise.
81797         * lib/stdint.in.h: Likewise.
81798         * lib/stdio.in.h: Likewise.
81799         * lib/stdlib.in.h: Likewise.
81800         * lib/string.in.h: Likewise.
81801         * lib/strings.in.h: Likewise.
81802         * lib/sys_file.in.h: Likewise.
81803         * lib/sys_ioctl.in.h: Likewise.
81804         * lib/sys_select.in.h: Likewise.
81805         * lib/sys_socket.in.h: Likewise.
81806         * lib/sys_stat.in.h: Likewise.
81807         * lib/sys_time.in.h: Likewise.
81808         * lib/sysexits.in.h: Likewise.
81809         * lib/time.in.h: Likewise.
81810         * lib/unistd.in.h: Likewise.
81811         * lib/wchar.in.h: Likewise.
81812         * lib/wctype.in.h: Likewise.
81813         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81815 2008-10-17  Jim Meyering  <meyering@redhat.com>
81817         ignore-value: don't depend on inline module
81818         * modules/ignore-value (Depends-on): Remove 'inline'.
81819         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
81820         Suggestion from Bruno Haible.
81822 2008-10-17  Bruno Haible  <bruno@clisp.org>
81824         New implementation of condition variables for Win32.
81825         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
81826         (gl_linked_waitqueue_t): New type.
81827         (gl_cond_t): Use it.
81828         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
81829         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
81830         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
81831         (glthread_cond_init_func, glthread_cond_wait_func,
81832         glthread_cond_timedwait_func, glthread_cond_signal_func,
81833         glthread_cond_broadcast_func, glthread_cond_destroy_func):
81834         Reimplemented on the basis of gl_linked_waitqueue_t.
81835         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
81836         gl_waitqueue_t.
81837         (gl_rwlock_t): Update.
81838         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
81840 2008-10-17  Simon Josefsson  <simon@josefsson.org>
81842         * modules/recvfrom (Depends-on): Add dependency on getpeername.
81843         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81845 2008-10-17  Jim Meyering  <meyering@redhat.com>
81847         ignore-value: new module
81848         * modules/ignore-value: New file.
81849         * lib/ignore-value.h: New file.
81850         * MODULES.html.sh (Compiler warning management): New section,
81851         just for this module.  More to come.
81853 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
81855         open-safer.c: avoid 'signed and unsigned in conditional...' warning
81856         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
81857         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
81859 2008-10-16  Jim Meyering  <meyering@redhat.com>
81861         openat-die.c: avoid 'no previous prototype' warning
81862         * lib/openat-die.c: Include "openat.h".
81863         Reported by Reuben Thomas <rrt@sc3d.org>.
81865 2008-10-16  Simon Josefsson  <simon@josefsson.org>
81867         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
81868         * lib/netdb.in.h: Fix typo.
81869         Reported by Bruno Haible  <bruno@clisp.org>
81871         * lib/netdb.in.h: Include sys/socket.h for platforms without
81872         netdb.h, to get structures like hostent on MinGW.
81873         * modules/netdb (Depends-on): Add sys_socket.
81875 2008-10-15  Simon Josefsson  <simon@josefsson.org>
81877         * modules/netdb, modules/netdb-tests: New file.
81878         * m4/netdb_h.m4: New file.
81879         * lib/netdb.in.h: Add, currently just an empty file pending
81880         definitions.
81881         * tests/test-netdb.c: New file.
81882         * doc/posix-headers/netdb.texi: Mention that we replace it if
81883         needed.
81884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81885         netdb.
81887 2008-10-15  Simon Josefsson  <simon@josefsson.org>
81889         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
81890         with code.
81892 2008-10-13  Bruno Haible  <bruno@clisp.org>
81894         * lib/glthread/cond.c (glthread_cond_wait_func,
81895         glthread_cond_timedwait_func): Add a comment.
81897 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81899         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
81900         * tests/test-select.c: Likewise,
81902 2008-10-13  Bruno Haible  <bruno@clisp.org>
81904         * lib/glthread/cond.c (glthread_cond_wait_func,
81905         glthread_cond_timedwait_func): Fix variable name.
81906         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81908 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
81910         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
81911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
81912         struct sockaddr.sa_len.
81913         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
81915 2008-10-13  Simon Josefsson  <simon@josefsson.org>
81917         * build-aux/pmccabe2html: Add css and css_url parameters.
81919 2008-10-12  Bruno Haible  <bruno@clisp.org>
81921         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
81922         calling aclx_get.
81923         Reported by Rainer Tammer <tammer@tammer.net>.
81925 2008-10-12  Bruno Haible  <bruno@clisp.org>
81927         Use msvcrt aware primitives for creation/termination of Win32 threads.
81928         * lib/glthread/thread.c: Include <process.h>.
81929         (glthread_create_func): Use _beginthreadex instead of CreateThread.
81930         (wrapper_func): Update signature.
81931         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
81933 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81934             Bruno Haible  <bruno@clisp.org>
81936         Provide a Win32 implementation of the 'cond' module.
81937         * lib/glthread/cond.h [USE_WIN32]: New implementation.
81938         * lib/glthread/cond.c (glthread_cond_init_func,
81939         glthread_cond_wait_func, glthread_cond_timedwait_func,
81940         glthread_cond_signal_func, glthread_cond_broadcast_func,
81941         glthread_cond_destroy_func) [USE_WIN32]: New functions.
81942         * modules/cond (Dependencies): Add gettimeofday.
81944 2008-10-11  Bruno Haible  <bruno@clisp.org>
81946         Make sleep work on older versions of mingw.
81947         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
81948         only whether it exists.
81949         * doc/posix-functions/sleep.texi: Mention the problem with older
81950         versions of mingw.
81952 2008-10-11  Bruno Haible  <bruno@clisp.org>
81954         New module 'shutdown'.
81955         * modules/shutdown: New file.
81956         * lib/sys_socket.in.h (shutdown): New declaration.
81957         * lib/winsock.c (shutdown): New function.
81958         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81959         GNULIB_SHUTDOWN.
81960         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
81961         * doc/posix-functions/shutdown.texi: Document the new module.
81963 2008-10-11  Jim Meyering  <meyering@redhat.com>
81965         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
81967 2008-10-11  Bruno Haible  <bruno@clisp.org>
81969         New module 'fclose'.
81970         * modules/fclose: New file.
81971         * lib/stdio.in.h (fclose): New declaration.
81972         * lib/fclose.c: New file.
81973         * m4/fclose.m4: New file.
81974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
81975         REPLACE_FCLOSE.
81976         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
81977         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
81978         REPLACE_FCLOSE.
81979         * modules/close (Depends-on): fclose.
81980         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
81982 2008-10-11  Bruno Haible  <bruno@clisp.org>
81984         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
81985         set errno and don't call _close.
81987 2008-10-10  Bruno Haible  <bruno@clisp.org>
81989         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
81990         ACL, not afterwards. Fixes test failure on Cygwin.
81992 2008-10-09  Ben Pfaff  <blp@gnu.org>
81994         * build-aux/announce-gen: Fix gnulib version related part of usage
81995         message.  Die with a useful error message if no tarballs are
81996         found.
81998 2008-10-10  Jim Meyering  <meyering@redhat.com>
82000         bootstrap: use git's --depth=N option only if it's supported
82001         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
82002         recognize the --depth option.  Reported by Pádraig Brady.
82004 2008-10-09  Bruno Haible  <bruno@clisp.org>
82006         New module 'ioctl'.
82007         * modules/ioctl: New file.
82008         * lib/sys_socket.in.h (ioctl): Remove declaration.
82009         * lib/winsock.c: Include <sys/ioctl.h>.
82010         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
82011         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
82012         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
82013         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
82014         * doc/posix-functions/ioctl.texi: Mention the new module.
82016 2008-10-09  Bruno Haible  <bruno@clisp.org>
82018         New module 'sys_ioctl'.
82019         * lib/sys_ioctl.in.h: New file.
82020         * m4/sys_ioctl_h.m4: New file.
82021         * modules/sys_ioctl: New file.
82022         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
82024 2008-10-09  Bruno Haible  <bruno@clisp.org>
82026         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
82027         * lib/winsock.c: Include <stdarg.h>.
82028         (rpl_ioctl): Change to second argument 'int' and then varargs.
82030 2008-10-09  Bruno Haible  <bruno@clisp.org>
82032         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
82033         when the sys_socket module is present and the system has <winsock2.h>.
82035 2008-10-09  Bruno Haible  <bruno@clisp.org>
82037         * doc/posix-functions/close.texi: Mention module 'close' instead of
82038         module 'sys_socket'.
82040 2008-10-09  Bruno Haible  <bruno@clisp.org>
82042         * doc/glibc-headers/sys_ioctl.texi: New file.
82043         * doc/gnulib.texi: Include it.
82045 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82046             Bruno Haible  <bruno@clisp.org>
82048         Combine the two replacements of 'close'.
82049         * lib/sys_socket.in.h (close): Define to a reminder to include
82050         <unistd.h>.
82051         (_gl_close_fd_maybe_socket): New declaration.
82052         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
82053         * lib/winsock.c (close): Remove undefinition.
82054         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
82055         needed for the gnulib module 'close'.
82056         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
82057         define to an error symbol or to a warning, if suitable.
82058         * lib/close.c: Include <sys/socket.h>.
82059         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
82060         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
82061         UNISTD_H_HAVE_WINSOCK2_H.
82062         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
82063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82064         UNISTD_H_HAVE_WINSOCK2_H.
82065         * modules/sys_socket (Files): Add m4/unistd_h.m4.
82066         (configure.ac): Set a module indicator.
82067         (Makefile.am): Substitute GNULIB_CLOSE.
82068         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
82069         * modules/poll-tests (Depends-on): Add close.
82070         * modules/select-tests (Depends-on): Likewise.
82072 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82073             Bruno Haible  <bruno@clisp.org>
82075         New module 'close'.
82076         * modules/close: New file.
82077         * lib/unistd.in.h (close): Move declaration out of the
82078         FCHDIR_REPLACEMENT scope.
82079         (_gl_unregister_fd): New declaration.
82080         * lib/close.c: New file.
82081         * lib/fchdir.c (rpl_close): Remove function.
82082         * m4/close.m4: New file.
82083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82084         close.
82085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
82086         REPLACE_CLOSE.
82087         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
82088         REPLACE_CLOSE.
82089         * modules/fchdir (Depends-on): Add close.
82091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82092             Bruno Haible  <bruno@clisp.org>
82094         * lib/fcntl.in.h (open): Simplify conditionals.
82095         (_gl_register_fd): New declaration.
82096         * lib/fchdir.c (rpl_open): Remove function.
82097         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
82098         also.
82099         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
82100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
82101         open.
82103 2008-10-09  Jim Meyering  <meyering@redhat.com>
82105         GNUmakefile: use the more name-space-friendly "_version"
82106         * top/GNUmakefile (_dummy): Update.
82107         (_version): Rename from "version".
82109 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82110             Bruno Haible  <bruno@clisp.org>
82112         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
82113         rpl_close.
82114         (_gl_register_fd): New function, extracted from rpl_open.
82115         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
82116         (rpl_open, rpl_opendir): Use _gl_register_fd.
82118 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
82120         Fix organization of 'open' replacement.
82121         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
82122         (gl_FUNC_OPEN): Use it.
82123         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
82125 2008-10-08  Bruno Haible  <bruno@clisp.org>
82127         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
82129 2008-10-08  Simon Josefsson  <simon@josefsson.org>
82131         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
82132         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
82133         listen).
82135 2008-10-08  Eric Blake  <ebb9@byu.net>
82137         GNUmakefile: add 'make version' target
82138         * top/GNUmakefile (_curr-ver): Split version update rules...
82139         (version): ...into a target.
82141 2008-10-07  Bruno Haible  <bruno@clisp.org>
82143         Use a more portable replacement expression for -0.0L.
82144         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
82145         instead of -0.0L. Fix m4 quotation.
82147         * tests/test-signbit.c: Include <float.h>.
82148         (minus_zero): New variable.
82149         (test_signbitl): Use minus_zero instead of -zero.
82150         * modules/signbit-tests (Depends-on): Add float.
82152         * tests/test-ceill.c: Include <float.h>.
82153         (zero): Remove variable.
82154         (minus_zero): New variable.
82155         (main): Use minus_zero instead of -zero.
82156         * modules/ceill-tests (Depends-on): Add float.
82158         * tests/test-floorl.c: Include <float.h>.
82159         (zero): Remove variable.
82160         (minus_zero): New variable.
82161         (main): Use minus_zero instead of -zero.
82162         * modules/floorl-tests (Depends-on): Add float.
82164         * tests/test-roundl.c: Include <float.h>.
82165         (zero): Remove variable.
82166         (minus_zero): New variable.
82167         (main): Use minus_zero instead of -zero.
82168         * modules/roundl-tests (Depends-on): Add float.
82170         * tests/test-truncl.c: Include <float.h>.
82171         (zero): Remove variable.
82172         (minus_zero): New variable.
82173         (main): Use minus_zero instead of -zero.
82174         * modules/truncl-tests (Depends-on): Add float.
82176         * tests/test-frexpl.c (zero): Remove variable.
82177         (minus_zero): New variable.
82178         (main): Use minus_zero instead of -zero.
82179         * modules/frexpl-tests (Depends-on): Add float.
82181         * tests/test-isnan.c (zerol): Remove variable.
82182         (minus_zerol): New variable.
82183         (test_long_double): Use minus_zerol instead of -zerol.
82184         * modules/isnan-tests (Depends-on): Add float.
82186         * tests/test-isnanl.h (zero): Remove variable.
82187         (minus_zero): New variable.
82188         (main): Use minus_zero instead of -zero.
82189         * modules/isnanl-nolibm-tests (Depends-on): Add float.
82190         * modules/isnanl-tests (Depends-on): Add float.
82192         * tests/test-ldexpl.c (zero): Remove variable.
82193         (minus_zero): New variable.
82194         (main): Use minus_zero instead of -zero.
82195         * modules/ldexpl-tests (Depends-on): Add float.
82197         * tests/test-snprintf-posix.h (zerol): Remove variable.
82198         (minus_zerol): New variable.
82199         (test_function): Use minus_zerol instead of -zerol.
82200         * modules/snprintf-posix-tests (Depends-on): Add float.
82201         * modules/vsnprintf-posix-tests (Depends-on): Add float.
82203         * tests/test-sprintf-posix.h (zerol): Remove variable.
82204         (minus_zerol): New variable.
82205         (test_function): Use minus_zerol instead of -zerol.
82206         * modules/sprintf-posix-tests (Depends-on): Add float.
82207         * modules/vsprintf-posix-tests (Depends-on): Add float.
82209         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
82210         (minus_zerol): New variable.
82211         (test_function): Use minus_zerol instead of -zerol.
82212         * modules/vasnprintf-posix-tests (Depends-on): Add float.
82214         * tests/test-vasprintf-posix.c (zerol): Remove variable.
82215         (minus_zerol): New variable.
82216         (test_function): Use minus_zerol instead of -zerol.
82217         * modules/vasprintf-posix-tests (Depends-on): Add float.
82219 2008-10-07  Simon Josefsson  <simon@josefsson.org>
82221         * MODULES.html.sh (Support for building documentation): Mention
82222         pmccabe2html.  Sort entries.
82224         Add pmccabe2html module, from gnupdf.
82225         * build-aux/pmccabe.css: New file.
82226         * build-aux/pmccabe2html: New file.
82227         * m4/pmccabe2html.m4: New file.
82228         * modules/pmccabe2html: New file.
82230 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
82232         flock: new module
82233         * MODULES.html.sh: Add to list of modules.
82234         * lib/flock.c: flock implementation for Windows and Unix systems
82235         which have fcntl.
82236         * doc/glibc-functions/flock.texi: Update documentation.
82237         * lib/sys_file.in.h: <sys/file.h> header file.
82238         * m4/flock.m4: M4 macros.
82239         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
82240         * modules/flock: flock module.
82241         * modules/flock-tests: flock tests module.
82242         * modules/sys_file: sys/file.h module.
82243         * tests/test-flock.c: test suite for flock.
82245 2008-10-06  Jim Meyering  <meyering@redhat.com>
82247         bootstrap: check for LT_INIT more portably still ;-)
82248         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
82249         Spotted by Bruno Haible.
82251 2008-10-06  Eric Blake  <ebb9@byu.net>
82253         test-signbit: avoid tripping Irix cc bug on -0.0L
82254         * tests/test-signbit.c (minus_zerol): Delete, and replace with
82255         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
82256         entire testsuite consistent and avoids an Irix 6.2 bug.
82258 2008-10-05  Bruno Haible  <bruno@clisp.org>
82259             Jim Meyering  <jim@meyering.net>
82261         Add an option for ignoring EPIPE during close_stdout.
82262         * lib/closeout.h: Include <stdbool.h>.
82263         (close_stdout_set_ignore_EPIPE): New declaration.
82264         * lib/closeout.c: Include <stdbool.h>.
82265         (ignore_EPIPE): New variable.
82266         (close_stdout_set_ignore_EPIPE): New function.
82267         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
82268         * lib/close-stream.c (close_stream): Mention the possible EPIPE
82269         failure.
82270         * modules/closeout (Depends-on): Add stdbool.
82272 2008-10-05  Bruno Haible  <bruno@clisp.org>
82274         * modules/accept: New file.
82275         * modules/bind: New file.
82276         * modules/connect: New file.
82277         * modules/getpeername: New file.
82278         * modules/getsockname: New file.
82279         * modules/getsockopt: New file.
82280         * modules/listen: New file.
82281         * modules/recv: New file.
82282         * modules/recvfrom: New file.
82283         * modules/send: New file.
82284         * modules/sendto: New file.
82285         * modules/setsockopt: New file.
82286         * modules/socket: New file.
82287         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
82288         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
82289         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
82290         the particular module is requested. Add a link warning when the
82291         particular module is not requested.
82292         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
82293         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
82294         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
82295         the particular module is requested.
82296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
82297         gl_SYS_SOCKET_H_DEFAULTS): New macros.
82298         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
82299         * modules/sys_socket (Depends-on): Add link-warning.
82300         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
82301         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
82302         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
82303         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
82304         GL_LINK_WARNING.
82305         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
82306         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
82307         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
82308         * doc/posix-functions/getpeername.texi: Mention the new module
82309         'getpeername'.
82310         * doc/posix-functions/getsockname.texi: Mention the new module
82311         'getsockname'.
82312         * doc/posix-functions/getsockopt.texi: Mention the new module
82313         'getsockopt'.
82314         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
82315         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
82316         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
82317         * doc/posix-functions/send.texi: Mention the new module 'send'.
82318         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
82319         * doc/posix-functions/setsockopt.texi: Mention the new module
82320         'setsockopt'.
82321         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
82322         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
82323         listen, connect, accept.
82324         * modules/select-tests (Depends-on): Likewise.
82326 2008-10-05  Bruno Haible  <bruno@clisp.org>
82328         * lib/winsock.c (strerror): Remove unused #undef.
82329         (rpl_close): Remove unused local variable.
82331         * modules/sys_socket (Depends-on); Add errno.
82333 2008-10-05  Bruno Haible  <bruno@clisp.org>
82335         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
82336         (select): Add a link warning when the 'select' module is not used.
82337         * modules/sys_select (Depends-on): Add link-warning.
82338         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
82339         Suggested by Paolo Bonzini.
82341 2008-10-05  Jim Meyering  <meyering@redhat.com>
82343         bootstrap: check for LT_INIT more portably
82344         * build-aux/bootstrap: Avoid using grep -E, since it's not
82345         portable enough.  Suggestion from Bruno Haible.
82347 2008-10-05  Bruno Haible  <bruno@clisp.org>
82349         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
82350         as being fixed by gnulib.
82352 2008-10-05  Bruno Haible  <bruno@clisp.org>
82354         * modules/select-tests: New file, mostly copied from
82355         modules/sys_select-tests.
82356         * tests/test-select.c: New file, mostly copied from
82357         tests/test-sys_select.c.
82358         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
82359         * modules/sys_select-tests (Depends-on): Remove all dependencies.
82360         (Makefile.am): Remove test_sys_select_LDADD.
82362         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
82363         to an undefined symbol, for an error message.
82364         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
82365         (gl_SYS_SELECT_H_DEFAULTS): New macro.
82366         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
82367         winsock-select.c here.
82368         * modules/sys_select (Files): Remove lib/winsock-select.c.
82369         (Depends-on): Remove alloca.
82370         (Makefile.am): Substitute GNULIB_SELECT.
82371         * modules/select: New file.
82372         * doc/posix-functions/select.texi: Update.
82374 2008-10-05  Bruno Haible  <bruno@clisp.org>
82376         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
82377         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
82378         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
82379         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
82380         getdtablesize.
82381         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
82382         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
82384 2008-10-05  Bruno Haible  <bruno@clisp.org>
82386         * modules/getdtablesize-tests: New file.
82387         * tests/test-getdtablesize.c: New file.
82389         New module 'getdtablesize'.
82390         * lib/unistd.in.h (getdtablesize): New declaration.
82391         * lib/getdtablesize.c: New file.
82392         * m4/getdtablesize.m4: New file.
82393         * modules/getdtablesize: New file.
82394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82395         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
82396         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
82397         HAVE_GETDTABLESIZE.
82398         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
82400 2008-10-05  Bruno Haible  <bruno@clisp.org>
82402         * modules/sched (Makefile.am): Fix typo.
82403         Reported by Simon Josefsson.
82405 2008-10-05  Jim Meyering  <meyering@redhat.com>
82407         bootstrap: check for LT_INIT, too
82408         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
82409         are deprecated.  Suggestion from Ralf Wildenhues.
82411 2008-10-05  Bruno Haible  <bruno@clisp.org>
82413         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
82414         overriding them by ours.
82415         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
82417 2008-10-05  Jim Meyering  <meyering@redhat.com>
82419         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
82420         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
82421         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
82423 2008-10-04  Bruno Haible  <bruno@clisp.org>
82425         * modules/dup2 (License): Change to LGPLv2+.
82426         * modules/sleep (License): Likewise.
82427         * modules/perror (License): Likewise.
82428         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
82429         Blake.
82430         * modules/signal (License): Likewise.
82431         * modules/sigprocmask (License): Likewise.
82432         * modules/raise (License): Change to LGPLv2+, with approval by Jim
82433         Meyering.
82435 2008-10-04  Bruno Haible  <bruno@clisp.org>
82437         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
82438         Reported by Rainer Tammer <tammer@tammer.net>.
82440 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
82441             Bruno Haible  <bruno@clisp.org>
82443         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
82444         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
82445         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
82447 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
82449         filevercmp: new module
82450         * lib/filevercmp.h: New function filevercmp comparing version strings.
82451         * lib/filevercmp.c: Implementation of filevercmp function.
82452         * modules/filevercmp: Module metadata.
82453         * tests/test-filevercmp.c: Unit test for new module.
82454         * modules/filevercmp-tests: Unit test metadata.
82455         * MODULES.html.sh: Add filevercmp module.
82457 2008-10-03  Bruno Haible  <bruno@clisp.org>
82459         * lib/c-ctype.h: Add comment.
82460         Reported by Jim Meyering.
82462 2008-10-02  Bruno Haible  <bruno@clisp.org>
82464         * modules/posix_spawn-internal (Depends-on): Add 'open'.
82466 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82468         * build-aux/bootstrap: Allow renaming bootstrap, and change the
82469         name of bootstrap.conf accordingly.
82471 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82473         * build-aux/bootstrap: Install git-merge-changelog configuration
82474         items into .gitconfig if needed.
82476 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
82478         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
82479         git repository, and initialize/update it accordingly.
82481 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
82483         * modules/fsync-tests: New file.
82484         * tests/test-fsync.c: New file.
82486         New module 'fsync'.
82487         * lib/fsync.c: New file.
82488         * m4/fsync.m4: New file.
82489         * modules/fsync: New file.
82490         * lib/unistd.in.h (fsync): New declaration.
82491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
82492         GNULIB_FSYNC and HAVE_FSYNC.
82493         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
82494         * MODULES.html.sh (posix_functions): Add fsync.
82495         * doc/posix-functions/fsync.texi: Mention the new module.
82497 2008-10-02  Jim Meyering  <meyering@redhat.com>
82499         fts.c: sync with similar code from coreutils' remove.c
82500         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
82501         Guard also with "#if defined __linux__", since for now at least,
82502         this code is Linux-kernel-specific.
82504 2008-10-02  Jim Meyering  <meyering@redhat.com>
82506         fts: bug fixes
82507         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
82508         Include <sys/vfs.h>, not <sys/statfs.h>.
82510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
82511         Include <sys/vfs.h>, not <sys/statfs.h>.
82513 2008-10-01  Bruno Haible  <bruno@clisp.org>
82515         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
82516         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
82517         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
82518         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
82519         * doc/posix-functions/posix_spawnp.texi: Likewise.
82520         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
82521         whether posix_spawn actually works.
82522         * m4/pipe.m4 (gl_PIPE): Likewise.
82523         * modules/execute (Files): Add m4/posix_spawn.m4.
82524         * modules/pipe (Files): Add m4/posix_spawn.m4.
82525         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
82527 2008-10-01  Jim Meyering  <meyering@redhat.com>
82529         remove trailing spaces
82530         * NEWS: Likewise.
82531         * lib/poll.c (poll): Likewise.
82532         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
82533         * lib/winsock.c (rpl_close): Likewise.
82534         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
82535         * modules/yield: Likewise.
82536         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
82537         * tests/test-sys_select.c (connect_to_socket): Likewise.
82539         fts.c: adjust a new interface to be more generally useful
82540         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
82541         (fts_build): Adjust caller.
82543 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82545         * modules/cond-tests: New file.
82546         * tests/test-cond.c: New file.
82548 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82549             Bruno Haible  <bruno@clisp.org>
82551         * modules/cond (Dependencies): Add errno, time.
82552         * lib/glthread/cond.h: Include <time.h>.
82553         (gl_cond_define, gl_cond_define_initialized): Use the same definition
82554         across platforms.
82556 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82557             Bruno Haible  <bruno@clisp.org>
82559         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
82561 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82562             Bruno Haible  <bruno@clisp.org>
82564         * modules/tls-tests (Depends-on): Add thread, yield.
82565         (configure.ac): Remove all checks.
82566         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
82567         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
82568         gl_thread_self): Remove definitions. Include glthread/thread.h and
82569         glthread/yield.h instead.
82570         (test_tls): Pass an additional NULL argument to gl_thread_join.
82572 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82573             Bruno Haible  <bruno@clisp.org>
82575         * modules/lock-tests (Depends-on): Add thread, yield.
82576         (configure.ac): Remove all checks.
82577         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
82578         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
82579         gl_thread_self): Remove definitions. Include glthread/thread.h and
82580         glthread/yield.h instead.
82581         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
82582         additional NULL argument to gl_thread_join.
82584 2008-09-30  Bruno Haible  <bruno@clisp.org>
82586         Fix the Win32 implementation of the 'thread' module.
82587         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
82588         pointer type.
82589         (gl_thread_self): Invoke gl_thread_self_func.
82590         (gl_thread_self_func): New declaration.
82591         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
82592         (do_init_self_key, init_self_key): New functions.
82593         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
82594         Remove some fields.
82595         (running_threads, running_lock): Remove variables.
82596         (get_current_thread_handle): New function.
82597         (gl_thread_self_func, wrapper_func, glthread_create_func,
82598         glthread_join_func, gl_thread_exit_func): Largely rewritten and
82599         simplified.
82601 2008-09-30  Bruno Haible  <bruno@clisp.org>
82603         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
82604         files.
82606 2008-09-30  Jim Meyering  <meyering@redhat.com>
82608         fts.m4: correct the test for statfs.f_type
82609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
82610         when checking for statfs.f_type.
82612 2008-09-15  Simon Josefsson  <simon@josefsson.org>
82614         tests: avoid some compiler warnings
82615         * tests/test-memchr.c (main): Pass NULL indirectly.
82616         * tests/test-getdate.c (main): Remove unused variable 'ret'.
82618 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
82620         getdate.y: disallow countable dayshifts like "4 yesterday ago"
82621         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
82622         exactly specified dayshifts.
82623         (dayshift): New rule.
82624         (rel): Add dayshift.
82625         (relative_time_table) [tomorrow, yesterday, today, now]:
82626         Use tDAY_SHIFT in place of tDAY_UNIT.
82627         * tests/test-getdate.c: Add tests for now-disallowed countable
82628         dayshifts, e.g., "4 yesterday ago".
82630 2008-09-29  Bruno Haible  <bruno@clisp.org>
82632         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
82633         * tests/test-posix_spawn1.in.sh: Renamed from
82634         tests/test-posix_spawn.in.sh.
82635         * tests/test-posix_spawn2.c: New file.
82636         * tests/test-posix_spawn2.in.sh: New file.
82637         * modules/posix_spawnp-tests (Files): Update.
82638         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
82640 2008-09-29  Bruno Haible  <bruno@clisp.org>
82642         Propagate effects of putenv/setenv/unsetenv to child processes.
82643         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
82644         * lib/pipe.c (create_pipe): Likewise.
82646 2008-09-29  Bruno Haible  <bruno@clisp.org>
82648         Enable use of shell scripts as executables in mingw.
82649         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
82650         run the program as a shell script.
82651         * lib/pipe.c (create_pipe): Likewise.
82652         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
82653         resulting array.
82655 2008-09-29  Eric Blake  <ebb9@byu.net>
82657         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
82659 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
82661         * doc/posix-functions/accept.texi: Update mingw problems.
82662         * doc/posix-functions/bind.texi: Update mingw problems.
82663         * doc/posix-functions/close.texi: Update mingw problems.
82664         * doc/posix-functions/connect.texi: Update mingw problems.
82665         * doc/posix-functions/getpeername.texi: Update mingw problems.
82666         * doc/posix-functions/getsockname.texi: Update mingw problems.
82667         * doc/posix-functions/getsockopt.texi: Update mingw problems.
82668         * doc/posix-functions/ioctl.texi: Update mingw problems.
82669         * doc/posix-functions/listen.texi: Update mingw problems.
82670         * doc/posix-functions/recv.texi: Update mingw problems.
82671         * doc/posix-functions/recvfrom.texi: Update mingw problems.
82672         * doc/posix-functions/select.texi: Update mingw problems.
82673         * doc/posix-functions/send.texi: Update mingw problems.
82674         * doc/posix-functions/sendto.texi: Update mingw problems.
82675         * doc/posix-functions/setsockopt.texi: Update mingw problems.
82676         * doc/posix-functions/socket.texi: Update mingw problems.
82678 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
82679             Bruno Haible  <bruno@clisp.org>
82681         * lib/sys_select.in.h: Include sys/time.h.
82682         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
82683         * modules/sys_select: Depend on sys_time.
82684         * tests/test-sys_select.c: Test that sys/select.h defines struct
82685         timeval fully.
82687 2008-09-29  Bruno Haible  <bruno@clisp.org>
82689         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
82690         * lib/sys_select.in.h: Likewise.
82692 2008-09-29  Bruno Haible  <bruno@clisp.org>
82694         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
82696 2008-09-29  Bruno Haible  <bruno@clisp.org>
82698         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
82699         Set LIBSOCKET instead of augmenting LIBS.
82700         * modules/sockets (Link): New section.
82701         * modules/sockets-tests (test_sockets_LDADD): New variable.
82702         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
82703         * modules/poll-tests (test_poll_LDADD): New variable.
82704         * NEWS: Document the change.
82706 2008-09-29  Bruno Haible  <bruno@clisp.org>
82708         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
82709         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
82710         ARPA_INET_H directly.
82711         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
82713 2008-09-28  Bruno Haible  <bruno@clisp.org>
82715         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
82716         from gl_HEADER_SYS_SOCKET.
82717         (gl_HEADER_SYS_SOCKET): Invoke it.
82718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
82720 2008-09-28  Bruno Haible  <bruno@clisp.org>
82722         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
82723         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
82724         Needed on OSF/1 4.0.
82726 2008-09-28  Bruno Haible  <bruno@clisp.org>
82728         Override open more carefully.
82729         * lib/open.c (orig_open): New function.
82730         (rpl_open): Use orig_open instead of open.
82731         * lib/fcntl.in.h: Add special invocation convention.
82732         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
82733         (gl_FUNC_OPEN): Invoke it.
82735         Override freopen more carefully.
82736         * lib/freopen.c (orig_freopen): New function.
82737         (rpl_freopen): Use orig_freopen instead of freopen.
82738         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
82739         (gl_FUNC_FREOPEN): Invoke it.
82741         Override fopen more carefully.
82742         * lib/fopen.c (orig_fopen): New function.
82743         (rpl_fopen): Use orig_fopen instead of fopen.
82744         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
82745         (gl_FUNC_FOPEN): Invoke it.
82746         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
82748 2008-09-28  Bruno Haible  <bruno@clisp.org>
82750         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
82751         SIGPIPE.
82753 2008-09-28  Bruno Haible  <bruno@clisp.org>
82755         * tests/test-sigaction.c (handler, main): Disable the check whether
82756         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
82757         glibc systems with LinuxThreads.
82759 2008-09-28  Bruno Haible  <bruno@clisp.org>
82761         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
82763         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
82764         with AIX xlc.
82765         * lib/fcntl.in.h (open): Likewise.
82766         Reported by Rainer Tammer <tammer@tammer.net>.
82768 2008-09-28  Bruno Haible  <bruno@clisp.org>
82770         * modules/posix_spawnp-tests: New file.
82771         * tests/test-posix_spawn.c: New file.
82772         * tests/test-posix_spawn.in.sh: New file.
82774         New module 'posix_spawnp'.
82775         * modules/posix_spawnp: New file.
82776         * lib/spawnp.c: New file, from GNU libc with modifications.
82777         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
82779         New module 'posix_spawn'.
82780         * modules/posix_spawn: New file.
82781         * lib/spawn.c: New file, from GNU libc with modifications.
82782         * doc/posix-functions/posix_spawn.texi: Mention the new module.
82784         New module 'posix_spawnattr_destroy'.
82785         * modules/posix_spawnattr_destroy: New file.
82786         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
82787         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
82788         module.
82790         New module 'posix_spawnattr_setsigmask'.
82791         * modules/posix_spawnattr_setsigmask: New file.
82792         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
82793         modifications.
82794         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
82795         new module.
82797         New module 'posix_spawnattr_getsigmask'.
82798         * modules/posix_spawnattr_getsigmask: New file.
82799         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
82800         modifications.
82801         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
82802         new module.
82804         New module 'posix_spawnattr_setsigdefault'.
82805         * modules/posix_spawnattr_setsigdefault: New file.
82806         * lib/spawnattr_setdefault.c: New file, from GNU libc with
82807         modifications.
82808         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
82809         new module.
82811         New module 'posix_spawnattr_getsigdefault'.
82812         * modules/posix_spawnattr_getsigdefault: New file.
82813         * lib/spawnattr_getdefault.c: New file, from GNU libc with
82814         modifications.
82815         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
82816         new module.
82818         New module 'posix_spawnattr_setschedpolicy'.
82819         * modules/posix_spawnattr_setschedpolicy: New file.
82820         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
82821         modifications.
82822         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
82823         new module.
82825         New module 'posix_spawnattr_getschedpolicy'.
82826         * modules/posix_spawnattr_getschedpolicy: New file.
82827         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
82828         modifications.
82829         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
82830         new module.
82832         New module 'posix_spawnattr_setschedparam'.
82833         * modules/posix_spawnattr_setschedparam: New file.
82834         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
82835         modifications.
82836         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
82837         new module.
82839         New module 'posix_spawnattr_getschedparam'.
82840         * modules/posix_spawnattr_getschedparam: New file.
82841         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
82842         modifications.
82843         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
82844         new module.
82846         New module 'posix_spawnattr_setpgroup'.
82847         * modules/posix_spawnattr_setpgroup: New file.
82848         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
82849         modifications.
82850         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
82851         module.
82853         New module 'posix_spawnattr_getpgroup'.
82854         * modules/posix_spawnattr_getpgroup: New file.
82855         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
82856         modifications.
82857         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
82858         module.
82860         New module 'posix_spawnattr_setflags'.
82861         * modules/posix_spawnattr_setflags: New file.
82862         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
82863         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
82864         module.
82866         New module 'posix_spawnattr_getflags'.
82867         * modules/posix_spawnattr_getflags: New file.
82868         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
82869         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
82870         module.
82872         New module 'posix_spawnattr_init'.
82873         * modules/posix_spawnattr_init: New file.
82874         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
82875         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
82876         module.
82878         New module 'posix_spawn_file_actions_destroy'.
82879         * modules/posix_spawn_file_actions_destroy: New file.
82880         * lib/spawn_faction_destroy.c: New file, from GNU libc with
82881         modifications.
82882         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
82883         the new module.
82885         New module 'posix_spawn_file_actions_addopen'.
82886         * modules/posix_spawn_file_actions_addopen: New file.
82887         * lib/spawn_faction_addopen.c: New file, from GNU libc with
82888         modifications.
82889         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
82890         the new module.
82892         New module 'posix_spawn_file_actions_adddup2'.
82893         * modules/posix_spawn_file_actions_adddup2: New file.
82894         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
82895         modifications.
82896         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
82897         the new module.
82899         New module 'posix_spawn_file_actions_addclose'.
82900         * modules/posix_spawn_file_actions_addclose: New file.
82901         * lib/spawn_faction_addclose.c: New file, from GNU libc with
82902         modifications.
82903         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
82904         the new module.
82906         New module 'posix_spawn_file_actions_init'.
82907         * modules/posix_spawn_file_actions_init: New file.
82908         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
82909         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
82910         new module.
82912         New module 'posix_spawn-internal'.
82913         * modules/posix_spawn-internal: New file.
82914         * lib/spawn_int.h: New file, from GNU libc with modifications.
82915         * lib/spawni.c: New file, from GNU libc with modifications.
82916         * m4/posix_spawn.m4: New file.
82918         New module 'spawn'.
82919         * modules/spawn: New file.
82920         * lib/spawn.in.h: New file, from GNU libc with modifications.
82921         * m4/spawn_h.m4: New file.
82922         * doc/posix-headers/spawn.texi: Mention the new module.
82924 2008-09-28  Bruno Haible  <bruno@clisp.org>
82926         * modules/sched-tests: New file.
82927         * tests/test-sched.c: New file.
82929         New module 'sched'.
82930         * modules/sched: New file.
82931         * lib/sched.in.h: New file.
82932         * m4/sched_h.m4: New file.
82933         * doc/posix-headers/sched.texi: Mention the new module.
82935 2008-09-27  Eric Blake  <ebb9@byu.net>
82937         Fix previous patch, and tweak references to $0.
82938         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
82939         (func_version, func_gnulib_dir): Don't call this program
82940         gnulib-tool.
82941         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
82942         with using $0 in function.
82943         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
82944         (func_fatal_error): Reuse the name the user invoked us with.
82946 2008-09-27  Bruno Haible  <bruno@clisp.org>
82948         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
82949         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
82950         (gl_ICONV_H): Not here.
82951         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
82952         instead of assigning ICONV_H directly.
82954         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
82955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
82956         WCHAR_H directly.
82958 2008-09-27  Bruno Haible  <bruno@clisp.org>
82960         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
82961         * modules/arpa_inet (Depends-on): Add link-warning.
82962         (Makefile.am): Insert the definition of GL_LINK-WARNING.
82963         * modules/unistd (Makefile.am): Likewise.
82965 2008-09-26  Bruno Haible  <bruno@clisp.org>
82967         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
82968         variables.
82969         (func_version): Essentially copied from gnulib-tool.
82970         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
82971         func_readlink): Copied from gnulib-tool.
82973 2008-09-26  Bruno Haible  <bruno@clisp.org>
82975         * gnulib-tool (func_version): Change directory to $gnulib_dir before
82976         invoking git-version-gen.
82978 2008-09-26  Bruno Haible  <bruno@clisp.org>
82980         * posix-modules: Update to directory names changed on 2008-01-19.
82981         Remove commas in output before splitting into words. No more need to
82982         avoid 'ftruncate' since 2007-02-19.
82984 2008-09-26  Bruno Haible  <bruno@clisp.org>
82986         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
82988 2008-09-26  Bruno Haible  <bruno@clisp.org>
82990         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
82991         * modules/fwriteerror (Depends-on): Add errno.
82993 2008-09-26  Bruno Haible  <bruno@clisp.org>
82995         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
82996         * tests/test-vc-list-files-cvs.sh: Likewise.
82998 2008-09-26  Bruno Haible  <bruno@clisp.org>
83000         * doc/posix-headers/sys_resource.texi: Reorder items.
83002 2008-09-26  Jim Meyering  <meyering@redhat.com>
83004         fts: tweak inode comparison function
83005         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
83006         inode numbers, as documented.
83008         fts: sort dirent entries on inode number before traversing
83009         This avoids a quadratic, seek-related performance penalty when
83010         operating on a directory containing many entries (measurable at 10k;
83011         3.5 hours at 2 million entries with a cold cache) on certain types
83012         of file systems, including ext3 and ext4, but not tmpfs.
83013         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
83014         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
83015         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
83016         (fs_handles_readdir_ordered_dirents_efficiently): New function.
83017         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
83018         (fts_build): Set the stat.st_ino member from D_INO.
83019         If it is likely to be useful, sort dirent entries on inode number.
83021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
83022         and the struct statfs.f_type member.
83023         * modules/fts (Depends-on): Add d-ino.
83025 2008-09-26  Bruno Haible  <bruno@clisp.org>
83027         * modules/sigpipe-die (Depends-on): Add sigpipe.
83029         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
83030         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
83031         and GNULIB_STDIO_H_SIGPIPE are set.
83032         * lib/stdio-write.c: New file.
83033         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
83034         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83035         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83036         REPLACE_STDIO_WRITE_FUNCS.
83037         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
83038         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83039         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83040         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83041         * modules/stdio (Files): Add lib/stdio-write.c.
83042         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
83043         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
83044         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
83045         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
83046         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
83047         REPLACE_FPRINTF_POSIX.
83048         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
83049         REPLACE_PRINTF_POSIX.
83050         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
83051         REPLACE_VFPRINTF_POSIX.
83052         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
83053         REPLACE_VPRINTF_POSIX.
83054         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
83055         SIGPIPE issue.
83056         * doc/posix-functions/fputc.texi: Likewise.
83057         * doc/posix-functions/fputs.texi: Likewise.
83058         * doc/posix-functions/fwrite.texi: Likewise.
83059         * doc/posix-functions/printf.texi: Likewise.
83060         * doc/posix-functions/putc.texi: Likewise.
83061         * doc/posix-functions/putchar.texi: Likewise.
83062         * doc/posix-functions/puts.texi: Likewise.
83063         * doc/posix-functions/vfprintf.texi: Likewise.
83064         * doc/posix-functions/vprintf.texi: Likewise.
83066         * modules/safe-write (Depends-on): Add write.
83068         * modules/sigpipe-tests: New file.
83069         * tests/test-sigpipe.c: New file.
83070         * tests/test-sigpipe.sh: New file.
83072         * modules/write: New file.
83073         * lib/unistd.in.h: Include <sys/types.h>.
83074         (write): New declaration.
83075         * lib/write.c: New file.
83076         * m4/write.m4: New file.
83077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
83078         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
83079         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
83080         GNULIB_WRITE, REPLACE_WRITE.
83081         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
83082         and the SIGPIPE issue.
83084         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
83085         (raise): New declaration.
83086         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
83087         (ext_signal): New function.
83088         (rpl_raise): New function.
83089         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
83090         GNULIB_SIGNAL_H_SIGPIPE.
83091         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
83092         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
83094         * modules/sigpipe: New file.
83095         * m4/sigpipe.m4: New file.
83097 2008-09-25  Derek Price  <derek@ximbiot.com>
83098             Bruno Haible  <bruno@clisp.org>
83100         * gnulib-tool (func_import): Report all license incompatibilities, not
83101         just the first one.
83103 2008-09-25  Bruno Haible  <bruno@clisp.org>
83105         * gnulib-tool (func_import): When computing the edits, consider not
83106         only the Makefile.ams that exist but also those that will be generated.
83108 2008-09-25  Simon Josefsson  <simon@josefsson.org>
83110         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
83111         fixes gnulib-tool --test warning about duplicate dependency.
83113 2008-09-25  Bruno Haible  <bruno@clisp.org>
83115         * gnulib-tool: Don't ask the user to perform edits in the generated
83116         Makefile.ams.
83117         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
83118         apply to the Makefile.am being generated.
83119         (func_emit_tests_Makefile_am): Execute edits that apply to the
83120         Makefile.am being generated.
83121         (func_import): Setup list of Makefile.am edits before emitting the
83122         Makefile.ams, not at the end.
83123         (func_create_testdir): Update.
83124         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83126 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83128         * gnulib-tool (func_import): Store the --tests-base option in the
83129         comment in gnulib-cache.m4.
83131 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
83133         * NEWS: Document increased portability that sys_select now provides.
83135         * lib/sys_select.in.h: Install select wrapper.
83136         * lib/sys_socket.in.h: Use more descriptive name when there is no
83137         select wrapper.
83138         * lib/winsock-select.c: New.
83139         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
83140         Require gl_HEADER_SYS_SOCKET.
83141         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
83142         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
83143         * tests/test-sys_select.c: Add functional tests.
83145 2008-09-24  Eric Blake  <ebb9@byu.net>
83147         open, fopen: close fd leak in last patch
83148         * lib/open.c (rpl_open): Close fd before returning error.
83149         * lib/fopen.c (rpl_fopen): Close fd before returning error.
83150         * doc/posix-functions/open.texi (open): Document that Irix also
83151         has the bug.
83152         * doc/posix-functions/fopen.texi (fopen): Likewise.
83153         Reported by Paolo Bonzini.
83155 2008-09-24  Bruno Haible  <bruno@clisp.org>
83157         Ensure that a filename ending in a slash cannot be used to access a
83158         non-directory.
83159         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
83160         to check whether it's really a directory.
83161         * lib/fopen.c: Include fcntl.h, unistd.h.
83162         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
83163         and fdopen().
83164         * modules/fopen (Depends-on): Add unistd.
83165         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
83166         * tests/test-fopen.c (main): Likewise.
83167         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
83168         * doc/posix-functions/fopen.texi: Likewise.
83169         Reported by Eric Blake.
83171 2008-09-23  Eric Blake  <ebb9@byu.net>
83173         c-stack: avoid compiler optimizations when provoking overflow
83174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
83175         recursion harder to optimize, to ensure a stack overflow occurs.
83176         * tests/test-c-stack.c (recurse): Likewise.
83177         Borrowed from libsigsegv.
83179         c-stack: work around Irix sigaltstack bug
83180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
83181         whether sigaltstack uses wrong end of stack_t (copied in part from
83182         libsigsegv).
83183         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
83184         Irix bug, without requiring an over-allocation.
83185         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
83186         bug.
83188         fopen: document mingw bug on directories
83189         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
83190         not allowing a stream visiting a directory, even though reading
83191         from such a stream is not portable.
83193 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83195         * lib/poll.c: Rewrite.
83196         * modules/poll: Depend on alloca.
83198 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83200         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
83201         instead define prototypes for a full set of wrappers.  Ensure
83202         that Cygwin does not use the compatibility code, which is only
83203         for MinGW.
83204         * lib/winsock.c: New.
83205         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
83206         * modules/sys_socket: Add lib/winsock.c.
83208         * modules/poll-tests: Add errno and perror.
83209         * tests/test-poll.c: Use ioctl, not ioctlsocket.
83211 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
83213         * tests/test-poll.c: Downgrade minimum needed Winsock version.
83215 2008-09-23  Bruno Haible  <bruno@clisp.org>
83217         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
83218         * doc/glibc-functions/*: Likewise.
83220 2008-09-23  Simon Josefsson  <simon@josefsson.org>
83222         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
83223         success.
83225 2008-09-22  Eric Blake  <ebb9@byu.net>
83226             Bruno Haible  <bruno@clisp.org>
83228         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
83229         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
83230         supply %A but mishandle pseudo-NaN.
83231         Reported by Simon Josefsson.
83233 2008-09-21  Bruno Haible  <bruno@clisp.org>
83235         * tests/test-lock.c (main): Tweak skip message.
83236         * tests/test-tls.c (main): Likewise.
83238 2008-09-21  Bruno Haible  <bruno@clisp.org>
83240         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
83241         whether 'struct sigaction' has sa_sigaction here...
83242         (gl_PREREQ_SIG_HANDLER_H): ... not here.
83243         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
83245 2008-09-21  Bruno Haible  <bruno@clisp.org>
83247         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
83248         section.
83249         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
83250         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
83251         the new section.
83252         (Support for obsolete systems lacking POSIX:2001): New section.
83253         (String handling <string.h>): Move strdup to the new section.
83254         Suggested by Simon Josefsson and Paolo Bonzini.
83256 2008-09-21  Bruno Haible  <bruno@clisp.org>
83258         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
83259         exponents in %e and %g results on 'long double'. Needed for mingw's
83260         improved *printf functions.
83261         * tests/test-vasprintf-posix.c (test_function): Likewise.
83262         * tests/test-snprintf-posix.h (test_function): Likewise.
83263         * tests/test-sprintf-posix.h (test_function): Likewise.
83264         Reported by Eric Blake.
83266 2008-09-21  Bruno Haible  <bruno@clisp.org>
83268         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
83269         * tests/test-sprintf-posix.h (test_function): Likewise.
83271 2008-09-21  Bruno Haible  <bruno@clisp.org>
83273         * modules/getpass (Depends-on): Add strdup-posix.
83275         New module 'strdup-posix'.
83276         * modules/strdup-posix: New file.
83277         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
83278         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
83279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
83280         REPLACE_STRDUP.
83281         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
83282         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
83283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83284         strdup-posix.
83286         * modules/strdup (Depends-on): Remove malloc-posix.
83288 2008-09-20  Bruno Haible  <bruno@clisp.org>
83290         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
83291         Wildenhues.
83293 2008-09-20  Bruno Haible  <bruno@clisp.org>
83295         Ensure that wint_t gets defined on IRIX 5.3.
83296         * lib/wchar.in.h (wint_t): Define if not defined by the system.
83297         * lib/wctype.in.h (wint_t): Likewise.
83298         (__wctype_wint_t): Remove type.
83299         (isw*): Use wint_t instead of __wctype_wint_t.
83300         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
83301         * modules/wchar (Files): Add m4/wint_t.m4.
83302         (Makefile.am): Substitute HAVE_WINT_T.
83303         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
83304         * tests/test-wctype.c: Check that wint_t is defined.
83305         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
83306         * doc/posix-headers/wctype.texi: Likewise.
83307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83309 2008-09-18  Bruno Haible  <bruno@clisp.org>
83311         * gnulib-tool (func_exit): Update comment.
83313 2008-09-18  Simon Josefsson  <simon@josefsson.org>
83315         * modules/getaddrinfo (Depends-on): Remove strdup, this module
83316         assumes strdup exists and does not depend on strdup to return
83317         ENOMEM on out of memory conditions.
83319 2008-09-18  Bruno Haible  <bruno@clisp.org>
83321         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
83322         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
83323         digits for the exponent.
83325 2008-09-18  Jim Meyering  <meyering@redhat.com>
83326             Bruno Haible  <bruno@clisp.org>
83328         * lib/vasnprintf.c (decimal_point_char): Define also if
83329         NEED_PRINTF_INFINITE_LONG_DOUBLE.
83331 2008-09-16  Bruno Haible  <bruno@clisp.org>
83332         and Eric Blake  <ebb9@byu.net>
83334         vasnprintf: support Irix 5.3
83335         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
83336         that mishandle long double infinity.
83337         Reported by Tom G. Christensen.
83339 2008-09-16  Bruno Haible  <bruno@clisp.org>
83341         * doc/glibc-functions/scandir.texi: Mention the function is missing on
83342         Solaris 9.
83343         * doc/glibc-functions/alphasort.texi: Likewise.
83344         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
83346 2008-09-16  Jim Meyering  <meyering@redhat.com>
83348         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
83349         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
83350         a umask modification leak out of a subshell.  Otherwise, the
83351         opensolaris /bin/sh would be accepted and thus cause unwarranted
83352         failures in the coreutils test suite.
83354 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
83356         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
83357         to succeed.
83359 2008-09-16  Jim Meyering  <meyering@redhat.com>
83361         avoid spurious test failure when library is built without ACL support
83362         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
83363         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
83364         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
83365         * tests/test-copy-acl.sh: Likewise.
83367 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83369         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
83370         based on character occurrence counts.
83372 2008-09-15  Eric Blake  <ebb9@byu.net>
83374         tests: avoid some compiler warnings
83375         * tests/test-memchr.c (main): Pass NULL indirectly.
83376         * tests/test-closein.c (main): Avoid unused variable.
83378 2008-09-15  Bruno Haible  <bruno@clisp.org>
83380         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
83381         are missing on OpenBSD 4.0 individually.
83382         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83384 2008-09-15  Bruno Haible  <bruno@clisp.org>
83386         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
83387         * doc/posix-functions/strerror.texi: Mention also Cygwin.
83388         * doc/posix-functions/perror.texi: Likewise.
83389         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
83390         is missing.
83391         Reported by Eric Blake.
83393         * lib/errno.in.h: Use replacement values >= 2000.
83394         Reported by Eric Blake.
83396 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83398         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
83399         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
83400         limit.
83401         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
83402         compareseq was aborted.
83404 2008-09-14  Bruno Haible  <bruno@clisp.org>
83406         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
83407         yvec_edit_count.
83408         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
83409         (fstrcmp_bounded): Simplify result computation accordingly.
83411 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83413         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
83414         (fstrcmp): Define in terms of fstrcmp_bounded.
83415         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
83416         lower_bound argument.
83417         Return quickly if the result is certainly < lower_bound.
83418         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
83420 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83422         * lib/diffseq.h (EARLY_ABORT): New macro.
83423         (compareseq): Change return type to bool. Return true when EARLY_ABORT
83424         evaluates to true.
83426 2008-09-14  Bruno Haible  <bruno@clisp.org>
83428         * modules/perror-tests: New file.
83429         * tests/test-perror.sh: New file.
83430         * tests/test-perror.c: New file.
83432         New module 'perror'.
83433         * lib/stdio.in.h (perror): New declaration.
83434         * lib/perror.c: New file.
83435         * m4/perror.m4: New file.
83436         * modules/perror: New file.
83437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
83438         * doc/posix-functions/perror.texi: Mention the perror module.
83439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
83440         REPLACE_PERROR.
83441         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
83442         REPLACE_PERROR.
83444 2008-09-14  Bruno Haible  <bruno@clisp.org>
83446         * modules/stdio (Makefile.am): Reorder to match the order in
83447         lib/stdio.in.h.
83448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83450 2008-09-13  Bruno Haible  <bruno@clisp.org>
83452         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
83454 2008-09-13  Bruno Haible  <bruno@clisp.org>
83456         Extend strerror to cover the added errno values.
83457         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
83458         (rpl_strerror): Provide error messages for the added errno values and
83459         for the WSA* values.
83460         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
83461         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
83462         strerror.
83463         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
83464         * modules/strerror (Depends-on): Add errno.
83465         * doc/posix-functions/strerror.texi: Document the change.
83466         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
83467         and EOVERFLOW.
83469 2008-09-13  Bruno Haible  <bruno@clisp.org>
83471         * modules/EOVERFLOW: Remove file.
83472         * m4/eoverflow.m4: Remove file.
83473         * modules/EOVERFLOW-tests: Remove file.
83474         * tests/test-EOVERFLOW.c: Remove file.
83475         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
83476         * modules/ftell (Depends-on): Likewise.
83477         * modules/getdelim (Depends-on): Likewise.
83478         * modules/getugroups (Depends-on): Likewise.
83479         * modules/poll (Depends-on): Likewise.
83480         * modules/snprintf (Depends-on): Likewise.
83481         * modules/sprintf-posix (Depends-on): Likewise.
83482         * modules/vasnprintf (Depends-on): Likewise.
83483         * modules/vasprintf (Depends-on): Likewise.
83484         * modules/vfprintf-posix (Depends-on): Likewise.
83485         * modules/vsnprintf (Depends-on): Likewise.
83486         * modules/vsprintf-posix (Depends-on): Likewise.
83487         * modules/xvasprintf (Depends-on): Likewise.
83488         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83489         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
83490         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
83491         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
83492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83493         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
83494         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
83495         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
83496         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83497         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
83498         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
83499         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
83500         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83501         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
83502         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
83503         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
83504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83505         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
83506         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
83507         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
83508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83509         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
83510         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
83511         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
83512         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
83513         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83514         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
83515         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
83516         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
83517         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
83518         * MODULES.html.sh: Remove EOVERFLOW.
83519         * NEWS: Mention the change.
83521 2008-09-13  Bruno Haible  <bruno@clisp.org>
83523         * modules/errno-tests: New file.
83524         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
83526         * lib/errno.in.h: New file.
83527         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
83528         * modules/errno: New file.
83529         * doc/posix-headers/errno.texi: Update documentation.
83530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
83532 2008-09-13  Bruno Haible  <bruno@clisp.org>
83534         * tests/test-poll.c: Use #if for native Windows, rather than testing
83535         __MSVCRT__.
83537 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83538             Bruno Haible  <bruno@clisp.org>
83540         * lib/glob.c: Don't include <pwd.h> on native Windows.
83541         (WINDOWS32): New macro.
83542         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
83544 2008-09-13  Bruno Haible  <bruno@clisp.org>
83546         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
83547         (ETIMEDOUT): Remove macro.
83548         (glthread_cond_timedwait_multithreaded): New declaration.
83549         (glthread_cond_timedwait): Use it.
83550         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
83551         (glthread_cond_timedwait_multithreaded): New function.
83553 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
83555         * modules/poll-tests: Do not check for io.h.
83556         * tests/test-poll.c: Check for __MSVCRT__ instead.
83558 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
83560         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
83561         * modules/poll-tests: Add inet_pton, stdbool, sockets.
83562         * tests/test-poll.c: Use them.  Use _pipe on Windows.
83564 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
83566         * modules/poll-tests: New.
83567         * tests/test-poll.c: New.
83569 2008-09-12  Eric Blake  <ebb9@byu.net>
83571         frexp: test for NetBSD failure on -0.0
83572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
83573         not all, bugs from NetBSD 3.0 have been fixed.
83574         * doc/posix-functions/frexp.texi (frexp): Document bug.
83575         Reported by Thomas Klausner.
83577         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
83578         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
83579         literal -0.0.
83580         Reported by Jonathan C. Patschke <jp@centtech.com>.
83582 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83584         * lib/glthread/cond.h: Use dummy implementation also if
83585         USE_WIN32_THREADS.
83587 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83589         * modules/fnmatch-posix (License): Change to LGPLv2+.
83590         * modules/fnmatch-gnu (License): Likewise.
83592 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83594         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
83596 2008-09-11  Jim Meyering  <meyering@redhat.com>
83598         * users.txt: Add gtk-vnc.
83600 2008-09-08  Simon Josefsson  <simon@josefsson.org>
83602         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
83603         rotate amounts.
83605         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
83606         required for 16-bit and 8-bit rotates.
83607         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
83608         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
83609         UINT8_MAX instead of hard-coded constants.
83610         Suggested by Paul Eggert.
83612 2008-09-07  Bruno Haible  <bruno@clisp.org>
83614         * tests/test-striconveh.c (main): Check behaviour when converting from
83615         UTF-7.
83617         Make striconveh work better with stateful encodings.
83618         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
83619         that iconv does not increment the inptr when returning -1/EINVAL.
83621 2008-09-07  Bruno Haible  <bruno@clisp.org>
83623         * build-aux/config.rpath: Update according to libtool-2.2.6.
83624         * build-aux/config.libpath: Likewise.
83626 2008-09-06  Bruno Haible  <bruno@clisp.org>
83628         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
83629         * lib/freadptr.c (freadptr): Likewise.
83630         * lib/freadseek.c (freadptrinc): Likewise.
83631         Reported by Simon Josefsson.
83633 2008-09-06  Bruno Haible  <bruno@clisp.org>
83635         * modules/freadptr (License): Change to LGPLv2+.
83636         * modules/freadseek (License): Likewise.
83637         Suggested by Eric Blake.
83639         * modules/memchr2 (License): Change to LGPLv2+.
83640         Approved by Eric Blake.
83642 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83643             Bruno Haible  <bruno@clisp.org>
83645         Make gnulib-tool work with native 'sed' on AIX.
83646         * gnulib-tool (sed_noop): New variable.
83647         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
83648         func_add_or_update, func_create_testdir): Use it to initialize sed
83649         script variables.
83650         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83652 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
83653             Bruno Haible  <bruno@clisp.org>
83655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
83656         also works after #include directives.
83658 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
83660         getdate.y: reject an out-of-range timezone value
83661         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
83662         the range [-24...+24].  When specified with only one or two digits,
83663         * tests/test-getdate.c: Tests for the fix.
83664         * doc/getdate.texi: Document this change.
83666 2008-09-03  Bruno Haible  <bruno@clisp.org>
83668         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
83670 2008-09-02  Simon Josefsson  <simon@josefsson.org>
83672         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
83673         <bruce.korb@gmail.com> with ideas from Ben Pfaff
83674         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
83675         Blake <ebb9@byu.net>.
83677         * tests/test-bitrotate.c: Add more test vectors.
83679 2008-09-02  Eric Blake  <ebb9@byu.net>
83681         vasnprintf-posix: handle large precision via %.*d
83682         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
83683         when handling it ourselves.
83684         * tests/test-vasnprintf-posix.c (test_function): Add test.
83685         * tests/test-snprintf-posix.h (test_function): Likewise.
83686         * tests/test-sprintf-posix.h (test_function): Likewise.
83687         * tests/test-vasprintf-posix.c (test_function): Likewise.
83688         Reported by Alain Guibert.
83690 2008-09-01  Eric Blake  <ebb9@byu.net>
83692         c-stack: make configure-time check more robust
83693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
83694         successful sigaction call.
83695         Reported by Tom G. Christensen.
83697 2008-09-01  Bruno Haible  <bruno@clisp.org>
83699         New module 'findprog-lgpl'.
83700         * modules/findprog-lgpl: New file.
83701         * lib/findprog-lgpl.c: New file.
83702         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
83703         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
83704         to decide whether to use strdup or xstrdup, concatenated_filename or
83705         xconcatenated_filename.
83707 2008-09-01  Bruno Haible  <bruno@clisp.org>
83709         Split module 'concat-filename' into 'concat-filename' (LGPL) and
83710         'xconcat-filename' (GPL).
83711         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
83712         (License): Change to LGPLv2+.
83713         * modules/xconcat-filename: New file.
83714         * lib/concat-filename.h (concatenated_filename): Change specification.
83715         (xconcatenated_filename): New declaration.
83716         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
83717         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
83718         memory situations.
83719         * lib/xconcat-filename.c: New file.
83720         * NEWS: Mention the change.
83721         * lib/findprog.c: Include concat-filename.h, not filename.h.
83722         (find_in_path): Use xconcatenated_filename instead of
83723         concatenated_filename.
83724         * lib/javacomp.c: Include concat-filename.h, not filename.h.
83725         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
83726         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
83727         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
83728         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
83729         instead of concatenated_filename.
83730         * lib/javaexec.c: Include concat-filename.h, not filename.h.
83731         (execute_java_class): Use xconcatenated_filename instead of
83732         concatenated_filename.
83733         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
83734         * modules/javacomp (Depends-on): Likewise.
83735         * modules/javaexec (Depends-on): Likewise.
83737 2008-09-01  Bruno Haible  <bruno@clisp.org>
83739         Split module 'filename' into 'filename' and 'concat-filename'.
83740         * modules/filename: Keep only lib/filename.h.
83741         (License): Change to LGPLv2+.
83742         * modules/concat-filename: New file, extracted from modules/filename.
83743         * lib/filename.h (concatenated_filename): Remove declaration.
83744         * lib/concat-filename.h: New file, extracted from lib/filename.h.
83745         * lib/concat-filename.c: Include concat-filename.h.
83746         * NEWS: Mention the change.
83748 2008-09-01  Simon Josefsson  <simon@josefsson.org>
83750         * lib/bitrotate.h (rotl8, rotr8): Add.
83752         * modules/bitrotate (configure.ac): Need
83753         AC_REQUIRE([AC_C_INLINE]).
83754         (Description): Mention stdint.h.  Reported by Bruno Haible
83755         <bruno@clisp.org>.
83757         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
83758         Paolo Bonzini <bonzini@gnu.org>.
83760 2008-08-31  Bruno Haible  <bruno@clisp.org>
83762         Assume Solaris specific bi-arch conventions on Solaris systems.
83763         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
83764         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
83765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
83766         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
83767         like acl_libdirstem.
83768         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
83769         acl_libdirstem.
83770         * NEWS: Mention the change.
83771         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
83773 2008-08-31  Jim Meyering  <meyering@redhat.com>
83775         * lib/strftime.h: Add comments describing the two added arguments.
83777         remove duplicate #include directives
83778         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
83779         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
83781 2008-08-31  Bruno Haible  <bruno@clisp.org>
83783         New module 'sigpipe-die'.
83784         * modules/sigpipe-die: New file.
83785         * lib/sigpipe-die.h: New file.
83786         * lib/sigpipe-die.c: New file.
83787         * MODULES.html.sh (Signal handling): Add sigpipe-die.
83789 2008-08-31  Bruno Haible  <bruno@clisp.org>
83791         Don't override previously installed signal handlers.
83792         * lib/fatal-signal.c (saved_sigactions): New variable.
83793         (uninstall_handlers): Reset the signal to the saved handler, not
83794         to SIG_DFL (except when ignored).
83795         (install_handlers): Save the previous handlers.
83797 2008-08-30  Bruno Haible  <bruno@clisp.org>
83799         * gnulib-tool (func_reset_sigpipe): New function.
83800         (func_get_automake_snippet, func_modules_transitive_closure,
83801         func_import): Invoke it before a join command that reads from stdin,
83802         to avoid "echo: write error: Broken pipe" error messages on stderr.
83803         Reported by Sam Steingold <sds@gnu.org>.
83805 2008-08-30  Bruno Haible  <bruno@clisp.org>
83807         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
83808         Code copied from m4/open.m4.
83809         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
83810         access and the filename ends in a slash. Code copied from lib/open.c.
83811         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
83812         * tests/test-fopen.c (main): Check against bug with trailing slash.
83814 2008-08-29  Bruno Haible  <bruno@clisp.org>
83816         Avoid some "gcc -pedantic" warnings.
83817         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
83818         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
83819         * lib/dirent.in.h: Likewise.
83820         * lib/fcntl.in.h: Likewise.
83821         * lib/float.in.h: Likewise.
83822         * lib/iconv.in.h: Likewise.
83823         * lib/inttypes.in.h: Likewise.
83824         * lib/locale.in.h: Likewise.
83825         * lib/math.in.h: Likewise.
83826         * lib/netinet_in.in.h: Likewise.
83827         * lib/search.in.h: Likewise.
83828         * lib/signal.in.h: Likewise.
83829         * lib/stdarg.in.h: Likewise.
83830         * lib/stdint.in.h: Likewise.
83831         * lib/stdio.in.h: Likewise.
83832         * lib/stdlib.in.h: Likewise.
83833         * lib/string.in.h: Likewise.
83834         * lib/strings.in.h: Likewise.
83835         * lib/sys_select.in.h: Likewise.
83836         * lib/sys_socket.in.h: Likewise.
83837         * lib/sys_stat.in.h: Likewise.
83838         * lib/sys_time.in.h: Likewise.
83839         * lib/sysexits.in.h: Likewise.
83840         * lib/time.in.h: Likewise.
83841         * lib/unistd.in.h: Likewise.
83842         * lib/wchar.in.h: Likewise.
83843         * lib/wctype.in.h: Likewise.
83844         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
83845         * modules/fchdir (Makefile.am): Likewise.
83846         * modules/fcntl (Makefile.am): Likewise.
83847         * modules/float (Makefile.am): Likewise.
83848         * modules/iconv_open (Makefile.am): Likewise.
83849         * modules/inttypes (Makefile.am): Likewise.
83850         * modules/locale (Makefile.am): Likewise.
83851         * modules/math (Makefile.am): Likewise.
83852         * modules/netinet_in (Makefile.am): Likewise.
83853         * modules/search (Makefile.am): Likewise.
83854         * modules/signal (Makefile.am): Likewise.
83855         * modules/stdarg (Makefile.am): Likewise.
83856         * modules/stdint (Makefile.am): Likewise.
83857         * modules/stdio (Makefile.am): Likewise.
83858         * modules/stdlib (Makefile.am): Likewise.
83859         * modules/string (Makefile.am): Likewise.
83860         * modules/strings (Makefile.am): Likewise.
83861         * modules/sys_select (Makefile.am): Likewise.
83862         * modules/sys_socket (Makefile.am): Likewise.
83863         * modules/sys_stat (Makefile.am): Likewise.
83864         * modules/sys_time (Makefile.am): Likewise.
83865         * modules/sysexits (Makefile.am): Likewise.
83866         * modules/time (Makefile.am): Likewise.
83867         * modules/unistd (Makefile.am): Likewise.
83868         * modules/wchar (Makefile.am): Likewise.
83869         * modules/wctype (Makefile.am): Likewise.
83870         Reported by Reuben Thomas <rrt@sc3d.org>.
83872 2008-08-29  Bruno Haible  <bruno@clisp.org>
83874         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
83875         any more.
83877 2008-08-29  Simon Josefsson  <simon@josefsson.org>
83879         * MODULES.html.sh (Misc): Add bitrotate.
83881         * modules/bitrotate: New file.
83883         * lib/bitrotate.h: New file.
83885         * modules/bitrotate-tests: New file.
83887         * tests/test-bitrotate.c: New file.
83889         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
83890         on the bitrotate module.
83892         * lib/arctwo.c: Use new bitrotate module.
83894 2008-08-29  Jim Meyering  <meyering@redhat.com>
83896         bootstrap: merge changes from coreutils
83897         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
83898         of copied files.  Remove a kludge, now that this is fixed.
83899         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
83900         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
83901         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
83903 2008-08-29  Bruno Haible  <bruno@clisp.org>
83905         * MODULES.html.sh: Remove --cvs-urls option.
83907 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
83909         maint.mk: adjust to file name change
83910         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
83912 2008-08-28  Jim Meyering  <meyering@redhat.com>
83914         * modules/getndelim2 (License): Relicense to LGPLv2+.
83915         Approved by Richard Stallman for the version of 1995, and by
83916         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
83918 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
83920         * lib/getdelim.c (flockfile, funlockfile): Make all of them
83921         dummy if one is not available.  Do not touch them if
83922         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
83923         (getc_maybe_unlocked): New.
83924         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
83926 2008-08-26  Eric Blake  <ebb9@byu.net>
83928         doc/INSTALL: resync from autoconf
83929         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
83930         (INSTALL_PRELUDE): Delete; this is done more efficiently by
83931         moving...
83932         * install.texi [!autoconf]: ...here.  Resync from autoconf.
83933         * INSTALL: Regenerate.
83934         * INSTALL.ISO: New file.
83935         * INSTALL.UTF-8: Likewise.
83937 2008-08-26  Jim Meyering  <meyering@redhat.com>
83939         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
83940         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
83941         these definitions conditional, so that they may be overridden, too.
83943 2008-08-26  Bruno Haible  <bruno@clisp.org>
83945         Generate INSTALL file variants with prettier quotes.
83946         * doc/Makefile (INSTALL_PRELUDE): New macro.
83947         (INSTALL): Use it.
83948         (INSTALL.ISO, INSTALL.UTF-8): New rules.
83950 2008-08-26  Bruno Haible  <bruno@clisp.org>
83952         Run makeinfo in an English locale.
83953         * doc/Makefile (MAKEINFO): New variable.
83955 2008-08-26  Bruno Haible  <bruno@clisp.org>
83957         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
83958         Suggested by Eric Blake.
83960 2008-08-25  Bruno Haible  <bruno@clisp.org>
83962         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
83964 2008-08-25  Eric Blake  <ebb9@byu.net>
83966         c-stack: test that stack overflow can be caught
83967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
83968         that platform allows handling stack overflow; at least OS/2 EMX
83969         has sigaltstack, but crashes before transferring control to
83970         handler on stack overflow.
83971         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
83972         check for HAVE_STACK_OVERFLOW_HANDLING.
83973         Reported by Elbert Pol.
83975 2008-08-25  Bruno Haible  <bruno@clisp.org>
83977         * doc/posix-functions/strftime.texi: Fix description of strftime
83978         module.
83980 2008-08-24  Bruno Haible  <bruno@clisp.org>
83982         * tests/uniwidth/test-uc_width2.c: New file.
83983         * tests/uniwidth/test-uc_width2.sh: New file.
83984         * modules/uniwidth/width-tests (Files): Add the new files.
83985         (TESTS): Add uniwidth/test-uc_width2.sh.
83986         (TESTS_ENVIRONMENT): New variable.
83987         (check_PROGRAMS): Add test-uc_width2.
83988         (test_uc_width2_SOURCES): New variable.
83990         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
83991         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
83992         not 0x00AB.
83993         Reported by Alexander V. Lukyanov <lav@netis.ru>.
83995 2008-08-22  Eric Blake  <ebb9@byu.net>
83997         test-lock, test-tls: mention why a test is skipped
83998         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
83999         skipped.
84000         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
84002         count-one-bits: relax license
84003         * modules/count-one-bits (License): Relicense to LGPLv2+.
84004         Suggested by Ludovic Courtès, approved by Ben Pfaff.
84006 2008-08-22  Andreas Schwab  <schwab@suse.de>
84008         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
84009         Remove spurious space in assignment.
84011 2008-08-21  Simon Josefsson  <simon@josefsson.org>
84013         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
84014         Paul Eggert <eggert@CS.UCLA.EDU>.
84016 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
84018         * modules/gettext: Add m4/threadlib.m4.
84020 2008-08-19  Eric Blake  <ebb9@byu.net>
84022         test-c-stack: fix compilation failure on FreeBSD 5.0
84023         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
84024         headers before <sys/resource.h>.
84025         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
84026         the bug.
84027         Reported by Nelson H. F. Beebe.
84029         strverscmp: migrate from "strverscmp.h" to <string.h>
84030         * modules/string (Makefile.am): Add new hooks.
84031         * modules/strverscmp (Files): Remove strverscmp.h.
84032         (Depends-on): Add string.
84033         (configure.ac): Add indicator.
84034         (Include): Mention new header.
84035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
84036         defaults.
84037         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
84038         results.
84039         * lib/strverscmp.h: Delete.
84040         * lib/string.in.h (strverscmp): Provide declaration, when needed.
84041         * tests/test-strverscmp.c (includes): Adjust client.
84042         * lib/check-version.c (includes): Likewise.
84043         * NEWS: Document the change.
84045         strverscmp: add unit test
84046         * modules/strverscmp-tests: New file.
84047         * tests/test-strverscmp.c: Likewise.
84049 2008-08-19  Simon Josefsson  <simon@josefsson.org>
84051         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
84052         regarding Windows crypto stuff, from Mono.
84054 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
84056         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
84057         if present, for intel RND.  Return error on failures.
84059 2008-08-18  Ben Pfaff  <blp@gnu.org>
84061         gitlog-to-changelog: give better diagnostic for failed pipe-open
84062         * build-aux/gitlog-to-changelog: Improve error message: suggest
84063         that the version of Git may be too old.
84065 2008-08-18  Simon Josefsson  <simon@josefsson.org>
84067         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
84068         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
84070 2008-08-18  Bruno Haible  <bruno@clisp.org>
84072         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
84073         pthread_in_use().
84075 2008-08-18  Bruno Haible  <bruno@clisp.org>
84077         * lib/glthread/threadlib.c: Include <pthread.h>.
84079 2008-08-18  Bruno Haible  <bruno@clisp.org>
84081         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
84082         glthread_recursive_lock_* macros.
84083         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
84084         Fix syntax error.
84086 2008-08-18  Bruno Haible  <bruno@clisp.org>
84088         * lib/glthread/thread.c: Avoid forcing a context switch right after
84089         thread creation.
84091 2008-08-17  Bruno Haible  <bruno@clisp.org>
84093         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
84094         * lib/glthread/thread.h: Provide Win32 specific implementation.
84095         * modules/thread (Files): Add lib/glthread/thread.c.
84096         (Depends-on): Add lock.
84097         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
84099 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84101         New module 'yield'.
84102         * modules/yield: New file.
84103         * lib/glthread/yield.h: New file.
84104         * m4/yield.m4: New file.
84105         * MODULES.html.sh (Multithreading): Add yield.
84107 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84109         New module 'thread'.
84110         * modules/thread: New file.
84111         * lib/glthread/thread.h: New file.
84112         * m4/thread.m4: New file.
84113         * MODULES.html.sh (Multithreading): Add thread.
84115 2008-08-17  Bruno Haible  <bruno@clisp.org>
84117         * lib/glthread/lock.h: Include <stdlib.h> always.
84118         * lib/glthread/tls.h: Likewise.
84119         * lib/glthread/cond.h: Likewise.
84121 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84123         New module 'cond'.
84124         * modules/cond: New file.
84125         * lib/glthread/cond.h: New file.
84126         * lib/glthread/cond.c: New file.
84127         * m4/cond.m4: New file.
84128         * MODULES.html.sh (Multithreading): Add cond.
84130 2008-08-16  Eric Blake  <ebb9@byu.net>
84132         c-stack: fix regression on Irix 5.3 from 2008-06-21
84133         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
84134         sa_sigaction...
84135         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
84136         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
84137         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
84138         * modules/signal (Makefile.am): Use the value.
84139         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
84140         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
84141         * doc/posix-headers/signal.texi (signal.h): Document this
84142         portability issue.
84143         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
84144         Reported by Tom G. Christensen.
84146 2008-08-17  Bruno Haible  <bruno@clisp.org>
84148         New module 'threadlib'.
84149         * modules/threadlib: New file.
84150         * lib/glthread/threadlib.c: New file, extracted from
84151         lib/glthread/lock.c.
84152         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
84153         functions.
84154         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
84155         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
84156         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
84157         macros.
84158         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
84159         (gl_DISABLE_THREADS): Remove macro.
84160         * modules/lock (Files): Remove build-aux/config.rpath.
84161         (Depends-on): Remove havelib. Add threadlib.
84162         (configure.ac-early): Remove section.
84163         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
84164         * modules/tls (Depends-on): Remove lock. Add threadlib.
84165         (Link): New section, copied from threadlib.
84166         * MODULES.html.sh (Multithreading): Add threadlib.
84168 2008-08-14  Bruno Haible  <bruno@clisp.org>
84170         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
84171         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
84172         glthread_rwlock_unlock, glthread_rwlock_destroy,
84173         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
84174         glthread_recursive_lock_destroy): Define as macros always.
84175         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
84176         glthread_lock_lock.
84177         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
84178         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
84179         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
84180         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
84181         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
84182         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
84183         (glthread_recursive_lock_lock_func): Renamed from
84184         glthread_recursive_lock_lock.
84185         (glthread_recursive_lock_unlock_func): Renamed from
84186         glthread_recursive_lock_unlock.
84187         (glthread_recursive_lock_destroy_func): Renamed from
84188         glthread_recursive_lock_destroy.
84190 2008-08-14  Bruno Haible  <bruno@clisp.org>
84192         * lib/glthread/lock.h: Renamed from lib/lock.h.
84193         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
84194         * lib/glthread/tls.h: Renamed from lib/tls.h.
84195         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
84196         * lib/fstrcmp.c: Update includes.
84197         * lib/strsignal.c: Update includes.
84198         * modules/lock (Files, Makefile.am): Update.
84199         (Include): Change to "glthread/lock.h".
84200         * modules/tls (Files, Makefile.am): Update.
84201         (Include): Change to "glthread/tls.h".
84202         * tests/test-lock.c: Update includes.
84203         * tests/test-tls.c: Update includes.
84204         * NEWS: Mention the renamed header files.
84206 2008-08-11  Jim Meyering  <meyering@redhat.com>
84208         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
84210 2008-08-11  Eric Blake  <ebb9@byu.net>
84212         test-c-stack: avoid C99-ism
84213         * tests/test-c-stack.c (main): Fix whitespace, move declaration
84214         before statement.
84215         Reported by Alain Guibert.
84217 2008-08-10  Jim Meyering  <meyering@redhat.com>
84219         ensure that return value of uinttostr et al are not ignored
84220         * lib/inttostr.h (__GNUC_PREREQ): Define.
84221         (__attribute_warn_unused_result__): Define.
84222         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
84224 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
84226         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
84227         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
84229 2008-08-07  Jim Meyering  <meyering@redhat.com>
84231         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
84233         * modules/mkstemp (License): Relicense under LGPLv2+.
84234         * modules/tempname (License): Likewise.
84236 2008-08-06  Bruno Haible  <bruno@clisp.org>
84238         * lib/poll.c (poll): Further micro-optimization.
84240 2008-08-06  Jim Meyering  <meyering@redhat.com>
84242         inet_pton.c: use locale-independent tolower
84243         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
84244         (inet_pton6): Use c_tolower rather than tolower.
84245         * modules/inet_pton (Depends-on): Add c-ctype.
84247 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
84249         * lib/poll.c (poll): Avoid division when timeout is 0, cache
84250         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
84252 2008-08-06  Jim Meyering  <meyering@redhat.com>
84254         * modules/inet_pton (License): Relicense under LGPLv2+.
84256 2008-08-03  Bruno Haible  <bruno@clisp.org>
84258         Additional non-aborting API for lock and tls.
84259         * lib/lock.h: Include <errno.h>.
84260         (glthread_lock_init): New macro/function.
84261         (gl_lock_init): Define as wrapper around glthread_lock_init.
84262         (glthread_lock_lock): New macro/function.
84263         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
84264         (glthread_lock_unlock): New macro/function.
84265         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
84266         (glthread_lock_destroy): New macro/function.
84267         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
84268         (glthread_rwlock_init): New macro/function.
84269         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
84270         (glthread_rwlock_rdlock): New macro/function.
84271         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
84272         (glthread_rwlock_wrlock): New macro/function.
84273         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
84274         (glthread_rwlock_unlock): New macro/function.
84275         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
84276         (glthread_rwlock_destroy): New macro/function.
84277         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
84278         (glthread_recursive_lock_init): New macro/function.
84279         (gl_recursive_lock_init): Define as wrapper around
84280         glthread_recursive_lock_init.
84281         (glthread_recursive_lock_lock): New macro/function.
84282         (gl_recursive_lock_lock): Define as wrapper around
84283         glthread_recursive_lock_lock.
84284         (glthread_recursive_lock_unlock): New macro/function.
84285         (gl_recursive_lock_unlock): Define as wrapper around
84286         glthread_recursive_lock_unlock.
84287         (glthread_recursive_lock_destroy): New macro/function.
84288         (gl_recursive_lock_destroy): Define as wrapper around
84289         glthread_recursive_lock_destroy.
84290         (glthread_once): New macro/function.
84291         (gl_once): Define as wrapper around glthread_once.
84292         Update function declarations.
84293         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
84294         glthread_rwlock_init. Return error code.
84295         (glthread_rwlock_rdlock_multithreaded): Renamed from
84296         glthread_rwlock_rdlock. Return error code.
84297         (glthread_rwlock_wrlock_multithreaded): Renamed from
84298         glthread_rwlock_wrlock. Return error code.
84299         (glthread_rwlock_unlock_multithreaded): Renamed from
84300         glthread_rwlock_unlock. Return error code.
84301         (glthread_rwlock_destroy_multithreaded): Renamed from
84302         glthread_rwlock_destroy. Return error code.
84303         (glthread_recursive_lock_init_multithreaded): Renamed from
84304         glthread_recursive_lock_init. Return error code.
84305         (glthread_recursive_lock_lock_multithreaded): Renamed from
84306         glthread_recursive_lock_lock. Return error code.
84307         (glthread_recursive_lock_unlock_multithreaded): Renamed from
84308         glthread_recursive_lock_unlock. Return error code.
84309         (glthread_recursive_lock_destroy_multithreaded): Renamed from
84310         glthread_recursive_lock_destroy. Return error code.
84311         (glthread_once_call): Make static.
84312         (glthread_once_multithreaded): Renamed from glthread_once.
84313         * lib/tls.h: Include <errno.h>.
84314         (glthread_tls_key_init): New macro/function.
84315         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
84316         (glthread_tls_set): New macro/function.
84317         (gl_tls_set): Define as wrapper around glthread_tls_set.
84318         (glthread_tls_key_destroy): New macro/function.
84319         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
84320         Update function declarations.
84321         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
84322         glthread_tls_get.
84323         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84325 2008-08-04  Eric Blake  <ebb9@byu.net>
84327         gnumakefile: use space, not TAB, outside of targets
84328         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
84330 2008-08-02  Jim Meyering  <meyering@redhat.com>
84332         getdate.y: avoid locale-dependent date parsing failure
84333         In Turkish locales, getdate would fail to recognize keywords
84334         containing a lowercase "i".  The solution is not to rely on
84335         locale-sensitive case-conversion.
84336         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
84337         (lookup_word): Use c_toupper in place of toupper.
84338         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
84339         Reported by Vefa Bicakci <bicave@superonline.com> in
84340         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
84341         * modules/getdate (Depends-on): Add c-ctype.
84343 2008-08-02  Bruno Haible  <bruno@clisp.org>
84345         * gnulib-tool (func_import): When updating or creating a .gitignore
84346         file, prepend each added line with a slash, and ignore leading slashes
84347         from the existing lines.
84348         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84350 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84352         Portability fix for GNU make 3.79.1.
84353         * top/GNUmakefile: Avoid 'else COND', which older GNU make
84354         versions do not understand.
84356 2008-08-01  Bruno Haible  <bruno@clisp.org>
84358         Work around bug of HP-UX 10.20 cc with -0.0 literal.
84359         * tests/test-isnanf.h (zero): New variable.
84360         (main): Avoid literal -0.0f.
84361         * tests/test-isnand.h (zero): New variable.
84362         (main): Avoid literal -0.0.
84363         * tests/test-isnanl.h (zero): New variable.
84364         (main): Avoid literal -0.0L.
84365         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
84366         (test_float, test_double, test_long_double): Avoid literals -0.0f,
84367         -0.0, -0.0L.
84368         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
84369         (test_signbitd): Avoid literal -0.0.
84370         (test_signbitl): Avoid literal -0.0L.
84371         * tests/test-ceilf1.c (zero): New variable.
84372         (main): Avoid literal -0.0f.
84373         * tests/test-ceill.c (zero): New variable.
84374         (main): Avoid literal -0.0L.
84375         * tests/test-floorf1.c (zero): New variable.
84376         (main): Avoid literal -0.0f.
84377         * tests/test-floorl.c (zero): New variable.
84378         (main): Avoid literal -0.0L.
84379         * tests/test-roundf1.c (zero): New variable.
84380         (main): Avoid literal -0.0f.
84381         * tests/test-round1.c (zero): New variable.
84382         (main): Avoid literal -0.0.
84383         * tests/test-roundl.c (zero): New variable.
84384         (main): Avoid literal -0.0L.
84385         * tests/test-truncf1.c (zero): New variable.
84386         (main): Avoid literal -0.0f.
84387         * tests/test-trunc1.c (zero): New variable.
84388         (main): Avoid literal -0.0.
84389         * tests/test-truncl.c (zero): New variable.
84390         (main): Avoid literal -0.0L.
84391         * tests/test-frexp.c (zero): New variable.
84392         (main): Avoid literal -0.0.
84393         * tests/test-frexpl.c (zero): New variable.
84394         (main): Avoid literal -0.0L.
84395         * tests/test-ldexpl.c (zero): New variable.
84396         (main): Avoid literal -0.0L.
84397         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84398         (zerod, zerol): New variables.
84399         (test_function): Avoid literals -0.0, -0.0L.
84400         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
84401         (zerod, zerol): New variables.
84402         (test_function): Avoid literals -0.0, -0.0L.
84403         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84404         (zerod, zerol): New variables.
84405         (test_function): Avoid literals -0.0, -0.0L.
84406         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
84407         (zerod, zerol): New variables.
84408         (test_function): Avoid literals -0.0, -0.0L.
84409         * tests/test-strtod.c (zero): New variable.
84410         (main): Avoid literal -0.0.
84411         Reported by Jonathan C. Patschke <jp@centtech.com>.
84413 2008-07-31  Jim Meyering  <meyering@redhat.com>
84415         sha256.h: correct definition of SHA224_DIGEST_SIZE
84416         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
84417         Reported by Paulie Pena IV <paulie4@gmail.com>.
84418         Define as 224 / 8, rather than as a literal.
84419         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
84420         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
84421         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
84423 2008-07-31  Bruno Haible  <bruno@clisp.org>
84425         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
84426         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
84427         Reported by Jonathan Patschke <jp@centtech.com>.
84429 2008-07-31  Bruno Haible  <bruno@clisp.org>
84431         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
84432         Reported by Paolo Bonzini <bonzini@gnu.org>.
84434 2008-07-30  Eric Blake  <ebb9@byu.net>
84436         test-strtod: allow compilation without -lm
84437         * tests/test-strtod.c (main): Avoid link dependence on fabs.
84438         Reported by Dennis Clarke <blastwave@gmail.com>.
84440 2008-07-28  Jim Meyering  <meyering@redhat.com>
84442         bootstrap: work also when there are no .po files in po/
84443         * build-aux/bootstrap (update_po_files): Complete the change
84444         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
84446 2008-07-27  Jim Meyering  <meyering@redhat.com>
84448         * users.txt: Add zile.
84450 2008-07-26  Ben Pfaff  <blp@gnu.org>
84452         Add missing dependencies on new m4/exponent[fdl].m4 files.
84453         * modules/isnanf-nolibm: Add m4/exponentf.m4.
84454         * modules/isnand-nolibm: Add m4/exponentd.m4.
84455         * modules/isnanl-nolibm: Add m4/exponentl.m4.
84456         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
84457         m4/isnan[fdl].m4, because the macros actually used moved.
84458         Reported by Jim Meyering.
84460 2008-07-14  Ben Pfaff  <blp@gnu.org>
84462         Add isinf module.
84463         * lib/isinf.c: New file.
84464         * lib/math.in.h: Define isinf macro if we have decided to replace
84465         it.
84466         * m4/isinf.m4: New file.
84467         * m4/math_h.m4: Initialize and substitute variables for isinf
84468         module.
84469         * modules/isinf: New file.
84470         * modules/isinf-tests: New file.
84471         * modules/math: Add substitutions for new module.
84472         * tests/test-isinf.c: New file.
84473         * doc/posix-functions/isinf.texi: Mention new module.
84474         * MODULES.html.sh: Mention new module.
84476 2008-07-14  Ben Pfaff  <blp@gnu.org>
84478         Factor out some macros for use by additional modules.
84479         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
84480         exponentf.m4.
84481         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
84482         exponentd.m4.
84483         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
84484         file exponentl.m4.
84485         * m4/exponentf.m4: New file.
84486         * m4/exponentd.m4: New file.
84487         * m4/exponentl.m4: New file.
84488         * modules/isnanf: Use new file m4/exponentf.m4.
84489         * modules/isnand: Use new file m4/exponentd.m4.
84490         * modules/isnanl: Use new file m4/exponentl.m4.
84492 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
84494         mktime.c: normalize tp->tm_isdst value to -1/0/1.
84495         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
84496         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
84497         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
84499         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
84500         readlink on platforms without PATH_MAX.
84502 2008-07-21  Eric Blake  <ebb9@byu.net>
84504         Warn, not fail, on stale version.
84505         * top/GNUmakefile (_curr-ver): Tone down previous patch.
84507         Don't allow installation with stale devel version number.
84508         * top/GNUmakefile (_is-install-target): New macro.
84509         (_curr-ver): Forbid installation with stale version number.
84511 2008-07-20  Bruno Haible  <bruno@clisp.org>
84513         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
84514         TESTS_ENVIRONMENT.
84515         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
84517 2008-07-20  Bruno Haible  <bruno@clisp.org>
84519         * lib/c-stack.h (c_stack_action): Add documentation.
84520         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
84522 2008-07-20  Bruno Haible  <bruno@clisp.org>
84524         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
84525         * modules/readlink (License): Likewise.
84527 2008-07-17  Eric Blake  <ebb9@byu.net>
84529         * modules/c-stack (Link): Fix typo.
84531         Make c-stack use libsigsegv, when available.
84532         * modules/c-stack (Depends-on): Add libsigsegv.
84533         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
84534         needed.
84535         * lib/c-stack.c (SIGSTKSZ): Define fallback.
84536         (segv_handler, overflow_handler, c_stack_action)
84537         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
84538         implementation when libsigsegv is available, but only when using
84539         the library is necessary.
84540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
84541         comment, explaining why XSI check fails on Linux.
84542         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
84543         * tests/test-c-stack2.sh: Tweak skip message.
84544         * NEWS: Document new link-time requirements.
84546 2008-07-16  Eric Blake  <ebb9@byu.net>
84548         c-stack: Expose false positives when not using libsigsegv.
84549         * modules/c-stack-tests (Files): Expand test.
84550         * tests/test-c-stack.c (main): Add means to conditionally trigger
84551         non-overflow SIGSEGV.
84552         * tests/test-c-stack2.sh: New file.
84554 2008-07-14  Bruno Haible  <bruno@clisp.org>
84556         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
84557         Reported by Eric Blake.
84559 2008-07-14  Sam Steingold  <sds@gnu.org>
84560             Bruno Haible  <bruno@clisp.org>
84562         New module libsigsegv.
84563         * modules/libsigsegv: New file.
84564         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
84565         modifications.
84566         * MODULES.html.sh (Signal handling): New section.
84568 2008-07-14  Bruno Haible  <bruno@clisp.org>
84570         * modules/unictype/ctype-* (Description): Add the word "function".
84571         Improves the resulting doc in MODULES.html.
84573 2008-07-12  Ben Pfaff  <blp@gnu.org>
84575         Add longlong module.
84576         * modules/longlong: New file.
84578 2008-07-12  Bruno Haible  <bruno@clisp.org>
84580         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
84581         to empty.
84583 2008-07-10  Ben Pfaff  <blp@gnu.org>
84585         Add isnan module.
84586         * doc/posix-functions/isnan.texi: Mention new module.
84587         * lib/math.in.h: Define isnan macro if we have decided to replace
84588         it.
84589         * m4/isnan.m4: New file.
84590         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
84591         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
84592         also.
84593         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
84594         redundancy.
84595         * m4/math_h.m4: Initialize and substitute variables for isnan
84596         module.
84597         * modules/isnan: New file.
84598         * modules/isnan-tests: New file.
84599         * modules/math: Add substitutions for new module.
84600         * tests/test-isnan.c: New file.
84601         * MODULES.html.sh: Mention new module.
84603 2008-07-10  Ben Pfaff  <blp@gnu.org>
84605         Add isnanf module.
84606         * lib/isnanf.m4: New file.
84607         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
84608         (gl_HAVE_ISNANF_IN_LIBM): New macro.
84609         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
84610         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
84611         * modules/isnanf: New file.
84612         * modules/isnanf-tests: New file.
84613         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
84614         files.
84615         * tests/test-isnanf-nolibm.c: factored most of its contents into
84616         new file tests/test-isnanf.h.
84617         * tests/test-isnanf.h: New file.
84618         * tests/test-isnanf.c: New file.
84619         * MODULES.html.sh: Mention new module.
84620         * doc/glibc-functions/isnanf.texi: Mention new module.
84622 2008-07-10  Ben Pfaff  <blp@gnu.org>
84624         Add isnand module.
84625         * lib/isnand.h: New file.
84626         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
84627         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
84628         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
84629         functionality also.
84630         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
84631         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
84632         (gl_HAVE_ISNAND_IN_LIBM): New macro.
84633         * modules/isnand: New file.
84634         * modules/isnand-tests: New file.
84635         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
84636         files.
84637         * tests/test-isnand-nolibm.c: factored most of its contents into
84638         new file tests/test-isnand.h.
84639         * tests/test-isnand.h: New file.
84640         * tests/test-isnand.c: New file.
84641         * MODULES.html.sh: Mention new module.
84643 2008-07-10  Ben Pfaff  <blp@gnu.org>
84645         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
84646         * lib/isnand.h: Rename lib/isnand-nolibm.h.
84647         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
84648         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
84649         * modules/isnanf-nolibm: Update references to renamed files.
84650         * modules/isnand-nolibm: Likewise.
84651         * modules/isnanf-nolibm-tests: Likewise.
84652         * modules/isnand-nolibm-tests: Likewise.
84653         * lib/frexp.c: Likewise.
84654         * lib/isfinite.c: Likewise.
84655         * lib/signbitd.c: Likewise.
84656         * lib/signbitf.c: Likewise.
84657         * lib/vasnprintf.c: Likewise.
84658         * tests/test-ceilf1.c: Likewise.
84659         * tests/test-ceilf2.c: Likewise.
84660         * tests/test-floorf1.c: Likewise.
84661         * tests/test-floorf2.c: Likewise.
84662         * tests/test-frexp.c: Likewise.
84663         * tests/test-round1.c: Likewise.
84664         * tests/test-round2.c: Likewise.
84665         * tests/test-roundf1.c: Likewise.
84666         * tests/test-strtod.c: Likewise.
84667         * tests/test-trunc1.c: Likewise.
84668         * tests/test-trunc2.c: Likewise.
84669         * tests/test-truncf1.c: Likewise.
84670         * tests/test-truncf2.c: Likewise.
84671         * NEWS: Mention the renamed header files.
84673 2008-07-11  Jim Meyering  <meyering@redhat.com>
84675         vc-list-files: make the last-resort awk code more portable
84676         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
84677         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
84678         does not support it.
84680 2008-07-10  Eric Blake  <ebb9@byu.net>
84682         Work with tar's bootstrap.
84683         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
84684         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
84685         an m4 comment.
84687 2008-07-09  Jim Meyering  <meyering@redhat.com>
84689         posix-shell.m4: fix typo that made this test malfunction
84690         * m4/posix-shell.m4: Remove capitalization in variable name.
84692 2008-07-08  Bruno Haible  <bruno@clisp.org>
84694         * m4/onceonly.m4: Update comments.
84695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84697 2008-07-04  Jim Meyering  <meyering@redhat.com>
84699         * users.txt: Add vc-dwim.
84700         (bison, coreutils): Use the gitweb URL.
84702 2008-07-03  Jim Meyering  <meyering@redhat.com>
84704         * users.txt: Add libffcall.  From Sam Steingold.
84706 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
84708         getdate.y: do not ignore TZ with relative day, month or year offset
84709         * lib/getdate.y (get_date): Move the tz-handling block to follow the
84710         relative-date-handling, since otherwise, the latter would clobber the
84711         sole output (an updated Start value) of the tz-handling block.
84712         * tests/test-getdate.c: Tests for the fix
84714 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84716         Recognize 'foo_LIBRARIES += libgnu.a'.
84717         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
84718         makefile snippet has already specified an installation location,
84719         also using '+='.
84721 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
84723         getdate.y: factor out common actions
84724         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
84725         Use them in place of open-coded actions.
84727 2008-07-01  Simon Josefsson  <simon@josefsson.org>
84729         Add self-test for getdate module.
84730         * modules/getdate-tests: New file.
84731         * tests/test-getdate.c: New file.
84733 2008-06-29  Bruno Haible  <bruno@clisp.org>
84735         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
84736         .gitignore.
84737         Reported by Sylvain Beucler <beuc@beuc.net>.
84739 2008-06-29  Bruno Haible  <bruno@clisp.org>
84741         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
84742         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
84744 2008-06-29  Bruno Haible  <bruno@clisp.org>
84746         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
84747         EXTRA_DIST.
84748         Reported by Sylvain Beucler <beuc@beuc.net>.
84750 2008-06-26  Jim Meyering  <meyering@redhat.com>
84752         make several modules depend on the "open" module
84753         This provides slightly increased consistency when opening-for-write
84754         the name of a non-directory spelled with a trailing slash.
84755         * modules/chdir-safer: Likewise.
84756         * modules/chown: Likewise.
84757         * modules/clean-temp: Likewise.
84758         * modules/copy-file: Likewise.
84759         * modules/fchdir: Likewise.
84760         * modules/fcntl-safer: Likewise.
84761         * modules/pipe: Likewise.
84762         * modules/utime: Likewise.
84763         Prompted by Eric Blake and Bruno Haible.
84765 2008-06-24  Andreas Schwab  <schwab@suse.de>
84767         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
84768         literals can be used as initializers for global variables.
84770 2008-06-23  Eric Blake  <ebb9@byu.net>
84772         Make gnulib-cache.m4 easier to diff.
84773         * gnulib-tool (func_import): Allow newlines when reading cached
84774         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
84776 2008-06-23  Bruno Haible  <bruno@clisp.org>
84778         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
84779         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
84780         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
84781         m4/signalblocking.m4.
84782         (gl_PREREQ_SIGACTION): Don't invoke it.
84783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
84784         gl_PREREQ_SIG_HANDLER_H.
84785         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
84786         Don't check for sigaction here.
84788 2008-06-23  Bruno Haible  <bruno@clisp.org>
84790         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
84791         (install_handlers): Don't set the SA_RESETHAND flag.
84793 2008-06-23  Bruno Haible  <bruno@clisp.org>
84795         * m4/sigaction.m4: Comment fixes.
84796         * lib/signal.in.h: Likewise.
84798 2008-06-23  Eric Blake  <ebb9@byu.net>
84800         Fix typo.
84801         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
84803         Avoid SA_ namespace.
84804         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
84805         Reported by Ralf Wildenhues.
84807         Avoid test failure due to SA_RESTORER.
84808         * tests/test-sigaction.c (SA_MASK): New macro.
84809         (main): Avoid failing due to extension flags being set.
84810         Reported by Jim Meyering.
84812         Revert use of sig-handler.h in sigprocmask.c.
84813         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
84814         it requires the existence of struct sigaction.
84815         * lib/sigprocmask.c (handler_t): Restore typedef.
84816         (rpl_signal, old_handlers): Use local type.
84818 2008-06-22  Bruno Haible  <bruno@clisp.org>
84820         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
84821         conditionally.
84822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84824 2008-06-22  Bruno Haible  <bruno@clisp.org>
84826         * doc/posix-functions/siginterrupt.texi: Move note.
84828         * lib/signal.in.h (SA_RESTART): New macro.
84829         * lib/sigaction.c: Update comment.
84831         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
84833         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
84834         (gl_PREREQ_SIGPROCMASK): Invoke it.
84835         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
84837         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
84839         * lib/sigprocmask.c: Update a comment.
84841 2008-06-21  Eric Blake  <ebb9@byu.net>
84843         Use sigaction module rather than signal().
84844         * modules/c-stack (Depends-on): Add sigaction.
84845         * modules/fatal-signal (Depends-on): Likewise.
84846         * modules/nanosleep (Depends-on): Likewise.
84847         * modules/sigprocmask (Files): Add sig-handler.h.
84848         * modules/sigaction (Files): Likewise.
84849         * lib/sig-handler.h (get_handler): New file, suggested by Paul
84850         Eggert.
84851         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
84852         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
84853         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
84854         (init_fatal_signals): Likewise.
84855         * lib/nanosleep.c (rpl_nanosleep): Likewise.
84856         (siginterrupt): Delete fallback.
84857         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
84858         instead.
84859         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
84860         siginterrupt.
84862         New module sigaction, for mingw.
84863         * modules/sigaction: New module...
84864         * modules/sigaction-tests: ...and its test.
84865         * m4/sigaction.m4: New file.
84866         * lib/sigaction.c: Likewise.
84867         * tests/test-sigaction.c: Likewise.
84868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
84869         * modules/signal (Makefile.am): Likewise.
84870         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
84871         needed.
84872         * doc/posix-headers/signal.texi (signal.h): Mention provided
84873         types.
84874         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
84875         that sigaction is preferable.
84876         * doc/posix-functions/sigaction.texi (sigaction): Mention new
84877         module.
84878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84879         sigaction.
84881         Improve robustness of sigprocmask by overriding signal.
84882         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
84883         is in use.
84884         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
84885         (SIGKILL, SIGSTOP): Provide fallbacks.
84886         (rpl_signal): Implement.
84887         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
84888         signal can be called inside handlers.
84890         Fix nanosleep module on mingw.
84891         * modules/nanosleep (Depends-on): Add sys_select.
84892         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
84894         Fix licensing of sigprocmask.
84895         * modules/raise (License): Relicense as LGPL.
84897 2008-06-21  Bruno Haible  <bruno@clisp.org>
84899         * lib/propername.c (proper_name_utf8): Don't use the transliterated
84900         result if it contains question marks.
84901         Reported by Michael Geng <linux@michaelgeng.de>.
84903 2008-06-19  Bruno Haible  <bruno@clisp.org>
84905         Fix CVS-ism.
84906         * doc/gnulib.texi: Include updated-stamp.texi.
84907         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
84908         (updated-stamp.texi): New rule.
84909         (gnulib.info): Depend on it.
84910         * doc/.gitignore: Add updated-stamp.texi.
84911         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
84913 2008-06-19  Bruno Haible  <bruno@clisp.org>
84915         * doc/Makefile (gnulib.info): Update and simplify dependencies.
84916         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
84918 2008-06-19  Eric Blake  <ebb9@byu.net>
84920         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
84921         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
84922         Reported by Stepan Kasal.
84924 2008-06-18  Bruno Haible  <bruno@clisp.org>
84926         * lib/fatal-signal.c (init_fatal_signals): Add comment.
84927         Reported by Eric Blake.
84929 2008-06-18  Eric Blake  <ebb9@byu.net>
84931         Work around cygwin 1.5.25 strsignal bug.
84932         * tests/test-strsignal.c: Allow for const char *.
84933         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
84935 2008-06-18  Simon Josefsson  <simon@josefsson.org>
84937         * users.txt: Update URL to article and add author/date
84938         information.
84940 2008-06-17  Bruno Haible  <bruno@clisp.org>
84942         New macro gl_DISABLE_THREADS.
84943         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
84944         if the user did not pass --enable-threads or --disable-threads option.
84945         (gl_DISABLE_THREADS): New macro.
84946         Reported by Eric Blake <ebb9@byu.net>.
84948 2008-06-17  Bruno Haible  <bruno@clisp.org>
84950         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
84951         when the macro ignores it.
84952         Based on a patch by Eric Blake <ebb9@byu.net>.
84954 2008-06-17  Bruno Haible  <bruno@clisp.org>
84956         * modules/tls (License): Change to LGPLv2+.
84957         Reported by Eric Blake.
84959 2008-06-17  Eric Blake  <ebb9@byu.net>
84961         Simplify c-stack prerequisites.
84962         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
84963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
84964         no longer requires <ucontext.h> to exist.  Optimize setrlimit
84965         check.
84966         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
84967         <sys/resource.h>.
84969         Move c-stack test into testsuite.
84970         * modules/c-stack-tests: New file.
84971         * lib/c-stack.c [DEBUG]: Move test program...
84972         * tests/test-c-stack.c: ...into this new file.  Skip rather than
84973         fail test if sigaltstack is lacking.
84974         * tests/test-c-stack.sh: New driver file.
84976 2008-06-16  Eric Blake  <ebb9@byu.net>
84978         Use raise module consistently.
84979         * modules/fatal-signal (Depends-on): Add raise.
84980         * modules/sigprocmask (Depends-on): Likewise.
84981         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
84982         * lib/sigprocmask.c (sigprocmask): Likewise.
84983         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
84984         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
84986         Fix compliance bug in sigpending.
84987         * lib/sigprocmask.c (sigpending): Return pending array via
84988         parameter, not return value.
84990 2008-06-14  Eric Blake  <ebb9@byu.net>
84992         Improve obstack-printf test code.
84993         * tests/test-obstack-printf.c (test_function): Fix comment, and
84994         simplify usage of obstack_* in macros.  Add a test for coverage.
84995         Reported by Bruno Haible.
84997 2008-06-14  Bruno Haible  <bruno@clisp.org>
84999         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
85000         array size as a constant, not as a const variable.
85001         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
85002         AC_USE_SYSTEM_EXTENSIONS.
85003         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85004         Test whether the obstack_printf function actually exists.
85005         * modules/obstack-printf (Depends-on): Add extensions.
85006         (Include): Remove obstack.h.
85007         * modules/obstack-printf-posix (Depends-on): Add extensions.
85008         (Include): Remove obstack.h.
85010 2008-06-13  Eric Blake  <ebb9@byu.net>
85012         Add obstack-printf and obstack-printf-posix modules.
85013         * modules/obstack-printf: New file.
85014         * modules/obstack-printf-posix: Likewise.
85015         * MODULES.html.sh (Misc): Mention them.
85016         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85017         Likewise.
85018         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85019         Likewise.
85020         * modules/stdio (Makefile.am): Accomodate new modules.
85021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
85022         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
85023         Declare.
85024         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
85025         functions.
85026         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
85027         (gl_REPLACE_OBSTACK_PRINTF): New macros
85028         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
85029         * tests/test-obstack-printf.c: New file.
85030         * modules/obstack-printf-tests: Likewise.
85031         * modules/obstack-printf-posix-tests: Likewise.
85033 2008-06-11  Bruno Haible  <bruno@clisp.org>
85035         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
85036         * lib/open.c: Include errno.h.
85037         (open): Fail when attempting to write to a file that has a trailing
85038         slash.
85039         * tests/test-open.c (main): Test against trailing slash bug.
85040         * doc/posix-functions/open.texi: Mention the trailing slash bug.
85042 2008-06-10  Bruno Haible  <bruno@clisp.org>
85044         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
85045         for $? to work inside the trap command, with various /bin/sh-s.
85046         * tests/test-vc-list-files-cvs.sh: Likewise.
85048 2008-06-10  Bruno Haible  <bruno@clisp.org>
85050         * lib/acl-internal.h: Don't include gettext.h here.
85051         * lib/set-mode-acl.c: Include gettext.h here.
85052         * lib/copy-acl.c: Likewise.
85054 2008-06-10  Bruno Haible  <bruno@clisp.org>
85056         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
85057         * lib/wait-process.c (wait_subprocess): Likewise.
85058         * lib/execute.h (execute): Add termsigp argument.
85059         * lib/execute.c (execute): Likewise.
85060         * lib/csharpcomp.c (compile_csharp_using_pnet,
85061         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
85062         * lib/csharpexec.c (execute_csharp_using_pnet,
85063         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
85064         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
85065         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
85066         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
85067         is_jikes_present): Update.
85068         * lib/javaexec.c (execute_java_class): Update.
85069         * lib/javaversion.c (execute_and_read_line): Update.
85070         * NEWS: Document the changes.
85071         Reported by Eric Blake.
85073 2008-06-10  Eric Blake  <ebb9@byu.net>
85075         Add missing include.
85076         * tests/test-strstr.c (includes): Add <signal.h>.
85077         * tests/test-strcasestr.c (includes): Likewise.
85078         * tests/test-memmem.c (includes): Likewise.
85080 2008-06-10  Bruno Haible  <bruno@clisp.org>
85082         * lib/wait-process.c (wait_subprocess): Add an assertion.
85084 2008-06-10  Bruno Haible  <bruno@clisp.org>
85086         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
85088 2008-06-10  Bruno Haible  <bruno@clisp.org>
85090         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
85091         using alarm().
85092         * tests/test-strcasestr.c (main): Likewise.
85093         * tests/test-strstr.c (main): Likewise.
85095 2008-06-09  Bruno Haible  <bruno@clisp.org>
85097         Work around the Solaris 10 ACE ACLs ABI change.
85098         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
85099         declare if ACL_NO_TRIVIAL is present.
85100         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
85101         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
85102         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
85103         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
85104         define if ACL_NO_TRIVIAL is present.
85105         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
85106         and use the current ABI.
85107         (file_has_acl): Use same #if condition as elsewhere.
85108         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
85109         in use, and use the current ABI.
85110         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
85111         Reported by Jim Meyering.
85113 2008-06-09  Eric Blake  <ebb9@byu.net>
85115         Work around environments that (stupidly) ignore SIGALRM.
85116         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
85117         before using alarm().
85118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85119         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85120         Reported by Ian Beckwith <ianb@erislabs.net>.
85122         Produce autobuild blurb earlier in log.
85123         * modules/autobuild (configure.ac-early): Move AB_INIT here.
85125 2008-06-09  Jim Meyering  <meyering@redhat.com>
85126         and Ondřej Vašík  <ovasik@redhat.com>
85128         utimens.c: correct kernel bug work-around
85129         Ondřej Vašík found that the invalid return value of 280 indicates
85130         failure, not success, and the kernel bug we're trying to work
85131         around affects not just the utimensat call, but also the fallback
85132         futimens call.
85133         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
85134         not success.
85135         [HAVE_FUTIMENS]: Use the same work-around, here.
85137 2008-06-09  Jim Meyering  <meyering@redhat.com>
85139         add more guards around definition of ACE_-related code
85140         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
85141         ALLOW and ACE_OWNER are also defined.
85143 2008-06-08  Bruno Haible  <bruno@clisp.org>
85145         * lib/acl-internal.h: Add me as co-author.
85146         * lib/file-has-acl.c: Likewise.
85147         * lib/set-mode-acl.c: Likewise.
85148         * lib/copy-acl.c: Likewise.
85150 2008-06-08  Bruno Haible  <bruno@clisp.org>
85152         Add support for AIX ACLs.
85153         * lib/acl-internal.h (acl_nontrivial): New declaration.
85154         * lib/file-has-acl.c (acl_nontrivial): New function.
85155         (file_has_acl): Add implementation using AIX 4 ACL API.
85156         * lib/set-mode-acl.c (qset_acl): Likewise.
85157         * lib/copy-acl.c (qcopy_acl): Likewise.
85159 2008-06-08  Bruno Haible  <bruno@clisp.org>
85161         Add support for HP-UX ACLs.
85162         * lib/acl-internal.h (acl_nontrivial): New declaration.
85163         * lib/file-has-acl.c (acl_nontrivial): New function.
85164         (file_has_acl): Add implementation using HP-UX 11 ACL API.
85165         * lib/set-mode-acl.c (qset_acl): Likewise.
85166         * lib/copy-acl.c (qcopy_acl): Likewise.
85168 2008-06-08  Bruno Haible  <bruno@clisp.org>
85170         Add support for Cygwin ACLs.
85171         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
85172         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
85173         the chmod_or_fchmod call.
85174         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
85176 2008-06-08  Bruno Haible  <bruno@clisp.org>
85178         Fix bug with setuid modes in Solaris 10+ code.
85179         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
85180         succeeded, when the mode contains some special bits.
85182 2008-06-08  Bruno Haible  <bruno@clisp.org>
85184         Add support for Solaris 7..10 ACLs.
85185         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
85186         declarations.
85187         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
85188         functions.
85189         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
85190         * lib/set-mode-acl.c (qset_acl): Likewise.
85191         * lib/copy-acl.c (qcopy_acl): Likewise.
85193 2008-06-08  Bruno Haible  <bruno@clisp.org>
85195         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
85196         declaration.
85197         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
85198         (acl_access_nontrivial): Remove MacOS X case.
85199         (file_has_acl): Use acl_extended_nontrivial.
85200         * lib/copy-acl.c (qcopy_acl): Likewise.
85202 2008-06-08  Bruno Haible  <bruno@clisp.org>
85204         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
85206 2008-06-08  Jim Meyering  <meyering@redhat.com>
85208         * modules/acl (Maintainer): Add Bruno Haible.
85210 2008-06-07  Bruno Haible  <bruno@clisp.org>
85212         Improve support for Tru64 ACLs.
85213         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
85214         ACL on OSF/1.
85216 2008-06-07  Bruno Haible  <bruno@clisp.org>
85218         Add support for MacOS X ACLs.
85219         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
85220         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
85221         * lib/set-mode-acl.c (qset_acl): Likewise.
85222         * lib/copy-acl.c (qcopy_acl): Likewise.
85224 2008-06-07  Bruno Haible  <bruno@clisp.org>
85226         Fix memory leak introduced on 2008-05-22.
85227         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
85228         use.
85230 2008-06-07  Bruno Haible  <bruno@clisp.org>
85232         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
85233         to construct an empty ACL.
85235 2008-06-07  Bruno Haible  <bruno@clisp.org>
85237         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
85238         precisely.
85239         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
85241 2008-06-07  Bruno Haible  <bruno@clisp.org>
85243         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
85244         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
85246 2008-06-07  Bruno Haible  <bruno@clisp.org>
85248         * doc/posix-functions/_setjmp.texi: Explain the use of this function
85249         regardless of POSIX.
85250         * doc/posix-functions/_longjmp.texi: Likewise.
85251         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
85252         SystemV platform in this case.
85254 2008-06-06  Eric Blake  <ebb9@byu.net>
85256         Document abort() bugs.
85257         * doc/posix-functions/abort.texi (abort): Mention anomalies.
85259         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
85260         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
85261         sigsetjmp.
85262         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
85263         siglongjmp, but only as a macro.
85264         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
85265         is obsolete.
85266         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
85268         Tweak documentation to cover cygwin argz bugs.
85269         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
85270         argz bug fix; no code change needed since no cygwin releases
85271         occurred between the last fix and the bug being tested.
85272         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
85273         module and recently fixed cygwin bugs.
85274         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
85275         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
85276         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
85277         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
85278         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
85279         Likewise.
85280         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
85281         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
85282         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
85283         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
85284         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
85285         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
85286         Likewise.
85288         Avoid gcc warning on cygwin.
85289         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
85290         !ACL_NO_TRIVIAL]: Avoid unused variable.
85292 2008-06-05  Eric Blake  <ebb9@byu.net>
85294         Be tolerant of UNKNOWN version in gnulib-tool test dir.
85295         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
85296         git-version-gen fails to come up with a version.
85297         Reported by Simon Josefsson.
85299 2008-06-05  Jim Meyering  <meyering@redhat.com>
85300             Paul Eggert  <eggert@cs.ucla.edu>
85302         utimens.c: work around a probable Linux kernel bug
85303         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
85304         appears to be a kernel bug that causes utimensat to return 280
85305         instead of 0, indicating success.
85307 2008-06-04  Bruno Haible  <bruno@clisp.org>
85309         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
85310         2008-06-01 commit.
85312 2008-06-04  Bruno Haible  <bruno@clisp.org>
85314         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
85315         * lib/file-has-acl.c (acl_access_nontrivial): New function.
85316         (file_has_acl): Use it. Save errno afterwards.
85317         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
85319 2008-06-03  Bruno Haible  <bruno@clisp.org>
85321         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
85322         draft code. Simplify #ifs.
85323         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
85324         Put Solaris code after POSIX-draft code. Fix comments regarding
85325         Solaris 10, HP-UX. Mention Cygwin.
85326         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
85328 2008-06-03  Eric Blake  <ebb9@byu.net>
85330         Provide fallback for older kernels.
85331         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
85332         Provide runtime fallback if kernel lacks support.
85333         Reported by Mike Frysinger.
85335 2008-06-02  Bruno Haible  <bruno@clisp.org>
85337         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
85338         it exists.
85340 2008-06-02  Bruno Haible  <bruno@clisp.org>
85342         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
85343         * lib/copy-acl.c (qcopy_acl): Update comment.
85345 2008-06-02  Bruno Haible  <bruno@clisp.org>
85347         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
85348         like ACL APIs.
85350 2008-06-02  Bruno Haible  <bruno@clisp.org>
85352         * tests/test-file-has-acl.sh: Use different code for Cygwin.
85353         * tests/test-set-mode-acl.sh: Likewise.
85354         * tests/test-copy-acl.sh: Likewise.
85355         * tests/test-copy-file.sh: Likewise.
85357 2008-06-02  Bruno Haible  <bruno@clisp.org>
85359         * tests/test-file-has-acl.sh: Remove unused code.
85361 2008-06-01  Bruno Haible  <bruno@clisp.org>
85363         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
85364         (copy_acl): Just a wrapper around qcopy_acl that emits the error
85365         messages.
85366         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
85368 2008-06-01  Bruno Haible  <bruno@clisp.org>
85370         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
85371         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
85372         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
85373         APIs.
85374         * modules/acl-tests (configure.ac): Remove tests now contained in
85375         m4/acl.m4.
85377 2008-06-02  Jim Meyering  <meyering@redhat.com>
85379         announce-gen: use a better key-server host name
85380         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
85381         it may be more consistently reliable.  Suggested by Werner Koch
85382         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
85384 2008-06-01  Bruno Haible  <bruno@clisp.org>
85386         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
85387         Reported by Voroskoi Andras <voroskoi@gmail.com>.
85389 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
85391         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
85393 2008-06-01  Bruno Haible  <bruno@clisp.org>
85395         New ACL tests.
85396         * tests/test-file-has-acl.sh: New file.
85397         * tests/test-file-has-acl.c: New file.
85398         * tests/test-set-mode-acl.sh: New file.
85399         * tests/test-set-mode-acl.c: New file.
85400         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
85401         * tests/test-copy-acl.c: New file.
85402         * modules/acl-tests: New file, based on modules/copy-file-tests.
85403         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
85404         (Depends-on): Add acl-tests.
85405         (configure.ac): Remove checks.
85406         (Makefile.am): Don't create test-sameacls program here any more.
85408 2008-06-01  Bruno Haible  <bruno@clisp.org>
85410         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
85411         * tests/test-sameacls.c: Include progname.h.
85412         (main): Invoke set_program_name. Portability fixes for MacOS X,
85413         Solaris, HP-UX.
85415 2008-06-01  Bruno Haible  <bruno@clisp.org>
85417         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
85418         function.
85419         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
85421 2008-06-01  Bruno Haible  <bruno@clisp.org>
85423         * modules/rpmatch (Depends-on): Add strdup.
85425 2008-06-01  Bruno Haible  <bruno@clisp.org>
85427         * lib/pipe.c: Include unistd-safer.h.
85428         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
85429         * modules/pipe (Depends-on): Add unistd-safer.
85431 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85433         * modules/autobuild (configure.ac): Call AB_INIT.
85435 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85437         * tests/test-getaddrinfo.c: Don't print debug messages by default.
85438         Suggested by Bruno Haible <bruno@clisp.org>.
85440 2008-05-30  Simon Josefsson  <simon@josefsson.org>
85442         * tests/test-base64.c: Cast size_t to unsigned long when invoking
85443         printf.  Use %lu instead of %d.  Reported by Bruno Haible
85444         <bruno@clisp.org>.
85446 2008-05-29  Eric Blake  <ebb9@byu.net>
85448         Prefer new POSIX 200x interfaces over futimesat.
85449         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
85450         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
85451         when available.
85452         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
85454 2008-05-28  Bruno Haible  <bruno@clisp.org>
85456         * modules/stpcpy (License): Change to LGPLv2+.
85457         Requested by David Lutterkort <dlutter@redhat.com>.
85459 2008-05-27  Bruno Haible  <bruno@clisp.org>
85461         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
85462         current mingw.
85463         Reported by Jose E. Marchesi <jemarch@gnu.org>.
85465 2008-05-27  Bruno Haible  <bruno@clisp.org>
85467         * modules/iconv_open (Link): New section, from module 'iconv'.
85468         * modules/striconv (Link): Likewise.
85469         * modules/striconveh (Link): Likewise.
85470         * modules/xstriconv (Link): Likewise.
85471         * modules/unicodeio (Link): Likewise.
85472         * modules/propername (Link): Likewise.
85473         Reported by Jim Meyering.
85475 2008-05-26  Jim Meyering  <meyering@redhat.com>
85477         sha256: do not artificially restrict buffer length to be < 2^32
85478         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
85479         uint32_t to size_t.
85480         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
85481         to match.
85483         avoid unaligned access errors, e.g., on sparc
85484         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
85485         direct access through a possibly-unaligned uint64* pointer.
85486         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
85487         direct access through a possibly-unaligned uint32* pointer.
85488         Prompted by this patch from Tom "spot" Callaway:
85489         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
85491         sha512.c: fix typo in comment
85492         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
85494 2008-05-25  Bruno Haible  <bruno@clisp.org>
85496         * lib/set-mode-acl.c: Renamed from lib/acl.c.
85497         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
85498         (Makefile.am): Update lib_SOURCES.
85500 2008-05-25  Bruno Haible  <bruno@clisp.org>
85502         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
85504 2008-05-25  Jim Meyering  <meyering@redhat.com>
85506         useless-if-before-free: freed expr may have white-space differences
85507         * build-aux/useless-if-before-free: Recognize cases in which the
85508         freed expression differs from the tested one in embedded white
85509         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
85510         $1 was used, so we can't make any regexp shy.  Improved tests now
85511         detect this.
85513         useless-if-before-free: accept white space in the expression.
85514         * build-aux/useless-if-before-free: For now, any white space
85515         in the expression must be identical in the free argument.
85517         useless-if-before-free: efficiency tweak
85518         * build-aux/useless-if-before-free: Make the expression-matching
85519         regexp "shy".
85520         Make the *outer* regexp shy, not the expr-matching one.
85522         update code-in-comment to accept cast of free arg
85523         * build-aux/useless-if-before-free: Update regexp.
85525 2008-05-25  Bruno Haible  <bruno@clisp.org>
85527         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
85528         * modules/copy-file-tests (Files, Makefile.am): Update.
85529         * tests/test-copy-file.c (func_test_copy): Update.
85531 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
85533         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
85535 2008-05-23  Bruno Haible  <bruno@clisp.org>
85537         Improve support for ACLs on OSF/1.
85538         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
85539         Remove fallback for unknown flavors of ACLs.
85541 2008-05-22  Bruno Haible  <bruno@clisp.org>
85543         Add support for ACLs on OSF/1.
85544         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
85545         replacements.
85546         (acl_free_text): New macro fallback.
85547         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
85548         acl_free.
85549         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
85550         acl_free_text function. Require AC_C_INLINE.
85552 2008-05-22  Bruno Haible  <bruno@clisp.org>
85554         Make copy_acl work on MacOS X 10.5.
85555         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
85556         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
85557         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
85558         If MODE_INSIDE_ACL, don't assume that every system has the same text
85559         representation for ACLs as FreeBSD.
85560         * lib/copy-acl.c (copy_acl): Add support for platforms with
85561         !MODE_INSIDE_ACL.
85562         * lib/file-has-acl.c (file_has_acl): Likewise.
85563         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
85564         FreeBSD, MacOS X, or IRIX, respectively.
85566 2008-05-22  Bruno Haible  <bruno@clisp.org>
85568         * lib/acl.h: Don't include <sys/acl.h>.
85569         (GETACLCNT): Move fallback to lib/acl-internal.h.
85570         * lib/acl-internal.h: Include <sys/acl.h> here.
85571         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
85573 2008-05-22  Bruno Haible  <bruno@clisp.org>
85575         Split off copy_acl function to separate file.
85576         * lib/copy-acl.c: New file, extracted from lib/acl.c.
85577         * lib/acl.c (copy_acl): Moved function to separate file.
85578         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
85579         * modules/acl (Files): Add lib/copy-acl.c.
85580         (Makefiles.am): Augment lib_SOURCES.
85582 2008-05-22  Bruno Haible  <bruno@clisp.org>
85584         * modules/copy-file-tests: New file.
85585         * tests/test-copy-file.sh: New file.
85586         * tests/test-copy-file.c: New file.
85587         * tests/test-copy-file-sameacls.c: New file.
85589 2008-05-22  Eric Blake  <ebb9@byu.net>
85591         Avoid gcc warning.
85592         * tests/test-memcmp.c (main): Pass NULL indirectly.
85594 2008-05-21  Bruno Haible  <bruno@clisp.org>
85596         Add reference doc about ACLs.
85597         * doc/acl-resources.txt: New file.
85598         * doc/acl-cygwin.txt: New file.
85600 2008-05-21  Bruno Haible  <bruno@clisp.org>
85602         Avoid one more warning from gcc.
85603         * lib/vasnprintf.c (IF_LINT): Update comments.
85604         (VASNPRINTF): Use it also for the 'prefix' array initializer.
85606 2008-05-21  Jim Meyering  <meyering@redhat.com>
85608         avoid a warning from gcc
85609         * lib/vasnprintf.c (IF_LINT): Define.
85610         (scale10_round_decimal_long_double):
85611         Use it to avoid a "may be used uninitialized" warning.
85612         (scale10_round_decimal_double): Likewise.
85614 2008-05-21  Simon Josefsson  <simon@josefsson.org>
85616         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
85617         declared.
85619 2008-05-20  Bruno Haible  <bruno@clisp.org>
85621         * tests/test-memcmp.c (main): Test also the sign of the result. Test
85622         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
85624 2008-05-20  Simon Josefsson  <simon@josefsson.org>
85626         * modules/memcmp-tests: New file.
85627         * tests/test-memcmp.c: New file.
85629 2008-05-19  Bruno Haible  <bruno@clisp.org>
85631         * modules/propername (Notice, configure.ac): Put quoted "..." into
85632         --keyword option.
85633         * lib/propername.h: Update comments accordingly.
85634         Reported by Eric Blake.
85636 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
85638         * modules/getpass-gnu (Depends-on): Add fseeko.
85640 2008-05-19  Simon Josefsson  <simon@josefsson.org>
85642         * modules/base64-tests: New file.
85644 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
85646         * lib/base64.c (base64_decode_ctx): If a decode context structure
85647         was passed in use it to ignore newlines.  If a context structure
85648         was _not_ passed in, continue to treat newlines as garbage (this
85649         is the historical behavior).  Formerly base64_decode.
85650         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
85651         takes a decode context structure.
85652         * lib/base64.h (base64_decode): Macro for four-argument calls.
85653         (base64_decode_alloc): Likewise.
85654         * lib/base64.c (base64_decode_ctx): If a decode context structure
85655         was passed in use it to ignore newlines.  If a context structure
85656         was _not_ passed in, continue to treat newlines as garbage (this
85657         is the historical behavior).  Formerly base64_decode.
85658         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
85659         takes a decode context structure.
85660         * lib/base64.h (base64_decode): Macro for four-argument calls.
85661         (base64_decode_alloc): Likewise.
85663 2008-05-19  Jim Meyering  <meyering@redhat.com>
85665         avoid a warning from gcc
85666         * lib/trim.c (IF_LINT): Define.
85667         (trim2): Use it to avoid a "may be used uninitialized" warning.
85669         Fix doc typo.
85670         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
85672 2008-05-19  Bruno Haible  <bruno@clisp.org>
85674         * doc/glibc-functions/getpass.texi: Document limits of other
85675         implementations.
85677 2008-05-19  Simon Josefsson  <simon@josefsson.org>
85678             Bruno Haible <bruno@clisp.org>
85680         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
85682 2008-05-18  Bruno Haible  <bruno@clisp.org>
85684         * modules/propername: New file, from GNU gettext.
85685         * lib/propername.h: New file, from GNU gettext.
85686         * lib/propername.c: New file, from GNU gettext.
85687         * MODULES.html.sh (Internationalization functions): Add propername.
85689 2008-05-16  Jim Meyering  <meyering@redhat.com>
85690             Bruno Haible  <bruno@clisp.org>
85692         Avoid some warnings from "gcc -Wshadow".
85693         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
85695 2008-05-15  Eric Blake  <ebb9@byu.net>
85697         Extend previous patch to cygwin 1.7.0.
85698         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
85699         fast implementation in cygwin >= 1.7.0.
85700         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
85701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85703 2008-05-15  Bruno Haible  <bruno@clisp.org>
85705         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
85706         implementation in glibc >= 2.9.
85707         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
85708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85710 2008-05-15  Bruno Haible  <bruno@clisp.org>
85712         * MODULES.html.sh (Internationalization functions): Remove linebreak.
85713         (Unicode string functions): Add unilbrk/*.
85714         Reported by Karl Berry.
85716 2008-05-15  Eric Blake  <ebb9@byu.net>
85718         Fix violation of <stdbool.h> replacement in regex.
85719         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
85720         * lib/regexec.c (re_search_internal): Likewise.
85721         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
85723 2008-05-15  Jim Meyering  <meyering@redhat.com>
85725         avoid distracting test output when git or cvs is not found
85726         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
85727         * tests/test-vc-list-files-git.sh: Likewise.
85729 2008-05-15  Eric Blake  <ebb9@byu.net>
85731         Glibc finally accepted the memmem speedup code, bugzilla #5514.
85732         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
85733         glibc version.
85734         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
85735         * doc/posix-functions/strstr.texi (strstr): Likewise.
85736         * lib/str-two-way.h (MAX): Sychronize with glibc.
85738 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
85740         * lib/regcomp.c (optimize_utf8): Add a note on why we test
85741         opr.ctx_type.
85742         (calc_first): Initialize constraint field.
85743         (duplicate_node_closure): Use it instead of special casing ANCHORS.
85744         Fix grammar.
85745         (duplicate_node): Merge constraint field for all node types.
85746         (calc_eclosure_iter): Look at constraint field for all node types.
85747         * lib/regex_internal.c (create_cd_newstate): Don't look at
85748         opr.ctx_type.
85750 2008-05-14  Bruno Haible  <bruno@clisp.org>
85752         Help GCC to do better code generation.
85753         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
85754         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
85755         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
85756         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
85757         Declare with attribute 'malloc' if supported.
85759 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
85761         use "echo STR|wc -c" rather than unportable "expr length STR"
85762         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
85763         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
85765 2008-05-14  Jim Meyering  <meyering@redhat.com>
85767         use dd ibs=$n count=1 ... rather than less-portable head -c$n
85768         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
85769         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
85770         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
85771         via Collin Lasse.
85773 2008-05-14  Eric Blake  <ebb9@byu.net>
85775         Avoid quadratic growth in gl_LIBSOURCES.
85776         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
85777         Suggested by Bruno Haible.
85779         Test xmemdup0.
85780         * modules/xmemdup0-tests: New file.
85781         * tests/test-xmemdup0.c: Likewise.
85783 2008-05-13  Eric Blake  <ebb9@byu.net>
85785         Split xmemdup0 into its own module.
85786         * modules/xmemdup0: New file.
85787         * lib/xmemdup0.h: Likewise.
85788         * lib/xmemdup0.c: Likewise.
85789         * MODULES.html.sh (Memory management functions): Add xmemdup0.
85790         * lib/xalloc.h (xmemdup0): Remove.
85791         * lib/xmalloc.c (xmemdup0): Likewise.
85793 2008-05-13  Eric Blake  <ebb9@byu.net>
85794             Bruno Haible  <bruno@clisp.org>
85796         Reduce number of forks required during autoconf.
85797         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
85798         and gl_LIBSOURCES_DIR.
85799         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
85800         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
85801         m4_syscmd per file.
85802         <m4_foreach_w>: Move...
85803         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
85805 2008-05-13  Eric Blake  <ebb9@byu.net>
85807         * gnulib-tool: Fix various comment typos.
85809 2008-05-12  Bruno Haible  <bruno@clisp.org>
85811         Tailor the linebreaking algorithm.
85812         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
85814 2008-05-12  Bruno Haible  <bruno@clisp.org>
85816         Update to Unicode 5.0.0.
85817         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
85818         LBP_JV, LBP_JT. Redistribute values.
85819         (unilbrk_table): Change size.
85820         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
85821         Unicode TR#14 rev. 22.
85822         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
85823         LBP_JV, LBP_JT. Redistribute values.
85824         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
85825         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
85826         Update.
85827         * lib/unilbrk/lbrkprop1.h: Regenerated.
85828         * lib/unilbrk/lbrkprop2.h: Regenerated.
85829         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
85830         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
85831         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
85832         Likewise.
85833         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
85834         Likewise.
85835         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
85836         result.
85837         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
85838         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
85839         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
85840         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
85841         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
85842         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
85844 2008-05-11  Bruno Haible  <bruno@clisp.org>
85846         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
85848 2008-05-11  Bruno Haible  <bruno@clisp.org>
85850         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
85851         * modules/unilbrk/gen-lbrk: New file.
85853 2008-05-11  Bruno Haible  <bruno@clisp.org>
85855         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
85856         * m4/sha512.m4 (gl_SHA512): Likewise.
85858 2008-05-11  Jim Meyering  <meyering@redhat.com>
85860         New modules: crypto/sha256, crypto/sha512 (from coreutils)
85861         * modules/crypto/sha256: New file.
85862         * modules/crypto/sha512: Likewise.
85863         * lib/sha256.c: Likewise.
85864         * lib/sha256.h: Likewise.
85865         * lib/sha512.c: Likewise.
85866         * lib/sha512.h: Likewise.
85867         * lib/u64.h: Likewise.
85868         * m4/sha256.m4: Likewise.
85869         * m4/sha512.m4: Likewise.
85870         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
85872 2008-05-10  Bruno Haible  <bruno@clisp.org>
85874         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
85875         (Input/Output <stdio.h>): Add xprintf.
85876         (Signal handling <signal.h>): Add strsignal.
85877         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
85878         (Core language properties): Add func.
85879         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
85880         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
85881         strings.
85882         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
85883         (Input/output): New section.
85884         (File system functions): Add openat-die, stat-macros.
85885         (Networking functions): Add sockets.
85886         (Unicode string functions): Add unictype/*.
85887         (Support for building libraries and executables): Add gperf.
85888         (Support for building documentation): Add agpl-3.0.
85889         (Misc): Add nocrash.
85891 2008-05-10  Bruno Haible  <bruno@clisp.org>
85893         * modules/unictype/gen-ctype: New file.
85895 2008-05-10  Jim Meyering  <meyering@redhat.com>
85897         Make chdir-safer.c more efficient on a system with no symlinks.
85898         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
85899         also if ELOOP is zero.  Suggested by Bruno Haible.
85901         Make chdir-safer.c slightly safer.
85902         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
85903         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
85905         Avoid compile failure on systems without ELOOP (like mingw).
85906         * lib/chdir-safer.c (ELOOP): Define if not already defined.
85907         Reported by Bruno Haible.
85909 2008-05-10  Bruno Haible  <bruno@clisp.org>
85911         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
85912         (is_utf8_encoding): Use a case-insensitive comparison.
85913         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
85914         streq.
85916 2008-05-10  Bruno Haible  <bruno@clisp.org>
85918         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
85919         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
85920         * lib/unilbrk/ulc-common.h (iconv_string_length,
85921         iconv_string_keeping_offsets): Remove declarations.
85922         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
85923         Don't include <iconv.h>, streq.h, xsize.h.
85924         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
85925         conversion.
85926         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
85927         <iconv.h>, streq.h, xsize.h.
85928         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
85929         conversion.
85930         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
85931         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
85932         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
85933         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
85935 2008-05-10  Bruno Haible  <bruno@clisp.org>
85937         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
85938         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
85940         * modules/unilbrk/u32-width-linebreaks-tests: New file.
85941         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
85943         * modules/unilbrk/u16-width-linebreaks-tests: New file.
85944         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
85946         * modules/unilbrk/u8-width-linebreaks-tests: New file.
85947         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
85949         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
85950         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
85952         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
85953         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
85955         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
85956         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
85958         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
85959         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
85961 2008-05-10  Bruno Haible  <bruno@clisp.org>
85963         Split up 'linebreak' module.
85964         * lib/unilbrk.h: New file, based on lib/linebreak.h.
85965         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
85966         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
85967         modifications.
85968         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
85969         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
85970         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
85971         lib/linebreak.c.
85972         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
85973         lib/linebreak.c.
85974         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
85975         lib/linebreak.c.
85976         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
85977         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
85978         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
85979         lib/linebreak.c.
85980         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
85981         lib/linebreak.c.
85982         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
85983         lib/linebreak.c.
85984         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
85985         lib/linebreak.c.
85986         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
85987         lib/linebreak.c.
85988         * modules/unilbrk/base: New file.
85989         * modules/unilbrk/tables: New file.
85990         * modules/unilbrk/u8-possible-linebreaks: New file.
85991         * modules/unilbrk/u16-possible-linebreaks: New file.
85992         * modules/unilbrk/u32-possible-linebreaks: New file.
85993         * modules/unilbrk/ulc-common: New file.
85994         * modules/unilbrk/ulc-possible-linebreaks: New file.
85995         * modules/unilbrk/u8-width-linebreaks: New file.
85996         * modules/unilbrk/u16-width-linebreaks: New file.
85997         * modules/unilbrk/u32-width-linebreaks: New file.
85998         * modules/unilbrk/ulc-width-linebreaks: New file.
85999         * lib/linebreak.h: Remove file.
86000         * lib/linebreak.c: Remove file.
86001         * m4/linebreak.m4: Remove file.
86002         * modules/linebreak: Remove file.
86003         * NEWS: Mention the changes.
86005 2008-05-09  Eric Blake  <ebb9@byu.net>
86007         Add xmemdup0.
86008         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
86009         implementation.
86010         * lib/xmalloc.c (xmemdup0): New C implementation.
86012 2008-05-08  Bruno Haible  <bruno@clisp.org>
86014         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
86016 2008-05-07  Eric Blake  <ebb9@byu.net>
86018         Support cross-compilation of <wctype.h>.
86019         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
86020         AC_CACHE_CHECK.
86022 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
86024         * build-aux/vc-list-files: Add support for bzr.
86026 2008-05-03  Jim Meyering  <meyering@redhat.com>
86028         avoid failed assertion with tight malloc
86029         * tests/test-getndelim2.c: Correct an off-by-one assertion.
86031 2008-05-03  Simon Josefsson  <simon@josefsson.org>
86033         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
86034         are needed from arpa/inet.h.
86035         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
86036         Reported by Bruno Haible.
86038 2008-05-02  Jim Meyering  <meyering@redhat.com>
86040         avoid compilation error on FreeBSD 6
86041         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
86043 2008-05-01  Jim Meyering  <meyering@redhat.com>
86045         useless-if-before-free: correct --help's exit status description
86046         * build-aux/useless-if-before-free (usage): Like grep, exit 0
86047         for one or more matches, etc.  Reported by Bruno Haible.
86049         vc-list-files: make the stand-alone gnulib test work
86050         * modules/vc-list-files-tests (configure.ac):
86051         Define and AC_SUBST abs_aux_dir.
86052         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
86053         $(abs_top_srcdir) to each script and having each of them
86054         duplicate the work of setting PATH, set PATH here, using
86055         the new variable, abs_aux_dir instead.
86056         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
86057         * tests/test-vc-list-files-git.sh: Likewise.
86058         Reported by Bruno Haible.
86060 2008-05-01  Bruno Haible  <bruno@clisp.org>
86062         * lib/getndelim2.c (getndelim2): Fix newsize computation during
86063         reallocation. Rename 'done' to 'found_delimiter'.
86065 2008-05-01  Jim Meyering  <meyering@redhat.com>
86067         vc-list-files: accommodate /bin/sh like the one from Solaris 10
86068         * build-aux/vc-list-files: Use `...`, not $(...).
86070 2008-04-30  Jim Meyering  <meyering@redhat.com>
86072         add tests for vc-list-files
86073         * modules/vc-list-files-tests: New module.
86074         * tests/test-vc-list-files-cvs.sh: New file.
86075         * tests/test-vc-list-files-git.sh: New file.
86077         avoid a warning from gcc
86078         * lib/getndelim2.c (IF_LINT): Define.
86079         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
86081         vc-list-files: work properly with build-aux/cvsu, too
86082         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
86083         to all cvs-based clauses.
86085         vc-list-files: work properly in the CVS+awk case, too
86086         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
86088         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
86089         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
86090         take more than one file argument, so .  Add quotes, just in case $dir
86091         ever contains a shell meta-character.  Prompted by Soren Hansen in
86092         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
86094 2008-04-29  Eric Blake  <ebb9@byu.net>
86096         Optimize getndelim2 to use block operations when possible.
86097         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
86098         freadseek, and memchr2.
86099         * lib/getndelim2.c (getndelim2): Use them for block reads.
86101 2008-04-29  Bruno Haible  <bruno@clisp.org>
86103         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
86104         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86105         * modules/inet_ntop (Depends-on): Add extensions.
86106         * modules/inet_pton (Depends-on): Likewise.
86107         Reported by Simon Josefsson.
86109 2008-04-29  Jim Meyering  <meyering@redhat.com>
86111         When the is more than one match in a block, match all of them.
86112         * build-aux/useless-if-before-free: Iterate through each block
86113         until there are no more matches.
86115         Fix broken useless-if-before-free script.
86116         * build-aux/useless-if-before-free: Fix typo: missing "?" after
86117         the expression to match cast of argument to free-like function.
86119 2008-04-29  Eric Blake  <ebb9@byu.net>
86121         Use new header.
86122         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
86124 2008-04-29  Jim Meyering  <meyering@redhat.com>
86126         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
86127         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
86128         by gnulib to exist and to declare e.g., inet_ntop.
86129         Don't include "inet_ntop.h", now removed.
86131         * m4/arpa_inet_h.m4: Remove trailing blanks.
86133 2008-04-29  Eric Blake  <ebb9@byu.net>
86135         Silence valgrind on safe reads beyond potential array bounds.
86136         * lib/rawmemchr.valgrind: New file.
86137         * lib/strchrnul.valgrind: Likewise.
86138         * modules/rawmemchr (Files): Distribute new file.
86139         * modules/strchrnul (Files): Likewise.
86140         Suggested by Bruno Haible.
86142 2008-04-29  Bruno Haible  <bruno@clisp.org>
86144         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
86145         (inet_ntop, inet_pton): Change portability warning's wording.
86146         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
86147         Invoke gl_CHECK_NEXT_HEADERS.
86148         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
86149         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
86150         set ARPA_INET_H.
86151         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
86152         * modules/arpa_inet (Description): No longer only for systems that
86153         lack it.
86154         (Depends-on): Add include_next.
86155         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
86156         HAVE_ARPA_INET_H.
86158 2008-04-29  Jim Meyering  <meyering@redhat.com>
86160         * modules/mkdir (License): Re-license as LGPLv2+.
86162 2008-04-29  Bruno Haible  <bruno@clisp.org>
86164         * modules/rawmemchr (Maintainer): Set to Eric.
86165         * modules/strchrnul (Maintainer): Likewise.
86167 2008-04-29  Simon Josefsson  <simon@josefsson.org>
86169         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
86170         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
86172         * modules/arpa_inet (arpa/inet.h): Use them.
86174 2008-04-28  Eric Blake  <ebb9@byu.net>
86176         Test getndelim2.
86177         * modules/getndelim2-tests: New file.
86178         * tests/test-getndelim2.c: Likewise.
86179         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
86180         stream.
86181         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
86183         * MODULES.html.sh: Document new module.
86185 2008-04-20  Bruno Haible  <bruno@clisp.org>
86187         * lib/c-stack.c (die): Use raise.
86188         * modules/c-stack (Depends-on): Add raise.
86190 2008-04-28  Bruno Haible  <bruno@clisp.org>
86192         Expect rpmatch to be declared.
86193         * lib/yesno.c (rpmatch): Remove declaration.
86195         Declare rpmatch.
86196         * lib/stdlib.in.h (rpmatch): New declaration.
86197         * lib/rpmatch.c: Include <stdlib.h> first.
86198         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
86199         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
86200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
86201         HAVE_RPMATCH.
86202         * modules/rpmatch (Depends-on): Add stdlib, extensions.
86203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86204         (Include): Set to <stdlib.h>.
86205         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
86206         HAVE_RPMATCH.
86207         * NEWS: Document the change.
86209 2008-04-28  Bruno Haible  <bruno@clisp.org>
86211         Change rpmatch to use nl_langinfo when appropriate.
86212         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
86213         (N_): New macro.
86214         (localized_pattern): New function/macro.
86215         (try): Remove match, nomatch arguments. Copy the pattern into safe
86216         memory before caching it.
86217         (rpmatch): Use localized_pattern. Add translator comments.
86218         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
86219         Suggested by Eric Blake.
86220         * modules/rpmatch (Depends-on): Add stdbool.
86222 2008-04-28  Eric Blake  <ebb9@byu.net>
86224         Add rawmemchr module, matching glibc.
86225         * modules/string (Makefile.am): New indicator.
86226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
86227         * lib/string.in.h (rawmemchr): Declare when appropriate.
86228         * modules/rawmemchr: New file.
86229         * m4/rawmemchr.m4: Likewise.
86230         * lib/rawmemchr.c: Likewise.
86231         * modules/rawmemchr-tests: Likewise.
86232         * tests/test-rawmemchr.c: Likewise.
86233         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
86234         module.
86235         * modules/strchrnul (Depends-on): Add rawmemchr.
86236         * lib/strchrnul.c (strchrnul): Optimize a corner case.
86238         Whitespace cleanup.
86239         * tests/test-strchrnul.c: Reindent.
86240         * lib/strchrnul.c: Likewise.
86242         Optimize and test strchrnul.
86243         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
86244         * modules/strchrnul-tests: New file.
86245         * tests/test-strchrnul.c: Likewise.
86247         Remove intprops dependency.
86248         * modules/memchr (Depends-on): Remove intprops.
86249         * modules/memrchr (Depends-on): Likewise.
86250         * modules/memchr2 (Depends-on): Likewise.
86251         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
86252         * lib/memrchr.c (__memrchr): Likewise.
86253         * lib/memrchr2.c (memchr2): Likewise.
86254         Reported by Simon Josefsson.
86256 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86258         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
86259         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86261 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86263         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
86265         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
86267         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
86269         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
86270         declarations.
86271         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
86273         * m4/inet_pton.m4: Don't check for header files.
86275         * m4/inet_ntop.m4: Don't check for header files.
86277 2008-04-28  Simon Josefsson  <simon@josefsson.org>
86279         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
86280         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
86281         trigger for cygwin).
86282         Reported by Bruno Haible  <bruno@clisp.org>.
86284 2008-04-28  Bruno Haible  <bruno@clisp.org>
86286         * doc/posix-functions/strdup.texi: Mention mingw problem.
86288 2008-04-27  Bruno Haible  <bruno@clisp.org>
86290         * modules/stat-time-tests (Depends-on): Add sleep.
86291         * tests/test-stat-time.c (force_unlink): New function.
86292         (cleanup): Use it.
86293         (test_mtime): Remove the ctime related tests.
86294         (test_ctime): New function, containing the ctime related tests.
86295         (main): Call test_ctime, except on native Windows platforms.
86297 2008-04-27  Bruno Haible  <bruno@clisp.org>
86299         * lib/rpmatch.c (rpmatch): Add some comments.
86300         Reported by James Youngman <jay@gnu.org>.
86302 2008-04-27  Bruno Haible  <bruno@clisp.org>
86304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
86305         quiet NaNs.
86307 2008-04-27  Bruno Haible  <bruno@clisp.org>
86309         Make test-yesno.sh work on mingw.
86310         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
86311         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
86312         (main): Set stdin to binary mode.
86313         * modules/yesno-tests (Depends-on): Add binary-io.
86315 2008-04-27  Bruno Haible  <bruno@clisp.org>
86317         Fix 'isfinite' on x86, x86_64, ia64 platforms.
86318         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
86319         argument that lie outside the IEEE 854 domain.
86320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
86321         (gl_ISFINITE): Use it.
86322         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
86324 2008-04-27  Bruno Haible  <bruno@clisp.org>
86326         Allow local renaming in config.h.
86327         * lib/memrchr.c (memrchr): Don't undefine outside libc.
86329 2008-04-27  Bruno Haible  <bruno@clisp.org>
86331         * lib/memchr.c (__memchr): Change type of 'i'.
86332         * lib/memchr2.c (memchr2): Likewise.
86334 2008-04-26  Eric Blake  <ebb9@byu.net>
86335         and Bruno Haible  <bruno@clisp.org>
86337         Optimize and test memrchr.
86338         * modules/memrchr (Depends-on): Add intprops.
86339         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
86340         * modules/memrchr-tests: New file.
86341         * tests/test-memrchr.c: New file.
86343 2008-04-26  Bruno Haible  <bruno@clisp.org>
86345         Add tentative support for DragonFly BSD.
86346         * lib/stdio-impl.h: Add macros for DragonFly BSD.
86347         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
86348         fp.
86349         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86350         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
86351         * lib/fpurge.c (fpurge): Likewise.
86352         * lib/freadable.c (freaadable): Likewise.
86353         * lib/freadahead.c (freadahead): Likewise.
86354         * lib/freading.c (freading): Likewise.
86355         * lib/freadptr.c (freadptr): Likewise.
86356         * lib/freadseek.c (freadptrinc): Likewise.
86357         * lib/fseeko.c (fseeko): Likewise.
86358         * lib/fseterr.c (fseterr): Likewise.
86359         * lib/fwritable.c (fwritable): Likewise.
86360         * lib/fwriting.c (fwriting): Likewise.
86362 2008-04-26  Bruno Haible  <bruno@clisp.org>
86364         * lib/stdio-impl.h: New file.
86365         * lib/fbufmode.c: Include stdio-impl.h.
86366         (fbufmode): Use fp_, remove redundant #defines.
86367         * lib/fflush.c: Include stdio-impl.h.
86368         (clear_ungetc_buffer): Remove redundant #defines.
86369         * lib/fpurge.c: Include stdio-impl.h.
86370         (fpurge): Remove redundant #defines.
86371         * lib/freadable.c: Include stdio-impl.h.
86372         (freadable): Remove redundant #defines.
86373         * lib/freadahead.c: Include stdio-impl.h.
86374         (freadahead): Remove redundant #defines.
86375         * lib/freading.c: Include stdio-impl.h.
86376         (freading): Remove redundant #defines.
86377         * lib/freadptr.c: Include stdio-impl.h.
86378         (freadptr): Remove redundant #defines.
86379         * lib/freadseek.c: Include stdio-impl.h.
86380         (freadptrinc): Remove redundant #defines.
86381         * lib/fseeko.c: Include stdio-impl.h.
86382         (rpl_fseeko): Remove redundant #defines.
86383         * lib/fseterr.c: Include stdio-impl.h.
86384         (fseterr): Remove redundant #defines.
86385         * lib/fwritable.c: Include stdio-impl.h.
86386         (fwritable: Remove redundant #defines.
86387         * lib/fwriting.c: Include stdio-impl.h.
86388         (fwriting): Remove redundant #defines.
86389         * modules/fbufmode (Files): Add lib/stdio-impl.h.
86390         * modules/fflush (Files): Likewise.
86391         * modules/fpurge (Files): Likewise.
86392         * modules/freadable (Files): Likewise.
86393         * modules/freadahead (Files): Likewise.
86394         * modules/freading (Files): Likewise.
86395         * modules/freadptr (Files): Likewise.
86396         * modules/freadseek (Files): Likewise.
86397         * modules/fseeko (Files): Likewise.
86398         * modules/fseterr (Files): Likewise.
86399         * modules/fwritable (Files): Likewise.
86400         * modules/fwriting (Files): Likewise.
86402 2008-04-26  Bruno Haible  <bruno@clisp.org>
86404         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
86405         restore_seek_optimization, update_fpos_cache): New functions, extracted
86406         from rpl_fflush.
86407         (rpl_fflush): Use them.
86408         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
86409         (gl_REPLACE_FFLUSH): Use it.
86411 2008-04-26  Bruno Haible  <bruno@clisp.org>
86413         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
86414         on Solaris.
86415         * tests/test-xstrtoimax.sh: Likewise.
86416         * tests/test-xstrtoumax.sh: Likewise.
86417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86419 2008-04-26  Bruno Haible  <bruno@clisp.org>
86421         * modules/memchr-tests: New file.
86422         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
86424 2008-04-26  Eric Blake  <ebb9@byu.net>
86425             Bruno Haible  <bruno@clisp.org>
86427         * lib/memchr.c: Include intprops.h.
86428         (__memchr): Optimize parallel detection of matching bytes. Rename local
86429         variables. Add explanatory comments.
86431 2008-04-26  Bruno Haible  <bruno@clisp.org>
86433         Fix module 'memchr', broken since 2000-10-28.
86434         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
86436 2008-04-26  Bruno Haible  <bruno@clisp.org>
86438         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
86439         comments.
86441 2008-04-25  Eric Blake  <ebb9@byu.net>
86443         Use native fstatat on cygwin 1.7.0.
86444         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
86445         first.
86447 2008-04-23  Eric Blake  <ebb9@byu.net>
86449         Improve memchr2 performance.
86450         * lib/memchr2.c (memchr2): Further optimize parallel detection of
86451         NUL bytes.
86452         * modules/memchr2 (Depends-on): Use intprops.h.
86454 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86456         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
86457         an inline function instead of a CPP macro.  Patch by Ben Pfaff
86458         <blp@cs.stanford.edu>.
86460 2008-04-23  Simon Josefsson  <simon@josefsson.org>
86462         * lib/arpa_inet.in.h: New file.
86464         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
86465         (Makefile.am): Sed in substitute header file.
86467         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
86468         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
86470         * modules/inet_ntop (configure.ac): Use
86471         gl_ARPA_INET_MODULE_INDICATOR.
86473         * modules/inet_pton (configure.ac): Use
86474         gl_ARPA_INET_MODULE_INDICATOR.
86476 2008-04-22  Jim Meyering  <meyering@redhat.com>
86478         * modules/verify (License): Re-license as LGPLv2+.
86480 2008-04-22  Simon Josefsson  <simon@josefsson.org>
86482         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
86483         parameter to void* as per POSIX standard (MinGW uses char*).
86485 2008-04-21  Bruno Haible  <bruno@clisp.org>
86487         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
86488         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
86489         Define to replacements if REPLACE_ISWCNTRL is 1.
86490         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
86491         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
86492         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
86493         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
86494         what it fixes.
86495         * doc/posix-functions/iswalpha.texi: Likewise.
86496         * doc/posix-functions/iswblank.texi: Likewise.
86497         * doc/posix-functions/iswcntrl.texi: Likewise.
86498         * doc/posix-functions/iswdigit.texi: Likewise.
86499         * doc/posix-functions/iswgraph.texi: Likewise.
86500         * doc/posix-functions/iswlower.texi: Likewise.
86501         * doc/posix-functions/iswprint.texi: Likewise.
86502         * doc/posix-functions/iswpunct.texi: Likewise.
86503         * doc/posix-functions/iswspace.texi: Likewise.
86504         * doc/posix-functions/iswupper.texi: Likewise.
86505         * doc/posix-functions/iswxdigit.texi: Likewise.
86506         Reported by Alain Guibert.
86508 2008-04-21  Bruno Haible  <bruno@clisp.org>
86510         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
86511         Patch by Alain Guibert.
86513 2008-04-21  Bruno Haible  <bruno@clisp.org>
86515         Fix test failures on mingw.
86516         * tests/test-xstrtol.c (print_no_progname): New function.
86517         (main): Install it in error_print_progname hook.
86518         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
86519         * tests/test-xstrtoimax.sh: Likewise.
86520         * tests/test-xstrtoumax.sh: Likewise.
86522 2008-04-21  Bruno Haible  <bruno@clisp.org>
86524         Fix test failure on mingw.
86525         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
86527 2008-04-21  Bruno Haible  <bruno@clisp.org>
86529         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
86530         Actually assign a value.
86532 2008-04-20  Bruno Haible  <bruno@clisp.org>
86534         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
86535         take 2.
86536         * lib/canonicalize.c (canonicalize_file_name): Elide if the
86537         'canonicalize-lgpl' module is also used.
86538         * lib/canonicalize-lgpl.c: Undo last change.
86539         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
86541 2008-04-20  Bruno Haible  <bruno@clisp.org>
86543         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
86544         config.h. Provide _mkdir based fallback for mingw.
86545         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
86546         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
86547         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
86548         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
86549         rather than defining mkdir in config.h.
86550         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
86551         (gl_SYS_STAT_H_DEFAULTS): New macro.
86552         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
86553         HAVE_IO_H any more.
86554         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
86555         HAVE_DECL_MKDIR and HAVE_IO_H.
86557 2008-04-20  Bruno Haible  <bruno@clisp.org>
86559         * lib/isapipe.c: Port to native Windows platforms.
86561 2008-04-20  Bruno Haible  <bruno@clisp.org>
86563         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
86565 2008-04-21  Eric Blake  <ebb9@byu.net>
86567         Work around preprocessors that don't handle UINTMAX_MAX.
86568         * lib/memchr2.c (memchr2): Avoid embedded #if.
86569         Reported by Alain Guibert, fix suggested by Bruno Haible.
86571 2008-04-21  Simon Josefsson  <simon@josefsson.org>
86573         * doc/posix-functions/strftime.texi (strftime): Explain better
86574         Windows incompatibility.  Suggested by Micah Cowan
86575         <micah@cowan.name>.
86577 2008-04-20  Bruno Haible  <bruno@clisp.org>
86579         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
86580         unistr/u8-mblen.
86582 2008-04-20  Bruno Haible  <bruno@clisp.org>
86584         Fix test failure on platforms with non-GNU iconv.
86585         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
86586         (U_TO_U8): Use it, rather than u16_to_u8.
86587         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
86588         units at the end of the input string.
86589         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
86591 2008-04-20  Bruno Haible  <bruno@clisp.org>
86593         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
86594         when the resulting length is 0.
86595         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
86597 2008-04-20  Bruno Haible  <bruno@clisp.org>
86599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
86600         works.
86601         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
86603 2008-04-20  Bruno Haible  <bruno@clisp.org>
86605         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
86606         * modules/tsearch-tests (configure.ac): Test for initstate function.
86608 2008-04-20  Bruno Haible  <bruno@clisp.org>
86610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
86611         for nlink_t if missing.
86612         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
86614 2008-04-19  Bruno Haible  <bruno@clisp.org>
86616         Work around snprintf bug on Linux libc5.
86617         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
86618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86619         gl_SNPRINTF_SIZE1.
86620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86621         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
86622         that test failed.
86623         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
86624         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
86625         * modules/snprintf (Files): Add m4/printf.m4.
86626         * modules/vsnprintf (Files): Likewise.
86627         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
86628         * doc/posix-functions/vsnprintf.texi: Likewise.
86630 2008-04-19  Bruno Haible  <bruno@clisp.org>
86632         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
86633         from 0.0058 to less than 10^-7.
86635 2008-04-19  Bruno Haible  <bruno@clisp.org>
86637         Fix rounding when a precision is given.
86638         * lib/vasnprintf.c (is_borderline): New function.
86639         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
86640         9...9x.
86641         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
86642         %e, %g.
86643         * tests/test-vasprintf-posix.c (test_function): Likewise.
86644         * tests/test-snprintf-posix.h (test_function): Likewise.
86645         * tests/test-sprintf-posix.h (test_function): Likewise.
86646         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
86647         * tests/test-printf-posix.h (test_function): Likewise.
86648         * tests/test-printf-posix.output: Update.
86649         Reported by John Darrington <john@darrington.wattle.id.au> via
86650         Ben Pfaff <blp@cs.stanford.edu>.
86652 2008-04-18  Simon Josefsson  <simon@josefsson.org>
86654         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
86655         Suggested by Bruno Haible <bruno@clisp.org>.
86657 2008-04-17  Bruno Haible  <bruno@clisp.org>
86659         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
86660         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
86661         implementation.
86662         Patch by Bruce Merry <bmerry@gmail.com>.
86664 2008-04-17  Simon Josefsson  <simon@josefsson.org>
86666         * doc/posix-functions/strftime.texi (strftime): Mention that %e
86667         doesn't work under Windows.
86669 2008-04-16  Bruno Haible  <bruno@clisp.org>
86671         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
86672         New macros.
86673         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
86674         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
86675         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
86676         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
86677         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
86678         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
86679         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
86680         macros.
86681         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
86682         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
86683         Northern Sotho, Uighur.
86685 2008-04-16  Bruno Haible  <bruno@clisp.org>
86687         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
86688         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
86689         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
86690         Reported by Daniel Bergström <daniel@octocode.com>.
86692 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
86693             Bruno Haible  <bruno@clisp.org>
86695         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
86696         function.
86697         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
86698         New functions, mostly extracted from gl_locale_name_default.
86699         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
86701 2008-04-16  Eric Blake  <ebb9@byu.net>
86703         Adjust strtod detection to catch glibc 2.7 bug.
86704         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
86705         Reported by John Gatewood Ham.
86707 2008-04-16  Bruno Haible  <bruno@clisp.org>
86709         Add tentative support for Linux libc5.
86710         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
86711         * lib/fpurge.c (fpurge): Likewise.
86712         * lib/freadable.c (freadable): Likewise.
86713         * lib/freadahead.c (freadahead): Likewise.
86714         * lib/freading.c (freading): Likewise.
86715         * lib/freadptr.c (freadptr): Likewise.
86716         * lib/freadseek.c (freadptrinc): Likewise.
86717         * lib/fseeko.c (rpl_fseeko): Likewise.
86718         * lib/fseterr.c (fseterr): Likewise.
86719         * lib/fwritable.c (fwritable): Likewise.
86720         * lib/fwriting.c (fwriting): Likewise.
86721         Reported by Alain Guibert <alguibert+bts@free.fr>.
86723 2008-04-15  Bruno Haible  <bruno@clisp.org>
86725         * modules/mathl (configure.ac): Define module indicator.
86727 2008-04-15  Bruno Haible  <bruno@clisp.org>
86729         * lib/logl.c (logl): Remove unused variables.
86731 2008-04-15  Bruno Haible  <bruno@clisp.org>
86733         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
86734         fails.
86736 2008-04-15  Bruno Haible  <bruno@clisp.org>
86738         * lib/trim.c (trim2): Fix argument of isspace() macro.
86740 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
86742         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
86743         to 0.
86744         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
86746 2008-04-14  Bruno Haible  <bruno@clisp.org>
86748         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
86749         AC_LANG_PROGRAM argument.
86750         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
86751         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
86752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
86753         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
86754         * m4/math_h.m4 (gl_MATH_H): Likewise.
86755         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
86756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
86757         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
86758         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
86759         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
86760         * m4/regex.m4 (gl_REGEX): Likewise.
86761         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
86762         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
86763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
86764         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
86765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86766         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
86767         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
86768         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
86770 2008-04-14  Jim Meyering  <meyering@redhat.com>
86772         test-strtod: fix typos: s/abs/fabs/
86773         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
86775 2008-04-13  Bruno Haible  <bruno@clisp.org>
86777         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
86778         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
86779         module is also used and while not building the reloc-wrapper.
86781 2008-04-13  Bruno Haible  <bruno@clisp.org>
86783         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
86785 2008-04-13  Bruno Haible  <bruno@clisp.org>
86787         Fix AIX compilation failure introduced on 2008-04-02.
86788         * tests/test-frexp.c (exp): Undefine before redefining.
86789         * tests/test-frexpl.c (exp): Likewise.
86791 2008-04-13  Bruno Haible  <bruno@clisp.org>
86793         Work around a HP-UX stdio bug.
86794         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
86795         * tests/test-ftello.c (main): Likewise.
86796         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
86797         * doc/posix-functions/ftello.texi: Likewise.
86799 2008-04-13  Bruno Haible  <bruno@clisp.org>
86801         Make test-signbit pass on HP-UX/hppa.
86802         * tests/test-signbit.c (minus_zerol): New variable.
86803         (test_signbitl): Use it.
86805 2008-04-13  Bruno Haible  <bruno@clisp.org>
86807         Make truncl work on OSF/1 4.0.
86808         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
86809         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
86810         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
86811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
86812         HAVE_DECL_TRUNCL.
86813         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
86814         HAVE_DECL_TRUNCL.
86815         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
86817 2008-04-13  Bruno Haible  <bruno@clisp.org>
86819         * lib/unictype.h: Remove trailing comma from enumeration definitions.
86821 2008-04-13  Bruno Haible  <bruno@clisp.org>
86823         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
86824         expression, so as to avoid HP-UX 11 cc compiler bug.
86826 2008-04-13  Bruno Haible  <bruno@clisp.org>
86828         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
86830 2008-04-13  Bruno Haible  <bruno@clisp.org>
86832         * lib/git-merge-changelog.c: Remove empty declaration outside of
86833         functions.
86835 2008-04-13  Bruno Haible  <bruno@clisp.org>
86837         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
86839 2008-04-13  Bruno Haible  <bruno@clisp.org>
86841         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
86842         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
86843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
86844         also if it exists but lacks definitions of the SHUT_* macros.
86845         * modules/sys_socket (Description): Update.
86846         Reported by Elbert Pol <e.pol@chello.nl>.
86848 2008-04-13  Bruno Haible  <bruno@clisp.org>
86850         * lib/localcharset.c (OS2): Don't redefine if already defined.
86851         Reported by Elbert Pol <e.pol@chello.nl>.
86853 2008-04-13  Bruno Haible  <bruno@clisp.org>
86855         * lib/binary-io.h [__EMX__]: Include <io.h>.
86856         Reported by Elbert Pol <e.pol@chello.nl>.
86858 2008-04-12  Bruno Haible  <bruno@clisp.org>
86860         * lib/fpucw.h: Enable the definitions also for x86_64.
86861         Needed for NetBSD/x86_64.
86862         Reported by Thomas Klausner <tk@giga.or.at>.
86864 2008-04-12  Bruno Haible  <bruno@clisp.org>
86866         * tests/test-strtod.c: Include isnand.h.
86867         (main): Use isnand instead of isnan.
86868         Reported by Jim Meyering.
86870 2008-04-12  Bruno Haible  <bruno@clisp.org>
86872         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
86873         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
86875 2008-04-12  Jim Meyering  <meyering@redhat.com>
86877         * m4/math_h.m4 (gl_MATH_H): Fix typos.
86879 2008-04-12  Bruno Haible  <bruno@clisp.org>
86881         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
86882         Reported by Elbert Pol <e.pol@chello.nl>.
86884 2008-04-12  Eric Blake  <ebb9@byu.net>
86886         Work around Solaris 10 math.h bug.
86887         * m4/math_h.m4 (gl_MATH_H): Check for bug.
86888         (gl_MATH_H_DEFAULTS): Set up default.
86889         * modules/math (Makefile.am): Replace new indicators.
86890         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
86891         * tests/test-math.c (main): Test this.
86892         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
86893         * doc/posix-headers/math.texi (math.h): Mention bug.
86894         Reported by Nelson H. F. Beebe and Jim Meyering.
86896 2008-04-11  Bruno Haible  <bruno@clisp.org>
86898         Adapt to future versions of Apple GCC.
86899         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
86900         Reported by Peter O'Gorman <peter@pogma.com>.
86902 2008-04-11  Bruno Haible  <bruno@clisp.org>
86904         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
86906 2008-04-11  Bruno Haible  <bruno@clisp.org>
86908         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
86910         * modules/getaddrinfo-tests (Makefile.am): Define
86911         test_getaddrinfo_LDADD.
86913 2008-04-11  Bruno Haible  <bruno@clisp.org>
86915         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
86916         (init): Fix syntax error.
86917         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
86918         is declared.
86920 2008-04-11  Bruno Haible  <bruno@clisp.org>
86922         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
86923         * modules/glob (Depends-on): Add stdbool.
86925 2008-04-11  Bruno Haible  <bruno@clisp.org>
86927         * lib/trim.c: Include <string.h>.
86929 2008-04-11  Eric Blake  <ebb9@byu.net>
86931         Avoid compile failure on OS/2.
86932         * lib/regex_internal.h (internal_function): Disable optimization
86933         on OS/2 (__EMX__), where it caused compiler error.
86934         Reported by Elbert Pol.
86936 2008-04-11  Bruno Haible  <bruno@clisp.org>
86938         Flush the standard error stream before aborting. Needed on mingw.
86939         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
86940         * tests/test-array_list.c (ASSERT): Likewise.
86941         * tests/test-array_oset.c (ASSERT): Likewise.
86942         * tests/test-avltree_list.c (ASSERT): Likewise.
86943         * tests/test-avltree_oset.c (ASSERT): Likewise.
86944         * tests/test-avltreehash_list.c (ASSERT): Likewise.
86945         * tests/test-binary-io.c (ASSERT): Likewise.
86946         * tests/test-byteswap.c (ASSERT): Likewise.
86947         * tests/test-c-ctype.c (ASSERT): Likewise.
86948         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
86949         * tests/test-c-strcasestr.c (ASSERT): Likewise.
86950         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
86951         * tests/test-c-strstr.c (ASSERT): Likewise.
86952         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
86953         * tests/test-canonicalize.c (ASSERT): Likewise.
86954         * tests/test-carray_list.c (ASSERT): Likewise.
86955         * tests/test-ceilf1.c (ASSERT): Likewise.
86956         * tests/test-ceilf2.c (ASSERT): Likewise.
86957         * tests/test-ceill.c (ASSERT): Likewise.
86958         * tests/test-count-one-bits.c (ASSERT): Likewise.
86959         * tests/test-fbufmode.c (ASSERT): Likewise.
86960         * tests/test-fflush2.c (ASSERT): Likewise.
86961         * tests/test-floorf1.c (ASSERT): Likewise.
86962         * tests/test-floorf2.c (ASSERT): Likewise.
86963         * tests/test-floorl.c (ASSERT): Likewise.
86964         * tests/test-fopen.c (ASSERT): Likewise.
86965         * tests/test-fpending.c (ASSERT): Likewise.
86966         * tests/test-fprintf-posix.c (ASSERT): Likewise.
86967         * tests/test-fpurge.c (ASSERT): Likewise.
86968         * tests/test-freadable.c (ASSERT): Likewise.
86969         * tests/test-freadahead.c (ASSERT): Likewise.
86970         * tests/test-freading.c (ASSERT): Likewise.
86971         * tests/test-freadptr.c (ASSERT): Likewise.
86972         * tests/test-freadptr2.c (ASSERT): Likewise.
86973         * tests/test-freadseek.c (ASSERT): Likewise.
86974         * tests/test-freopen.c (ASSERT): Likewise.
86975         * tests/test-frexp.c (ASSERT): Likewise.
86976         * tests/test-frexpl.c (ASSERT): Likewise.
86977         * tests/test-fseek.c (ASSERT): Likewise.
86978         * tests/test-fseeko.c (ASSERT): Likewise.
86979         * tests/test-fstrcmp.c (ASSERT): Likewise.
86980         * tests/test-ftell.c (ASSERT): Likewise.
86981         * tests/test-ftello.c (ASSERT): Likewise.
86982         * tests/test-func.c (ASSERT): Likewise.
86983         * tests/test-fwritable.c (ASSERT): Likewise.
86984         * tests/test-fwriting.c (ASSERT): Likewise.
86985         * tests/test-getdelim.c (ASSERT): Likewise.
86986         * tests/test-getline.c (ASSERT): Likewise.
86987         * tests/test-i-ring.c (ASSERT): Likewise.
86988         * tests/test-iconv-utf.c (ASSERT): Likewise.
86989         * tests/test-iconv.c (ASSERT): Likewise.
86990         * tests/test-isfinite.c (ASSERT): Likewise.
86991         * tests/test-isnand.c (ASSERT): Likewise.
86992         * tests/test-isnanf.c (ASSERT): Likewise.
86993         * tests/test-isnanl.h (ASSERT): Likewise.
86994         * tests/test-ldexpl.c (ASSERT): Likewise.
86995         * tests/test-linked_list.c (ASSERT): Likewise.
86996         * tests/test-linkedhash_list.c (ASSERT): Likewise.
86997         * tests/test-localename.c (ASSERT): Likewise.
86998         * tests/test-lseek.c (ASSERT): Likewise.
86999         * tests/test-mbscasecmp.c (ASSERT): Likewise.
87000         * tests/test-mbscasestr1.c (ASSERT): Likewise.
87001         * tests/test-mbscasestr2.c (ASSERT): Likewise.
87002         * tests/test-mbscasestr3.c (ASSERT): Likewise.
87003         * tests/test-mbscasestr4.c (ASSERT): Likewise.
87004         * tests/test-mbschr.c (ASSERT): Likewise.
87005         * tests/test-mbscspn.c (ASSERT): Likewise.
87006         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
87007         * tests/test-mbspbrk.c (ASSERT): Likewise.
87008         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
87009         * tests/test-mbsrchr.c (ASSERT): Likewise.
87010         * tests/test-mbsspn.c (ASSERT): Likewise.
87011         * tests/test-mbsstr1.c (ASSERT): Likewise.
87012         * tests/test-mbsstr2.c (ASSERT): Likewise.
87013         * tests/test-mbsstr3.c (ASSERT): Likewise.
87014         * tests/test-memchr2.c (ASSERT): Likewise.
87015         * tests/test-memmem.c (ASSERT): Likewise.
87016         * tests/test-open.c (ASSERT): Likewise.
87017         * tests/test-printf-frexp.c (ASSERT): Likewise.
87018         * tests/test-printf-frexpl.c (ASSERT): Likewise.
87019         * tests/test-printf-posix.c (ASSERT): Likewise.
87020         * tests/test-quotearg.c (ASSERT): Likewise.
87021         * tests/test-rbtree_list.c (ASSERT): Likewise.
87022         * tests/test-rbtree_oset.c (ASSERT): Likewise.
87023         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
87024         * tests/test-round1.c (ASSERT): Likewise.
87025         * tests/test-roundf1.c (ASSERT): Likewise.
87026         * tests/test-roundl.c (ASSERT): Likewise.
87027         * tests/test-signbit.c (ASSERT): Likewise.
87028         * tests/test-sleep.c (ASSERT): Likewise.
87029         * tests/test-snprintf-posix.c (ASSERT): Likewise.
87030         * tests/test-snprintf.c (ASSERT): Likewise.
87031         * tests/test-sprintf-posix.c (ASSERT): Likewise.
87032         * tests/test-stat-time.c (ASSERT): Likewise.
87033         * tests/test-strcasestr.c (ASSERT): Likewise.
87034         * tests/test-strerror.c (ASSERT): Likewise.
87035         * tests/test-striconv.c (ASSERT): Likewise.
87036         * tests/test-striconveh.c (ASSERT): Likewise.
87037         * tests/test-striconveha.c (ASSERT): Likewise.
87038         * tests/test-strsignal.c (ASSERT): Likewise.
87039         * tests/test-strstr.c (ASSERT): Likewise.
87040         * tests/test-strtod.c (ASSERT): Likewise.
87041         * tests/test-trunc1.c (ASSERT): Likewise.
87042         * tests/test-trunc2.c (ASSERT): Likewise.
87043         * tests/test-truncf1.c (ASSERT): Likewise.
87044         * tests/test-truncf2.c (ASSERT): Likewise.
87045         * tests/test-truncl.c (ASSERT): Likewise.
87046         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
87047         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
87048         * tests/test-vasnprintf.c (ASSERT): Likewise.
87049         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
87050         * tests/test-vasprintf.c (ASSERT): Likewise.
87051         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
87052         * tests/test-vprintf-posix.c (ASSERT): Likewise.
87053         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
87054         * tests/test-vsnprintf.c (ASSERT): Likewise.
87055         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
87056         * tests/test-wcwidth.c (ASSERT): Likewise.
87057         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
87058         * tests/test-xprintf-posix.c (ASSERT): Likewise.
87059         * tests/test-xvasprintf.c (ASSERT): Likewise.
87060         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
87061         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
87062         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
87063         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
87064         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
87065         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
87066         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
87067         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
87068         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
87069         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
87070         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
87071         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
87072         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
87073         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
87074         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
87075         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
87076         * tests/unictype/test-block_list.c (ASSERT): Likewise.
87077         * tests/unictype/test-block_of.c (ASSERT): Likewise.
87078         * tests/unictype/test-block_test.c (ASSERT): Likewise.
87079         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
87080         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
87081         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
87082         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
87083         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
87084         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
87085         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
87086         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
87087         * tests/unictype/test-combining.c (ASSERT): Likewise.
87088         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
87089         * tests/unictype/test-digit.c (ASSERT): Likewise.
87090         * tests/unictype/test-mirror.c (ASSERT): Likewise.
87091         * tests/unictype/test-numeric.c (ASSERT): Likewise.
87092         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
87093         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
87094         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
87095         * tests/unictype/test-scripts.c (ASSERT): Likewise.
87096         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
87097         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
87098         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
87099         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
87100         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
87101         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
87102         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
87103         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
87104         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
87105         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
87106         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
87107         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
87108         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
87109         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
87110         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
87111         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
87112         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
87113         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
87114         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
87115         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
87116         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
87117         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
87118         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
87119         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
87120         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
87121         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
87122         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
87123         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
87124         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
87125         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
87126         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
87127         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
87128         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
87129         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
87130         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
87131         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
87132         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
87133         Reported by Eric Blake.
87135 2008-04-11  Bruno Haible  <bruno@clisp.org>
87137         * lib/wchar.in.h: Tweak comment.
87139 2008-04-11  Bruno Haible  <bruno@clisp.org>
87141         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
87142         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
87143         gl_COMMON.
87144         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
87146 2008-04-11  Bruno Haible  <bruno@clisp.org>
87148         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
87150 2008-04-11  Simon Josefsson  <simon@josefsson.org>
87152         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
87153         of attempting to use non-existing /dev/*random.  Based on patch
87154         from Adam Strzelecki <ono@java.pl> in
87155         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
87157 2008-04-08  Bruno Haible  <bruno@clisp.org>
87159         Add tentative support for emx+gcc.
87160         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
87161         * lib/fpurge.c (fpurge): Likewise.
87162         * lib/freadable.c (freadable): Likewise.
87163         * lib/freadahead.c (freadahead): Likewise.
87164         * lib/freading.c (freading): Likewise.
87165         * lib/freadptr.c (freadptr): Likewise.
87166         * lib/freadseek.c (freadptrinc): Likewise.
87167         * lib/fseeko.c (rpl_fseeko): Likewise.
87168         * lib/fseterr.c (fseterr): Likewise.
87169         * lib/fwritable.c (fwritable): Likewise.
87170         * lib/fwriting.c (fwriting): Likewise.
87171         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
87173 2008-04-09  Eric Blake  <ebb9@byu.net>
87175         Avoid some autoconf warnings.
87176         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
87177         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
87178         * m4/afs.m4 (gl_AFS): Likewise.
87179         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
87180         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
87181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
87182         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
87183         (gl_INTEGER_TYPE_SUFFIX): Likewise.
87184         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
87185         (AC_CHECK_DECLS_ONCE): Likewise.
87186         Rename file...
87187         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
87188         gnulib-tool requires autoconf 2.59 or better.
87189         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
87191 2008-04-08  Eric Blake  <ebb9@byu.net>
87193         Use 'git describe --match' if present (added in git 1.5.5).
87194         * build-aux/git-version-gen: Limit result to tags that match 'v*'
87195         if possible.
87197 2008-04-08  Bruno Haible  <bruno@clisp.org>
87199         Add tentative support for OpenServer.
87200         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
87201         _ptr, _cnt.
87202         * lib/fpurge.c (fpurge): Likewise.
87203         * lib/freadable.c (freadable): Likewise.
87204         * lib/freadahead.c (freadahead): Likewise.
87205         * lib/freading.c (freading): Likewise.
87206         * lib/freadptr.c (freadptr): Likewise.
87207         * lib/freadseek.c (freadptrinc): Likewise.
87208         * lib/fseeko.c (rpl_fseeko): Likewise.
87209         * lib/fseterr.c (fseterr): Likewise.
87210         * lib/fwritable.c (fwritable): Likewise.
87211         * lib/fwriting.c (fwriting): Likewise.
87212         Reported by Roger Cornelius <rac@tenzing.org> and
87213         Brian K. White <brian@aljex.com>.
87215 2008-04-06  Jim Meyering  <meyering@redhat.com>
87217         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
87219 2008-04-06  Bruno Haible  <bruno@clisp.org>
87221         Avoid possible error with non-ASCII bytes in UTF-8 locales.
87222         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
87223         * tests/test-printf-posix.sh: Likewise.
87224         * tests/test-vfprintf-posix.sh: Likewise.
87225         * tests/test-vprintf-posix.sh: Likewise.
87226         * tests/test-xprintf-posix.sh: Likewise.
87228 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87230         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
87231         hide error from 'ls', needed on OS/2.
87232         Report by Elbert Pol <elbert.pol@gmail.com>.
87234 2008-04-04  Eric Blake  <ebb9@byu.net>
87236         Make test-fseeko.c failures meaningful.
87237         * tests/test-fseeko.c: Print line number on failure.
87238         * tests/test-fseek.c: Likewise.
87239         Reported by Nelson H. F. Beebe.
87241         Improve strtod bug detection check.
87242         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
87243         required for Solaris 10.
87244         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
87246 2008-04-04  Bruno Haible  <bruno@clisp.org>
87248         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
87249         by m4/setenv.m4.
87251 2008-04-03  Eric Blake  <ebb9@byu.net>
87253         Ensure sane .version contents.
87254         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
87255         version string.
87256         * build-aux/git-version-gen: Improve documentation.
87258         Make GNU make output nicer.
87259         * top/GNUmakefile [!_have-Makefile]: Add dependency on
87260         MAKECMDGOALS to enforce message for all command line targets.  Set
87261         srcdir for use in maint.mk.
87263         Another maintainer tweak.
87264         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
87265         a target that regenerates version.
87267 2008-04-03  Jim Meyering  <meyering@redhat.com>
87269         vc-list-files: don't cause coreutils "make po-check" failure
87270         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
87272 2008-04-03  Eric Blake  <ebb9@byu.net>
87274         Allow VPATH usage of vc-list-files.
87275         * build-aux/vc-list-files (scriptversion): Add timestamp.
87276         (options): Add --help, --version, -C.
87277         (CVS): Support installed cvsu.
87279 2008-04-02  Bruno Haible  <bruno@clisp.org>
87281         Avoid some "statement with no effect" warnings from gcc.
87282         * tests/test-wctype.c (main): Explicitly ignore unused values.
87283         Reported by Jim Meyering.
87285 2008-04-02  Jim Meyering  <meyering@redhat.com>
87287         Avoid some warnings from "gcc -Wshadow".
87288         * tests/test-frexp.c (exp): Define to a different identifier.
87289         * tests/test-frexpl.c (exp): Likewise.
87291 2008-04-03  Jim Meyering  <meyering@redhat.com>
87293         bootstrap: remove dangling *.[ch] symlinks from lib
87294         * build-aux/bootstrap [dangling symlink removal]: Move find's
87295         -depth option to precede all others, to avoid a warning.
87296         Remove *.[ch] files too, and from "$source_base" (usually lib/).
87298 2008-04-02  Bruno Haible  <bruno@clisp.org>
87300         Avoid some warnings from "gcc -Wshadow".
87301         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
87302         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
87303         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
87304         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
87305         Reported by Jim Meyering.
87307 2008-04-01  Bruno Haible  <bruno@clisp.org>
87309         Fix test to work on IRIX 6.5 with cc.
87310         * tests/test-math.c (numeric_equal): New function.
87311         (main): Use it.
87313 2008-04-01  Bruno Haible  <bruno@clisp.org>
87315         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
87317 2008-04-01  Bruno Haible  <bruno@clisp.org>
87319         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
87320         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87321         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
87322         (Depends-on): Remove math.
87324         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
87325         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87326         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
87327         (Depends-on): Remove math.
87329         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
87330         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87331         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
87332         (Depends-on): Remove math.
87333         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
87334         (Depends-on): Remove math.
87336         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
87337         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
87338         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
87339         (Depends-on): Remove math.
87340         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
87341         (Depends-on): Remove math.
87343         * tests/test-round1.c: Include nan.h.
87344         (main): Use NaNd instead of NAN.
87345         * modules/round-tests (Files): Add tests/nan.h.
87347         * tests/test-trunc1.c: Include nan.h.
87348         (main): Use NaNd instead of NAN.
87349         * modules/trunc-tests (Files): Add tests/nan.h.
87351         * tests/test-roundf1.c: Include nan.h.
87352         (main): Use NaNf instead of NAN.
87353         * modules/roundf-tests (Files): Add tests/nan.h.
87355         * tests/test-truncf1.c: Include nan.h.
87356         (main): Use NaNf instead of NAN.
87357         * modules/truncf-tests (Files): Add tests/nan.h.
87359         * tests/test-ceilf1.c: Include nan.h.
87360         (main): Use NaNf instead of NAN.
87361         * modules/ceilf-tests (Files): Add tests/nan.h.
87363         * tests/test-floorf1.c: Include nan.h.
87364         (main): Use NaNf instead of NAN.
87365         * modules/floorf-tests (Files): Add tests/nan.h.
87367         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
87368         (main): Use NaNf instead of NAN.
87369         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
87371         * tests/test-isnand.c: Include nan.h instead of <math.h>.
87372         (main): Use NaNd instead of NAN.
87373         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
87375         * tests/test-frexp.c: Include nan.h.
87376         (main): Use NaNd instead of NAN.
87377         * modules/frexp-tests (Files): Add tests/nan.h.
87379         * lib/isnan.c: Don't include <math.h>.
87380         (FUNC): Don't use NAN macro.
87381         * modules/isnand-nolibm (Depends-on): Remove math.
87382         * modules/isnanf-nolibm (Depends-on): Remove math.
87383         * modules/isnanl (Depends-on): Remove math.
87384         * modules/isnanl-nolibm (Depends-on): Remove math.
87386         * tests/nan.h: New file.
87388 2008-04-01  Eric Blake  <ebb9@byu.net>
87390         Fix typos.
87391         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
87392         values to be the right type.
87394         For now, cater to gnulib strtod inaccuracies.
87395         * tests/test-strtod.c (main): Allow 1-ulp error on expected
87396         fractional results.  While not as nice from a QoI perspective, it
87397         is a quicker patch than correctly implementing decimal to binary
87398         rounding.
87400 2008-03-31  Eric Blake  <ebb9@byu.net>
87402         Guarantee a definition of NAN.
87403         * lib/math.in.h (NAN): Define if missing.
87404         * tests/test-math.c (main): Test it.
87405         * doc/posix-headers/math.texi (math.h): Document this.
87406         * lib/isnan.c (rpl_isnand): Use it.
87407         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
87408         * tests/test-floorf1.c (NaN): Likewise.
87409         * tests/test-frexp.c (NaN): Likewise.
87410         * tests/test-isnand.c (NaN): Likewise.
87411         * tests/test-isnanf.c (NaN): Likewise.
87412         * tests/test-round1.c (NaN): Likewise.
87413         * tests/test-roundf1.c (NaN): Likewise.
87414         * tests/test-snprintf-posix.h (NaN): Likewise.
87415         * tests/test-sprintf-posix.h (NaN): Likewise.
87416         * tests/test-trunc1.c (NaN): Likewise.
87417         * tests/test-truncf1.c (NaN): Likewise.
87418         * tests/test-vasnprintf-posix.c (NaN): Likewise.
87419         * tests/test-vasprintf-posix.c (NaN): Likewise.
87420         * modules/isnand-nolibm (Depends-on): Add math.
87421         * modules/isnanf-nolibm (Depends-on): Likewise.
87422         * modules/isnanl (Depends-on): Likewise.
87423         * modules/isnanl-nolibm (Depends-on): Likewise.
87424         * modules/snprintf-posix-tests (Depends-on): Likewise.
87425         * modules/sprintf-posix-tests (Depends-on): Likewise.
87426         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
87427         * modules/vsprintf-posix-tests (Depends-on): Likewise.
87428         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
87429         * modules/vasprintf-posix-tests (Depends-on): Likewise.
87431 2008-03-31  Bruno Haible  <bruno@clisp.org>
87433         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
87434         * doc/posix-functions/strtod.texi: Likewise.
87436 2008-03-31  Bruno Haible  <bruno@clisp.org>
87438         * tests/test-strtod.c (main): Don't use C99 syntax.
87440 2008-03-31  Bruno Haible  <bruno@clisp.org>
87442         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
87443         Reported by Eric Blake.
87445 2008-03-31  Jim Meyering  <meyering@redhat.com>
87447         Don't compare actual signbit return values.
87448         * tests/test-strtod.c (main): Rather, compare only their
87449         zero/non-zero nature.
87451 2008-03-31  Eric Blake  <ebb9@byu.net>
87453         More strtod documentation.
87454         * doc/posix-functions/strtod.texi (strtod): Interpret more test
87455         failures as distinct bugs.
87457 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87459         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
87460         Problem reported by Erik Benada in
87461         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
87463 2008-03-30  Bruno Haible  <bruno@clisp.org>
87465         * tests/test-strtod.c: Add comments about which assertion fails on which
87466         platform.
87467         * doc/posix-functions/strtod.texi: Add info about many more platforms.
87469 2008-03-30  Eric Blake  <ebb9@byu.net>
87471         Test signbit behavior on zeros.
87472         * tests/test-signbit.c (test_signbitf): Add tests for zero.
87473         (test_signbitd, test_signbitl): Likewise.
87475         More strtod touchups.
87476         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
87477         sign of negative underflow, for now.  Use .5, not .1.
87478         * doc/posix-functions/strtod.texi (strtod): Mention these
87479         limitations.
87480         Reported by Jim Meyering.
87482 2008-03-30  Bruno Haible  <bruno@clisp.org>
87484         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
87485         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
87487 2008-03-30  Bruno Haible  <bruno@clisp.org>
87489         Avoid failure when attempting to return empty iconv results on some
87490         platforms.
87491         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
87492         allocation, don't report ENOMEM when the resulting string is empty.
87494 2008-03-30  Bruno Haible  <bruno@clisp.org>
87496         Fix buffer overrun.
87497         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
87498         Don't consider the width for tmp_length. Check count against tmp_length
87499         before doing the padding. Ensure enough allocation during padding.
87501 2008-03-30  Eric Blake  <ebb9@byu.net>
87503         strtod touchups.
87504         * lib/strtod.c (strtod): Avoid compiler warnings.
87505         Reported by Jim Meyering.
87507 2008-03-30  Bruno Haible  <bruno@clisp.org>
87509         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
87510         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
87511         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
87512         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
87513         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
87514         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
87515         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
87516         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
87518         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
87519         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
87520         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
87521         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
87522         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
87523         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
87524         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
87525         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
87527         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
87528         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
87529         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
87530         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
87531         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
87532         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
87533         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
87534         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
87536         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
87537         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
87539         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
87540         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
87542         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
87543         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
87545         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
87546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
87547         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
87549         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
87550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
87551         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
87553         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
87554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
87555         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
87557         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
87558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
87559         * modules/vasprintf (Depends-on): Add EOVERFLOW.
87561         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
87562         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
87563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
87564         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
87565         (Depends-on): Add EOVERFLOW.
87566         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
87567         (Depends-on): Add EOVERFLOW.
87568         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
87569         (Depends-on): Add EOVERFLOW.
87570         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
87571         (Depends-on): Add EOVERFLOW.
87572         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
87573         (Depends-on): Add EOVERFLOW.
87574         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
87575         (Depends-on): Add EOVERFLOW.
87576         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
87577         (Depends-on): Add EOVERFLOW.
87578         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
87579         (Depends-on): Add EOVERFLOW.
87581         * lib/sprintf.c (EOVERFLOW): Remove fallback.
87582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
87583         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
87585         * lib/snprintf.c (EOVERFLOW): Remove fallback.
87586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
87587         * modules/snprintf (Depends-on): Add EOVERFLOW.
87589         * lib/poll.c (EOVERFLOW): Remove fallback.
87590         * modules/poll (Depends-on): Add EOVERFLOW.
87592         * lib/getugroups.c (EOVERFLOW): Remove fallback.
87593         * modules/getugroups (Depends-on): Add EOVERFLOW.
87595         * lib/getdelim.c (EOVERFLOW): Remove fallback.
87596         * modules/getdelim (Depends-on): Add EOVERFLOW.
87598         * lib/ftell.c (EOVERFLOW): Remove fallback.
87599         * modules/ftell (Depends-on): Add EOVERFLOW.
87601         * lib/fprintf.c (EOVERFLOW): Remove fallback.
87602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
87603         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
87605         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
87607         * modules/EOVERFLOW-tests: New file.
87608         * tests/test-EOVERFLOW.c: New file.
87610         * modules/EOVERFLOW: New file.
87611         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
87613 2008-03-30  Bruno Haible  <bruno@clisp.org>
87615         Fix bug introduced on 2007-06-10.
87616         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
87617         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
87619 2008-03-30  Bruno Haible  <bruno@clisp.org>
87621         Improve freadseek's efficiency after ungetc.
87622         * lib/freadseek.c: Include freadahead.h.
87623         (freadptrinc): New function, extracted from freadseek.
87624         (freadseek): Use it in a loop. Use freadahead to determine the number
87625         of loop iterations.
87626         * modules/freadseek (Depends-on): Add freadahead.
87627         (configure.ac): Require AC_C_INLINE.
87629 2008-03-30  Bruno Haible  <bruno@clisp.org>
87631         * lib/freadseek.c (freadseek): Don't ignore the return value of
87632         freadptr.
87634 2008-03-29  Eric Blake  <ebb9@byu.net>
87636         Add hex float support.
87637         * modules/strtod (Depends-on): Add c-ctype.
87638         (Link): Mention POW_LIB.
87639         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
87640         whitespace between 'e' and exponent.
87641         * tests/test-strtod.c (main): Enable hex float tests.
87642         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
87643         now provides.
87645         Document various strtod bugs, with some fixes.
87646         * doc/posix-functions/strtod.texi (strtod): Document bugs with
87647         "-0x", "inf", "nan", and hex constants.
87648         * doc/posix-functions/atof.texi (atof): Likewise.
87649         * modules/stdlib (Makefile.am): Support strtod.
87650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
87651         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
87652         detect additional strtod bugs.
87653         * lib/stdlib.in.h (rpl_strtod): Add declarations.
87654         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
87655         bool where appropriate.  Parse 'inf' and 'nan'.
87656         * tests/test-strtod.c: New file.
87657         * modules/strtod (Depends-on): Add stdbool, stdlib.
87658         (configure.ac): Turn on module indicator.
87659         * modules/strtod-tests: New module.
87661 2008-03-29  Eric Blake  <ebb9@byu.net>
87663         Fix ftell on mingw.
87664         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
87665         * modules/ftell-tests (Depends-on): Add binary-io.
87666         * modules/ftello-tests (Depends-on): Likewise.
87667         * tests/test-ftell.c (main): Enhance test to cover behavior after
87668         ungetc.  Enforce binary mode.
87669         * tests/test-ftello.c (main): Likewise.
87671         Pass test-freadseek on cygwin.
87672         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
87673         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
87674         ungetc buffer.
87676         * tests/test-fflush2.c (main): Fix typo.
87678 2008-03-29  Bruno Haible  <bruno@clisp.org>
87680         * tests/test-fflush2.c (main): Temporarily disable the contents of
87681         this test.
87682         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
87683         Reported by Eric Blake.
87685 2008-03-28  Simon Josefsson  <simon@josefsson.org>
87687         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
87688         (GC_SHA224_DIGEST_SIZE): Add.
87690         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
87691         (gc_hash_digest_length): Likewise.
87692         (gc_hash_buffer): Likewise.
87694 2008-03-25  Bruno Haible  <bruno@clisp.org>
87696         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
87697         detail which gettext release to use.
87698         Reported by Simon Josefsson.
87700 2008-03-26  Jim Meyering  <meyering@redhat.com>
87702         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
87703         * modules/gnumakefile (clean-GNUmakefile): Also, use
87704         test ... && ... || : syntax rather than if-then ... fi.
87706         gnumakefile: Don't double-quote-expand $(VPATH) value.
87707         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
87709 2008-03-24  Eric Blake  <ebb9@byu.net>
87711         Alter GNUmakefile to install into top directory.
87712         * modules/maintainer-makefile: Split, and add dependency...
87713         * modules/gnumakefile: to this new module.
87714         * build-aux/GNUmakefile: Move...
87715         * top/GNUmakefile: ...here.
87716         * build-aux/maint.mk: Move...
87717         * top/maint.mk: ...here.
87718         * MODULES.html.sh (Support for maintaining...): Document new
87719         module.
87721 2008-03-23  Bruno Haible  <bruno@clisp.org>
87723         * gnulib-tool: New options --vc-files, --no-vc-files.
87724         (func_usage): Document them.
87725         (vc_files): New variable.
87726         (func_import): Consider vc_files.
87727         (func_create_testdir): Set vc_files to empty.
87728         Suggested by Jim Meyering and Karl Berry.
87730 2008-03-23  Bruno Haible  <bruno@clisp.org>
87732         Fix regex compilation error on HP-UX 11.
87733         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
87734         * modules/regex (Files): Add m4/mbstate_t.m4.
87735         Reported by Ton Voon <ton.voon@altinity.com>.
87737 2008-03-23  Bruno Haible  <bruno@clisp.org>
87739         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
87741 2008-03-23  Eric Blake  <ebb9@byu.net>
87742             Bruno Haible  <bruno@clisp.org>
87744         Install files from top/ in the destination directory.
87745         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
87746         augmentation also for the files from top/.
87747         (func_import, func_create_testdir): Rewrite file names:
87748         top/filename -> filename.
87750 2008-03-23  Bruno Haible  <bruno@clisp.org>
87752         Tweak "gnulib --version" output.
87753         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
87755 2008-03-23  Bruno Haible  <bruno@clisp.org>
87757         Tweak "gnulib --version" output.
87758         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
87759         rather than contents of ChangeLog, when possible.
87761 2008-03-21  Eric Blake  <ebb9@byu.net>
87763         More --version tweaks.
87764         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
87765         date of last ChangeLog entry.
87767 2008-03-21  Jim Meyering  <meyering@redhat.com>
87769         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
87771 2008-03-20  Eric Blake  <ebb9@byu.net>
87773         VPATH fix.
87774         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
87776 2008-03-20  Simon Josefsson  <simon@josefsson.org>
87778         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
87779         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
87781 2008-03-20  Eric Blake  <ebb9@byu.net>
87783         Sync GNUmakefile with coreutils.
87784         * build-aux/GNUmakefile (have-Makefile): Rename...
87785         (_have-Makefile): ...to this, for namespace consideration.
87786         (GNUmakefile.cfg): Include, if present.
87787         (_autoreconf): Define a default.
87788         (_is-dist-target): New rule for rebuilds to pick up intra-release
87789         version.
87790         (maint-cfg.mk): Rename...
87791         (cfg.mk): ...to this.
87793 2008-03-18  Jim Meyering  <meyering@redhat.com>
87795         New script and module: mktempd
87796         * MODULES.html.sh (maint+release support): Add mktempd.
87797         * build-aux/mktempd: New file.
87798         * modules/mktempd: New file.
87800 2008-03-15  Jim Meyering  <meyering@redhat.com>
87802         Undo last change.
87803         * lib/sha1.c, lib/md5.c: 63 != ~63.
87804         Reported by Andreas Schwab.
87806         sha1.c, md5.c: Hoist a redundant expression.
87807         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
87808         "ctx->buflen" only once, before calling *_process_block.
87809         * lib/md5.c (md5_process_bytes): Likewise.
87811 2008-03-14  Eric Blake  <ebb9@byu.net>
87813         Bump copyright year in files generated by gnulib-tool.
87814         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
87815         gnulib-tool, rather than hard-coding it.
87817         Fix 'gnulib-tool --version' output to work with git.
87818         * gnulib-tool (func_gnulib_dir): New function, extracted from...
87819         (startup): ...here.
87820         (func_version): Use it to invoke git-version-gen, rather than
87821         relying on CVS keyword expansion.  Modernize wording.
87822         (cvsdatestamp, last_checkin_date, version): Kill unused
87823         variables.
87825 2008-03-12  Jim Meyering  <meyering@redhat.com>
87827         Recognize optional cast of the argument to free.
87828         * build-aux/useless-if-before-free: Update regexps.
87830         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
87832 2008-03-11  Bruno Haible  <bruno@clisp.org>
87834         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
87835         by a single package.
87836         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
87837         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
87838         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
87839         Reported by Sam Steingold <sds@gnu.org>.
87841 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
87843         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
87844         repositories.
87846 2008-03-11  Bruno Haible  <bruno@clisp.org>
87848         Avoid conflicts between local macro definitions.
87849         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
87850         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
87852 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
87853             Bruno Haible  <bruno@clisp.org>
87855         Make va_copy work with some version of xlc on AIX 5.1.
87856         * lib/stdarg.in.h: New file.
87857         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
87858         On AIX, use a <stdarg.h> file substitute.
87859         * modules/stdarg (Files): Add lib/stdarg.in.h.
87860         (Depends-on): Add include_next.
87861         (Makefile.am): Build a stdarg.h substitute if requested.
87862         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
87864 2008-03-10  Bruno Haible  <bruno@clisp.org>
87866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
87867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
87868         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
87870 2008-03-10  Bruno Haible  <bruno@clisp.org>
87872         * modules/stdlib (Depends-on): Add include_next, remove
87873         absolute-header.
87875 2008-03-09  Bruno Haible  <bruno@clisp.org>
87877         * lib/freadahead.h (freadahead): Document more precisely.
87878         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
87879         the sum of both buffer sizes.
87880         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
87881         * NEWS: Document the change.
87883 2008-03-09  Bruno Haible  <bruno@clisp.org>
87885         Extend freadptr to return also the buffer size.
87886         * lib/freadptr.h (freadptr): Add sizep argument.
87887         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
87888         (freadptr): Add sizep argument. Determine buffer size like freadahead
87889         does.
87890         * tests/test-freadptr.c: Don't include freadahead.h.
87891         (main): Adapt for new calling convention of freadptr.
87892         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
87893         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
87894         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
87895         tests/test-freadptr2.sh.
87896         (Depends): Remove freadahead.
87897         (TESTS): Add test-freadptr2.sh.
87898         (check_PROGRAMS): Add test-freadptr2.
87900 2008-03-09  Bruno Haible  <bruno@clisp.org>
87902         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
87903         Report and solution by Simon Josefsson.
87905 2008-03-06  Bruno Haible  <bruno@clisp.org>
87907         Make fflush after ungetc work on BSD platforms.
87908         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
87909         * tests/test-fflush2.c: New file.
87910         * tests/test-fflush2.sh: New file.
87911         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
87912         tests/test-fflush2.c.
87913         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
87914         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
87916 2008-03-06  Eric Blake  <ebb9@byu.net>
87918         Likewise for ftello.
87919         * modules/ftello (Dependencies): Add extensions.
87920         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
87922 2008-03-06  Bruno Haible  <bruno@clisp.org>
87924         * modules/fseeko (Dependencies): Add extensions.
87925         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
87926         Needed on glibc systems.
87928 2008-03-06  Bruno Haible  <bruno@clisp.org>
87930         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
87931         email address.
87932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
87934 2008-03-06  Bruno Haible  <bruno@clisp.org>
87936         * users.txt: Add libgnupdf.
87938 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
87940         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
87941         (Header File Substitutes, Function Substitutes,
87942         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
87943         (Build robot for gnulib): Fix typo.
87945 2008-03-06  Bruno Haible  <bruno@clisp.org>
87947         * doc/gnulib-tool.texi (VCS Issues): Small updates.
87948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
87950 2008-03-06  Bruno Haible  <bruno@clisp.org>
87952         * doc/func.texi: New file, extracted from doc/gnulib.texi.
87953         * doc/gnulib.texi: Include it.
87955 2008-03-06  Simon Josefsson  <simon@josefsson.org>
87957         * modules/func (License): Change license to unlimited; there was
87958         no LGPL parts in the module anyway.
87960 2008-03-06  Simon Josefsson  <simon@josefsson.org>
87962         * modules/__func__: Renamed to modules/func.
87963         * modules/__func__-tests: Renamed to modules/func-tests.
87964         * tests/test-__func__.c: Renamed to tests/test-func.c.
87965         * m4/__func__.m4: Renamed to m4/func.m4.
87966         * doc/gnulib.texi (__func__): Section renamed to func.
87967         Suggested by Eric Blake <ebb9@byu.net>.
87969 2008-03-06  Simon Josefsson  <simon@josefsson.org>
87971         * doc/gnulib.texi (__func__): Use C99 terminology when talking
87972         about __func__.  Make example self-contained.  Suggested by Eric
87973         Blake <ebb9@byu.net>.
87975         * tests/test-__func__.c (main): Avoid extraneous () around __func.
87976         Suggested by Eric Blake <ebb9@byu.net>.
87978 2008-03-06  Simon Josefsson  <simon@josefsson.org>
87980         * modules/__func__: New file.
87981         * modules/__func__-tests: New file.
87982         * tests/test-__func__.c: New file.
87983         * m4/__func__.m4: New file.
87984         * doc/gnulib.texi (__func__): Document __func__ module.
87986 2008-03-05  Simon Josefsson  <simon@josefsson.org>
87988         * modules/byteswap (License): Re-license as LGPLv2+.
87990 2008-03-05  Simon Josefsson  <simon@josefsson.org>
87992         * doc/Makefile: Add pdf target.
87994 2008-03-05  Simon Josefsson  <simon@josefsson.org>
87996         * modules/inline (License): Use 'unlimited', since there are only
87997         *.m4 files in this module.
87999 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88000             Bruno Haible  <bruno@clisp.org>
88002         Add support for HP C 7.1 on OpenVMS 8.3.
88003         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
88005 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
88007         Update VMS specifics.
88008         * lib/getopt.c [VMS]: Remove include of unixlib.h.
88010 2008-03-02  Jim Meyering  <meyering@redhat.com>
88012         Remove the last dependency on the "free" module.
88013         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
88014         Reported by Bob Proulx.
88016         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
88018         Remove useless "if" tests before free.  Deprecate "free" module.
88019         * doc/posix-functions/free.texi: Mention that this
88020         module is no longer useful.
88021         * modules/free (Notice): Say this module is obsolete.
88022         * modules/readutmp (Depends-on): Remove free.
88023         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
88024         * lib/putenv.c (putenv): Likewise.
88025         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
88026         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
88027         * tests/test-c-strcasestr.c (main): Likewise.
88028         * tests/test-c-strstr.c (main): Likewise.
88029         * tests/test-mbscasestr1.c (main): Likewise.
88030         * tests/test-mbscasestr2.c (main): Likewise.
88031         * tests/test-mbsstr1.c (main): Likewise.
88032         * tests/test-mbsstr2.c (main): Likewise.
88033         * tests/test-memmem.c (main): Likewise.
88034         * tests/test-strcasestr.c (main): Likewise.
88035         * tests/test-striconv.c (main): Likewise.
88036         * tests/test-striconveh.c (main): Likewise.
88037         * tests/test-striconveha.c (main): Likewise.
88038         * tests/test-strstr.c (main): Likewise.
88040         * build-aux/git-version-gen: Adjust a comment and the Usage string.
88042         bootstrap: sync from coreutils again
88043         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
88045 2008-03-01  Jim Meyering  <meyering@redhat.com>
88047         bootstrap: sync from coreutils
88048         * build-aux/bootstrap (update_po_files): Copy a .po file into place
88049         also when the target doesn't exist.
88051 2008-03-01  Eric Blake  <ebb9@byu.net>
88053         Fix bugs in last patch.
88054         * lib/memchr2.c (memchr2): Fix typo.
88055         * tests/test-memchr2.c: Test previous bug, and don't use GNU
88056         extension.
88057         Reported by Bruce Korb.
88059         New module 'memchr2'.
88060         * modules/memchr2: New file.
88061         * modules/memchr2-tests: Likewise.
88062         * lib/memchr2.h: Likewise.
88063         * lib/memchr2.c: Likewise, based on memchr.c.
88064         * tests/test-memchr2.c: New test.
88065         * MODULES.html.sh (String handling): Add memchr2.
88067 2008-02-29  Bruno Haible  <bruno@clisp.org>
88069         * modules/freadseek-tests: New file.
88070         * tests/test-freadseek.sh: New file.
88071         * tests/test-freadseek.c: New file.
88073         New module 'freadseek'.
88074         * modules/freadseek: New file.
88075         * lib/freadseek.h: New file.
88076         * lib/freadseek.c: New file.
88077         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
88079 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88081         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
88082         wydawca.
88084         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
88085         program_invocation_name and program_invocation_short_name are
88086         present.
88088 2008-02-28  Bruno Haible  <bruno@clisp.org>
88090         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
88091         * tests/test-freadptr.sh: Also test non-seekable stdin.
88093 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
88095         * build-aux/bootstrap (source_base, m4_base)
88096         (doc_base, tests_base): New variables.
88097         (gnulib_tool_options): Do not hardcode base directories, use
88098         the above variables instead.
88100 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
88102         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
88104 2008-02-28  Bruno Haible  <bruno@clisp.org>
88106         * modules/freadptr-tests: New file.
88107         * tests/test-freadptr.sh: New file.
88108         * tests/test-freadptr.c: New file.
88110         New module 'freadptr'.
88111         * modules/freadptr: New file.
88112         * lib/freadptr.h: New file.
88113         * lib/freadptr.c: New file.
88114         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
88116 2008-02-26  Karl Berry  <karl@freefriends.org>
88118         Sync from Libtool:
88119         * libltdl/argz.c (argz_add, argz_count): New functions.
88120         * libltdl/argz.in.h: Declare them.
88121         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
88123 2008-02-22  Bruno Haible  <bruno@clisp.org>
88125         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
88126         is a pointer type.  Needed for HP-UX 10.
88127         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
88128         * doc/posix-functions/gmtime_r.texi: Likewise.
88129         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
88131 2008-02-24  Bruno Haible  <bruno@clisp.org>
88133         * modules/environ-tests: New file.
88134         * tests/test-environ.c: New file.
88136         New module 'environ'.
88137         * modules/environ: New file.
88138         * lib/unistd.in.h (environ): New declaration.
88139         * m4/environ.m4: New file.
88140         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
88141         after use.
88142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
88143         HAVE_DECL_ENVIRON.
88144         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
88145         HAVE_DECL_ENVIRON.
88146         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
88147         wrong claim that 'environ' is missing on some systems.
88148         * modules/execute (Depends-on): Add environ.
88149         * lib/execute.c (environ): Remove fallback declaration.
88150         * modules/pipe (Depends-on): Add environ.
88151         * lib/pipe.c (environ): Remove fallback declaration.
88152         * modules/setenv (Depends-on): Add environ.
88153         * lib/setenv.c (environ): Remove fallback declaration.
88154         * modules/unsetenv (Depends-on): Add environ.
88155         * lib/unsetenv.c (environ): Remove fallback declaration.
88156         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
88157         m4/environ.m4.
88158         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
88159         (gl_PREREQ_UNSETENV): Likewise.
88161 2008-02-24  Bruno Haible  <bruno@clisp.org>
88163         * doc/posix-functions/environ.texi: Document the MacOS X problem.
88165 2008-02-20  Bob Proulx  <bob@proulx.com>
88167         Enable use of older two part flavor 'git describe'.
88168         * build-aux/git-version-gen: If using the older two part flavor of
88169         git version then recreate the third part now present in the
88170         newer three part flavor of git describe.
88172 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
88174         * lib/fts.c (fts_build): Typo correction to comment.
88176 2008-02-17  Bruno Haible  <bruno@clisp.org>
88178         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
88179         generating no-op conflicts.
88181 2008-02-17  Bruno Haible  <bruno@clisp.org>
88183         Speed up by 10%.
88184         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
88185         result_entries, rather than an index-based loop.
88187 2008-02-17  Bruno Haible  <bruno@clisp.org>
88189         Speed up by 25%.
88190         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
88191         'hashcode_cached'.
88192         (entry_create): New function.
88193         (entry_hashcode): Use the cached hashcode if possible.
88194         (read_changelog_file, try_split_merged_entry): Use entry_create.
88196 2008-02-17  Bruno Haible  <bruno@clisp.org>
88198         Speed up from O(n^2) to O(n) for long ChangeLog files.
88199         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
88200         (read_changelog_file): Change implementation of entries_reversed list
88201         to rbtreehash.
88202         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
88204 2008-02-17  Bruno Haible  <bruno@clisp.org>
88206         New option --split-merged-entry.
88207         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
88208         (find_paragraph_end, try_split_merged_entry): New functions.
88209         (long_options): Add option --split-merged-entry.
88210         (usage): Document option --split-merged-entry.
88211         (main): Implement option --split-merged-entry.
88212         Reported by Eric Blake.
88214 2008-02-17  Bruno Haible  <bruno@clisp.org>
88216         * lib/git-merge-changelog.c: Include c-strstr.h.
88217         (main): Support the "git pull --rebase" situation.
88218         * modules/git-merge-changelog (Depends-on): Add c-strstr.
88219         Reported by Eric Blake.
88221 2008-02-16  Eric Blake  <ebb9@byu.net>
88223         Avoid doubling \ in common case of "c-maybe" quoting style.
88224         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
88225         eliding outer quotes.
88226         * lib/quotearg.h: Document this.
88227         * tests/test-quotearg.c (result_strings, inputs, results_g)
88228         (flag_results, locale_results): Test it by adding a new string to
88229         each test group.
88230         (compare_strings): Test new string.
88232 2008-02-13  Eric Blake  <ebb9@byu.net>
88234         Avoid trigraph quoting in default output.
88235         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
88236         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
88237         unless explicitly requested.
88238         * tests/test-quotearg.c (flag_results, main): Add additional tests.
88240 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
88242         Don't rely on signed integer overflowing to negative value.
88243         * lib/getugroups.c (getugroups): Include <limits.h>.
88244         Instead, compare against INT_MAX, and increment only if the test passes.
88246 2008-02-13  Jim Meyering  <meyering@redhat.com>
88247         and Eric Blake  <ebb9@byu.net>
88249         Avoid shadowing warning and compile errors on Linux.
88250         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
88251         forwarding macros on Linux.
88252         (dcgettext): Define a stub, for Linux.
88253         (results_g, main): Avoid warnings.
88255 2008-02-12  Eric Blake  <ebb9@byu.net>
88257         Silence warning in last patch.
88258         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
88260         Quotearg part 4: add tests, fix c-maybe colon quoting.
88261         * lib/quotearg.h: Improve documentation.
88262         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
88263         escapes when adding outer quotes.  When quoting trigraphs, use
88264         valid C notation.  When quoting NUL, omit extra characters if next
88265         character is not digit.  Alter prototype.
88266         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
88267         callers.
88268         * modules/quotearg-tests: New module.
88269         * tests/test-quotearg.c: New test.
88271 2008-02-07  Eric Blake  <ebb9@byu.net>
88273         Quotearg part 3: add flag to control outer quote elision.
88274         * lib/quotearg.h (c_maybe_quoting_style): New style.
88275         (enum quoting_flags): Better documentation of flags.
88276         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
88277         c-maybe style.
88278         (quotearg_buffer_restyled): Handle new flag to elide outer
88279         quotes.
88281         Quotearg part 2: add flag that can control NUL elision.
88282         * lib/quotearg.h (set_quoting_flags): New prototype.
88283         * lib/quotearg.c (struct quoting_options): Add flag field.
88284         (set_quoting_flags): New function.
88285         (quotearg_buffer_restyled): Add flags parameter.
88286         (quotearg_alloc_mem): Set the flag if length cannot be returned.
88287         (quotearg_n_options): Set the flag, since length cannot be
88288         returned.
88289         (quoting_options_from_style): Default flags correctly.
88291         Quotearg part 1: more wrappers, restore quotearg_char state.
88292         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
88293         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
88294         (quotearg_colon_mem): New wrappers.
88295         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
88296         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
88297         functions.
88298         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
88299         (quotearg_colon_mem): New functions.
88301 2008-02-11  Bruno Haible  <bruno@clisp.org>
88303         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
88304         library in the current directory: it does not work with parallel make.
88305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88307 2008-02-11  Bruno Haible  <bruno@clisp.org>
88309         * .gitattributes: New file.
88311 2008-02-11  Jim Meyering  <meyering@redhat.com>
88313         useless-if-before-free: Fix reversed exit values.
88314         * build-aux/useless-if-before-free: Use correct values
88315         for EXIT_MATCH and EXIT_NO_MATCH.
88317         * build-aux/useless-if-before-free: Close stdout carefully.
88319 2008-02-10  Bruno Haible  <bruno@clisp.org>
88321         New module 'git-merge-changelog'.
88322         * modules/git-merge-changelog: New file.
88323         * lib/git-merge-changelog.c: New file.
88325 2008-02-10  Jim Meyering  <meyering@redhat.com>
88327         useless-if-before-free: New option: --list (-l).
88329         useless-if-before-free: Don't exit immediately upon open failure.
88330         * build-aux/useless-if-before-free: Exit 2 for errors.
88331         Upon failure to open a file, don't exit immediately.
88332         Rather, just warn and continue with any remaining files.
88334 2008-02-10  Bruno Haible  <bruno@clisp.org>
88336         New abstract list operation 'node_set_value'.
88337         * lib/gl_list.h (gl_list_node_set_value): New function.
88338         (struct gl_list_implementation): New field node_set_value.
88339         * lib/gl_list.c (gl_list_node_set_value): New function.
88340         * lib/gl_array_list.c (gl_array_node_set_value): New function.
88341         (gl_array_list_implementation): Update.
88342         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
88343         (gl_carray_list_implementation): Update.
88344         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
88345         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
88346         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
88347         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
88348         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
88349         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
88350         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
88351         Update.
88352         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
88353         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
88354         (gl_sublist_list_implementation): Update.
88356 2008-02-10  Bruno Haible  <bruno@clisp.org>
88358         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
88359         Needed when ELEMENT is #defined to 'some_type *'.
88361 2008-02-10  Jim Meyering  <meyering@redhat.com>
88363         New script and module: useless-if-before-free
88364         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
88365         * build-aux/useless-if-before-free: New file.
88366         * modules/useless-if-before-free: New file.
88368         * build-aux/gitlog-to-changelog: Use committer date, not author date.
88370         xstrtol_error: Fix typo.
88371         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
88372         s/exit_failure/exit_status/.
88374 2008-02-09  Jim Meyering  <meyering@redhat.com>
88376         New script and module: gitlog-to-changelog
88377         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
88378         * modules/gitlog-to-changelog: New file.
88379         * build-aux/gitlog-to-changelog: New file.
88381 2008-02-08  Jim Meyering  <meyering@redhat.com>
88383         Avoid two "parameter unused" warnings.
88384         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
88385         Mark "st" as used.
88387         Use "git COMMAND", not "git-COMMAND".
88388         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
88389         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
88390         * build-aux/git-version-gen: Use "git status", not "git-status".
88392 2008-02-07  Bruno Haible  <bruno@clisp.org>
88394         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
88395         Avoids a crash on Windows Vista.
88396         Reported by Adam Strzelecki <ono@java.pl> via
88397         Simon Josefsson <simon@josefsson.org>.
88399 2008-02-06  Bruno Haible  <bruno@clisp.org>
88401         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
88402         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
88403         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
88404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
88405         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
88406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88407         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
88408         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
88409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88416         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
88417         left-adjust flag.
88418         * tests/test-snprintf-posix.h (test_function): Likewise.
88419         * tests/test-sprintf-posix.h (test_function): Likewise.
88420         * tests/test-vasprintf-posix.c (test_function): Likewise.
88421         * doc/posix-functions/fprintf.texi: Update.
88422         * doc/posix-functions/printf.texi: Update.
88423         * doc/posix-functions/snprintf.texi: Update.
88424         * doc/posix-functions/sprintf.texi: Update.
88425         * doc/posix-functions/vfprintf.texi: Update.
88426         * doc/posix-functions/vprintf.texi: Update.
88427         * doc/posix-functions/vsnprintf.texi: Update.
88428         * doc/posix-functions/vsprintf.texi: Update.
88429         Reported by Peter Fales <psfales@alcatel-lucent.com>.
88431 2008-02-06  Bruno Haible  <bruno@clisp.org>
88433         Fix bug introduced on 2008-01-26.
88434         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
88436 2008-02-06  Bruno Haible  <bruno@clisp.org>
88438         Fix bug introduced on 2007-06-10.
88439         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
88440         !NEED_PRINTF_FLAG_ZERO.
88442 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
88444         getloadavg: use libperfstat on AIX5
88445         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
88447 2008-02-03  Bruno Haible  <bruno@clisp.org>
88449         * lib/diffseq.h: Add comments about required #includes.
88450         Reported by Michael Biggs <gnulib@doubleplum.net>.
88452 2008-02-01  Bruno Haible  <bruno@clisp.org>
88454         * users.txt: Add gnuit.
88456 2008-01-31  Bruno Haible  <bruno@clisp.org>
88458         * lib/md4.c (set_uint32): Mark as inline.
88459         * lib/md5.c (set_uint32): Likewise.
88460         * lib/sha1.c (set_uint32): Likewise.
88461         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
88462         * m4/md5.m4 (gl_MD5): Likewise.
88463         * m4/sha1.m4 (gl_SHA1): Likewise.
88465 2008-01-31  Jim Meyering  <meyering@redhat.com>
88467         Use "sizeof VAR", rather than a literal "4".
88468         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
88469         * lib/md4.c (md4_read_ctx): Likewise.
88470         * lib/sha1.c (sha1_read_ctx): Likewise.
88472 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88474         * tests/test-sha1.c: New file, based on test-md5.c.
88476         * modules/crypto/sha1-tests: New file.
88478 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88480         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
88482 2008-01-31  Jim Meyering  <meyering@redhat.com>
88484         Prefer "sizeof v" over the equivalent "4".
88485         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
88486         * lib/md5.c (set_uint32): Likewise.
88487         * lib/sha1.c (set_uint32): Likewise.
88489 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88491         * lib/sha1.c (set_uint32): Mark function as static.
88493 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88495         md2: clarify comments to say that alignment is not required.
88496         * lib/md2.h: Remove warning about alignment in comment.
88497         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
88498         never been required.
88500 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88502         md4: adapt alignment constraint fix from sha1.
88503         * lib/md4.c (set_uint32): New function, from sha1.c
88504         (md4_read_ctx): Use it.
88505         (md4_finish_ctx): Doc fix.
88506         * lib/md4.h: Doc fix.
88508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
88510         md5: adapt alignment constraint fix from sha1.
88511         * lib/md5.c (set_uint32): New function, from sha1.c
88512         (md5_read_ctx): Use it.
88513         (md5_finish_ctx): Doc fix.
88514         * lib/md5.h: Doc fix.
88516 2008-01-30  Peter Palfrader  <weasel@debian.org>
88518         sha1: remove the result buffer alignment constraint
88519         * lib/sha1.c (set_uint32): New function.
88520         (sha1_read_ctx): Rewrite to remove the result buffer alignment
88521         constraint.
88522         (sha1_finish_ctx): Remove comment warning about alignment constraint.
88523         * lib/sha1.h: Likewise.
88525 2008-01-30  Andreas Schwab  <schwab@suse.de>
88526             Bruno Haible  <bruno@clisp.org>
88528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
88529         correct definition of LDBL_MIN_EXP.
88531 2008-01-30  Karl Berry  <karl@gnu.org>
88533         * config/srclist-update: try to preserve x bit on updates.
88534         * config/srclistvars.sh: update for karl.
88536 2008-01-29  Jim Meyering  <meyering@redhat.com>
88538         vasnprintf.c: Avoid warning about unused label
88539         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
88540         "overflow" label definition and associated code with the
88541         same cpp condition that guards the sole use of that label.
88543 2008-01-26  Bruno Haible  <bruno@clisp.org>
88545         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
88546         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
88547         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
88548         * lib/isnanl-nolibm.h (isnanl): Likewise.
88549         Reported by Paul Eggert <eggert@cs.ucla.edu>.
88551 2008-01-26  Bruno Haible  <bruno@clisp.org>
88553         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
88554         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
88556 2008-01-26  Bruno Haible  <bruno@clisp.org>
88558         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
88559         GCC >= 4.0 built-in.
88560         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
88562 2008-01-26  Bruno Haible  <bruno@clisp.org>
88564         Rename isnan, applicable to 'double' only, to isnand.
88565         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
88566         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
88567         (configure.ac): Update.
88568         (Include): Replace "isnan.h" with "isnand.h".
88569         * m4/isnand.m4: Renamed from m4/isnan.m4.
88570         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
88571         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
88572         instead of isnan.c.
88573         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
88574         instead of HAVE_ISNAN_IN_LIBC.
88575         (isnand): Renamed from isnan.
88576         * lib/isnand.c: New file.
88577         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
88578         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
88579         (Makefile.am): Update.
88580         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
88581         Include isnand.h instead of isnan.h.
88582         (main): Test isnand instead of isnan.
88583         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
88584         isnan-nolibm.
88585         * modules/frexp (Depends-on): Likewise.
88586         * modules/frexp-tests (Depends-on): Likewise.
88587         * modules/frexp-nolibm (Depends-on): Likewise.
88588         * modules/frexp-nolibm-tests (Depends-on): Likewise.
88589         * modules/isfinite (Depends-on): Likewise.
88590         * modules/round-tests (Depends-on): Likewise.
88591         * modules/signbit (Depends-on): Likewise.
88592         * modules/signbit-tests (Depends-on): Likewise.
88593         * modules/snprintf-posix (Depends-on): Likewise.
88594         * modules/sprintf-posix (Depends-on): Likewise.
88595         * modules/trunc-tests (Depends-on): Likewise.
88596         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88598         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88601         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88603         * modules/vasnprintf-posix (Depends-on): Likewise.
88604         * modules/vasprintf-posix (Depends-on): Likewise.
88605         * modules/vfprintf-posix (Depends-on): Likewise.
88606         * modules/vsnprintf-posix (Depends-on): Likewise.
88607         * modules/vsprintf-posix (Depends-on): Likewise.
88608         * lib/frexp.c: Include isnand.h instead of isnan.h.
88609         (ISNAN): Set to isnand instead of isnan.
88610         * lib/isfinite.c: Include isnand.h instead of isnan.h.
88611         (gl_isfinited): Use isnand instead of isnan.
88612         * lib/signbitd.c: Include isnand.h instead of isnan.h.
88613         (gl_signbitd): Use isnand instead of isnan.
88614         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
88615         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
88616         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
88617         (main): Use isnand instead of isnan.
88618         * tests/test-round1.c: Include isnand.h.
88619         (main): Use isnand instead of isnan.
88620         * tests/test-round2.c: Include isnand.h instead of isnan.h.
88621         (ISNAN): Set to isnand instead of isnan.
88622         * tests/test-trunc1.c: Include isnand.h.
88623         (main): Use isnand instead of isnan.
88624         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
88625         (equal): Use isnand instead of isnan.
88626         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
88627         isnand-nolibm.
88628         * NEWS: Mention the change.
88630 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
88631             Bruno Haible  <bruno@clisp.org>
88633         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
88634         the GCC builtins for signbits are present and set
88635         REPLACE_SIGNBIT_USING_GCC if so.
88636         * lib/math.in.h (signbit): Define using GCC builtins if
88637         REPLACE_SIGNBIT_USING_GCC is set.
88638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
88639         REPLACE_SIGNBIT_USING_GCC.
88640         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
88642 2008-01-25  Jim Meyering  <meyering@redhat.com>
88644         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
88645         * lib/poll.c: Include <config.h>, not "config.h".
88646         * tests/test-getaddrinfo.c: Likewise.
88648 2008-01-25  Simon Josefsson  <simon@josefsson.org>
88650         * modules/sockets-tests: New file.
88652 2008-01-24  Simon Josefsson  <simon@josefsson.org>
88654         * modules/sockets: New module, can be used to call WSA_Startup and
88655         WSA_Cleanup when needed.
88657         * lib/sockets.h, lib/sockets.c: New files.
88659         * m4/sockets.m4: New file.
88661         * tests/test-sockets.c: New file.
88663 2008-01-19  Bruno Haible  <bruno@clisp.org>
88665         * doc/posix-headers: Renamed from doc/headers.
88666         * doc/posix-functions: Renamed from doc/functions.
88667         * doc/gnulib.texi: Update.
88669 2008-01-19  Bruno Haible  <bruno@clisp.org>
88671         * doc/glibc-functions/strcasestr.texi: Include contents of
88672         doc/functions/strcasestr.texi, fixing the list of platforms.
88673         * doc/functions/strcasestr.texi: Remove file.
88675 2008-01-19  Bruno Haible  <bruno@clisp.org>
88677         * doc/glibc-functions/memmem.texi: Include contents of
88678         doc/functions/memmem.texi.
88679         * doc/functions/memmem.texi: Remove file.
88681 2008-01-18  Bruno Haible  <bruno@clisp.org>
88683         * doc/glibc-functions/*.texi: New files.
88684         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
88685         to use the new files.
88687 2008-01-17  Bruno Haible  <bruno@clisp.org>
88689         * tests/test-gethostname.c (main): Fix printf statement.
88691 2008-01-17  Simon Josefsson  <simon@josefsson.org>
88693         * modules/gethostname-tests: New file.
88695         * tests/test-gethostname.c: New file.
88697 2008-01-17  Simon Josefsson  <simon@josefsson.org>
88699         * lib/gethostname.c: Include string.h unconditionally, strncpy is
88700         used by the UNAME case.  Reported by Bruno Haible
88701         <bruno@clisp.org>.
88703 2008-01-17  Eric Blake  <ebb9@byu.net>
88705         Convert c-strcasestr to be more efficient.
88706         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
88707         (Depends-on): Add c-strcase, remove malloca, strnlen.
88708         * tests/test-c-strcasestr.c (main): Enhance test.
88709         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
88711 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
88713         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
88714         Use it in creating po/Makevars.
88716 2008-01-15  Simon Josefsson  <simon@josefsson.org>
88718         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
88719         Applications that requires it should initialize libgcrypt
88720         manually.
88722 2008-01-16  Simon Josefsson  <simon@josefsson.org>
88724         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
88726 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
88728         Fix problem with getdate on mingw32 reported by Simon Josefsson
88729         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
88730         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
88731         tzname", when deciding whether to declare tzname.
88732         * lib/strftime.c (tzname): Likewise.
88734 2008-01-15  Bruno Haible  <bruno@clisp.org>
88736         Work around a MacOS X 10.5 bug in frexpl().
88737         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
88738         * doc/functions/frexpl.texi: Document the bug.
88739         Reported by Elias Pipping <pipping@gentoo.org>.
88741 2008-01-14  Eric Blake  <ebb9@byu.net>
88743         Touch up previous patch.
88744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
88745         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
88747         Convert strcasestr module to use Two-Way algorithm.
88748         * modules/strcasestr-simple: New module, based on the old
88749         strcasestr, but with Two-Way rather than KMP.
88750         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
88751         * lib/string.in.h (rpl_strcasestr): Declare.
88752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
88753         performance.
88754         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
88755         * modules/string (Makefile.am): Support strcasestr.
88756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
88757         * modules/strcasestr-tests (Depends-on): Check for alarm.
88758         * tests/test-strcasestr.c: Augment test.
88759         * lib/str-two-way.h: Clean up stray macro.
88760         * NEWS: Document new module.
88761         * MODULES.html.sh (string handling): Likewise.
88762         * doc/functions/strcasestr.texi: New file.
88763         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
88764         here, since it is not a POSIX function.
88766 2008-01-14  Colin Watson  <cjwatson@debian.org>
88767             Bruno Haible  <bruno@clisp.org>
88769         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
88770         works fine; if not, set REPLACE_STRSIGNAL.
88771         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
88772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88773         REPLACE_STRSIGNAL.
88774         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
88775         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
88776         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
88778 2008-01-14  Bruno Haible  <bruno@clisp.org>
88780         * modules/strsignal (Include): Change to <string.h>.
88782 2008-01-14  Colin Watson  <cjwatson@debian.org>
88784         * modules/argp (Notice): Add a notice recommending to change
88785         XGETTEXT_OPTIONS.
88786         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
88788 2008-01-13  Colin Watson  <cjwatson@debian.org>
88790         * modules/strsignal-tests: New file.
88791         * tests/test-strsignal.c: New file.
88793         * lib/strsignal.c: New file, from glibc with modifications.
88794         * lib/siglist.h: New file, from glibc with modifications.
88795         * lib/string.in.h (strsignal): New declaration.
88796         * m4/strsignal.m4: New file.
88797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88798         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
88799         * modules/strsignal: New file.
88800         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
88801         HAVE_DECL_STRSIGNAL.
88803 2008-01-13  Bruno Haible  <bruno@clisp.org>
88805         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
88806         locale encoding is not ASCII. Needed for OpenBSD 4.0.
88807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
88808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
88810 2008-01-13  Bruno Haible  <bruno@clisp.org>
88812         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
88813         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
88814         * lib/argp.h (__attribute__): Likewise.
88815         * lib/c-stack.c (__attribute__): Likewise.
88816         * lib/error.h (__attribute__): Likewise.
88817         * lib/fts.c (__attribute__): Likewise.
88818         * lib/openat.h (__attribute__): Likewise.
88819         * lib/stdio.in.h (__attribute__): Likewise.
88820         * lib/string.in.h (__attribute__): Likewise.
88821         * lib/utimens.c (__attribute__): Likewise.
88822         * lib/vasnprintf.h (__attribute__): Likewise.
88823         * lib/xalloc.h (__attribute__): Likewise.
88824         * lib/xprintf.h (__attribute__): Likewise.
88825         * lib/xstrtol.h (__attribute__): Likewise.
88826         * lib/xvasprintf.h (__attribute__): Likewise.
88828 2008-01-12  Bruno Haible  <bruno@clisp.org>
88830         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
88831         * doc/glibc-headers/a.out.texi: New file.
88832         * doc/glibc-headers/aliases.texi: New file.
88833         * doc/glibc-headers/alloca.texi: New file.
88834         * doc/glibc-headers/ar.texi: New file.
88835         * doc/glibc-headers/argp.texi: New file.
88836         * doc/glibc-headers/argz.texi: New file.
88837         * doc/glibc-headers/byteswap.texi: New file.
88838         * doc/glibc-headers/crypt.texi: New file.
88839         * doc/glibc-headers/endian.texi: New file.
88840         * doc/glibc-headers/envz.texi: New file.
88841         * doc/glibc-headers/err.texi: New file.
88842         * doc/glibc-headers/error.texi: New file.
88843         * doc/glibc-headers/execinfo.texi: New file.
88844         * doc/glibc-headers/fpu_control.texi: New file.
88845         * doc/glibc-headers/fstab.texi: New file.
88846         * doc/glibc-headers/fts.texi: New file.
88847         * doc/glibc-headers/getopt.texi: New file.
88848         * doc/glibc-headers/ieee754.texi: New file.
88849         * doc/glibc-headers/ifaddrs.texi: New file.
88850         * doc/glibc-headers/libintl.texi: New file.
88851         * doc/glibc-headers/mcheck.texi: New file.
88852         * doc/glibc-headers/mntent.texi: New file.
88853         * doc/glibc-headers/obstack.texi: New file.
88854         * doc/glibc-headers/paths.texi: New file.
88855         * doc/glibc-headers/printf.texi: New file.
88856         * doc/glibc-headers/pty.texi: New file.
88857         * doc/glibc-headers/resolv.texi: New file.
88858         * doc/glibc-headers/shadow.texi: New file.
88859         * doc/glibc-headers/sysexits.texi: New file.
88860         * doc/glibc-headers/ttyent.texi: New file.
88862 2008-01-12  Jim Meyering  <meyering@redhat.com>
88864         announce-gen: emit Gnulib's git-based version string.
88865         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
88866         New option --gnulib-version=V, where V is expected to be
88867         the output of running git describe in the gnulib directory.
88868         (get_tool_versions): Request feedback on xdelta.  I suspect it's
88869         not useful, and plan to stop publishing an xdelta file with each
88870         coreutils release.
88872         * build-aux/announce-gen: Also check for lzma-compressed files.
88874 2008-01-11  Bruno Haible  <bruno@clisp.org>
88876         * tests/test-memmem.c (main): Increase maximum allowed time.
88877         * tests/test-strstr.c (main): Likewise.
88879 2008-01-11  Bruno Haible  <bruno@clisp.org>
88881         * doc/functions/memmem.texi: Add more precisions about platforms.
88882         * doc/functions/strstr.texi: Likewise.
88884 2008-01-10  Eric Blake  <ebb9@byu.net>
88886         * m4/strstr.m4: Delete cruft from copy-n-paste.
88887         Reported by Bruno Haible.
88889 2008-01-10  Bruno Haible  <bruno@clisp.org>
88891         Make c-strstr rely on strstr.
88892         * lib/c-strstr.c: Don't include str-kmp.h.
88893         (c_strstr): Define in terms of strstr.
88894         * modules/c-strstr (Files): Remove lib/str-kmp.h.
88895         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
88897 2008-01-10  Bruno Haible  <bruno@clisp.org>
88899         * doc/gnulib.texi (String Functions in C Locale): New section.
88900         * doc/c-ctype.texi: New file.
88901         * doc/c-strcase.texi: New file.
88902         * doc/c-strcaseeq.texi: New file.
88903         * doc/c-strcasestr.texi: New file.
88904         * doc/c-strstr.texi: New file.
88905         * doc/c-strtod.texi: New file.
88906         * doc/c-strtold.texi: New file.
88908 2008-01-10  Eric Blake  <ebb9@byu.net>
88910         * lib/relocatable.h: Fix a comment.
88912 2008-01-10  Eric Blake  <ebb9@byu.net>
88914         Share two-way algorithm.
88915         * lib/str-two-way.h: New file, merged from...
88916         * lib/memmem.c: ...here...
88917         * lib/strstr.c: ...and here.
88918         * modules/memmem (Files): Use it.
88919         * modules/strstr (Files): Likewise.
88921         Avoid quadratic strstr implementations.
88922         * lib/strstr.c: New file.
88923         * m4/strstr.m4: Likewise.
88924         * modules/strstr: Likewise.
88925         * modules/strstr-tests: Likewise.
88926         * tests/test-strstr.c: Likewise.
88927         * lib/string.in.h (rpl_strstr): Declare.
88928         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
88929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
88930         * modules/string (Makefile.am): Likewise.
88931         * MODULES.html.sh (string handling): Mention new module.
88932         * doc/functions/strstr.texi (strstr): Document the bug.
88934 2008-01-10  Bruno Haible  <bruno@clisp.org>
88936         * lib/relocatable.h (relocate): State whether result is freshly
88937         allocated or not.
88938         * lib/relocatable.c (relocate): Return a freshly allocated string
88939         instead of a pointer to a privately held string.
88940         Reported by Sylvain Beucler <beuc@gnu.org>.
88942 2008-01-10  Colin Watson  <cjwatson@debian.org>
88944         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
88945         s/S_ISNLK/S_ISLNK/.
88947 2008-01-09  Bruno Haible  <bruno@clisp.org>
88949         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
88950         and other files.
88951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
88952         if it's only a guess.
88953         * modules/memmem: Simplify by depending on memmem-simple.
88955 2008-01-09  Bruno Haible  <bruno@clisp.org>
88957         Work around OpenBSD 4.0 tdelete() bug.
88958         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
88959         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
88960         macros and don't redefine the enum values.
88961         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
88962         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
88963         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
88965 2008-01-09  Bruno Haible  <bruno@clisp.org>
88967         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
88968         (main): Don't perform the tests if setlocale did not install a UTF-8
88969         locale. Needed on OpenBSD 4.0.
88970         * modules/wcwidth-tests (Depends-on): Add localcharset.
88972 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
88974         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
88975         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
88976         * NEWS: announce this.
88977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
88979 2008-01-09  Simon Josefsson  <simon@josefsson.org>
88980         and Eric Blake  <ebb9@byu.net>
88982         Add memmem-simple module.
88983         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
88984         (gl_FUNC_MEMMEM): Separate performance from presence checks.
88985         * modules/memmem-simple: New file.
88986         * modules/memmem (Description): Tweak.
88987         * MODULES.html.sh (string handling): Mention new module.
88988         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
88989         addressed by memmem-simple.
88990         * NEWS: Document the difference.
88992 2008-01-09  Eric Blake  <ebb9@byu.net>
88994         Give gcc some memmem optimization hints.
88995         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
88996         (strcasestr): Declare as pure.
88997         * modules/memmem (Maintainer): Claim my implementation.
88999 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89001         Support AIX 6.1 and higher.
89002         * build-aux/config.libpath: Likewise.
89003         * build-aux/config.rpath: Likewise.
89005 2008-01-08  Jim Meyering  <meyering@redhat.com>
89006             Bruno Haible  <bruno@clisp.org>
89008         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
89009         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
89010         Reported by Peter Fales in
89011         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
89013 2008-01-08  Bruno Haible  <bruno@clisp.org>
89015         * modules/unictype/category-of (Depends-on): Add
89016         unictype/category-none.
89017         * modules/unictype/category-and-tests (Depends-on): Add
89018         unictype/category-{L,N,Lu,Nd}.
89019         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
89020         * modules/unictype/category-or-tests (Depends-on): Add
89021         unictype/category-{L,N}.
89022         * modules/unictype/category-name-tests (Depends-on): Add
89023         unictype/category-{Z,Nl}.
89024         Reported by Simon Josefsson.
89026 2008-01-08  Bruno Haible  <bruno@clisp.org>
89028         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
89029         convention better.
89030         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
89031         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
89032         Reported by Peter Miller <millerp@canb.auug.org.au>.
89034 2008-01-08  Eric Blake  <ebb9@byu.net>
89036         Rewrite memmem to guarantee linear complexity without malloc.
89037         * lib/memmem.c (memmem): Use Two-Way rather than
89038         Knuth-Morris-Pratt, to allow O(1) space usage.
89039         (critical_factorization, two_way_short_needle)
89040         (two_way_long_needle): New functions.
89041         (knuth_morris_pratt): Delete.
89042         * modules/memmem (Depends-on): No longer need malloca or stdbool.
89043         Add stdint.
89044         * tests/test-memmem.c (main): Add tests for periodic needle and
89045         sublinear performance.
89046         * doc/functions/memmem.texi (memmem): Document other deficiencies
89047         in cygwin and older glibc.
89049 2008-01-08  Bruno Haible  <bruno@clisp.org>
89051         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
89052         augmentation.
89054 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
89056         Add a configure time option: --disable-acl.
89057         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
89058         AC_ARG_ENABLE(acl).
89060 2008-01-06  Simon Josefsson  <simon@josefsson.org>
89062         * tests/test-localename.c: Don't include obsolete "setenv.h".
89064         * modules/localename-tests (Depends-on): Need unsetenv.
89066 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89068         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
89070 2008-01-06  Colin Watson  <cjwatson@debian.org>
89072         * users.txt: Add man-db.
89074 2008-01-07  Bruno Haible  <bruno@clisp.org>
89076         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
89077         previous section name.
89079 2008-01-07  Bruno Haible  <bruno@clisp.org>
89081         * lib/progname.c (set_program_name): Don't strip off a leading
89082         "lt-" prefix outside a .libs directory.
89083         Suggested by Paul Eggert.
89085 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
89086             Bruno Haible  <bruno@clisp.org>
89088         Improve memory cleanup in 'relocatable' module.
89089         * lib/relocatable.h (compute_curr_prefix): Change return type to
89090         'char *'.
89091         * lib/relocatable.c (compute_curr_prefix): Change return type to
89092         'char *'. Free curr_installdir after use.
89093         (relocate): Free curr_prefix_better after use.
89094         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
89096 2008-01-01  Bruno Haible  <bruno@clisp.org>
89098         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
89099         failure on older glibc systems.
89100         Reported by Peter Fales <psfales@alcatel-lucent.com>.
89102 2008-01-05  Eric Blake  <ebb9@byu.net>
89104         Avoid quadratic system memmem.
89105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
89106         Reported by Ralf Wildenhues.
89108         Fix memmem test for mingw.
89109         * modules/memmem-tests (configure.ac): Check for alarm.
89110         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
89111         it.
89112         * doc/functions/memmem.texi: New file.
89113         * doc/gnulib.texi (Function Substitutes): Add memmem.
89114         Reported by Bruno Haible.
89116 2008-01-04  Bruno Haible  <bruno@clisp.org>
89118         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
89119         Require gl_HEADER_STRINGS_H_DEFAULTS, not
89120         gl_HEADER_STRING_H_DEFAULTS.
89122 2008-01-04  Eric Blake  <ebb9@byu.net>
89124         Shorten duration of memmem test.
89125         * tests/test-memmem.c (main): Use alarm to declare failure if test
89126         is taking too long.
89127         Reported by Ralf Wildenhues.
89129 2007-12-21  Simon Josefsson  <simon@josefsson.org>
89131         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
89132         string, needed by strerror.
89134 2008-01-03  Colin Watson  <cjwatson@debian.org>
89135             Bruno Haible  <bruno@clisp.org>
89137         * doc/gnulib-tool.texi (Localization): New section.
89139 2008-01-02  Bruno Haible  <bruno@clisp.org>
89141         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
89142         variables to 'unsigned char *' type.
89143         Reported by Paul Eggert.
89145 2008-01-02  Jim Meyering  <jim@meyering.net>
89147         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
89149 2007-12-31  Jim Meyering  <jim@meyering.net>
89151         Avoid use of private FTS type name.
89152         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
89154 2007-12-30  Karl Berry  <karl@gnu.org>
89156         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
89157         work around defect in Texinfo and/or the standalone Info browser.
89159 2007-12-30  Bruno Haible  <bruno@clisp.org>
89161         Unify 5 copies of the KMP code.
89162         * lib/str-kmp.h: New file.
89163         * lib/c-strcasestr.c: Include str-kmp.h.
89164         (knuth_morris_pratt): Remove function.
89165         (c_strcasestr): Update.
89166         * lib/c-strstr.c: Include str-kmp.h.
89167         (knuth_morris_pratt): Remove function.
89168         (c_strcasestr): Update.
89169         * lib/mbscasestr.c: Include str-kmp.h.
89170         (knuth_morris_pratt_unibyte): Remove function.
89171         * lib/mbsstr.c: Include str-kmp.h.
89172         (knuth_morris_pratt_unibyte): Remove function.
89173         * lib/strcasestr.c: Include str-kmp.h.
89174         (knuth_morris_pratt): Remove function.
89175         (strcasestr): Update.
89176         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
89177         * modules/c-strstr (Files): Likewise.
89178         * modules/mbscasestr (Files): Likewise.
89179         * modules/mbsstr (Files): Likewise.
89180         * modules/strcasestr (Files): Likewise.
89181         Suggested by Paul Eggert.
89183 2007-12-30  Bruno Haible  <bruno@clisp.org>
89185         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
89186         defined.
89188 2007-12-30  Bruno Haible  <bruno@clisp.org>
89190         * lib/xmalloca.h: Include xalloc.h.
89191         (xnmalloca): New macro.
89193 2007-12-30  Bruno Haible  <bruno@clisp.org>
89195         * lib/malloca.h (nmalloca): New macro.
89196         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
89197         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
89198         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
89199         knuth_morris_pratt_multibyte): Likewise.
89200         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
89201         knuth_morris_pratt_multibyte): Likewise.
89202         * lib/memmem.c (knuth_morris_pratt): Likewise.
89203         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
89205 2007-12-25  Bruno Haible  <bruno@clisp.org>
89207         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
89208         * lib/glob.c: Don't include openat.h.
89209         (link_exists2_p): Add back the code that deals with the
89210         !GLOB_ALTDIRFUNC case.
89211         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
89212         let it do the filename concatenation.
89213         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
89214         * modules/glob (Depends-on): Remove openat.
89216 2007-12-31  Bruno Haible  <bruno@clisp.org>
89218         * modules/dirfd (License): Change to LGPLv2+.
89219         Approved by Jim Meyering.
89221 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
89223         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
89224         when multiplying M by sizeof (size_t).
89226 2007-12-10  Martin Lambers  <marlam@marlam.de>
89228         Override getpagesize on mingw.
89229         * lib/getpagesize.c: New file.
89230         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
89231         * modules/getpagesize (Files): Add lib/getpagesize.c.
89232         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
89233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89234         REPLACE_GETPAGESIZE.
89235         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
89237 2007-12-25  Bruno Haible  <bruno@clisp.org>
89239         * modules/localcharset (Notice): New field.
89240         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
89241         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
89243 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
89244             Bruno Haible  <bruno@clisp.org>
89246         Avoid using the syntax symbol() in formatted documentation.
89247         * MODULES.html.sh (func_module): When replacing symbol() with a
89248         hyperlink, remove the parentheses. Show an error if some remain.
89249         Recognize and render the '...' syntax.
89250         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
89251         Rework. Add paragraph about GCC's inlining.
89252         * doc/alloca.texi: Likewise.
89253         * doc/error.texi: Remove parentheses from symbol reference.
89254         * doc/gnulib-intro.texi: Likewise.
89255         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
89256         * modules/fnmatch (Description): Reword to say "the ... function".
89257         * modules/full-read (Description): Likewise.
89258         * modules/full-write (Description): Likewise.
89259         * modules/safe-read (Description): Likewise.
89260         * modules/safe-write (Description): Likewise.
89261         * modules/strchrnul (Description): Likewise.
89262         * modules/trim (Description): Likewise.
89263         * modules/error (Description): Remove parentheses from symbol
89264         references.
89265         * modules/verror (Description): Likewise.
89266         Reported by Karl Berry.
89268 2007-12-25  Bruno Haible  <bruno@clisp.org>
89270         Fixup after 2007-10-16 commit.
89271         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
89273 2007-12-24  Bruno Haible  <bruno@clisp.org>
89275         Make --enable-relocatable work with DESTDIR.
89276         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
89277         to compute installdir from destprog.
89278         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
89279         also set the RELOC_DESTDIR variable.
89280         Reported by Левашев Иван <octagram@bluebottle.com>.
89282 2007-12-24  Bruno Haible  <bruno@clisp.org>
89284         Fix link error due to xalloc_die().
89285         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
89286         of xreadlink.
89287         * lib/relocwrapper.c: Update comments.
89288         * build-aux/install-reloc: Remove xreadlink.c from file list.
89289         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
89290         xreadlink.c.
89291         Reported by Левашев Иван <octagram@bluebottle.com>.
89293 2007-12-24  Bruno Haible  <bruno@clisp.org>
89295         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
89296         * lib/setenv.h: Remove file.
89297         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
89298         lib/setenv.h.
89299         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
89300         (Depends-on): Add stdlib.
89301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
89302         gl_FUNC_UNSETENV.
89303         (Include): Replace setenv.h with <stdlib.h>.
89304         * modules/unsetenv: New file.
89305         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
89306         * lib/unsetenv.c: Include <stdlib.h> first.
89307         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
89308         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
89309         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
89310         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
89311         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
89312         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
89314         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
89315         * doc/functions/unsetenv.texi: Update.
89316         * modules/xsetenv (Depends-on): Add unsetenv.
89317         * modules/getdate (Depends-on): Likewise.
89318         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
89319         * lib/xsetenv.c: Don't include setenv.h.
89320         * lib/getdate.y: Likewise.
89321         * lib/relocwrapper.c: Likewise.
89322         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
89323         (Depends-on): Add stdlib.
89324         * NEWS: Mention the changes.
89325         Reported by Левашев Иван <octagram@bluebottle.com>.
89327 2007-12-23  Bruno Haible  <bruno@clisp.org>
89329         * lib/memmem.c (memmem): Use lowercase variable names. Tab
89330         indentation.
89332 2007-12-23  Bruno Haible  <bruno@clisp.org>
89334         * lib/c-strcasestr.c: Add more comments.
89335         * lib/c-strstr.c: Likewise.
89336         * lib/mbscasestr.c: Likewise.
89337         * lib/mbsstr.c: Likewise.
89338         * lib/strcasestr.c: Likewise.
89339         * lib/memmem.c: Likewise.
89341 2007-12-23  Bruno Haible  <bruno@clisp.org>
89343         * tests/test-memmem.c: Include <string.h> first.
89345 2007-12-22  Bruno Haible  <bruno@clisp.org>
89347         * gnulib-tool (func_create_testdir): Change $auxdir while generating
89348         the contents of $testsbase.
89349         Reported by Ralf Wildenhues.
89351 2007-12-22  Bruno Haible  <bruno@clisp.org>
89353         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
89354         two variables local_ldadd_before, local_ldadd_last.
89356 2007-12-20  Eric Blake  <ebb9@byu.net>
89358         Work around circular library issue when cross-compiling.
89359         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
89360         that progname.o does not need to pull in rpl_memcmp.
89362 2007-12-19  Eric Blake  <ebb9@byu.net>
89364         Fix memmem to avoid O(n^2) worst-case complexity.
89365         * lib/memmem.c (knuth_morris_pratt): New function.
89366         (memmem): Use it if first few naive iterations fail.
89367         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
89368         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
89369         * modules/memchr (License): Likewise.
89370         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
89371         malloca.
89372         * tests/test-memmem.c: Rewrite, borrowing ideas from
89373         test-mbsstr1.c; the old version wouldn't even compile!
89374         * modules/memmem-tests: New file.
89375         * lib/string.in.h (rpl_memmem): Add declaration.
89376         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
89377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
89378         REPLACE_MEMMEM.
89380 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
89382         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
89383         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
89384         before any system include files, and undef after them all.  This
89385         should fix a problem on VMS reported by John E. Malmberg in
89386         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
89388 2007-12-17  Eric Blake  <ebb9@byu.net>
89390         Revert addition of verify, for BSD/OS.
89391         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
89392         can't handle large files, for the sake of obsolete platforms.
89393         * modules/fseeko (Depends-on): Remove verify.
89394         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
89395         * doc/functions/ftello.texi (ftello): Likewise.
89396         * doc/functions/fgetpos.texi (fgetpos): Likewise.
89397         Reported by Larry Jones.
89399 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
89401         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
89402         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
89404 2007-12-17  Jim Meyering  <meyering@redhat.com>
89406         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
89407         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
89408         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
89409         * modules/getcwd (Depends-on): Add openat.
89410         Reported by Petr Salinger.
89412 2007-12-17  Bruno Haible  <bruno@clisp.org>
89414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
89415         avoid a segmentation fault of the configure test on x86_64 systems.
89417 2007-12-15  Jim Meyering  <meyering@redhat.com>
89419         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
89421 2007-12-13  Eric Blake  <ebb9@byu.net>
89423         Another fseek test.
89424         * tests/test-fseek.c (main): Also test ungetc handling.
89425         * tests/test-fseeko.c (main): Likewise.
89426         * modules/fseeko (Depends-on): Add verify.
89427         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
89428         large.
89429         Reported by Larry Jones.
89431         Fix fseeko on mingw.
89432         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
89433         seek.
89435         Beef up fseek tests.
89436         * tests/test-fseek.c (main): Also test eof handling.
89437         * tests/test-fseeko.c (main): Likewise.
89438         Reported by Larry Jones.
89440 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
89442         Fix fseeko on BSD-based platforms.
89443         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
89444         successful seek.
89446 2007-12-12  Eric Blake  <ebb9@byu.net>
89448         Allow circular dependency of separate libtests.a
89449         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
89450         when use_libtests.
89452 2007-12-11  Eric Blake  <ebb9@byu.net>
89454         Fix bug with -0.0L in previous patch.
89455         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
89456         * tests/test-isnan.c (main): Also test on zeroes.
89457         * tests/test-isnanf.c (main): Likewise.
89458         * tests/test-isnanl.h (main): Likewise.
89460         Detect pseudo-denormals on x86 even when cross-compiling.
89461         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
89462         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
89463         invalid bit patterns that happen to satisfy ==.
89465         Avoid link failures with separate libtests.a.
89466         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
89467         last, to satisfy circular dependencies.
89469 2007-12-11  Eric Blake  <ebb9@byu.net>
89470         and Bruno Haible  <bruno@clisp.org>
89472         Fix OpenBSD 4.0 <float.h> handling of long double.
89473         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
89474         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
89475         * doc/headers/float.texi (float.h): Document OpenBSD bug.
89477 2007-12-11  Jim Meyering  <meyering@redhat.com>
89479         * users.txt: Add libvirt.
89481         Support versions of autoconf prior to 2.59c.
89482         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
89483         if it is not already defined.
89485 2007-12-09  Bruno Haible  <bruno@clisp.org>
89487         Let 'gnulib-tool --import' collect sources needed for the tests in
89488         tests/ rather than in lib/.
89489         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
89490         argument. If true, add rules to generate libtests.a, and put libtests.a
89491         into $(LDADD). Consider source files in subdirectories and set
89492         uses_subdirs.
89493         (func_emit_initmacro_start, func_emit_initmacro_end,
89494         func_emit_initmacro_done): Pass all arguments explicitly.
89495         (func_import): Determine two module lists main_modules,
89496         testsrelated_modules. Determine use_libtests. Determine two variables
89497         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
89498         instead of just sed_transform_lib_file. Determine two variables
89499         main_files and testsrelated_files. Compute 'files' as the union of
89500         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
89501         func_add_or_update. In the generated gnulib-comp.m4, collect the
89502         object files for tests/ in different variables than those for lib/.
89503         Substitute LIBTESTS_LIBDEPS.
89504         (func_create_testdir): Combine the uses_subdirs results from
89505         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
89507 2007-12-09  Bruno Haible  <bruno@clisp.org>
89509         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
89510         the build-aux directory.
89512 2007-12-09  Bruno Haible  <bruno@clisp.org>
89514         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
89515         introduced on 2006-09-09.
89517 2007-12-07  Jim Meyering  <meyering@redhat.com>
89519         Let these macros work also with autoconf-2.59.
89520         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
89521         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
89522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
89524 2007-12-06  Jim Meyering  <meyering@redhat.com>
89526         Avoid a configure-time syntax error in gl_FUNC_ACL.
89527         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
89528         function in each branch, before testing the cache variable.
89530 2007-12-04  Eric Blake  <ebb9@byu.net>
89532         Make scripts executable.
89533         * build-aux/config.guess: Add execute permissions.
89534         * build-aux/config.sub: Likewise.
89535         * build-aux/gendocs.sh: Likewise.
89537         Fix frexp on mingw.
89538         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
89539         cross-compiling.
89540         * doc/functions/frexp.texi (frexp): Document the bug.
89542         Make cygwin fseeko check more reliable.
89543         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
89544         version numbers, rather than unrelated feature check.
89545         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
89546         * doc/functions/ftello.texi (ftello): Likewise.
89547         Reported by Bruno Haible.
89549         * m4/strerror.m4: Bump version number.
89551 2007-12-03  Bruno Haible  <bruno@clisp.org>
89553         * doc/functions/mprotect.texi: Mention the mingw problem.
89555 2007-12-03  Eric Blake  <ebb9@byu.net>
89557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
89558         REPLACE_STRERROR is initialized before this macro.
89560 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
89562         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
89563         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
89564         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
89565         put -lsec in even for programs other than 'ls'.  This fixes a problem
89566         for gettext reported by Bruno Haible in
89567         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
89568         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
89569         Add support for Solaris 10.  This isn't efficient, but should get the
89570         job done for now.
89572 2007-12-03  James Youngman  <jay@gnu.org>
89574         * doc/regexprops-generic.texi: change "an close-group" to "a
89575         close-group" and "illegal" to "not allowed".
89577 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89579         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
89580         pr_byname.h. Needed for the rare case when the maintainer has done
89581         "make maintainer-clean" in the source directory and then attempts a
89582         build outside the source directory.
89583         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
89584         scripts_byname.h.
89586 2007-12-02  Martin Lambers  <marlam@marlam.de>
89587             Bruno Haible  <bruno@clisp.org>
89589         * lib/getpagesize.h: Remove file.
89590         * lib/unistd.in.h: Include declaration of getpagesize here.
89591         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
89592         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
89593         HAVE_SYS_PARAM_H.
89594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
89595         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
89596         * modules/getpagesize (Files): Remove lib/getpagesize.h.
89597         (Depends-on): Add unistd.
89598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89599         (Include): Use <unistd.h> instead of getpagesize.h.
89600         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
89601         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
89602         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
89603         gl_GETPAGESIZE invocation, already handled by module dependency.
89604         * lib/pagealign_alloc.c: Don't include getpagesize.h.
89606 2007-12-02  Bruno Haible  <bruno@clisp.org>
89608         * modules/strings-tests: New file.
89609         * tests/test-strings.c: New file.
89611         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
89612         * lib/strings.in.h: New file.
89613         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
89614         * m4/strings_h.m4: New file.
89615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
89616         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
89617         * modules/strings: New file.
89618         * modules/string (Makefile.am): Update.
89619         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
89620         Reported by Karl Berry.
89622 2007-12-01  Eric Blake  <ebb9@byu.net>
89624         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
89625         accommodate fix in cygwin 1.5.25.
89627 2007-12-01  Jim Meyering  <meyering@redhat.com>
89629         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
89630         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
89631         that would inhibit utf8-optimization of a regexp containing line-
89632         or buffer-anchors, e.g., `^', `$'.
89634 2007-11-30  Bruno Haible  <bruno@clisp.org>
89636         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
89637         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
89638         glthread_recursive_lock_init.
89639         * lib/lock.c (glthread_recursive_lock_init)
89640         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
89641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89643 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
89645         New function qset_acl, like set_acl but with syscall semantics.
89646         * lib/acl.h (qset_acl): New decl.
89647         * lib/acl.c (qset_acl): New function.
89648         (set_acl): Use new function.  Use more-consistent diagnostics.
89650 2007-11-28  Jim Meyering  <meyering@redhat.com>
89652         * modules/physmem (License): Change from GPL to LGPLv2+.
89654 2007-11-26  Bruno Haible  <bruno@clisp.org>
89656         * lib/vasnprintf.c (decode_long_double): Don't abort if the
89657         'long double' type has excess precision.
89658         Reported by Jim Meyering in
89659         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
89661 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89663         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
89664         Sync from <http://gnu.org/licenses>.
89665         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
89666         with license text from same location.
89667         * doc/maintain.texi, doc/standards.texi:  Sync from
89668         <http://savannah.gnu.org/projects/gnustandards>.
89670 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
89671         and Jim Meyering  <meyering@redhat.com>
89673         Adjust getdate' grammar to accept a slightly more regular language.
89674         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
89675         Before, the former was rejected.
89676         * lib/getdate.y (digits_to_date_time): New function, factored
89677         out of ...
89678         (number): ...here.  Just call digits_to_date_time.
89679         (hybrid): New non-terminal to handle an <unsigned number,
89680         signed relative offset> sequence consistently.
89682 2007-11-18  Jim Meyering  <meyering@redhat.com>
89684         Pull my changes from coreutils:
89685         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
89686         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
89687         use of $gnulib_tool_option_extras, so that it's separated from the
89688         preceding argument.
89690         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
89691         * build-aux/bootstrap (cp_mark_as_generated): Create any required
89692         parent destination directories before copying a file into place.
89694 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
89696         bootstrap: work also with 4-argument variant of AC_INIT
89697         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
89699 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89701         Port test-getaddrinfo to Solaris.
89702         Problem reported by Bruno Haible in
89703         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
89704         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
89705         explanation of setting 'hints'.
89706         Don't reject an implementation merely because it returns EAI_SERVICE.
89707         (EAI_SERVICE): Define to 0 if not defined.
89709 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
89711         The license of gnu-make and posix-shell is now "GPLed build tool".
89712         * modules/gnu-make (License): Likewise.
89713         * modules/posix-shell (License): Likewise.
89715         New module posix-shell, for determining a POSIX shell
89716         or perhaps something that is close enough to a POSIX shell.
89717         * m4/posix-shell.m4: New file.
89718         * modules/posix-shell: New file.
89720         * MODULES.html.sh: Mention new module.
89722         New module gnu-make, for determining whether we're using GNU Make.
89723         * m4/gnu-make.m4: New file.
89724         * modules/gnu-make: New file.
89725         * MODULES.html.sh: Mention new module.
89727 2007-11-14  Jim Meyering  <meyering@redhat.com>
89729         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
89730         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
89731         use this macro to create a function _definition_.
89732         Remove useless "#undef ARGMATCH_DIE".
89734 2007-11-14  Bruno Haible  <bruno@clisp.org>
89736         * lib/config.charset: Update for OpenBSD 4.1.
89737         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
89739 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
89741         Document 64-bit #if problems in stdint.texi.
89742         * doc/headers/stdint.texi (stdint.h): Mention problems with
89743         64-bit-#if, and how to work around them.
89745         Don't insist on 'long long int' support in the preprocessor.  It
89746         breaks too many things.  For example, PRIdMAX still uses a 'long
89747         long int' format with the latest Sun compiler, even though
89748         HAVE_LONG_LONG_INT isn't defined due to that compiler's
89749         preprocessor problem.  This causes the latest coreutils to dump
89750         core on Solaris 10 sparc with the Sun C compiler.
89751         Instead, fix the 2007-10-16 problem in a different way, by evaluating
89752         the troublesome expressions at configure-time, not at #if-time.
89753         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
89754         preprocessor.
89755         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
89756         compile-time C checks, done at 'configure'-time.
89757         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
89758         * modules/inttypes (Makefile): Substitute the new symbols that
89759         gl_INTTYPES_H now generates.
89760         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
89762 2007-11-12  Bruno Haible  <bruno@clisp.org>
89764         Tests for Unicode character classification functions.
89766         * modules/unictype/bidicategory-byname-tests: New file.
89767         * modules/unictype/bidicategory-name-tests: New file.
89768         * modules/unictype/bidicategory-of-tests: New file.
89769         * modules/unictype/bidicategory-test-tests: New file.
89770         * modules/unictype/block-list-tests: New file.
89771         * modules/unictype/block-of-tests: New file.
89772         * modules/unictype/block-test-tests: New file.
89773         * modules/unictype/category-C-tests: New file.
89774         * modules/unictype/category-Cc-tests: New file.
89775         * modules/unictype/category-Cf-tests: New file.
89776         * modules/unictype/category-Cn-tests: New file.
89777         * modules/unictype/category-Co-tests: New file.
89778         * modules/unictype/category-Cs-tests: New file.
89779         * modules/unictype/category-L-tests: New file.
89780         * modules/unictype/category-Ll-tests: New file.
89781         * modules/unictype/category-Lm-tests: New file.
89782         * modules/unictype/category-Lo-tests: New file.
89783         * modules/unictype/category-Lt-tests: New file.
89784         * modules/unictype/category-Lu-tests: New file.
89785         * modules/unictype/category-M-tests: New file.
89786         * modules/unictype/category-Mc-tests: New file.
89787         * modules/unictype/category-Me-tests: New file.
89788         * modules/unictype/category-Mn-tests: New file.
89789         * modules/unictype/category-N-tests: New file.
89790         * modules/unictype/category-Nd-tests: New file.
89791         * modules/unictype/category-Nl-tests: New file.
89792         * modules/unictype/category-No-tests: New file.
89793         * modules/unictype/category-P-tests: New file.
89794         * modules/unictype/category-Pc-tests: New file.
89795         * modules/unictype/category-Pd-tests: New file.
89796         * modules/unictype/category-Pe-tests: New file.
89797         * modules/unictype/category-Pf-tests: New file.
89798         * modules/unictype/category-Pi-tests: New file.
89799         * modules/unictype/category-Po-tests: New file.
89800         * modules/unictype/category-Ps-tests: New file.
89801         * modules/unictype/category-S-tests: New file.
89802         * modules/unictype/category-Sc-tests: New file.
89803         * modules/unictype/category-Sk-tests: New file.
89804         * modules/unictype/category-Sm-tests: New file.
89805         * modules/unictype/category-So-tests: New file.
89806         * modules/unictype/category-Z-tests: New file.
89807         * modules/unictype/category-Zl-tests: New file.
89808         * modules/unictype/category-Zp-tests: New file.
89809         * modules/unictype/category-Zs-tests: New file.
89810         * modules/unictype/category-and-not-tests: New file.
89811         * modules/unictype/category-and-tests: New file.
89812         * modules/unictype/category-byname-tests: New file.
89813         * modules/unictype/category-name-tests: New file.
89814         * modules/unictype/category-none-tests: New file.
89815         * modules/unictype/category-of-tests: New file.
89816         * modules/unictype/category-or-tests: New file.
89817         * modules/unictype/category-test-withtable-tests: New file.
89818         * modules/unictype/combining-class-tests: New file.
89819         * modules/unictype/ctype-alnum-tests: New file.
89820         * modules/unictype/ctype-alpha-tests: New file.
89821         * modules/unictype/ctype-blank-tests: New file.
89822         * modules/unictype/ctype-cntrl-tests: New file.
89823         * modules/unictype/ctype-digit-tests: New file.
89824         * modules/unictype/ctype-graph-tests: New file.
89825         * modules/unictype/ctype-lower-tests: New file.
89826         * modules/unictype/ctype-print-tests: New file.
89827         * modules/unictype/ctype-punct-tests: New file.
89828         * modules/unictype/ctype-space-tests: New file.
89829         * modules/unictype/ctype-upper-tests: New file.
89830         * modules/unictype/ctype-xdigit-tests: New file.
89831         * modules/unictype/decimal-digit-tests: New file.
89832         * modules/unictype/digit-tests: New file.
89833         * modules/unictype/mirror-tests: New file.
89834         * modules/unictype/numeric-tests: New file.
89835         * modules/unictype/property-alphabetic-tests: New file.
89836         * modules/unictype/property-ascii-hex-digit-tests: New file.
89837         * modules/unictype/property-bidi-arabic-digit-tests: New file.
89838         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
89839         * modules/unictype/property-bidi-block-separator-tests: New file.
89840         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
89841         * modules/unictype/property-bidi-common-separator-tests: New file.
89842         * modules/unictype/property-bidi-control-tests: New file.
89843         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
89844         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
89845         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
89846         * modules/unictype/property-bidi-european-digit-tests: New file.
89847         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
89848         * modules/unictype/property-bidi-left-to-right-tests: New file.
89849         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
89850         * modules/unictype/property-bidi-other-neutral-tests: New file.
89851         * modules/unictype/property-bidi-pdf-tests: New file.
89852         * modules/unictype/property-bidi-segment-separator-tests: New file.
89853         * modules/unictype/property-bidi-whitespace-tests: New file.
89854         * modules/unictype/property-byname-tests: New file.
89855         * modules/unictype/property-combining-tests: New file.
89856         * modules/unictype/property-composite-tests: New file.
89857         * modules/unictype/property-currency-symbol-tests: New file.
89858         * modules/unictype/property-dash-tests: New file.
89859         * modules/unictype/property-decimal-digit-tests: New file.
89860         * modules/unictype/property-default-ignorable-code-point-tests: New file.
89861         * modules/unictype/property-deprecated-tests: New file.
89862         * modules/unictype/property-diacritic-tests: New file.
89863         * modules/unictype/property-extender-tests: New file.
89864         * modules/unictype/property-format-control-tests: New file.
89865         * modules/unictype/property-grapheme-base-tests: New file.
89866         * modules/unictype/property-grapheme-extend-tests: New file.
89867         * modules/unictype/property-grapheme-link-tests: New file.
89868         * modules/unictype/property-hex-digit-tests: New file.
89869         * modules/unictype/property-hyphen-tests: New file.
89870         * modules/unictype/property-id-continue-tests: New file.
89871         * modules/unictype/property-id-start-tests: New file.
89872         * modules/unictype/property-ideographic-tests: New file.
89873         * modules/unictype/property-ids-binary-operator-tests: New file.
89874         * modules/unictype/property-ids-trinary-operator-tests: New file.
89875         * modules/unictype/property-ignorable-control-tests: New file.
89876         * modules/unictype/property-iso-control-tests: New file.
89877         * modules/unictype/property-join-control-tests: New file.
89878         * modules/unictype/property-left-of-pair-tests: New file.
89879         * modules/unictype/property-line-separator-tests: New file.
89880         * modules/unictype/property-logical-order-exception-tests: New file.
89881         * modules/unictype/property-lowercase-tests: New file.
89882         * modules/unictype/property-math-tests: New file.
89883         * modules/unictype/property-non-break-tests: New file.
89884         * modules/unictype/property-not-a-character-tests: New file.
89885         * modules/unictype/property-numeric-tests: New file.
89886         * modules/unictype/property-other-alphabetic-tests: New file.
89887         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
89888         * modules/unictype/property-other-grapheme-extend-tests: New file.
89889         * modules/unictype/property-other-id-continue-tests: New file.
89890         * modules/unictype/property-other-id-start-tests: New file.
89891         * modules/unictype/property-other-lowercase-tests: New file.
89892         * modules/unictype/property-other-math-tests: New file.
89893         * modules/unictype/property-other-uppercase-tests: New file.
89894         * modules/unictype/property-paired-punctuation-tests: New file.
89895         * modules/unictype/property-paragraph-separator-tests: New file.
89896         * modules/unictype/property-pattern-syntax-tests: New file.
89897         * modules/unictype/property-pattern-white-space-tests: New file.
89898         * modules/unictype/property-private-use-tests: New file.
89899         * modules/unictype/property-punctuation-tests: New file.
89900         * modules/unictype/property-quotation-mark-tests: New file.
89901         * modules/unictype/property-radical-tests: New file.
89902         * modules/unictype/property-sentence-terminal-tests: New file.
89903         * modules/unictype/property-soft-dotted-tests: New file.
89904         * modules/unictype/property-space-tests: New file.
89905         * modules/unictype/property-terminal-punctuation-tests: New file.
89906         * modules/unictype/property-test-tests: New file.
89907         * modules/unictype/property-titlecase-tests: New file.
89908         * modules/unictype/property-unassigned-code-value-tests: New file.
89909         * modules/unictype/property-unified-ideograph-tests: New file.
89910         * modules/unictype/property-uppercase-tests: New file.
89911         * modules/unictype/property-variation-selector-tests: New file.
89912         * modules/unictype/property-white-space-tests: New file.
89913         * modules/unictype/property-xid-continue-tests: New file.
89914         * modules/unictype/property-xid-start-tests: New file.
89915         * modules/unictype/property-zero-width-tests: New file.
89916         * modules/unictype/scripts-tests: New file.
89917         * modules/unictype/syntax-c-ident-tests: New file.
89918         * modules/unictype/syntax-c-whitespace-tests: New file.
89919         * modules/unictype/syntax-java-ident-tests: New file.
89920         * modules/unictype/syntax-java-whitespace-tests: New file.
89921         * tests/unictype/test-bidi_byname.c: New file.
89922         * tests/unictype/test-bidi_name.c: New file.
89923         * tests/unictype/test-bidi_of.c: New file.
89924         * tests/unictype/test-bidi_test.c: New file.
89925         * tests/unictype/test-block_list.c: New file.
89926         * tests/unictype/test-block_of.c: New file.
89927         * tests/unictype/test-block_test.c: New file.
89928         * tests/unictype/test-categ_and.c: New file.
89929         * tests/unictype/test-categ_and_not.c: New file.
89930         * tests/unictype/test-categ_byname.c: New file.
89931         * tests/unictype/test-categ_name.c: New file.
89932         * tests/unictype/test-categ_none.c: New file.
89933         * tests/unictype/test-categ_of.c: New file.
89934         * tests/unictype/test-categ_or.c: New file.
89935         * tests/unictype/test-categ_test_withtable.c: New file.
89936         * tests/unictype/test-combining.c: New file.
89937         * tests/unictype/test-decdigit.c: New file.
89938         * tests/unictype/test-digit.c: New file.
89939         * tests/unictype/test-mirror.c: New file.
89940         * tests/unictype/test-numeric.c: New file.
89941         * tests/unictype/test-pr_byname.c: New file.
89942         * tests/unictype/test-pr_test.c: New file.
89943         * tests/unictype/test-predicate-part1.h: New file.
89944         * tests/unictype/test-predicate-part2.h: New file.
89945         * tests/unictype/test-scripts.c: New file.
89946         * tests/unictype/test-sy_c_ident.c: New file.
89947         * tests/unictype/test-sy_java_ident.c: New file.
89949         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
89950         for Unicode 5.0.0.
89951         * tests/unictype/test-categ_Cc.c: Likewise.
89952         * tests/unictype/test-categ_Cf.c: Likewise.
89953         * tests/unictype/test-categ_Cn.c: Likewise.
89954         * tests/unictype/test-categ_Co.c: Likewise.
89955         * tests/unictype/test-categ_Cs.c: Likewise.
89956         * tests/unictype/test-categ_L.c: Likewise.
89957         * tests/unictype/test-categ_Ll.c: Likewise.
89958         * tests/unictype/test-categ_Lm.c: Likewise.
89959         * tests/unictype/test-categ_Lo.c: Likewise.
89960         * tests/unictype/test-categ_Lt.c: Likewise.
89961         * tests/unictype/test-categ_Lu.c: Likewise.
89962         * tests/unictype/test-categ_M.c: Likewise.
89963         * tests/unictype/test-categ_Mc.c: Likewise.
89964         * tests/unictype/test-categ_Me.c: Likewise.
89965         * tests/unictype/test-categ_Mn.c: Likewise.
89966         * tests/unictype/test-categ_N.c: Likewise.
89967         * tests/unictype/test-categ_Nd.c: Likewise.
89968         * tests/unictype/test-categ_Nl.c: Likewise.
89969         * tests/unictype/test-categ_No.c: Likewise.
89970         * tests/unictype/test-categ_P.c: Likewise.
89971         * tests/unictype/test-categ_Pc.c: Likewise.
89972         * tests/unictype/test-categ_Pd.c: Likewise.
89973         * tests/unictype/test-categ_Pe.c: Likewise.
89974         * tests/unictype/test-categ_Pf.c: Likewise.
89975         * tests/unictype/test-categ_Pi.c: Likewise.
89976         * tests/unictype/test-categ_Po.c: Likewise.
89977         * tests/unictype/test-categ_Ps.c: Likewise.
89978         * tests/unictype/test-categ_S.c: Likewise.
89979         * tests/unictype/test-categ_Sc.c: Likewise.
89980         * tests/unictype/test-categ_Sk.c: Likewise.
89981         * tests/unictype/test-categ_Sm.c: Likewise.
89982         * tests/unictype/test-categ_So.c: Likewise.
89983         * tests/unictype/test-categ_Z.c: Likewise.
89984         * tests/unictype/test-categ_Zl.c: Likewise.
89985         * tests/unictype/test-categ_Zp.c: Likewise.
89986         * tests/unictype/test-categ_Zs.c: Likewise.
89987         * tests/unictype/test-ctype_alnum.c: Likewise.
89988         * tests/unictype/test-ctype_alpha.c: Likewise.
89989         * tests/unictype/test-ctype_blank.c: Likewise.
89990         * tests/unictype/test-ctype_cntrl.c: Likewise.
89991         * tests/unictype/test-ctype_digit.c: Likewise.
89992         * tests/unictype/test-ctype_graph.c: Likewise.
89993         * tests/unictype/test-ctype_lower.c: Likewise.
89994         * tests/unictype/test-ctype_print.c: Likewise.
89995         * tests/unictype/test-ctype_punct.c: Likewise.
89996         * tests/unictype/test-ctype_space.c: Likewise.
89997         * tests/unictype/test-ctype_upper.c: Likewise.
89998         * tests/unictype/test-ctype_xdigit.c: Likewise.
89999         * tests/unictype/test-decdigit.h: Likewise.
90000         * tests/unictype/test-digit.h: Likewise.
90001         * tests/unictype/test-numeric.h: Likewise.
90002         * tests/unictype/test-pr_alphabetic.c: Likewise.
90003         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
90004         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
90005         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
90006         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
90007         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
90008         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
90009         * tests/unictype/test-pr_bidi_control.c: Likewise.
90010         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
90011         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
90012         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
90013         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
90014         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
90015         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
90016         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
90017         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
90018         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
90019         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
90020         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
90021         * tests/unictype/test-pr_combining.c: Likewise.
90022         * tests/unictype/test-pr_composite.c: Likewise.
90023         * tests/unictype/test-pr_currency_symbol.c: Likewise.
90024         * tests/unictype/test-pr_dash.c: Likewise.
90025         * tests/unictype/test-pr_decimal_digit.c: Likewise.
90026         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
90027         * tests/unictype/test-pr_deprecated.c: Likewise.
90028         * tests/unictype/test-pr_diacritic.c: Likewise.
90029         * tests/unictype/test-pr_extender.c: Likewise.
90030         * tests/unictype/test-pr_format_control.c: Likewise.
90031         * tests/unictype/test-pr_grapheme_base.c: Likewise.
90032         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
90033         * tests/unictype/test-pr_grapheme_link.c: Likewise.
90034         * tests/unictype/test-pr_hex_digit.c: Likewise.
90035         * tests/unictype/test-pr_hyphen.c: Likewise.
90036         * tests/unictype/test-pr_id_continue.c: Likewise.
90037         * tests/unictype/test-pr_id_start.c: Likewise.
90038         * tests/unictype/test-pr_ideographic.c: Likewise.
90039         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
90040         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
90041         * tests/unictype/test-pr_ignorable_control.c: Likewise.
90042         * tests/unictype/test-pr_iso_control.c: Likewise.
90043         * tests/unictype/test-pr_join_control.c: Likewise.
90044         * tests/unictype/test-pr_left_of_pair.c: Likewise.
90045         * tests/unictype/test-pr_line_separator.c: Likewise.
90046         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
90047         * tests/unictype/test-pr_lowercase.c: Likewise.
90048         * tests/unictype/test-pr_math.c: Likewise.
90049         * tests/unictype/test-pr_non_break.c: Likewise.
90050         * tests/unictype/test-pr_not_a_character.c: Likewise.
90051         * tests/unictype/test-pr_numeric.c: Likewise.
90052         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
90053         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
90054         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
90055         * tests/unictype/test-pr_other_id_continue.c: Likewise.
90056         * tests/unictype/test-pr_other_id_start.c: Likewise.
90057         * tests/unictype/test-pr_other_lowercase.c: Likewise.
90058         * tests/unictype/test-pr_other_math.c: Likewise.
90059         * tests/unictype/test-pr_other_uppercase.c: Likewise.
90060         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
90061         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
90062         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
90063         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
90064         * tests/unictype/test-pr_private_use.c: Likewise.
90065         * tests/unictype/test-pr_punctuation.c: Likewise.
90066         * tests/unictype/test-pr_quotation_mark.c: Likewise.
90067         * tests/unictype/test-pr_radical.c: Likewise.
90068         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
90069         * tests/unictype/test-pr_soft_dotted.c: Likewise.
90070         * tests/unictype/test-pr_space.c: Likewise.
90071         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
90072         * tests/unictype/test-pr_titlecase.c: Likewise.
90073         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
90074         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
90075         * tests/unictype/test-pr_uppercase.c: Likewise.
90076         * tests/unictype/test-pr_variation_selector.c: Likewise.
90077         * tests/unictype/test-pr_white_space.c: Likewise.
90078         * tests/unictype/test-pr_xid_continue.c: Likewise.
90079         * tests/unictype/test-pr_xid_start.c: Likewise.
90080         * tests/unictype/test-pr_zero_width.c: Likewise.
90081         * tests/unictype/test-sy_c_whitespace.c: Likewise.
90082         * tests/unictype/test-sy_java_whitespace.c: Likewise.
90084 2007-11-12  Bruno Haible  <bruno@clisp.org>
90086         Unicode character classification functions.
90087         * lib/unictype.h: New file.
90088         * modules/unictype/base: New file.
90089         * modules/unictype/category-L: New file.
90090         * modules/unictype/category-Lu: New file.
90091         * modules/unictype/category-Ll: New file.
90092         * modules/unictype/category-Lt: New file.
90093         * modules/unictype/category-Lm: New file.
90094         * modules/unictype/category-Lo: New file.
90095         * modules/unictype/category-M: New file.
90096         * modules/unictype/category-Mn: New file.
90097         * modules/unictype/category-Mc: New file.
90098         * modules/unictype/category-Me: New file.
90099         * modules/unictype/category-N: New file.
90100         * modules/unictype/category-Nd: New file.
90101         * modules/unictype/category-Nl: New file.
90102         * modules/unictype/category-No: New file.
90103         * modules/unictype/category-P: New file.
90104         * modules/unictype/category-Pc: New file.
90105         * modules/unictype/category-Pd: New file.
90106         * modules/unictype/category-Ps: New file.
90107         * modules/unictype/category-Pe: New file.
90108         * modules/unictype/category-Pi: New file.
90109         * modules/unictype/category-Pf: New file.
90110         * modules/unictype/category-Po: New file.
90111         * modules/unictype/category-S: New file.
90112         * modules/unictype/category-Sm: New file.
90113         * modules/unictype/category-Sc: New file.
90114         * modules/unictype/category-Sk: New file.
90115         * modules/unictype/category-So: New file.
90116         * modules/unictype/category-Z: New file.
90117         * modules/unictype/category-Zs: New file.
90118         * modules/unictype/category-Zl: New file.
90119         * modules/unictype/category-Zp: New file.
90120         * modules/unictype/category-C: New file.
90121         * modules/unictype/category-Cc: New file.
90122         * modules/unictype/category-Cf: New file.
90123         * modules/unictype/category-Cs: New file.
90124         * modules/unictype/category-Co: New file.
90125         * modules/unictype/category-Cn: New file.
90126         * modules/unictype/category-or: New file.
90127         * modules/unictype/category-of: New file.
90128         * modules/unictype/category-test: New file.
90129         * modules/unictype/category-test-withtable: New file.
90130         * modules/unictype/category-byname: New file.
90131         * modules/unictype/category-none: New file.
90132         * modules/unictype/category-and: New file.
90133         * modules/unictype/category-and-not: New file.
90134         * modules/unictype/category-name: New file.
90135         * modules/unictype/combining-class: New file.
90136         * modules/unictype/category-all: New file.
90137         * modules/unictype/bidicategory-all: New file.
90138         * modules/unictype/bidicategory-byname: New file.
90139         * modules/unictype/bidicategory-name: New file.
90140         * modules/unictype/bidicategory-of: New file.
90141         * modules/unictype/bidicategory-test: New file.
90142         * modules/unictype/decimal-digit: New file.
90143         * modules/unictype/digit: New file.
90144         * modules/unictype/numeric: New file.
90145         * modules/unictype/mirror: New file.
90146         * modules/unictype/property-white-space: New file.
90147         * modules/unictype/property-alphabetic: New file.
90148         * modules/unictype/property-other-alphabetic: New file.
90149         * modules/unictype/property-not-a-character: New file.
90150         * modules/unictype/property-default-ignorable-code-point: New file.
90151         * modules/unictype/property-other-default-ignorable-code-point: New
90152         file.
90153         * modules/unictype/property-deprecated: New file.
90154         * modules/unictype/property-logical-order-exception: New file.
90155         * modules/unictype/property-variation-selector: New file.
90156         * modules/unictype/property-private-use: New file.
90157         * modules/unictype/property-unassigned-code-value: New file.
90158         * modules/unictype/property-uppercase: New file.
90159         * modules/unictype/property-other-uppercase: New file.
90160         * modules/unictype/property-lowercase: New file.
90161         * modules/unictype/property-other-lowercase: New file.
90162         * modules/unictype/property-titlecase: New file.
90163         * modules/unictype/property-soft-dotted: New file.
90164         * modules/unictype/property-id-start: New file.
90165         * modules/unictype/property-other-id-start: New file.
90166         * modules/unictype/property-id-continue: New file.
90167         * modules/unictype/property-other-id-continue: New file.
90168         * modules/unictype/property-xid-start: New file.
90169         * modules/unictype/property-xid-continue: New file.
90170         * modules/unictype/property-pattern-white-space: New file.
90171         * modules/unictype/property-pattern-syntax: New file.
90172         * modules/unictype/property-join-control: New file.
90173         * modules/unictype/property-grapheme-base: New file.
90174         * modules/unictype/property-grapheme-extend: New file.
90175         * modules/unictype/property-other-grapheme-extend: New file.
90176         * modules/unictype/property-grapheme-link: New file.
90177         * modules/unictype/property-bidi-control: New file.
90178         * modules/unictype/property-bidi-left-to-right: New file.
90179         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
90180         * modules/unictype/property-bidi-arabic-right-to-left: New file.
90181         * modules/unictype/property-bidi-european-digit: New file.
90182         * modules/unictype/property-bidi-eur-num-separator: New file.
90183         * modules/unictype/property-bidi-eur-num-terminator: New file.
90184         * modules/unictype/property-bidi-arabic-digit: New file.
90185         * modules/unictype/property-bidi-common-separator: New file.
90186         * modules/unictype/property-bidi-block-separator: New file.
90187         * modules/unictype/property-bidi-segment-separator: New file.
90188         * modules/unictype/property-bidi-whitespace: New file.
90189         * modules/unictype/property-bidi-non-spacing-mark: New file.
90190         * modules/unictype/property-bidi-boundary-neutral: New file.
90191         * modules/unictype/property-bidi-pdf: New file.
90192         * modules/unictype/property-bidi-embedding-or-override: New file.
90193         * modules/unictype/property-bidi-other-neutral: New file.
90194         * modules/unictype/property-hex-digit: New file.
90195         * modules/unictype/property-ascii-hex-digit: New file.
90196         * modules/unictype/property-ideographic: New file.
90197         * modules/unictype/property-unified-ideograph: New file.
90198         * modules/unictype/property-radical: New file.
90199         * modules/unictype/property-ids-binary-operator: New file.
90200         * modules/unictype/property-ids-trinary-operator: New file.
90201         * modules/unictype/property-zero-width: New file.
90202         * modules/unictype/property-space: New file.
90203         * modules/unictype/property-non-break: New file.
90204         * modules/unictype/property-iso-control: New file.
90205         * modules/unictype/property-format-control: New file.
90206         * modules/unictype/property-dash: New file.
90207         * modules/unictype/property-hyphen: New file.
90208         * modules/unictype/property-punctuation: New file.
90209         * modules/unictype/property-line-separator: New file.
90210         * modules/unictype/property-paragraph-separator: New file.
90211         * modules/unictype/property-quotation-mark: New file.
90212         * modules/unictype/property-sentence-terminal: New file.
90213         * modules/unictype/property-terminal-punctuation: New file.
90214         * modules/unictype/property-currency-symbol: New file.
90215         * modules/unictype/property-math: New file.
90216         * modules/unictype/property-other-math: New file.
90217         * modules/unictype/property-paired-punctuation: New file.
90218         * modules/unictype/property-left-of-pair: New file.
90219         * modules/unictype/property-combining: New file.
90220         * modules/unictype/property-composite: New file.
90221         * modules/unictype/property-decimal-digit: New file.
90222         * modules/unictype/property-numeric: New file.
90223         * modules/unictype/property-diacritic: New file.
90224         * modules/unictype/property-extender: New file.
90225         * modules/unictype/property-ignorable-control: New file.
90226         * modules/unictype/property-test: New file.
90227         * modules/unictype/property-byname: New file.
90228         * modules/unictype/property-all: New file.
90229         * modules/unictype/scripts: New file.
90230         * modules/unictype/scripts-all: New file.
90231         * modules/unictype/block-of: New file.
90232         * modules/unictype/block-test: New file.
90233         * modules/unictype/block-list: New file.
90234         * modules/unictype/block-all: New file.
90235         * modules/unictype/syntax-c-whitespace: New file.
90236         * modules/unictype/syntax-java-whitespace: New file.
90237         * modules/unictype/syntax-c-ident: New file.
90238         * modules/unictype/syntax-java-ident: New file.
90239         * modules/unictype/ctype-alnum: New file.
90240         * modules/unictype/ctype-alpha: New file.
90241         * modules/unictype/ctype-cntrl: New file.
90242         * modules/unictype/ctype-digit: New file.
90243         * modules/unictype/ctype-graph: New file.
90244         * modules/unictype/ctype-lower: New file.
90245         * modules/unictype/ctype-print: New file.
90246         * modules/unictype/ctype-punct: New file.
90247         * modules/unictype/ctype-space: New file.
90248         * modules/unictype/ctype-upper: New file.
90249         * modules/unictype/ctype-xdigit: New file.
90250         * modules/unictype/ctype-blank: New file.
90251         * lib/unictype/bidi_byname.c: New file.
90252         * lib/unictype/bidi_name.c: New file.
90253         * lib/unictype/bidi_of.c: New file.
90254         * lib/unictype/bidi_test.c: New file.
90255         * lib/unictype/bitmap.h: New file.
90256         * lib/unictype/block_test.c: New file.
90257         * lib/unictype/blocks.c: New file.
90258         * lib/unictype/categ_C.c: New file.
90259         * lib/unictype/categ_Cc.c: New file.
90260         * lib/unictype/categ_Cf.c: New file.
90261         * lib/unictype/categ_Cn.c: New file.
90262         * lib/unictype/categ_Co.c: New file.
90263         * lib/unictype/categ_Cs.c: New file.
90264         * lib/unictype/categ_L.c: New file.
90265         * lib/unictype/categ_Ll.c: New file.
90266         * lib/unictype/categ_Lm.c: New file.
90267         * lib/unictype/categ_Lo.c: New file.
90268         * lib/unictype/categ_Lt.c: New file.
90269         * lib/unictype/categ_Lu.c: New file.
90270         * lib/unictype/categ_M.c: New file.
90271         * lib/unictype/categ_Mc.c: New file.
90272         * lib/unictype/categ_Me.c: New file.
90273         * lib/unictype/categ_Mn.c: New file.
90274         * lib/unictype/categ_N.c: New file.
90275         * lib/unictype/categ_Nd.c: New file.
90276         * lib/unictype/categ_Nl.c: New file.
90277         * lib/unictype/categ_No.c: New file.
90278         * lib/unictype/categ_P.c: New file.
90279         * lib/unictype/categ_Pc.c: New file.
90280         * lib/unictype/categ_Pd.c: New file.
90281         * lib/unictype/categ_Pe.c: New file.
90282         * lib/unictype/categ_Pf.c: New file.
90283         * lib/unictype/categ_Pi.c: New file.
90284         * lib/unictype/categ_Po.c: New file.
90285         * lib/unictype/categ_Ps.c: New file.
90286         * lib/unictype/categ_S.c: New file.
90287         * lib/unictype/categ_Sc.c: New file.
90288         * lib/unictype/categ_Sk.c: New file.
90289         * lib/unictype/categ_Sm.c: New file.
90290         * lib/unictype/categ_So.c: New file.
90291         * lib/unictype/categ_Z.c: New file.
90292         * lib/unictype/categ_Zl.c: New file.
90293         * lib/unictype/categ_Zp.c: New file.
90294         * lib/unictype/categ_Zs.c: New file.
90295         * lib/unictype/categ_and.c: New file.
90296         * lib/unictype/categ_and_not.c: New file.
90297         * lib/unictype/categ_byname.c: New file.
90298         * lib/unictype/categ_name.c: New file.
90299         * lib/unictype/categ_none.c: New file.
90300         * lib/unictype/categ_of.c: New file.
90301         * lib/unictype/categ_or.c: New file.
90302         * lib/unictype/categ_test.c: New file.
90303         * lib/unictype/combining.c: New file.
90304         * lib/unictype/ctype_alnum.c: New file.
90305         * lib/unictype/ctype_alpha.c: New file.
90306         * lib/unictype/ctype_blank.c: New file.
90307         * lib/unictype/ctype_cntrl.c: New file.
90308         * lib/unictype/ctype_digit.c: New file.
90309         * lib/unictype/ctype_graph.c: New file.
90310         * lib/unictype/ctype_lower.c: New file.
90311         * lib/unictype/ctype_print.c: New file.
90312         * lib/unictype/ctype_punct.c: New file.
90313         * lib/unictype/ctype_space.c: New file.
90314         * lib/unictype/ctype_upper.c: New file.
90315         * lib/unictype/ctype_xdigit.c: New file.
90316         * lib/unictype/decdigit.c: New file.
90317         * lib/unictype/digit.c: New file.
90318         * lib/unictype/identsyntaxmap.h: New file.
90319         * lib/unictype/mirror.c: New file.
90320         * lib/unictype/numeric.c: New file.
90321         * lib/unictype/pr_alphabetic.c: New file.
90322         * lib/unictype/pr_ascii_hex_digit.c: New file.
90323         * lib/unictype/pr_bidi_arabic_digit.c: New file.
90324         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
90325         * lib/unictype/pr_bidi_block_separator.c: New file.
90326         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
90327         * lib/unictype/pr_bidi_common_separator.c: New file.
90328         * lib/unictype/pr_bidi_control.c: New file.
90329         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
90330         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
90331         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
90332         * lib/unictype/pr_bidi_european_digit.c: New file.
90333         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
90334         * lib/unictype/pr_bidi_left_to_right.c: New file.
90335         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
90336         * lib/unictype/pr_bidi_other_neutral.c: New file.
90337         * lib/unictype/pr_bidi_pdf.c: New file.
90338         * lib/unictype/pr_bidi_segment_separator.c: New file.
90339         * lib/unictype/pr_bidi_whitespace.c: New file.
90340         * lib/unictype/pr_byname.c: New file.
90341         * lib/unictype/pr_byname.gperf: New file.
90342         * lib/unictype/pr_combining.c: New file.
90343         * lib/unictype/pr_composite.c: New file.
90344         * lib/unictype/pr_currency_symbol.c: New file.
90345         * lib/unictype/pr_dash.c: New file.
90346         * lib/unictype/pr_decimal_digit.c: New file.
90347         * lib/unictype/pr_default_ignorable_code_point.c: New file.
90348         * lib/unictype/pr_deprecated.c: New file.
90349         * lib/unictype/pr_diacritic.c: New file.
90350         * lib/unictype/pr_extender.c: New file.
90351         * lib/unictype/pr_format_control.c: New file.
90352         * lib/unictype/pr_grapheme_base.c: New file.
90353         * lib/unictype/pr_grapheme_extend.c: New file.
90354         * lib/unictype/pr_grapheme_link.c: New file.
90355         * lib/unictype/pr_hex_digit.c: New file.
90356         * lib/unictype/pr_hyphen.c: New file.
90357         * lib/unictype/pr_id_continue.c: New file.
90358         * lib/unictype/pr_id_start.c: New file.
90359         * lib/unictype/pr_ideographic.c: New file.
90360         * lib/unictype/pr_ids_binary_operator.c: New file.
90361         * lib/unictype/pr_ids_trinary_operator.c: New file.
90362         * lib/unictype/pr_ignorable_control.c: New file.
90363         * lib/unictype/pr_iso_control.c: New file.
90364         * lib/unictype/pr_join_control.c: New file.
90365         * lib/unictype/pr_left_of_pair.c: New file.
90366         * lib/unictype/pr_line_separator.c: New file.
90367         * lib/unictype/pr_logical_order_exception.c: New file.
90368         * lib/unictype/pr_lowercase.c: New file.
90369         * lib/unictype/pr_math.c: New file.
90370         * lib/unictype/pr_non_break.c: New file.
90371         * lib/unictype/pr_not_a_character.c: New file.
90372         * lib/unictype/pr_numeric.c: New file.
90373         * lib/unictype/pr_other_alphabetic.c: New file.
90374         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
90375         * lib/unictype/pr_other_grapheme_extend.c: New file.
90376         * lib/unictype/pr_other_id_continue.c: New file.
90377         * lib/unictype/pr_other_id_start.c: New file.
90378         * lib/unictype/pr_other_lowercase.c: New file.
90379         * lib/unictype/pr_other_math.c: New file.
90380         * lib/unictype/pr_other_uppercase.c: New file.
90381         * lib/unictype/pr_paired_punctuation.c: New file.
90382         * lib/unictype/pr_paragraph_separator.c: New file.
90383         * lib/unictype/pr_pattern_syntax.c: New file.
90384         * lib/unictype/pr_pattern_white_space.c: New file.
90385         * lib/unictype/pr_private_use.c: New file.
90386         * lib/unictype/pr_punctuation.c: New file.
90387         * lib/unictype/pr_quotation_mark.c: New file.
90388         * lib/unictype/pr_radical.c: New file.
90389         * lib/unictype/pr_sentence_terminal.c: New file.
90390         * lib/unictype/pr_soft_dotted.c: New file.
90391         * lib/unictype/pr_space.c: New file.
90392         * lib/unictype/pr_terminal_punctuation.c: New file.
90393         * lib/unictype/pr_test.c: New file.
90394         * lib/unictype/pr_titlecase.c: New file.
90395         * lib/unictype/pr_unassigned_code_value.c: New file.
90396         * lib/unictype/pr_unified_ideograph.c: New file.
90397         * lib/unictype/pr_uppercase.c: New file.
90398         * lib/unictype/pr_variation_selector.c: New file.
90399         * lib/unictype/pr_white_space.c: New file.
90400         * lib/unictype/pr_xid_continue.c: New file.
90401         * lib/unictype/pr_xid_start.c: New file.
90402         * lib/unictype/pr_zero_width.c: New file.
90403         * lib/unictype/scripts.c: New file.
90404         * lib/unictype/sy_c_ident.c: New file.
90405         * lib/unictype/sy_c_whitespace.c: New file.
90406         * lib/unictype/sy_java_ident.c: New file.
90407         * lib/unictype/sy_java_whitespace.c: New file.
90409         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
90410         Unicode 5.0.0.
90411         * lib/unictype/blocks.h: Likewise.
90412         * lib/unictype/categ_C.h: Likewise.
90413         * lib/unictype/categ_Cc.h: Likewise.
90414         * lib/unictype/categ_Cf.h: Likewise.
90415         * lib/unictype/categ_Cn.h: Likewise.
90416         * lib/unictype/categ_Co.h: Likewise.
90417         * lib/unictype/categ_Cs.h: Likewise.
90418         * lib/unictype/categ_L.h: Likewise.
90419         * lib/unictype/categ_Ll.h: Likewise.
90420         * lib/unictype/categ_Lm.h: Likewise.
90421         * lib/unictype/categ_Lo.h: Likewise.
90422         * lib/unictype/categ_Lt.h: Likewise.
90423         * lib/unictype/categ_Lu.h: Likewise.
90424         * lib/unictype/categ_M.h: Likewise.
90425         * lib/unictype/categ_Mc.h: Likewise.
90426         * lib/unictype/categ_Me.h: Likewise.
90427         * lib/unictype/categ_Mn.h: Likewise.
90428         * lib/unictype/categ_N.h: Likewise.
90429         * lib/unictype/categ_Nd.h: Likewise.
90430         * lib/unictype/categ_Nl.h: Likewise.
90431         * lib/unictype/categ_No.h: Likewise.
90432         * lib/unictype/categ_P.h: Likewise.
90433         * lib/unictype/categ_Pc.h: Likewise.
90434         * lib/unictype/categ_Pd.h: Likewise.
90435         * lib/unictype/categ_Pe.h: Likewise.
90436         * lib/unictype/categ_Pf.h: Likewise.
90437         * lib/unictype/categ_Pi.h: Likewise.
90438         * lib/unictype/categ_Po.h: Likewise.
90439         * lib/unictype/categ_Ps.h: Likewise.
90440         * lib/unictype/categ_S.h: Likewise.
90441         * lib/unictype/categ_Sc.h: Likewise.
90442         * lib/unictype/categ_Sk.h: Likewise.
90443         * lib/unictype/categ_Sm.h: Likewise.
90444         * lib/unictype/categ_So.h: Likewise.
90445         * lib/unictype/categ_Z.h: Likewise.
90446         * lib/unictype/categ_Zl.h: Likewise.
90447         * lib/unictype/categ_Zp.h: Likewise.
90448         * lib/unictype/categ_Zs.h: Likewise.
90449         * lib/unictype/categ_of.h: Likewise.
90450         * lib/unictype/combining.h: Likewise.
90451         * lib/unictype/ctype_alnum.h: Likewise.
90452         * lib/unictype/ctype_alpha.h: Likewise.
90453         * lib/unictype/ctype_blank.h: Likewise.
90454         * lib/unictype/ctype_cntrl.h: Likewise.
90455         * lib/unictype/ctype_digit.h: Likewise.
90456         * lib/unictype/ctype_graph.h: Likewise.
90457         * lib/unictype/ctype_lower.h: Likewise.
90458         * lib/unictype/ctype_print.h: Likewise.
90459         * lib/unictype/ctype_punct.h: Likewise.
90460         * lib/unictype/ctype_space.h: Likewise.
90461         * lib/unictype/ctype_upper.h: Likewise.
90462         * lib/unictype/ctype_xdigit.h: Likewise.
90463         * lib/unictype/decdigit.h: Likewise.
90464         * lib/unictype/digit.h: Likewise.
90465         * lib/unictype/mirror.h: Likewise.
90466         * lib/unictype/numeric.h: Likewise.
90467         * lib/unictype/pr_alphabetic.h: Likewise.
90468         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
90469         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
90470         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
90471         * lib/unictype/pr_bidi_block_separator.h: Likewise.
90472         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
90473         * lib/unictype/pr_bidi_common_separator.h: Likewise.
90474         * lib/unictype/pr_bidi_control.h: Likewise.
90475         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
90476         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
90477         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
90478         * lib/unictype/pr_bidi_european_digit.h: Likewise.
90479         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
90480         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
90481         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
90482         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
90483         * lib/unictype/pr_bidi_pdf.h: Likewise.
90484         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
90485         * lib/unictype/pr_bidi_whitespace.h: Likewise.
90486         * lib/unictype/pr_combining.h: Likewise.
90487         * lib/unictype/pr_composite.h: Likewise.
90488         * lib/unictype/pr_currency_symbol.h: Likewise.
90489         * lib/unictype/pr_dash.h: Likewise.
90490         * lib/unictype/pr_decimal_digit.h: Likewise.
90491         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
90492         * lib/unictype/pr_deprecated.h: Likewise.
90493         * lib/unictype/pr_diacritic.h: Likewise.
90494         * lib/unictype/pr_extender.h: Likewise.
90495         * lib/unictype/pr_format_control.h: Likewise.
90496         * lib/unictype/pr_grapheme_base.h: Likewise.
90497         * lib/unictype/pr_grapheme_extend.h: Likewise.
90498         * lib/unictype/pr_grapheme_link.h: Likewise.
90499         * lib/unictype/pr_hex_digit.h: Likewise.
90500         * lib/unictype/pr_hyphen.h: Likewise.
90501         * lib/unictype/pr_id_continue.h: Likewise.
90502         * lib/unictype/pr_id_start.h: Likewise.
90503         * lib/unictype/pr_ideographic.h: Likewise.
90504         * lib/unictype/pr_ids_binary_operator.h: Likewise.
90505         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
90506         * lib/unictype/pr_ignorable_control.h: Likewise.
90507         * lib/unictype/pr_iso_control.h: Likewise.
90508         * lib/unictype/pr_join_control.h: Likewise.
90509         * lib/unictype/pr_left_of_pair.h: Likewise.
90510         * lib/unictype/pr_line_separator.h: Likewise.
90511         * lib/unictype/pr_logical_order_exception.h: Likewise.
90512         * lib/unictype/pr_lowercase.h: Likewise.
90513         * lib/unictype/pr_math.h: Likewise.
90514         * lib/unictype/pr_non_break.h: Likewise.
90515         * lib/unictype/pr_not_a_character.h: Likewise.
90516         * lib/unictype/pr_numeric.h: Likewise.
90517         * lib/unictype/pr_other_alphabetic.h: Likewise.
90518         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
90519         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
90520         * lib/unictype/pr_other_id_continue.h: Likewise.
90521         * lib/unictype/pr_other_id_start.h: Likewise.
90522         * lib/unictype/pr_other_lowercase.h: Likewise.
90523         * lib/unictype/pr_other_math.h: Likewise.
90524         * lib/unictype/pr_other_uppercase.h: Likewise.
90525         * lib/unictype/pr_paired_punctuation.h: Likewise.
90526         * lib/unictype/pr_paragraph_separator.h: Likewise.
90527         * lib/unictype/pr_pattern_syntax.h: Likewise.
90528         * lib/unictype/pr_pattern_white_space.h: Likewise.
90529         * lib/unictype/pr_private_use.h: Likewise.
90530         * lib/unictype/pr_punctuation.h: Likewise.
90531         * lib/unictype/pr_quotation_mark.h: Likewise.
90532         * lib/unictype/pr_radical.h: Likewise.
90533         * lib/unictype/pr_sentence_terminal.h: Likewise.
90534         * lib/unictype/pr_soft_dotted.h: Likewise.
90535         * lib/unictype/pr_space.h: Likewise.
90536         * lib/unictype/pr_terminal_punctuation.h: Likewise.
90537         * lib/unictype/pr_titlecase.h: Likewise.
90538         * lib/unictype/pr_unassigned_code_value.h: Likewise.
90539         * lib/unictype/pr_unified_ideograph.h: Likewise.
90540         * lib/unictype/pr_uppercase.h: Likewise.
90541         * lib/unictype/pr_variation_selector.h: Likewise.
90542         * lib/unictype/pr_white_space.h: Likewise.
90543         * lib/unictype/pr_xid_continue.h: Likewise.
90544         * lib/unictype/pr_xid_start.h: Likewise.
90545         * lib/unictype/pr_zero_width.h: Likewise.
90546         * lib/unictype/scripts.h: Likewise.
90547         * lib/unictype/scripts_byname.gperf: Likewise.
90548         * lib/unictype/sy_c_ident.h: Likewise.
90549         * lib/unictype/sy_c_whitespace.h: Likewise.
90550         * lib/unictype/sy_java_ident.h: Likewise.
90551         * lib/unictype/sy_java_whitespace.h: Likewise.
90553         * lib/unictype/Makefile: New file.
90554         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
90555         glibc.
90556         * lib/unictype/3level.h: New file, copied from glibc.
90557         * lib/unictype/3levelbit.h: New file.
90559 2007-11-11  Bruno Haible  <bruno@clisp.org>
90561         * modules/gperf: New file.
90562         * modules/iconv_open (Depends-on): Add it.
90563         (Makefile.am): Remove the GPERF definition.
90565 2007-11-11  Bruno Haible  <bruno@clisp.org>
90567         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
90568         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
90570 2007-11-11  Bruno Haible  <bruno@clisp.org>
90572         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
90573         (usage): Remove function.
90575 2007-11-11  Bruno Haible  <bruno@clisp.org>
90577         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
90578         gl_FUNC_CEILF_LIBS.
90579         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
90580         gl_FUNC_CEIL_LIBS.
90581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
90582         gl_FUNC_CEILL_LIBS.
90583         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
90584         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
90585         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
90587 2007-11-11  Bruno Haible  <bruno@clisp.org>
90589         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
90590         roundf were declared but do not exist on functions.
90591         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
90592         roundl were declared but do not exist on functions.
90593         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
90594         HAVE_FLOORL_AND_CEILL, respectively.
90595         Needed for Sun C on Solaris 10.
90597 2007-11-11  Bruno Haible  <bruno@clisp.org>
90599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
90600         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
90601         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
90602         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
90603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
90604         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
90605         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
90606         HAVE_DECL_ROUNDF.
90607         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
90608         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
90609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
90610         of HAVE_DECL_ROUND*.
90611         * modules/math (Makefile.am): Update.
90613 2007-11-10  Bruno Haible  <bruno@clisp.org>
90615         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
90616         ptrdiff_t as m4/intl.m4.
90618 2007-11-10  Jim Meyering  <meyering@redhat.com>
90620         Avoid link failure for the argmatch test.
90621         * tests/test-argmatch.c (usage): Define function to avoid a link
90622         failure: argmatch_die requires a usage function.
90624 2007-11-09  Bruno Haible  <bruno@clisp.org>
90626         * doc/functions/snprintf.texi: Mention BeOS deficiency.
90627         * doc/functions/vsnprintf.texi: Likewise.
90628         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
90629         with a size argument < 2.
90631 2007-11-09  Bruno Haible  <bruno@clisp.org>
90633         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
90634         buffer. Fixes an inefficiency introduced on 2007-11-03.
90636 2007-11-09  Bruno Haible  <bruno@clisp.org>
90638         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
90639         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
90641 2007-11-08  Jim Meyering  <meyering@redhat.com>
90643         Change cache variable name prefix "jm_" to "gl_" everywhere.
90644         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
90645         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
90646         * m4/uptime.m4: s/gl_/jm_/
90648 2007-11-07  Bruno Haible  <bruno@clisp.org>
90650         Update to GNU gettext 0.17.
90651         * m4/intl.m4: Update to GNU gettext 0.17.
90652         * m4/po.m4: Likewise.
90653         * modules/gettext (Files): Remove m4/ulonglong.m4.
90654         (configure.ac): Require gettext infrastructure from version 0.17.
90656 2007-11-06  Bruno Haible  <bruno@clisp.org>
90658         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
90659         symbolic values are not defined in a public header.
90660         * lib/freadable.c (freadable) [QNX]: Likewise.
90661         * lib/freadahead.c (freadahead) [QNX]: Likewise.
90662         * lib/freading.c (freading) [QNX]: Likewise.
90663         * lib/fseterr.c (fseterr) [QNX]: Likewise.
90664         * lib/fwritable.c (fwritable) [QNX]: Likewise.
90665         * lib/fwriting.c (fwriting) [QNX]: Likewise.
90666         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
90667         Reported by Alain Magloire.
90669         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
90671 2007-11-05  Bruno Haible  <bruno@clisp.org>
90673         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
90674         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
90675         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
90676         Reported by Eric Blake.
90678 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90679             Bruno Haible  <bruno@clisp.org>
90681         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
90682         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
90683         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
90684         (malloc): Undefine also before including <stdlib.h>.
90685         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
90686         Needed on OSF/1 4.0.
90688 2007-11-05  Jim Meyering  <meyering@redhat.com>
90690         git-version-gen: sync from coreutils.
90691         * build-aux/git-version-gen: Add comments.
90692         Change the first '-' to '.' in the snapshot version string,
90693         e.g., 6.9-377-08144 -> 6.9.377-08144
90694         Remove first parameter.
90695         Don't declare a version "-dirty" merely because a time
90696         stamp has changed.
90698 2007-11-04  Bruno Haible  <bruno@clisp.org>
90700         * lib/lock.h: Protect all macro definitions containing an 'if'
90701         statement through a "do { ... } while (0)".
90702         * lib/tls.h: Likewise.
90704 2007-11-04  Bruno Haible  <bruno@clisp.org>
90706         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
90708 2007-11-04  Bruno Haible  <bruno@clisp.org>
90710         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
90711         * modules/fprintf-posix (Depends-on): Add nocrash.
90712         * modules/snprintf-posix (Depends-on): Likewise.
90713         * modules/sprintf-posix (Depends-on): Likewise.
90714         * modules/vasnprintf-posix (Depends-on): Likewise.
90715         * modules/vasprintf-posix (Depends-on): Likewise.
90716         * modules/vfprintf-posix (Depends-on): Likewise.
90717         * modules/vsnprintf-posix (Depends-on): Likewise.
90718         * modules/vsprintf-posix (Depends-on): Likewise.
90719         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
90720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
90721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
90722         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
90723         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
90724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
90725         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
90727 2007-11-04  Bruno Haible  <bruno@clisp.org>
90729         * modules/nocrash: New file.
90730         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
90731         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
90733 2007-11-04  Bruno Haible  <bruno@clisp.org>
90735         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
90736         precision handling.
90737         * tests/test-vasprintf-posix.c (test_function): Likewise.
90738         * tests/test-snprintf-posix.h (test_function): Likewise.
90739         * tests/test-sprintf-posix.h (test_function): Likewise.
90741         Fix *printf behaviour for large precisions on mingw and BeOS.
90742         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
90743         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
90744         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
90745         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
90746         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
90747         gl_PRINTF_PRECISION and test its result. Invoke
90748         gl_PREREQ_VASNPRINTF_PRECISION.
90749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90756         * doc/functions/fprintf.texi: Update.
90757         * doc/functions/printf.texi: Update.
90758         * doc/functions/snprintf.texi: Update.
90759         * doc/functions/sprintf.texi: Update.
90760         * doc/functions/vfprintf.texi: Update.
90761         * doc/functions/vprintf.texi: Update.
90762         * doc/functions/vsnprintf.texi: Update.
90763         * doc/functions/vsprintf.texi: Update.
90765 2007-11-04  Bruno Haible  <bruno@clisp.org>
90767         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
90769 2007-11-04  Bruno Haible  <bruno@clisp.org>
90771         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
90772         Reported by Sylvain Beucler <beuc@gnu.org>.
90774 2007-11-03  Bruno Haible  <bruno@clisp.org>
90776         * tests/test-fprintf-posix2.sh: New file.
90777         * tests/test-fprintf-posix2.c: New file.
90778         * modules/fprintf-posix-tests (Files): Add them.
90779         (TESTS): Add test-fprintf-posix2.sh.
90780         (configure.ac): Check for getrlimit and setrlimit.
90781         (check_PROGRAMS): Add test-fprintf-posix2.
90783         * tests/test-printf-posix2.sh: New file.
90784         * tests/test-printf-posix2.c: New file.
90785         * modules/printf-posix-tests (Files): Add them.
90786         (TESTS): Add test-printf-posix2.sh.
90787         (configure.ac): Check for getrlimit and setrlimit.
90788         (check_PROGRAMS): Add test-printf-posix2.
90790         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
90791         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
90792         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
90793         (decode_double): New function, copied from decode_long_double.
90794         (scale10_round_decimal_decoded): New function, extracted from
90795         scale10_round_decimal_long_double.
90796         (scale10_round_decimal_long_double): Use it.
90797         (scale10_round_decimal_double): New function.
90798         (floorlog10): New function.
90799         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
90800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
90801         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
90802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
90803         gl_PRINTF_ENOMEM and test its result. Invoke
90804         gl_PREREQ_VASNPRINTF_ENOMEM.
90805         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90806         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90807         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90808         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90812         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
90813         * modules/snprintf-posix (Depends-on): Likewise.
90814         * modules/sprintf-posix (Depends-on): Likewise.
90815         * modules/vasnprintf-posix (Depends-on): Likewise.
90816         * modules/vasprintf-posix (Depends-on): Likewise.
90817         * modules/vfprintf-posix (Depends-on): Likewise.
90818         * modules/vsnprintf-posix (Depends-on): Likewise.
90819         * modules/vsprintf-posix (Depends-on): Likewise.
90820         * doc/functions/fprintf.texi: Update.
90821         * doc/functions/printf.texi: Update.
90822         * doc/functions/snprintf.texi: Update.
90823         * doc/functions/sprintf.texi: Update.
90824         * doc/functions/vfprintf.texi: Update.
90825         * doc/functions/vprintf.texi: Update.
90826         * doc/functions/vsnprintf.texi: Update.
90827         * doc/functions/vsprintf.texi: Update.
90829 2007-11-03  Bruno Haible  <bruno@clisp.org>
90831         * modules/frexp-nolibm-tests: New file.
90833         * modules/frexp-nolibm: New file.
90834         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
90836 2007-11-03  Bruno Haible  <bruno@clisp.org>
90838         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
90839         value is C99 compliant.
90840         Needed for OSF/1 5.1.
90842 2007-11-03  Bruno Haible  <bruno@clisp.org>
90844         Fix out-of-memory handling of vasnprintf.
90845         * lib/printf-parse.c: Include <errno.h>.
90846         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
90847         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
90848         is already set.
90850 2007-11-02  Eric Blake  <ebb9@byu.net>
90852         Fix tests on cygwin.
90853         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
90855 2007-11-01  Bruno Haible  <bruno@clisp.org>
90857         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
90858         warning.
90859         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
90860         needed for POSIX compatibility.
90862 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90864         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
90865         for compatibility with GNU.
90867 2007-11-01  Bruno Haible  <bruno@clisp.org>
90869         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
90870         (putenv): Renamed from rpl_putenv. Change argument type from
90871         'const char *' to 'char *'.
90872         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
90873         of defining putenv in config.h, just set REPLACE_PUTENV.
90874         * modules/putenv (Depends-on): Add stdlib.
90875         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90876         (Include): Use <stdlib.h>.
90877         * lib/stdlib.in.h (putenv): New declaration.
90878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
90879         REPLACE_PUTENV.
90880         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
90881         REPLACE_PUTENV.
90882         Needed for MacOS X 10.5.0.
90883         Reported by Peter O'Gorman <peter@pogma.com>.
90885 2007-11-01  Jim Meyering  <meyering@redhat.com>
90887         Treat an empty date string exactly like "0".
90888         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
90889         if the remaining date string (to be parsed) is empty, use "0".
90890         Reported by Mischa Molhoek and discussed in this thread:
90891         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
90893 2007-10-31  Bruno Haible  <bruno@clisp.org>
90895         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
90896         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
90897         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
90898         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
90899         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
90900         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
90902 2007-10-31  Bruno Haible  <bruno@clisp.org>
90904         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
90905         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
90906         (AC_TYPE_LONG_LONG_INT): Use it.
90907         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
90908         it as well.
90909         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
90910         to m4/longlong.m4.
90911         * modules/stdint (Files): Remove m4/ulonglong.m4.
90912         * modules/strtoull (Files): Use m4/longlong.m4 instead of
90913         m4/ulonglong.m4.
90914         * modules/strtoumax (Files): Likewise.
90916 2007-10-30  Bruno Haible  <bruno@clisp.org>
90918         * modules/xvasprintf-posix: New file.
90919         Suggested by Eric Blake.
90921 2007-10-30  Bruno Haible  <bruno@clisp.org>
90923         * modules/xprintf-posix-tests: New file.
90924         * tests/test-xprintf-posix.sh: New file.
90925         * tests/test-xprintf-posix.c: New file.
90926         * tests/test-xfprintf-posix.c: New file.
90928         * modules/xprintf-posix: New file.
90930 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90932         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
90933         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
90934         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
90936 2007-10-29  Bruno Haible  <bruno@clisp.org>
90938         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
90939         contain the special marker '_cv_'.
90940         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
90941         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
90942         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
90943         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
90944         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
90945         Reported by Ralf Wildenhues.
90947 2007-10-29  Bruno Haible  <bruno@clisp.org>
90949         * gnulib-tool (func_import): When --lgpl is not specified, set
90950         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
90951         GPLv3.
90952         Reported by Simon Josefsson.
90954 2007-10-28  Bruno Haible  <bruno@clisp.org>
90956         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
90957         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
90958         HAVE_DECL_ISFINITE.
90959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
90960         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
90961         HAVE_DECL_ISFINITE.
90963 2007-10-28  Bruno Haible  <bruno@clisp.org>
90965         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
90966         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
90968 2007-10-28  Bruno Haible  <bruno@clisp.org>
90970         Fix link errors with Sun C 5.0 on Solaris 10.
90971         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
90972         function is declared but not present in the compiler's libm.
90973         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
90974         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
90975         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
90976         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
90977         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
90978         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
90979         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
90980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
90981         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
90982         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
90983         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
90984         HAVE_DECL_FLOORL.
90986 2007-10-28  Bruno Haible  <bruno@clisp.org>
90988         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
90989         gl_FUNC_FLOORL. Cache the result.
90990         (gl_FUNC_FLOORL): Use it.
90991         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
90992         gl_FUNC_CEILL. Cache the result.
90993         (gl_FUNC_CEILL): Use it.
90995         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
90996         gl_FUNC_FLOOR. Cache the result.
90997         (gl_FUNC_FLOOR): Use it.
90998         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
90999         gl_FUNC_CEIL. Cache the result.
91000         (gl_FUNC_CEIL): Use it.
91002         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
91003         gl_FUNC_FLOORF. Cache the result.
91004         (gl_FUNC_FLOORF): Use it.
91005         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
91006         gl_FUNC_CEILF. Cache the result.
91007         (gl_FUNC_CEILF): Use it.
91009 2007-10-28  Bruno Haible  <bruno@clisp.org>
91011         * gnulib-tool: Allow specifying the LGPL version number through
91012         --lgpl=2 or --lgpl=3.
91013         (func_usage): Document --lgpl with argument.
91014         Handle --lgpl=... arguments.
91015         (func_import): Recognize also gl_LGPL calls with an argument. When
91016         --lgpl=2 is used and the module's license is just LGPL, report an
91017         error. Set sed_transform_lib_file according to the lgpl variable. In
91018         the generated files, use --lgpl or gl_LGPL invocations with argument,
91019         if necessary.
91020         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
91021         an LGPv2+ license.
91022         * doc/gnulib-tool.texi (Modified imports): Update explanation of
91023         gl_LGPL macro.
91025 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91026             Bruno Haible  <bruno@clisp.org>
91028         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
91029         (u16_uctomb_aux): Likewise.
91030         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
91031         !HAVE_INLINE.
91032         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
91034 2007-10-28  Bruno Haible  <bruno@clisp.org>
91036         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
91037         Invoke AM_GETTEXT_OPTION if it exists.
91038         * modules/vasprintf: Likewise.
91039         * modules/verror: Likewise.
91040         * modules/xprintf: Likewise.
91041         * modules/xvasprintf: Likewise.
91043 2007-10-27  Ben Pfaff  <blp@gnu.org>
91045         * lib/math.in.h: Define isfinite macro and prototypes for
91046         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
91047         implementations.
91048         * m4/math_h.m4: New substitutions for isfinite module.
91049         * lib/isfinite.c: New file.
91050         * m4/isfinite.m4: New file.
91051         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
91052         * modules/isfinite: New file.
91053         * modules/isfinite-tests: New file.
91054         * tests/tests-isfinite.c: New file.
91055         * doc/functions/isfinite.texi: Mention isfinite module.
91056         * MODULES.html.sh: Mention new module.
91058 2007-10-27  Ben Pfaff  <blp@gnu.org>
91060         Ralf Wildenhues reported that Tru64 4.0D declares the round
91061         functions but does not have definitions.
91062         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
91063         cannot be found in any library, set the output variable to
91064         "missing" instead of "".
91065         * m4/round.m4: Also use our substitute if we cannot find round in
91066         any library, even if it is declared.
91067         * m4/roundf.m4: Likewise for roundf.
91068         * m4/roundl.m4: Likewise for roundl.
91069         * lib/math.in.h: Undefine roundf, round, roundl before defining
91070         their replacements, to allow for hypothetical systems where these
91071         may be defined as macros but not available in libraries.
91073 2007-10-27  Bruno Haible  <bruno@clisp.org>
91075         * doc/gnulib.texi: Invoke @firstparagraphindent.
91076         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
91077         changes in gnulib.
91078         (Source changes): New section.
91080 2007-10-26  Bruno Haible  <bruno@clisp.org>
91082         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
91083         borrowed from autoconf.
91085 2007-10-26  Bruno Haible  <bruno@clisp.org>
91087         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
91088         strerror returned the empty string. Needed on HP-UX 11.00.
91090 2007-10-24  Micah Cowan  <micah@cowan.name>
91092         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
91093         * build-aux/bootstrap: Remove support for now-unnecessary option,
91094         --cvs-user, and envvars CVS_USER, CVS_RSH.
91096 2007-10-24  Jim Meyering  <meyering@redhat.com>
91098         Avoid diagnostics from sha1sum when there is no cached checksum.
91099         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
91100         if the po.s1 file hasn't been created yet.
91102         * build-aux/bootstrap: Sync from coreutils:
91103         2007-10-24  Jim Meyering  <meyering@redhat.com>
91104         Get gnulib from the git repository, not from an obsolete cvs one.
91105         * build-aux/bootstrap: Suggestion from Micah Cowan.
91106         2007-10-04  Jim Meyering  <jim@meyering.net>
91107         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
91108         (update_po_files): Work also when there are no .po files in po/.
91110 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91112         * README: Append ".git" to git and cg examples.
91113         Problem reported by Benoit Sigoure.
91115 2007-10-23  Micah Cowan  <micah@cowan.name>
91117         * users.txt: Add wget.
91119 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91121         Fix linking of some unistdio tests on FreeBSD.
91122         * modules/unistdio/u16-vsnprintf-tests
91123         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
91124         * modules/unistdio/u16-vsprintf-tests
91125         (test_u16_vsnprintf1_LDADD): Likewise.
91126         * modules/unistdio/u32-vsnprintf-tests
91127         (test_u32_vsnprintf1_LDADD): Likewise.
91128         * modules/unistdio/u32-vsprintf-tests
91129         (test_u32_vsprintf1_LDADD): Likewise.
91130         * modules/unistdio/u8-vsnprintf-tests
91131         (test_u8_vsnprintf1_LDADD): Likewise.
91132         * modules/unistdio/u8-vsprintf-tests
91133         (test_u8_vsprintf1_LDADD): Likewise.
91134         * modules/unistdio/ulc-vsnprintf-tests
91135         (test_ulc_vsnprintf1_LDADD): Likewise.
91136         * modules/unistdio/ulc-vsprintf-tests
91137         (test_ulc_vsprintf1_LDADD): Likewise.
91139         Fix linking of some uniconv tests on FreeBSD.
91140         * modules/uniconv/u16-conv-from-enc-tests
91141         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
91142         * modules/uniconv/u16-conv-to-enc-tests
91143         (test_u16_conv_to_enc_LDADD): Likewise.
91144         * modules/uniconv/u16-strconv-from-enc-tests
91145         (test_u16_strconv_from_enc_LDADD): Likewise.
91146         * modules/uniconv/u16-strconv-to-enc-tests
91147         (test_u16_strconv_to_enc_LDADD): Likewise.
91148         * modules/uniconv/u32-conv-from-enc-tests
91149         (test_u32_conv_from_enc_LDADD): Likewise.
91150         * modules/uniconv/u32-conv-to-enc-tests
91151         (test_u32_conv_to_enc_LDADD): Likewise.
91152         * modules/uniconv/u32-strconv-from-enc-tests
91153         (test_u32_strconv_from_enc_LDADD): Likewise.
91154         * modules/uniconv/u32-strconv-to-enc-tests
91155         (test_u32_strconv_to_enc_LDADD): Likewise.
91156         * modules/uniconv/u8-conv-from-enc-tests
91157         (test_u8_conv_from_enc_LDADD): Likewise.
91158         * modules/uniconv/u8-conv-to-enc-tests
91159         (test_u8_conv_to_enc_LDADD): Likewise.
91160         * modules/uniconv/u8-strconv-from-enc-tests
91161         (test_u8_strconv_from_enc_LDADD): Likewise.
91162         * modules/uniconv/u8-strconv-to-enc-tests
91163         (test_u8_strconv_to_enc_LDADD): Likewise.
91165 2007-10-22  Bruno Haible  <bruno@clisp.org>
91167         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
91168         size.
91170 2007-10-22  Eric Blake  <ebb9@byu.net>
91172         Tweak x*printf documentation.
91173         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
91174         variable name and comments.
91175         Suggested by Bruno Haible.
91177 2007-10-22  Bruno Haible  <bruno@clisp.org>
91179         * lib/acl.c (copy_acl): Fix file name in comment.
91181 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91183         Fix Tru64 problem with stdbool.h.
91184         * lib/stdbool.in.h (false, true):
91185         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
91186         Don't declare as an enum in this situation; it runs afoul of Tru64.
91187         Problem reported by Steven M. Schweda in
91188         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
91190 2007-10-22  Eric Blake  <ebb9@byu.net>
91192         Also wrap vf?printf.
91193         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
91194         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
91195         (xvprintf, xvfprintf): New functions.
91197 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91199         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
91200         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
91202         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
91203         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
91205 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
91207         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
91208         by Bruno Haible.
91210 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91212         * lib/getloadavg.c
91213         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
91214         Undef `sys' after including sys/table.h, for Tru64 4.0D.
91216         * tests/test-i-ring.c: Work for C89.
91218 2007-10-22  Bruno Haible  <bruno@clisp.org>
91220         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
91221         -1u, in preprocessor expression, so that we don't test for the bug
91222         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
91223         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
91225 2007-10-22  Eric Blake  <ebb9@byu.net>
91227         * tests/test-yesno.sh: Silence stderr during test.
91229 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91231         * modules/crypto/gc-camellia: New file.
91233         * m4/gc-camellia.m4: New file.
91235         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
91237         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
91239 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91241         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
91242         --help to stdout.  Reported by sms@antinode.org (Steven
91243         M. Schweda).
91245 2007-10-22  Simon Josefsson  <simon@josefsson.org>
91247         * users.txt: Fix link to libksba.
91249 2007-10-21  Ben Pfaff  <blp@gnu.org>
91251         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
91252         round.c roundf implementation that depends on floorf and ceilf to
91253         be tested unconditionally.
91255 2007-10-21  Ben Pfaff  <blp@gnu.org>
91257         * m4/check-libm-func.m4: Removed.
91258         * m4/check-math-lib.m4: New file.
91259         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
91260         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
91261         definition and lack of AC_LIBOBJ([roundf]).
91262         * m4/roundl.m4: Ditto, and similarly for roundl.
91263         * modules/round: Reference new m4 file.
91264         * modules/roundf: Ditto.
91265         * modules/roundl: Ditto.
91266         * tests/test-round2.c (main): Use ROUND instead of round.
91267         Bug report from Bruno Haible.
91269 2007-10-21  Bruno Haible  <bruno@clisp.org>
91271         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
91272         context.
91274 2007-10-21  Bruno Haible  <bruno@clisp.org>
91276         * tests/test-wcwidth.c (main): Allow negative result for some control
91277         characters.
91279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
91280         Needed on OSF/1 5.1.
91282 2007-10-21  Bruno Haible  <bruno@clisp.org>
91284         * tests/test-floorf1.c: Include isnanf.h.
91285         (main): Use isnanf() instead of isnan().
91286         * tests/test-ceilf1.c: Include isnanf.h.
91287         (main): Use isnanf() instead of isnan().
91288         * tests/test-truncf1.c: Include isnanf.h.
91289         (main): Use isnanf() instead of isnan().
91290         * tests/test-roundf1.c: Include isnanf.h.
91291         (main): Use isnanf() instead of isnan().
91293 2007-10-21  Eric Blake  <ebb9@byu.net>
91295         * users.txt: Update URL for m4.
91297 2007-10-21  Bruno Haible  <bruno@clisp.org>
91299         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
91301 2007-10-21  Bruno Haible  <bruno@clisp.org>
91303         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
91304         Git's management files if the CVS files are not present.
91306 2007-10-20  Bruno Haible  <bruno@clisp.org>
91308         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
91309         gcc-3.4.x.
91311 2007-10-20  Ben Pfaff  <blp@gnu.org>
91313         * lib/math.in.h: Declare round, roundf, roundl if we are providing
91314         implementations.
91315         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
91316         * lib/round.c: New file.
91317         * lib/roundf.c: New file.
91318         * lib/roundl.c: New file.
91319         * m4/round.m4: New file.
91320         * m4/roundf.m4: New file.
91321         * m4/roundl.m4: New file.
91322         * m4/check-libm-func-m4: New file.
91323         * modules/math: Replace round, roundf, roundl related @VARS@ in
91324         math.in.h.
91325         * modules/round: New file.
91326         * modules/round-tests: New file.
91327         * modules/roundf: New file.
91328         * modules/roundf-tests: New file.
91329         * modules/roundl: New file.
91330         * modules/roundl-tests: New file.
91331         * tests/test-round1.c: New file.
91332         * tests/test-round2.c: New file.
91333         * tests/test-roundf1.c: New file.
91334         * tests/test-roundf2.c: New file.
91335         * tests/test-roundl.c: New file.
91336         * doc/functions/round.texi: Mention round module.
91337         * doc/functions/roundf.texi: Mention roundf module.
91338         * doc/functions/roundl.texi: Mention roundl module.
91339         * MODULES.html.sh: Mention new modules.
91340         Thanks to Bruno Haible for suggestions.
91342 2007-10-20  Jim Meyering  <meyering@redhat.com>
91344         * lib/xprintf.c: Include <config.h> unconditionally.
91346         Change xprintf's license to GPL.
91347         * modules/xprintf (License): s/LGPL/GPL/, since this module
91348         depends on modules (exit and exitfail) which are GPL.
91349         Suggestion from Bruno Haible.
91351         xprintf fixes.
91352         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
91353         Use a clearer diagnostic.
91354         Patch from Bruno Haible.
91356 2007-10-20  Bruno Haible  <bruno@clisp.org>
91358         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
91359         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
91360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91362 2007-10-20  Bruno Haible  <bruno@clisp.org>
91364         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
91365         precision in the comparison result > x - 1 or similar.
91366         * tests/test-ceilf2.c (correct_result_p): Likewise.
91367         * tests/test-truncf2.c (correct_result_p): Likewise.
91368         * tests/test-trunc2.c (correct_result_p): Likewise.
91369         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91371 2007-10-20  Bruno Haible  <bruno@clisp.org>
91373         * modules/ceil: New file.
91374         * m4/ceil.m4: New file.
91375         * doc/functions/ceil.texi: Mention the 'ceil' module.
91377 2007-10-20  Bruno Haible  <bruno@clisp.org>
91379         * modules/floor: New file.
91380         * m4/floor.m4: New file.
91381         * doc/functions/floor.texi: Mention the 'floor' module.
91383 2007-10-20  Bruno Haible  <bruno@clisp.org>
91385         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
91386         of %a.
91387         * modules/floorf-tests (Depends-on): Likewise.
91388         * modules/truncf-tests (Depends-on): Likewise.
91389         * modules/trunc-tests (Depends-on): Likewise.
91390         Reported by Ben Pfaff.
91392 2007-10-19  Jim Meyering  <meyering@redhat.com>
91394         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
91395         Don't bother testing specific errno values.  Just test ferror.
91397         New module: xprintf
91398         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
91400 2007-10-19  Bruno Haible  <bruno@clisp.org>
91402         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
91403         syntax.
91404         * modules/javaexec (Makefile.am): Likewise.
91405         * modules/relocatable-prog (Makefile.am): Likewise.
91406         Suggested by Jim Meyering.
91408 2007-10-18  Bruno Haible  <bruno@clisp.org>
91410         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
91411         Reported by Jim Meyering.
91413 2007-10-18  Eric Blake  <ebb9@byu.net>
91415         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
91417 2007-10-18  Bruno Haible  <bruno@clisp.org>
91419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
91420         the format string into writable memory. Needed in Fortify conditions.
91422 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
91423             Bruno Haible  <bruno@clisp.org>
91425         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
91426         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
91427         * modules/trim (Depends-on): Add mbchar.
91428         (configure.ac): Add gl_FUNC_MBRTOWC.
91429         (Makefile.am): Augment lib_SOURCES.
91431 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91433         Modify glob.c to use fstatat and dirfd, to simplify it.
91434         Suggested by Eric Blake.
91435         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
91436         Don't include <stdbool.h>; not used.
91437         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
91438         (link_exists_p): Simplify implementation, since we can now assume
91439         dirfd and fstatat.
91440         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
91442 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91444         * gnulib-tool (func_get_dependencies): Fix sed script to
91445         match only tests.
91447 2007-10-17  Bruno Haible  <bruno@clisp.org>
91449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
91450         allow locale names without encoding suffix.
91451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
91452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91454 2007-10-16  Bruno Haible  <bruno@clisp.org>
91456         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
91457         * lib/getgroups.c (getgroups): Likewise.
91458         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
91460 2007-10-16  Bruno Haible  <bruno@clisp.org>
91462         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
91463         * modules/malloc-posix (License): Likewise.
91464         * modules/realloc-posix (License): Likewise.
91465         * modules/calloc-posix (License): Likewise.
91466         * modules/intprops (License): Change from GPL to LGPL, with
91467         Paul Eggert's approval.
91469 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91471         Merge glibc changes into lib/glob.c.
91473         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
91474         2007-10-15 04:59:03 UTC.  Here are the changes:
91476         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
91478         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
91480         * lib/glob.c: Add some branch prediction throughout.
91482         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
91484         [BZ #5103]
91485         * lib/glob.c (glob): Recognize patterns starting \/.
91487         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
91489         [BZ #3996]
91490         * lib/glob.c (attribute_hidden): Define if not defined.
91491         (glob): Unescape dirname, filename or username when needed and not
91492         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
91493         is NULL.  Handle unescaped [ in pattern without closing ].
91494         Don't pass GLOB_CHECK down to recursive glob for directories.
91495         (__glob_pattern_type): New function.
91496         (__glob_pattern_p): Implement using __glob_pattern_type.
91497         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
91498         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
91499         Remove unreachable code.
91501         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
91503         * lib/glob.c (glob_in_dir): Add some comments and asserts to
91504         explain why there are no leaks.
91506         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
91508         [BZ #3253]
91509         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
91510         time, rather allocate increasingly bigger arrays of pointers, if
91511         possible with alloca, if too large with malloc.
91513 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91515         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
91516         Problem reported by H.Merijn Brand in
91517         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
91518         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
91519         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
91521 2007-10-15  Bruno Haible  <bruno@clisp.org>
91523         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
91524         with explicit rpl_ prefix.
91525         * lib/fopen.c (fopen): Likewise.
91526         * lib/freopen.c (freopen): Likewise.
91527         * lib/iconv.c (iconv): Likewise.
91528         * lib/iconv_close.c (iconv_close): Likewise.
91530 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91532         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
91534 2007-10-15  Bruno Haible  <bruno@clisp.org>
91536         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
91537         <stddef.h> instead of <stdlib.h> since we only need NULL.
91538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91540 2007-10-15  Bruno Haible  <bruno@clisp.org>
91542         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
91543         Replace paragraph talking about LIBOBJS.
91544         Reported by Colin Watson <cjwatson@debian.org>.
91546 2007-10-15  Bruno Haible  <bruno@clisp.org>
91548         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
91549         <stdlib.h> before using NULL.
91551 2007-10-15  Simon Josefsson  <simon@josefsson.org>
91553         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
91554         Reported by Albert Chin <china@thewrittenword.com>.
91556 2007-10-14  Bruno Haible  <bruno@clisp.org>
91558         * modules/iconv_open-utf-tests: New file.
91559         * tests/test-iconv-utf.c: New file.
91561         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
91562         * modules/iconv_open-utf: New file.
91563         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
91564         (iconv, iconv_close): New declarations.
91565         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
91566         be defined.
91567         (iconv_open): Add special handling of conversion between UTF-8 and
91568         UTF-{16,32}{BE,LE}.
91569         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
91570         * lib/iconv_close.c: New file.
91571         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
91572         gl_FUNC_ICONV_OPEN.
91573         (gl_FUNC_ICONV_OPEN): Use it.
91574         (gl_FUNC_ICONV_OPEN_UTF): New macro.
91575         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
91576         and REPLACE_ICONV_UTF.
91577         * modules/iconv_open (Depends-on): Add c-strcase.
91578         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
91579         ICONV_CONST.
91580         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
91582 2007-10-13  Albert Chin  <china@thewrittenword.com>
91583             Bruno Haible  <bruno@clisp.org>
91585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
91586         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
91588 2007-10-13  Bruno Haible  <bruno@clisp.org>
91590         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
91591         defined, use the ISO C99 inline semantics.
91592         * lib/argp.h (ARGP_EI): Likewise.
91594 2007-10-13  Bruno Haible  <bruno@clisp.org>
91596         Handle 'inline' change in gcc 4.3.0.
91597         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
91598         argp_fmtstream_write, argp_fmtstream_set_lmargin,
91599         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
91600         argp_fmtstream_point): Disable 'extern' declaration if the function
91601         definition is going to be provided inline.
91602         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
91603         semantics, not the ISO C99 inline semantics.
91604         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
91605         'extern' declaration if the function definition is going to be provided
91606         inline.
91607         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
91608         the GNU C inline semantics, not the ISO C99 inline semantics. With
91609         GCC 4.2, avoid a warning.
91611 2007-10-13  Bruno Haible  <bruno@clisp.org>
91613         * lib/freading.h (freading): Enable the use of __freading for
91614         glibc >= 2.7.
91615         * lib/freading.c (freading): Likewise.
91617 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91619         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
91620         "warning: C99 inline functions are not supported; using GNU89".
91622 2007-10-12  Bruno Haible  <bruno@clisp.org>
91624         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
91625         of 2.
91626         * tests/test-ceilf2.c: New file.
91627         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
91629         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
91630         * modules/ceilf-tests: Update.
91632 2007-10-12  Bruno Haible  <bruno@clisp.org>
91634         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
91635         of 2.
91636         * tests/test-floorf2.c: New file.
91637         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
91639         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
91640         * modules/floorf-tests: Update.
91642 2007-10-12  Bruno Haible  <bruno@clisp.org>
91644         * tests/test-trunc2.c: New file.
91645         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
91647         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
91648         * modules/trunc-tests: Update.
91650 2007-10-12  Bruno Haible  <bruno@clisp.org>
91652         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
91653         of 2.
91654         * tests/test-truncf2.c: New file.
91655         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
91657         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
91658         * modules/truncf-tests: Update.
91660 2007-10-11  Eric Blake  <ebb9@byu.net>
91662         Don't claim strerror is broken on Interix.
91663         * doc/functions/strerror.texi (strerror): Known broken systems are
91664         now Solaris 8, and not Interix.
91665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
91666         Interix on cross-compile.
91667         Reported by Martin Koeppe in
91668         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
91670 2007-10-11  Bruno Haible  <bruno@clisp.org>
91672         * modules/i-ring-tests: New file.
91673         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
91674         instead of assert.
91676 2007-10-11  Bruno Haible  <bruno@clisp.org>
91678         * modules/filenamecat-tests: New file.
91679         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
91680         * lib/filenamecat.c: Remove test code.
91682 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
91684         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
91686         * lib/strerror.c: Include <string.h> always, to test interface,
91687         and to remove the need for the dummy.
91688         Include intprops.h to compute width instead of doing it ourselves
91689         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
91690         (strerror): Define it to return NULL if there's no system strerror.
91691         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
91692         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
91693         ancient pre-strerror Unix systems well any more.  Saying "unknown
91694         system error" is enough.
91695         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
91696         simpler strerror.c implementation.
91697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
91698         Simplify the tests to reflect the simpler strerror implementation.
91699         * modules/strerror (Depends-on): Add intprops.
91701 2007-10-09  Eric Blake  <ebb9@byu.net>
91703         Silence test-fpending.
91704         * modules/fpending-tests (Files): Add wrapper script.
91705         * tests/test-fpending.sh: New file.
91707 2007-10-09  Bruno Haible  <bruno@clisp.org>
91709         * MODULES.html.sh (func_module): Don't create a hyperlink for
91710         function names like 'printf_frexp'.
91711         (Misc): Add crc, memxor.
91712         (Characteristics of floating types): New section.
91713         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
91714         isnanf-nolibm, signbit, trunc, truncf, truncl.
91715         (Enhancements for ISO C 99 functions): New subsection Input/output.
91716         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
91717         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
91718         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
91719         (Compatibility checks for POSIX:2001 functions): Add clock-time.
91720         (Enhancements for POSIX:2001 functions): Add chdir-long.
91721         (File system functions): Add areadlink, chdir-safer, read-file.
91722         Remove cycle-check.
91723         (File system as inode set): New section.
91724         (Date and time): Add gethrxtime.
91725         (Multithreading): Add openmp.
91726         (Internationalization functions): Add localename.
91727         (Unicode string functions): Add unistr/u*-mbsnlen.
91728         (Support for maintaining and releasing projects): Add git-version-gen.
91729         (Lone files): Remove directories.
91731 2007-10-08  Ben Pfaff  <blp@gnu.org>
91733         * lib/xmalloca.h: Fix typo in comment.
91735 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91737         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
91738         when avoiding problems with integer overflow.  Use a portable test
91739         instead.
91741 2007-10-08  Simon Josefsson  <simon@josefsson.org>
91743         * modules/dummy (License): Change to LGPLv2+.
91744         * modules/float (License): Likewise
91745         * modules/realloc (License): Likewise
91746         * modules/stdlib (License): Likewise
91748 2007-10-07  Bruno Haible  <bruno@clisp.org>
91750         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
91751         * floor.c (TWO_MANT_DIG): Likewise.
91752         * ceil.c (TWO_MANT_DIG): Likewise.
91753         Reported by Ben Pfaff.
91755 2007-10-07  Bruno Haible  <bruno@clisp.org>
91757         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
91758         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
91759         * lib/frexp.c (FUNC): Likewise.
91760         * lib/printf-frexp.h (printf_frexp): Likewise.
91761         * lib/printf-frexpl.h (printf_frexpl): Likewise.
91762         * lib/printf-frexp.c (FUNC): Likewise.
91763         Suggested by Jim Meyering.
91765 2007-10-07  Jim Meyering  <meyering@redhat.com>
91767         Make xnanosleep's integer overflow test more robust.
91768         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
91769         so that gcc-4.3.0 doesn't optimize away this test for overflow.
91771 2007-10-07  Bruno Haible  <bruno@clisp.org>
91773         * NEWS: Mention the license change.
91775         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
91776         abbreviations in the modules files.
91778         Change copyright notice from GPLv2+ to GPLv3+.
91779         * README: Change copyright notice.
91780         * MODULES.html.sh: Likewise.
91781         * build-aux/bootstrap.conf: Likewise.
91782         * build-aux/config.libpath: Likewise.
91783         * build-aux/csharpcomp.sh.in: Likewise.
91784         * build-aux/csharpexec.sh.in: Likewise.
91785         * build-aux/install-reloc: Likewise.
91786         * build-aux/javacomp.sh.in: Likewise.
91787         * build-aux/javaexec.sh.in: Likewise.
91788         * build-aux/ldd.sh.in: Likewise.
91789         * build-aux/reloc-ldflags: Likewise.
91790         * build-aux/relocatable.sh.in: Likewise.
91791         * build-aux/x-to-1.in: Likewise.
91792         * check-module: Likewise.
91793         * config/srclistvars.sh: Likewise.
91794         * gnulib-tool: Likewise.
91795         * lib/acl-internal.h: Likewise.
91796         * lib/acl.c: Likewise.
91797         * lib/acl.h: Likewise.
91798         * lib/acl_entries.c: Likewise.
91799         * lib/areadlink-with-size.c: Likewise.
91800         * lib/areadlink.c: Likewise.
91801         * lib/areadlink.h: Likewise.
91802         * lib/argmatch.c: Likewise.
91803         * lib/argmatch.h: Likewise.
91804         * lib/argp-ba.c: Likewise.
91805         * lib/argp-eexst.c: Likewise.
91806         * lib/argp-fmtstream.c: Likewise.
91807         * lib/argp-fmtstream.h: Likewise.
91808         * lib/argp-fs-xinl.c: Likewise.
91809         * lib/argp-help.c: Likewise.
91810         * lib/argp-namefrob.h: Likewise.
91811         * lib/argp-parse.c: Likewise.
91812         * lib/argp-pin.c: Likewise.
91813         * lib/argp-pv.c: Likewise.
91814         * lib/argp-pvh.c: Likewise.
91815         * lib/argp-xinl.c: Likewise.
91816         * lib/argp.h: Likewise.
91817         * lib/at-func.c: Likewise.
91818         * lib/atanl.c: Likewise.
91819         * lib/backupfile.c: Likewise.
91820         * lib/backupfile.h: Likewise.
91821         * lib/basename.c: Likewise.
91822         * lib/binary-io.h: Likewise.
91823         * lib/byteswap.in.h: Likewise.
91824         * lib/c-stack.c: Likewise.
91825         * lib/c-stack.h: Likewise.
91826         * lib/c-strcasestr.c: Likewise.
91827         * lib/c-strcasestr.h: Likewise.
91828         * lib/c-strstr.c: Likewise.
91829         * lib/c-strstr.h: Likewise.
91830         * lib/c-strtod.c: Likewise.
91831         * lib/calloc.c: Likewise.
91832         * lib/canon-host.c: Likewise.
91833         * lib/canon-host.h: Likewise.
91834         * lib/canonicalize-lgpl.c: Likewise.
91835         * lib/canonicalize.c: Likewise.
91836         * lib/canonicalize.h: Likewise.
91837         * lib/ceil.c: Likewise.
91838         * lib/ceilf.c: Likewise.
91839         * lib/ceill.c: Likewise.
91840         * lib/chdir-long.c: Likewise.
91841         * lib/chdir-long.h: Likewise.
91842         * lib/chdir-safer.c: Likewise.
91843         * lib/chdir-safer.h: Likewise.
91844         * lib/chown.c: Likewise.
91845         * lib/classpath.c: Likewise.
91846         * lib/classpath.h: Likewise.
91847         * lib/clean-temp.c: Likewise.
91848         * lib/clean-temp.h: Likewise.
91849         * lib/cloexec.c: Likewise.
91850         * lib/close-stream.c: Likewise.
91851         * lib/closein.c: Likewise.
91852         * lib/closein.h: Likewise.
91853         * lib/closeout.c: Likewise.
91854         * lib/closeout.h: Likewise.
91855         * lib/concat-filename.c: Likewise.
91856         * lib/copy-file.c: Likewise.
91857         * lib/copy-file.h: Likewise.
91858         * lib/count-one-bits.h: Likewise.
91859         * lib/crc.c: Likewise.
91860         * lib/crc.h: Likewise.
91861         * lib/creat-safer.c: Likewise.
91862         * lib/csharpcomp.c: Likewise.
91863         * lib/csharpcomp.h: Likewise.
91864         * lib/csharpexec.c: Likewise.
91865         * lib/csharpexec.h: Likewise.
91866         * lib/cycle-check.c: Likewise.
91867         * lib/cycle-check.h: Likewise.
91868         * lib/diacrit.c: Likewise.
91869         * lib/diacrit.h: Likewise.
91870         * lib/diffseq.h: Likewise.
91871         * lib/dirchownmod.c: Likewise.
91872         * lib/dirent.in.h: Likewise.
91873         * lib/dirfd.c: Likewise.
91874         * lib/dirfd.h: Likewise.
91875         * lib/dirname.c: Likewise.
91876         * lib/dirname.h: Likewise.
91877         * lib/dummy.c: Likewise.
91878         * lib/dup-safer.c: Likewise.
91879         * lib/dup2.c: Likewise.
91880         * lib/eealloc.h: Likewise.
91881         * lib/error.c: Likewise.
91882         * lib/error.h: Likewise.
91883         * lib/euidaccess.c: Likewise.
91884         * lib/exclude.c: Likewise.
91885         * lib/exclude.h: Likewise.
91886         * lib/execute.c: Likewise.
91887         * lib/execute.h: Likewise.
91888         * lib/exitfail.c: Likewise.
91889         * lib/exitfail.h: Likewise.
91890         * lib/expl.c: Likewise.
91891         * lib/fatal-signal.c: Likewise.
91892         * lib/fatal-signal.h: Likewise.
91893         * lib/fbufmode.c: Likewise.
91894         * lib/fbufmode.h: Likewise.
91895         * lib/fchdir.c: Likewise.
91896         * lib/fchmodat.c: Likewise.
91897         * lib/fchownat.c: Likewise.
91898         * lib/fcntl--.h: Likewise.
91899         * lib/fcntl-safer.h: Likewise.
91900         * lib/fcntl.in.h: Likewise.
91901         * lib/fd-safer.c: Likewise.
91902         * lib/fflush.c: Likewise.
91903         * lib/file-has-acl.c: Likewise.
91904         * lib/file-set.c: Likewise.
91905         * lib/file-type.c: Likewise.
91906         * lib/file-type.h: Likewise.
91907         * lib/fileblocks.c: Likewise.
91908         * lib/filemode.c: Likewise.
91909         * lib/filemode.h: Likewise.
91910         * lib/filename.h: Likewise.
91911         * lib/filenamecat.c: Likewise.
91912         * lib/filenamecat.h: Likewise.
91913         * lib/findprog.c: Likewise.
91914         * lib/findprog.h: Likewise.
91915         * lib/float.in.h: Likewise.
91916         * lib/floor.c: Likewise.
91917         * lib/floorf.c: Likewise.
91918         * lib/floorl.c: Likewise.
91919         * lib/fopen-safer.c: Likewise.
91920         * lib/fopen.c: Likewise.
91921         * lib/fpending.c: Likewise.
91922         * lib/fpending.h: Likewise.
91923         * lib/fprintf.c: Likewise.
91924         * lib/fprintftime.h: Likewise.
91925         * lib/fpucw.h: Likewise.
91926         * lib/fpurge.c: Likewise.
91927         * lib/fpurge.h: Likewise.
91928         * lib/freadable.c: Likewise.
91929         * lib/freadable.h: Likewise.
91930         * lib/freadahead.c: Likewise.
91931         * lib/freadahead.h: Likewise.
91932         * lib/freading.c: Likewise.
91933         * lib/freading.h: Likewise.
91934         * lib/free.c: Likewise.
91935         * lib/freopen.c: Likewise.
91936         * lib/frexp.c: Likewise.
91937         * lib/frexpl.c: Likewise.
91938         * lib/fseek.c: Likewise.
91939         * lib/fseterr.c: Likewise.
91940         * lib/fseterr.h: Likewise.
91941         * lib/fstatat.c: Likewise.
91942         * lib/fstrcmp.c: Likewise.
91943         * lib/fstrcmp.h: Likewise.
91944         * lib/fsusage.c: Likewise.
91945         * lib/fsusage.h: Likewise.
91946         * lib/ftell.c: Likewise.
91947         * lib/ftello.c: Likewise.
91948         * lib/fts-cycle.c: Likewise.
91949         * lib/fts.c: Likewise.
91950         * lib/fts_.h: Likewise.
91951         * lib/full-read.c: Likewise.
91952         * lib/full-read.h: Likewise.
91953         * lib/full-write.c: Likewise.
91954         * lib/full-write.h: Likewise.
91955         * lib/fwritable.c: Likewise.
91956         * lib/fwritable.h: Likewise.
91957         * lib/fwriteerror.c: Likewise.
91958         * lib/fwriteerror.h: Likewise.
91959         * lib/fwriting.c: Likewise.
91960         * lib/fwriting.h: Likewise.
91961         * lib/gcd.c: Likewise.
91962         * lib/gcd.h: Likewise.
91963         * lib/getcwd.c: Likewise.
91964         * lib/getdate.h: Likewise.
91965         * lib/getdate.y: Likewise.
91966         * lib/getdomainname.c: Likewise.
91967         * lib/getdomainname.h: Likewise.
91968         * lib/getgroups.c: Likewise.
91969         * lib/gethostname.c: Likewise.
91970         * lib/gethrxtime.c: Likewise.
91971         * lib/gethrxtime.h: Likewise.
91972         * lib/getloadavg.c: Likewise.
91973         * lib/getndelim2.c: Likewise.
91974         * lib/getndelim2.h: Likewise.
91975         * lib/getnline.c: Likewise.
91976         * lib/getnline.h: Likewise.
91977         * lib/getopt.c: Likewise.
91978         * lib/getopt.in.h: Likewise.
91979         * lib/getopt1.c: Likewise.
91980         * lib/getopt_int.h: Likewise.
91981         * lib/getpagesize.h: Likewise.
91982         * lib/getsubopt.c: Likewise.
91983         * lib/gettime.c: Likewise.
91984         * lib/getugroups.c: Likewise.
91985         * lib/getugroups.h: Likewise.
91986         * lib/getusershell.c: Likewise.
91987         * lib/gl_anyavltree_list1.h: Likewise.
91988         * lib/gl_anyavltree_list2.h: Likewise.
91989         * lib/gl_anyhash_list1.h: Likewise.
91990         * lib/gl_anyhash_list2.h: Likewise.
91991         * lib/gl_anylinked_list1.h: Likewise.
91992         * lib/gl_anylinked_list2.h: Likewise.
91993         * lib/gl_anyrbtree_list1.h: Likewise.
91994         * lib/gl_anyrbtree_list2.h: Likewise.
91995         * lib/gl_anytree_list1.h: Likewise.
91996         * lib/gl_anytree_list2.h: Likewise.
91997         * lib/gl_anytree_oset.h: Likewise.
91998         * lib/gl_anytreehash_list1.h: Likewise.
91999         * lib/gl_anytreehash_list2.h: Likewise.
92000         * lib/gl_array_list.c: Likewise.
92001         * lib/gl_array_list.h: Likewise.
92002         * lib/gl_array_oset.c: Likewise.
92003         * lib/gl_array_oset.h: Likewise.
92004         * lib/gl_avltree_list.c: Likewise.
92005         * lib/gl_avltree_list.h: Likewise.
92006         * lib/gl_avltree_oset.c: Likewise.
92007         * lib/gl_avltree_oset.h: Likewise.
92008         * lib/gl_avltreehash_list.c: Likewise.
92009         * lib/gl_avltreehash_list.h: Likewise.
92010         * lib/gl_carray_list.c: Likewise.
92011         * lib/gl_carray_list.h: Likewise.
92012         * lib/gl_linked_list.c: Likewise.
92013         * lib/gl_linked_list.h: Likewise.
92014         * lib/gl_linkedhash_list.c: Likewise.
92015         * lib/gl_linkedhash_list.h: Likewise.
92016         * lib/gl_list.c: Likewise.
92017         * lib/gl_list.h: Likewise.
92018         * lib/gl_oset.c: Likewise.
92019         * lib/gl_oset.h: Likewise.
92020         * lib/gl_rbtree_list.c: Likewise.
92021         * lib/gl_rbtree_list.h: Likewise.
92022         * lib/gl_rbtree_oset.c: Likewise.
92023         * lib/gl_rbtree_oset.h: Likewise.
92024         * lib/gl_rbtreehash_list.c: Likewise.
92025         * lib/gl_rbtreehash_list.h: Likewise.
92026         * lib/gl_sublist.c: Likewise.
92027         * lib/gl_sublist.h: Likewise.
92028         * lib/group-member.c: Likewise.
92029         * lib/group-member.h: Likewise.
92030         * lib/hard-locale.c: Likewise.
92031         * lib/hard-locale.h: Likewise.
92032         * lib/hash-pjw.c: Likewise.
92033         * lib/hash-pjw.h: Likewise.
92034         * lib/hash-triple.c: Likewise.
92035         * lib/hash.c: Likewise.
92036         * lib/hash.h: Likewise.
92037         * lib/human.c: Likewise.
92038         * lib/human.h: Likewise.
92039         * lib/i-ring.c: Likewise.
92040         * lib/i-ring.h: Likewise.
92041         * lib/idcache.c: Likewise.
92042         * lib/imaxabs.c: Likewise.
92043         * lib/imaxdiv.c: Likewise.
92044         * lib/inet_pton.c: Likewise.
92045         * lib/inet_pton.h: Likewise.
92046         * lib/intprops.h: Likewise.
92047         * lib/inttostr.c: Likewise.
92048         * lib/inttostr.h: Likewise.
92049         * lib/inttypes.in.h: Likewise.
92050         * lib/isapipe.c: Likewise.
92051         * lib/isdir.c: Likewise.
92052         * lib/isnan.c: Likewise.
92053         * lib/isnan.h: Likewise.
92054         * lib/isnanf.c: Likewise.
92055         * lib/isnanf.h: Likewise.
92056         * lib/isnanl-nolibm.h: Likewise.
92057         * lib/isnanl.c: Likewise.
92058         * lib/isnanl.h: Likewise.
92059         * lib/javacomp.c: Likewise.
92060         * lib/javacomp.h: Likewise.
92061         * lib/javaexec.c: Likewise.
92062         * lib/javaexec.h: Likewise.
92063         * lib/javaversion.c: Likewise.
92064         * lib/javaversion.h: Likewise.
92065         * lib/javaversion.java: Likewise.
92066         * lib/lbrkprop.h: Likewise.
92067         * lib/lchmod.h: Likewise.
92068         * lib/lchown.c: Likewise.
92069         * lib/ldexpl.c: Likewise.
92070         * lib/linebreak.c: Likewise.
92071         * lib/linebreak.h: Likewise.
92072         * lib/linebuffer.c: Likewise.
92073         * lib/linebuffer.h: Likewise.
92074         * lib/locale.in.h: Likewise.
92075         * lib/logl.c: Likewise.
92076         * lib/long-options.c: Likewise.
92077         * lib/long-options.h: Likewise.
92078         * lib/lstat.c: Likewise.
92079         * lib/lstat.h: Likewise.
92080         * lib/math.in.h: Likewise.
92081         * lib/mbchar.c: Likewise.
92082         * lib/mbchar.h: Likewise.
92083         * lib/mbfile.h: Likewise.
92084         * lib/mbiter.h: Likewise.
92085         * lib/mbscasecmp.c: Likewise.
92086         * lib/mbscasestr.c: Likewise.
92087         * lib/mbschr.c: Likewise.
92088         * lib/mbscspn.c: Likewise.
92089         * lib/mbslen.c: Likewise.
92090         * lib/mbsncasecmp.c: Likewise.
92091         * lib/mbsnlen.c: Likewise.
92092         * lib/mbspbrk.c: Likewise.
92093         * lib/mbspcasecmp.c: Likewise.
92094         * lib/mbsrchr.c: Likewise.
92095         * lib/mbssep.c: Likewise.
92096         * lib/mbsspn.c: Likewise.
92097         * lib/mbsstr.c: Likewise.
92098         * lib/mbstok_r.c: Likewise.
92099         * lib/mbswidth.c: Likewise.
92100         * lib/mbswidth.h: Likewise.
92101         * lib/mbuiter.h: Likewise.
92102         * lib/memcasecmp.c: Likewise.
92103         * lib/memcasecmp.h: Likewise.
92104         * lib/memchr.c: Likewise.
92105         * lib/memcmp.c: Likewise.
92106         * lib/memcoll.c: Likewise.
92107         * lib/memcoll.h: Likewise.
92108         * lib/memcpy.c: Likewise.
92109         * lib/memrchr.c: Likewise.
92110         * lib/mkancesdirs.c: Likewise.
92111         * lib/mkdir-p.c: Likewise.
92112         * lib/mkdir-p.h: Likewise.
92113         * lib/mkdir.c: Likewise.
92114         * lib/mkdirat.c: Likewise.
92115         * lib/mkdtemp.c: Likewise.
92116         * lib/mkstemp-safer.c: Likewise.
92117         * lib/mkstemp.c: Likewise.
92118         * lib/modechange.c: Likewise.
92119         * lib/modechange.h: Likewise.
92120         * lib/mountlist.c: Likewise.
92121         * lib/mountlist.h: Likewise.
92122         * lib/mpsort.c: Likewise.
92123         * lib/nanosleep.c: Likewise.
92124         * lib/obstack.c: Likewise.
92125         * lib/obstack.h: Likewise.
92126         * lib/open-safer.c: Likewise.
92127         * lib/open.c: Likewise.
92128         * lib/openat-die.c: Likewise.
92129         * lib/openat-priv.h: Likewise.
92130         * lib/openat-proc.c: Likewise.
92131         * lib/openat.c: Likewise.
92132         * lib/openat.h: Likewise.
92133         * lib/pagealign_alloc.c: Likewise.
92134         * lib/pagealign_alloc.h: Likewise.
92135         * lib/physmem.c: Likewise.
92136         * lib/physmem.h: Likewise.
92137         * lib/pipe-safer.c: Likewise.
92138         * lib/pipe.c: Likewise.
92139         * lib/pipe.h: Likewise.
92140         * lib/posixtm.c: Likewise.
92141         * lib/posixtm.h: Likewise.
92142         * lib/posixver.c: Likewise.
92143         * lib/printf-frexp.c: Likewise.
92144         * lib/printf-frexp.h: Likewise.
92145         * lib/printf-frexpl.c: Likewise.
92146         * lib/printf-frexpl.h: Likewise.
92147         * lib/printf.c: Likewise.
92148         * lib/progname.c: Likewise.
92149         * lib/progname.h: Likewise.
92150         * lib/progreloc.c: Likewise.
92151         * lib/putenv.c: Likewise.
92152         * lib/quote.c: Likewise.
92153         * lib/quote.h: Likewise.
92154         * lib/quotearg.c: Likewise.
92155         * lib/quotearg.h: Likewise.
92156         * lib/raise.c: Likewise.
92157         * lib/readline.c: Likewise.
92158         * lib/readline.h: Likewise.
92159         * lib/readlink.c: Likewise.
92160         * lib/readtokens.c: Likewise.
92161         * lib/readtokens.h: Likewise.
92162         * lib/readtokens0.c: Likewise.
92163         * lib/readtokens0.h: Likewise.
92164         * lib/readutmp.c: Likewise.
92165         * lib/readutmp.h: Likewise.
92166         * lib/realloc.c: Likewise.
92167         * lib/relocwrapper.c: Likewise.
92168         * lib/rename-dest-slash.c: Likewise.
92169         * lib/rename.c: Likewise.
92170         * lib/rmdir.c: Likewise.
92171         * lib/rpmatch.c: Likewise.
92172         * lib/safe-read.c: Likewise.
92173         * lib/safe-read.h: Likewise.
92174         * lib/safe-write.c: Likewise.
92175         * lib/safe-write.h: Likewise.
92176         * lib/same-inode.h: Likewise.
92177         * lib/same.c: Likewise.
92178         * lib/same.h: Likewise.
92179         * lib/save-cwd.c: Likewise.
92180         * lib/save-cwd.h: Likewise.
92181         * lib/savedir.c: Likewise.
92182         * lib/savedir.h: Likewise.
92183         * lib/savewd.c: Likewise.
92184         * lib/savewd.h: Likewise.
92185         * lib/search.in.h: Likewise.
92186         * lib/setenv.c: Likewise.
92187         * lib/setenv.h: Likewise.
92188         * lib/settime.c: Likewise.
92189         * lib/sh-quote.c: Likewise.
92190         * lib/sh-quote.h: Likewise.
92191         * lib/sig2str.c: Likewise.
92192         * lib/sig2str.h: Likewise.
92193         * lib/signal.in.h: Likewise.
92194         * lib/signbitd.c: Likewise.
92195         * lib/signbitf.c: Likewise.
92196         * lib/signbitl.c: Likewise.
92197         * lib/sigprocmask.c: Likewise.
92198         * lib/sincosl.c: Likewise.
92199         * lib/sleep.c: Likewise.
92200         * lib/sprintf.c: Likewise.
92201         * lib/sqrtl.c: Likewise.
92202         * lib/stat-time.h: Likewise.
92203         * lib/stdio--.h: Likewise.
92204         * lib/stdio-safer.h: Likewise.
92205         * lib/stdlib--.h: Likewise.
92206         * lib/stdlib-safer.h: Likewise.
92207         * lib/stdlib.in.h: Likewise.
92208         * lib/stpcpy.c: Likewise.
92209         * lib/stpncpy.c: Likewise.
92210         * lib/strchrnul.c: Likewise.
92211         * lib/strcspn.c: Likewise.
92212         * lib/strerror.c: Likewise.
92213         * lib/strftime.c: Likewise.
92214         * lib/strftime.h: Likewise.
92215         * lib/striconveh.c: Likewise.
92216         * lib/striconveh.h: Likewise.
92217         * lib/striconveha.c: Likewise.
92218         * lib/striconveha.h: Likewise.
92219         * lib/stripslash.c: Likewise.
92220         * lib/strnlen1.c: Likewise.
92221         * lib/strnlen1.h: Likewise.
92222         * lib/strtod.c: Likewise.
92223         * lib/strtoimax.c: Likewise.
92224         * lib/strtok_r.c: Likewise.
92225         * lib/strtol.c: Likewise.
92226         * lib/strtoll.c: Likewise.
92227         * lib/strtoul.c: Likewise.
92228         * lib/strtoull.c: Likewise.
92229         * lib/sysexits.in.h: Likewise.
92230         * lib/tempname.c: Likewise.
92231         * lib/tempname.h: Likewise.
92232         * lib/timespec.h: Likewise.
92233         * lib/tls.c: Likewise.
92234         * lib/tls.h: Likewise.
92235         * lib/tmpdir.c: Likewise.
92236         * lib/tmpdir.h: Likewise.
92237         * lib/tmpfile-safer.c: Likewise.
92238         * lib/tmpfile.c: Likewise.
92239         * lib/trigl.c: Likewise.
92240         * lib/trigl.h: Likewise.
92241         * lib/trim.c: Likewise.
92242         * lib/trim.h: Likewise.
92243         * lib/trunc.c: Likewise.
92244         * lib/truncf.c: Likewise.
92245         * lib/truncl.c: Likewise.
92246         * lib/tsearch.c: Likewise.
92247         * lib/unicodeio.c: Likewise.
92248         * lib/unicodeio.h: Likewise.
92249         * lib/unistd--.h: Likewise.
92250         * lib/unistd-safer.h: Likewise.
92251         * lib/unistdio/ulc-fprintf.c: Likewise.
92252         * lib/unistdio/ulc-vfprintf.c: Likewise.
92253         * lib/unlinkdir.c: Likewise.
92254         * lib/unlinkdir.h: Likewise.
92255         * lib/unlocked-io.h: Likewise.
92256         * lib/unsetenv.c: Likewise.
92257         * lib/userspec.c: Likewise.
92258         * lib/utime.c: Likewise.
92259         * lib/utimecmp.c: Likewise.
92260         * lib/utimecmp.h: Likewise.
92261         * lib/utimens.c: Likewise.
92262         * lib/verify.h: Likewise.
92263         * lib/verror.c: Likewise.
92264         * lib/verror.h: Likewise.
92265         * lib/version-etc-fsf.c: Likewise.
92266         * lib/version-etc.c: Likewise.
92267         * lib/version-etc.h: Likewise.
92268         * lib/vfprintf.c: Likewise.
92269         * lib/vprintf.c: Likewise.
92270         * lib/vsprintf.c: Likewise.
92271         * lib/w32spawn.h: Likewise.
92272         * lib/wait-process.c: Likewise.
92273         * lib/wait-process.h: Likewise.
92274         * lib/wcwidth.c: Likewise.
92275         * lib/write-any-file.c: Likewise.
92276         * lib/xalloc-die.c: Likewise.
92277         * lib/xalloc.h: Likewise.
92278         * lib/xasprintf.c: Likewise.
92279         * lib/xgetcwd.c: Likewise.
92280         * lib/xgetcwd.h: Likewise.
92281         * lib/xgetdomainname.c: Likewise.
92282         * lib/xgetdomainname.h: Likewise.
92283         * lib/xgethostname.c: Likewise.
92284         * lib/xmalloc.c: Likewise.
92285         * lib/xmalloca.c: Likewise.
92286         * lib/xmalloca.h: Likewise.
92287         * lib/xmemcoll.c: Likewise.
92288         * lib/xnanosleep.c: Likewise.
92289         * lib/xreadlink.c: Likewise.
92290         * lib/xreadlink.h: Likewise.
92291         * lib/xsetenv.c: Likewise.
92292         * lib/xsetenv.h: Likewise.
92293         * lib/xstriconv.c: Likewise.
92294         * lib/xstriconv.h: Likewise.
92295         * lib/xstrndup.c: Likewise.
92296         * lib/xstrndup.h: Likewise.
92297         * lib/xstrtod.c: Likewise.
92298         * lib/xstrtod.h: Likewise.
92299         * lib/xstrtol-error.c: Likewise.
92300         * lib/xstrtol.c: Likewise.
92301         * lib/xstrtol.h: Likewise.
92302         * lib/xtime.h: Likewise.
92303         * lib/xvasprintf.c: Likewise.
92304         * lib/xvasprintf.h: Likewise.
92305         * lib/yesno.c: Likewise.
92306         * lib/yesno.h: Likewise.
92307         * posix-modules: Likewise.
92308         * tests/test-alloca-opt.c: Likewise.
92309         * tests/test-arcfour.c: Likewise.
92310         * tests/test-arctwo.c: Likewise.
92311         * tests/test-argmatch.c: Likewise.
92312         * tests/test-argp-2.sh: Likewise.
92313         * tests/test-argp.c: Likewise.
92314         * tests/test-arpa_inet.c: Likewise.
92315         * tests/test-array_list.c: Likewise.
92316         * tests/test-array_oset.c: Likewise.
92317         * tests/test-atexit.c: Likewise.
92318         * tests/test-avltree_list.c: Likewise.
92319         * tests/test-avltree_oset.c: Likewise.
92320         * tests/test-avltreehash_list.c: Likewise.
92321         * tests/test-base64.c: Likewise.
92322         * tests/test-binary-io.c: Likewise.
92323         * tests/test-byteswap.c: Likewise.
92324         * tests/test-c-ctype.c: Likewise.
92325         * tests/test-c-strcasecmp.c: Likewise.
92326         * tests/test-c-strcasestr.c: Likewise.
92327         * tests/test-c-strncasecmp.c: Likewise.
92328         * tests/test-c-strstr.c: Likewise.
92329         * tests/test-canonicalize-lgpl.c: Likewise.
92330         * tests/test-canonicalize.c: Likewise.
92331         * tests/test-carray_list.c: Likewise.
92332         * tests/test-ceilf.c: Likewise.
92333         * tests/test-ceill.c: Likewise.
92334         * tests/test-count-one-bits.c: Likewise.
92335         * tests/test-crc.c: Likewise.
92336         * tests/test-dirname.c: Likewise.
92337         * tests/test-fbufmode.c: Likewise.
92338         * tests/test-fcntl.c: Likewise.
92339         * tests/test-fflush.c: Likewise.
92340         * tests/test-floorf.c: Likewise.
92341         * tests/test-floorl.c: Likewise.
92342         * tests/test-fopen.c: Likewise.
92343         * tests/test-fprintf-posix.c: Likewise.
92344         * tests/test-fprintf-posix.h: Likewise.
92345         * tests/test-fpurge.c: Likewise.
92346         * tests/test-freadable.c: Likewise.
92347         * tests/test-freadahead.c: Likewise.
92348         * tests/test-freading.c: Likewise.
92349         * tests/test-freopen.c: Likewise.
92350         * tests/test-frexp.c: Likewise.
92351         * tests/test-frexpl.c: Likewise.
92352         * tests/test-fseek.c: Likewise.
92353         * tests/test-fseeko.c: Likewise.
92354         * tests/test-fseterr.c: Likewise.
92355         * tests/test-fstrcmp.c: Likewise.
92356         * tests/test-ftell.c: Likewise.
92357         * tests/test-ftello.c: Likewise.
92358         * tests/test-fwritable.c: Likewise.
92359         * tests/test-fwriting.c: Likewise.
92360         * tests/test-getaddrinfo.c: Likewise.
92361         * tests/test-getpass.c: Likewise.
92362         * tests/test-gettimeofday.c: Likewise.
92363         * tests/test-hmac-md5.c: Likewise.
92364         * tests/test-hmac-sha1.c: Likewise.
92365         * tests/test-iconv.c: Likewise.
92366         * tests/test-iconvme.c: Likewise.
92367         * tests/test-inttypes.c: Likewise.
92368         * tests/test-isnan.c: Likewise.
92369         * tests/test-isnanf.c: Likewise.
92370         * tests/test-isnanl-nolibm.c: Likewise.
92371         * tests/test-isnanl.c: Likewise.
92372         * tests/test-isnanl.h: Likewise.
92373         * tests/test-ldexpl.c: Likewise.
92374         * tests/test-linked_list.c: Likewise.
92375         * tests/test-linkedhash_list.c: Likewise.
92376         * tests/test-locale.c: Likewise.
92377         * tests/test-localename.c: Likewise.
92378         * tests/test-lock.c: Likewise.
92379         * tests/test-lseek.c: Likewise.
92380         * tests/test-malloca.c: Likewise.
92381         * tests/test-math.c: Likewise.
92382         * tests/test-mbscasecmp.c: Likewise.
92383         * tests/test-mbscasestr1.c: Likewise.
92384         * tests/test-mbscasestr2.c: Likewise.
92385         * tests/test-mbscasestr3.c: Likewise.
92386         * tests/test-mbscasestr4.c: Likewise.
92387         * tests/test-mbschr.c: Likewise.
92388         * tests/test-mbscspn.c: Likewise.
92389         * tests/test-mbsncasecmp.c: Likewise.
92390         * tests/test-mbspbrk.c: Likewise.
92391         * tests/test-mbspcasecmp.c: Likewise.
92392         * tests/test-mbsrchr.c: Likewise.
92393         * tests/test-mbsspn.c: Likewise.
92394         * tests/test-mbsstr1.c: Likewise.
92395         * tests/test-mbsstr2.c: Likewise.
92396         * tests/test-mbsstr3.c: Likewise.
92397         * tests/test-md5.c: Likewise.
92398         * tests/test-memmem.c: Likewise.
92399         * tests/test-netinet_in.c: Likewise.
92400         * tests/test-open.c: Likewise.
92401         * tests/test-printf-frexp.c: Likewise.
92402         * tests/test-printf-frexpl.c: Likewise.
92403         * tests/test-printf-posix.c: Likewise.
92404         * tests/test-printf-posix.h: Likewise.
92405         * tests/test-rbtree_list.c: Likewise.
92406         * tests/test-rbtree_oset.c: Likewise.
92407         * tests/test-rbtreehash_list.c: Likewise.
92408         * tests/test-read-file.c: Likewise.
92409         * tests/test-rijndael.c: Likewise.
92410         * tests/test-search.c: Likewise.
92411         * tests/test-signbit.c: Likewise.
92412         * tests/test-sleep.c: Likewise.
92413         * tests/test-snprintf-posix.c: Likewise.
92414         * tests/test-snprintf-posix.h: Likewise.
92415         * tests/test-snprintf.c: Likewise.
92416         * tests/test-sprintf-posix.c: Likewise.
92417         * tests/test-sprintf-posix.h: Likewise.
92418         * tests/test-stat-time.c: Likewise.
92419         * tests/test-stdbool.c: Likewise.
92420         * tests/test-stdint.c: Likewise.
92421         * tests/test-stdio.c: Likewise.
92422         * tests/test-stdlib.c: Likewise.
92423         * tests/test-stpncpy.c: Likewise.
92424         * tests/test-strcasestr.c: Likewise.
92425         * tests/test-striconv.c: Likewise.
92426         * tests/test-striconveh.c: Likewise.
92427         * tests/test-striconveha.c: Likewise.
92428         * tests/test-string.c: Likewise.
92429         * tests/test-sys_select.c: Likewise.
92430         * tests/test-sys_socket.c: Likewise.
92431         * tests/test-sys_stat.c: Likewise.
92432         * tests/test-sys_time.c: Likewise.
92433         * tests/test-sysexits.c: Likewise.
92434         * tests/test-time.c: Likewise.
92435         * tests/test-tls.c: Likewise.
92436         * tests/test-trunc.c: Likewise.
92437         * tests/test-truncf.c: Likewise.
92438         * tests/test-truncl.c: Likewise.
92439         * tests/test-unistd.c: Likewise.
92440         * tests/test-vasnprintf-posix.c: Likewise.
92441         * tests/test-vasnprintf-posix2.c: Likewise.
92442         * tests/test-vasnprintf.c: Likewise.
92443         * tests/test-vasprintf-posix.c: Likewise.
92444         * tests/test-vasprintf.c: Likewise.
92445         * tests/test-verify.c: Likewise.
92446         * tests/test-vfprintf-posix.c: Likewise.
92447         * tests/test-vprintf-posix.c: Likewise.
92448         * tests/test-vsnprintf-posix.c: Likewise.
92449         * tests/test-vsnprintf.c: Likewise.
92450         * tests/test-vsprintf-posix.c: Likewise.
92451         * tests/test-wchar.c: Likewise.
92452         * tests/test-wctype.c: Likewise.
92453         * tests/test-wcwidth.c: Likewise.
92454         * tests/test-xstrtol.c: Likewise.
92455         * tests/test-xvasprintf.c: Likewise.
92456         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
92457         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
92458         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
92459         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
92460         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
92461         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
92462         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
92463         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
92464         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
92465         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
92466         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
92467         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
92468         * tests/uniname/test-uninames.c: Likewise.
92469         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
92470         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
92471         * tests/unistdio/test-u16-printf1.h: Likewise.
92472         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
92473         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
92474         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
92475         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
92476         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
92477         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
92478         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
92479         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
92480         * tests/unistdio/test-u32-printf1.h: Likewise.
92481         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
92482         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
92483         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
92484         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
92485         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
92486         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
92487         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
92488         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
92489         * tests/unistdio/test-u8-printf1.h: Likewise.
92490         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
92491         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
92492         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
92493         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
92494         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
92495         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
92496         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
92497         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
92498         * tests/unistdio/test-ulc-printf1.h: Likewise.
92499         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
92500         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
92501         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
92502         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
92503         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
92504         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
92505         * tests/uniwidth/test-u16-strwidth.c: Likewise.
92506         * tests/uniwidth/test-u16-width.c: Likewise.
92507         * tests/uniwidth/test-u32-strwidth.c: Likewise.
92508         * tests/uniwidth/test-u32-width.c: Likewise.
92509         * tests/uniwidth/test-u8-strwidth.c: Likewise.
92510         * tests/uniwidth/test-u8-width.c: Likewise.
92511         * tests/uniwidth/test-uc_width.c: Likewise.
92512         * config/srclist-update: Likewise.
92513         (fixlicense): Update to GPLv3+.
92515         Change copyright notice from LGPLv2.1+ to LGPLv3+.
92516         * tests/test-tsearch.c: Change copyright notice.
92518         Change copyright notice from LGPLv2.0+ to LGPLv3+.
92519         * lib/c-strcaseeq.h: Change copyright notice.
92520         * lib/streq.h: Likewise.
92521         * lib/uniconv.h: Likewise.
92522         * lib/uniconv/u-conv-from-enc.h: Likewise.
92523         * lib/uniconv/u-conv-to-enc.h: Likewise.
92524         * lib/uniconv/u-strconv-from-enc.h: Likewise.
92525         * lib/uniconv/u-strconv-to-enc.h: Likewise.
92526         * lib/uniconv/u16-conv-from-enc.c: Likewise.
92527         * lib/uniconv/u16-conv-to-enc.c: Likewise.
92528         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
92529         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
92530         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
92531         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
92532         * lib/uniconv/u32-conv-from-enc.c: Likewise.
92533         * lib/uniconv/u32-conv-to-enc.c: Likewise.
92534         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
92535         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
92536         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
92537         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
92538         * lib/uniconv/u8-conv-from-enc.c: Likewise.
92539         * lib/uniconv/u8-conv-to-enc.c: Likewise.
92540         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
92541         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
92542         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
92543         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
92544         * lib/uniname.h: Likewise.
92545         * lib/uniname/uniname.c: Likewise.
92546         * lib/unistdio.h: Likewise.
92547         * lib/unistdio/u-asnprintf.h: Likewise.
92548         * lib/unistdio/u-asprintf.h: Likewise.
92549         * lib/unistdio/u-printf-args.c: Likewise.
92550         * lib/unistdio/u-printf-args.h: Likewise.
92551         * lib/unistdio/u-printf-parse.h: Likewise.
92552         * lib/unistdio/u-snprintf.h: Likewise.
92553         * lib/unistdio/u-sprintf.h: Likewise.
92554         * lib/unistdio/u-vasprintf.h: Likewise.
92555         * lib/unistdio/u-vsnprintf.h: Likewise.
92556         * lib/unistdio/u-vsprintf.h: Likewise.
92557         * lib/unistdio/u16-asnprintf.c: Likewise.
92558         * lib/unistdio/u16-asprintf.c: Likewise.
92559         * lib/unistdio/u16-printf-parse.c: Likewise.
92560         * lib/unistdio/u16-snprintf.c: Likewise.
92561         * lib/unistdio/u16-sprintf.c: Likewise.
92562         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
92563         * lib/unistdio/u16-u16-asprintf.c: Likewise.
92564         * lib/unistdio/u16-u16-snprintf.c: Likewise.
92565         * lib/unistdio/u16-u16-sprintf.c: Likewise.
92566         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
92567         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
92568         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
92569         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
92570         * lib/unistdio/u16-vasnprintf.c: Likewise.
92571         * lib/unistdio/u16-vasprintf.c: Likewise.
92572         * lib/unistdio/u16-vsnprintf.c: Likewise.
92573         * lib/unistdio/u16-vsprintf.c: Likewise.
92574         * lib/unistdio/u32-asnprintf.c: Likewise.
92575         * lib/unistdio/u32-asprintf.c: Likewise.
92576         * lib/unistdio/u32-printf-parse.c: Likewise.
92577         * lib/unistdio/u32-snprintf.c: Likewise.
92578         * lib/unistdio/u32-sprintf.c: Likewise.
92579         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
92580         * lib/unistdio/u32-u32-asprintf.c: Likewise.
92581         * lib/unistdio/u32-u32-snprintf.c: Likewise.
92582         * lib/unistdio/u32-u32-sprintf.c: Likewise.
92583         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
92584         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
92585         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
92586         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
92587         * lib/unistdio/u32-vasnprintf.c: Likewise.
92588         * lib/unistdio/u32-vasprintf.c: Likewise.
92589         * lib/unistdio/u32-vsnprintf.c: Likewise.
92590         * lib/unistdio/u32-vsprintf.c: Likewise.
92591         * lib/unistdio/u8-asnprintf.c: Likewise.
92592         * lib/unistdio/u8-asprintf.c: Likewise.
92593         * lib/unistdio/u8-printf-parse.c: Likewise.
92594         * lib/unistdio/u8-snprintf.c: Likewise.
92595         * lib/unistdio/u8-sprintf.c: Likewise.
92596         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
92597         * lib/unistdio/u8-u8-asprintf.c: Likewise.
92598         * lib/unistdio/u8-u8-snprintf.c: Likewise.
92599         * lib/unistdio/u8-u8-sprintf.c: Likewise.
92600         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
92601         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
92602         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
92603         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
92604         * lib/unistdio/u8-vasnprintf.c: Likewise.
92605         * lib/unistdio/u8-vasprintf.c: Likewise.
92606         * lib/unistdio/u8-vsnprintf.c: Likewise.
92607         * lib/unistdio/u8-vsprintf.c: Likewise.
92608         * lib/unistdio/ulc-asnprintf.c: Likewise.
92609         * lib/unistdio/ulc-asprintf.c: Likewise.
92610         * lib/unistdio/ulc-printf-parse.c: Likewise.
92611         * lib/unistdio/ulc-snprintf.c: Likewise.
92612         * lib/unistdio/ulc-sprintf.c: Likewise.
92613         * lib/unistdio/ulc-vasnprintf.c: Likewise.
92614         * lib/unistdio/ulc-vasprintf.c: Likewise.
92615         * lib/unistdio/ulc-vsnprintf.c: Likewise.
92616         * lib/unistdio/ulc-vsprintf.c: Likewise.
92617         * lib/unistr.h: Likewise.
92618         * lib/unistr/u-cpy-alloc.h: Likewise.
92619         * lib/unistr/u-cpy.h: Likewise.
92620         * lib/unistr/u-endswith.h: Likewise.
92621         * lib/unistr/u-move.h: Likewise.
92622         * lib/unistr/u-set.h: Likewise.
92623         * lib/unistr/u-startswith.h: Likewise.
92624         * lib/unistr/u-stpcpy.h: Likewise.
92625         * lib/unistr/u-stpncpy.h: Likewise.
92626         * lib/unistr/u-strcat.h: Likewise.
92627         * lib/unistr/u-strcpy.h: Likewise.
92628         * lib/unistr/u-strcspn.h: Likewise.
92629         * lib/unistr/u-strdup.h: Likewise.
92630         * lib/unistr/u-strlen.h: Likewise.
92631         * lib/unistr/u-strncat.h: Likewise.
92632         * lib/unistr/u-strncpy.h: Likewise.
92633         * lib/unistr/u-strnlen.h: Likewise.
92634         * lib/unistr/u-strpbrk.h: Likewise.
92635         * lib/unistr/u-strspn.h: Likewise.
92636         * lib/unistr/u-strstr.h: Likewise.
92637         * lib/unistr/u-strtok.h: Likewise.
92638         * lib/unistr/u16-check.c: Likewise.
92639         * lib/unistr/u16-chr.c: Likewise.
92640         * lib/unistr/u16-cmp.c: Likewise.
92641         * lib/unistr/u16-cpy-alloc.c: Likewise.
92642         * lib/unistr/u16-cpy.c: Likewise.
92643         * lib/unistr/u16-endswith.c: Likewise.
92644         * lib/unistr/u16-mblen.c: Likewise.
92645         * lib/unistr/u16-mbsnlen.c: Likewise.
92646         * lib/unistr/u16-mbtouc-aux.c: Likewise.
92647         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
92648         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
92649         * lib/unistr/u16-mbtouc.c: Likewise.
92650         * lib/unistr/u16-mbtoucr.c: Likewise.
92651         * lib/unistr/u16-move.c: Likewise.
92652         * lib/unistr/u16-next.c: Likewise.
92653         * lib/unistr/u16-prev.c: Likewise.
92654         * lib/unistr/u16-set.c: Likewise.
92655         * lib/unistr/u16-startswith.c: Likewise.
92656         * lib/unistr/u16-stpcpy.c: Likewise.
92657         * lib/unistr/u16-stpncpy.c: Likewise.
92658         * lib/unistr/u16-strcat.c: Likewise.
92659         * lib/unistr/u16-strchr.c: Likewise.
92660         * lib/unistr/u16-strcmp.c: Likewise.
92661         * lib/unistr/u16-strcpy.c: Likewise.
92662         * lib/unistr/u16-strcspn.c: Likewise.
92663         * lib/unistr/u16-strdup.c: Likewise.
92664         * lib/unistr/u16-strlen.c: Likewise.
92665         * lib/unistr/u16-strmblen.c: Likewise.
92666         * lib/unistr/u16-strmbtouc.c: Likewise.
92667         * lib/unistr/u16-strncat.c: Likewise.
92668         * lib/unistr/u16-strncmp.c: Likewise.
92669         * lib/unistr/u16-strncpy.c: Likewise.
92670         * lib/unistr/u16-strnlen.c: Likewise.
92671         * lib/unistr/u16-strpbrk.c: Likewise.
92672         * lib/unistr/u16-strrchr.c: Likewise.
92673         * lib/unistr/u16-strspn.c: Likewise.
92674         * lib/unistr/u16-strstr.c: Likewise.
92675         * lib/unistr/u16-strtok.c: Likewise.
92676         * lib/unistr/u16-to-u32.c: Likewise.
92677         * lib/unistr/u16-to-u8.c: Likewise.
92678         * lib/unistr/u16-uctomb-aux.c: Likewise.
92679         * lib/unistr/u16-uctomb.c: Likewise.
92680         * lib/unistr/u32-check.c: Likewise.
92681         * lib/unistr/u32-chr.c: Likewise.
92682         * lib/unistr/u32-cmp.c: Likewise.
92683         * lib/unistr/u32-cpy-alloc.c: Likewise.
92684         * lib/unistr/u32-cpy.c: Likewise.
92685         * lib/unistr/u32-endswith.c: Likewise.
92686         * lib/unistr/u32-mblen.c: Likewise.
92687         * lib/unistr/u32-mbsnlen.c: Likewise.
92688         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
92689         * lib/unistr/u32-mbtouc.c: Likewise.
92690         * lib/unistr/u32-mbtoucr.c: Likewise.
92691         * lib/unistr/u32-move.c: Likewise.
92692         * lib/unistr/u32-next.c: Likewise.
92693         * lib/unistr/u32-prev.c: Likewise.
92694         * lib/unistr/u32-set.c: Likewise.
92695         * lib/unistr/u32-startswith.c: Likewise.
92696         * lib/unistr/u32-stpcpy.c: Likewise.
92697         * lib/unistr/u32-stpncpy.c: Likewise.
92698         * lib/unistr/u32-strcat.c: Likewise.
92699         * lib/unistr/u32-strchr.c: Likewise.
92700         * lib/unistr/u32-strcmp.c: Likewise.
92701         * lib/unistr/u32-strcpy.c: Likewise.
92702         * lib/unistr/u32-strcspn.c: Likewise.
92703         * lib/unistr/u32-strdup.c: Likewise.
92704         * lib/unistr/u32-strlen.c: Likewise.
92705         * lib/unistr/u32-strmblen.c: Likewise.
92706         * lib/unistr/u32-strmbtouc.c: Likewise.
92707         * lib/unistr/u32-strncat.c: Likewise.
92708         * lib/unistr/u32-strncmp.c: Likewise.
92709         * lib/unistr/u32-strncpy.c: Likewise.
92710         * lib/unistr/u32-strnlen.c: Likewise.
92711         * lib/unistr/u32-strpbrk.c: Likewise.
92712         * lib/unistr/u32-strrchr.c: Likewise.
92713         * lib/unistr/u32-strspn.c: Likewise.
92714         * lib/unistr/u32-strstr.c: Likewise.
92715         * lib/unistr/u32-strtok.c: Likewise.
92716         * lib/unistr/u32-to-u16.c: Likewise.
92717         * lib/unistr/u32-to-u8.c: Likewise.
92718         * lib/unistr/u32-uctomb.c: Likewise.
92719         * lib/unistr/u8-check.c: Likewise.
92720         * lib/unistr/u8-chr.c: Likewise.
92721         * lib/unistr/u8-cmp.c: Likewise.
92722         * lib/unistr/u8-cpy-alloc.c: Likewise.
92723         * lib/unistr/u8-cpy.c: Likewise.
92724         * lib/unistr/u8-endswith.c: Likewise.
92725         * lib/unistr/u8-mblen.c: Likewise.
92726         * lib/unistr/u8-mbsnlen.c: Likewise.
92727         * lib/unistr/u8-mbtouc-aux.c: Likewise.
92728         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
92729         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
92730         * lib/unistr/u8-mbtouc.c: Likewise.
92731         * lib/unistr/u8-mbtoucr.c: Likewise.
92732         * lib/unistr/u8-move.c: Likewise.
92733         * lib/unistr/u8-next.c: Likewise.
92734         * lib/unistr/u8-prev.c: Likewise.
92735         * lib/unistr/u8-set.c: Likewise.
92736         * lib/unistr/u8-startswith.c: Likewise.
92737         * lib/unistr/u8-stpcpy.c: Likewise.
92738         * lib/unistr/u8-stpncpy.c: Likewise.
92739         * lib/unistr/u8-strcat.c: Likewise.
92740         * lib/unistr/u8-strchr.c: Likewise.
92741         * lib/unistr/u8-strcmp.c: Likewise.
92742         * lib/unistr/u8-strcpy.c: Likewise.
92743         * lib/unistr/u8-strcspn.c: Likewise.
92744         * lib/unistr/u8-strdup.c: Likewise.
92745         * lib/unistr/u8-strlen.c: Likewise.
92746         * lib/unistr/u8-strmblen.c: Likewise.
92747         * lib/unistr/u8-strmbtouc.c: Likewise.
92748         * lib/unistr/u8-strncat.c: Likewise.
92749         * lib/unistr/u8-strncmp.c: Likewise.
92750         * lib/unistr/u8-strncpy.c: Likewise.
92751         * lib/unistr/u8-strnlen.c: Likewise.
92752         * lib/unistr/u8-strpbrk.c: Likewise.
92753         * lib/unistr/u8-strrchr.c: Likewise.
92754         * lib/unistr/u8-strspn.c: Likewise.
92755         * lib/unistr/u8-strstr.c: Likewise.
92756         * lib/unistr/u8-strtok.c: Likewise.
92757         * lib/unistr/u8-to-u16.c: Likewise.
92758         * lib/unistr/u8-to-u32.c: Likewise.
92759         * lib/unistr/u8-uctomb-aux.c: Likewise.
92760         * lib/unistr/u8-uctomb.c: Likewise.
92761         * lib/unitypes.h: Likewise.
92762         * lib/uniwidth.h: Likewise.
92763         * lib/uniwidth/cjk.h: Likewise.
92764         * lib/uniwidth/u16-strwidth.c: Likewise.
92765         * lib/uniwidth/u16-width.c: Likewise.
92766         * lib/uniwidth/u32-strwidth.c: Likewise.
92767         * lib/uniwidth/u32-width.c: Likewise.
92768         * lib/uniwidth/u8-strwidth.c: Likewise.
92769         * lib/uniwidth/u8-width.c: Likewise.
92770         * lib/uniwidth/width.c: Likewise.
92772 2007-10-07  Bruno Haible  <bruno@clisp.org>
92774         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
92775         The file is still under LGPL (see modules/inttypes).
92777 2007-10-06  Bruno Haible  <bruno@clisp.org>
92779         * modules/trunc (Dependencies): Add 'extensions'.
92780         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
92781         Reported by Ben Pfaff <blp@gnu.org>.
92783 2007-10-06  Bruno Haible  <bruno@clisp.org>
92785         * modules/freopen-tests: New file.
92786         * tests/test-freopen.c: New file.
92788         * modules/fopen-tests: New file.
92789         * tests/test-fopen.c: New file.
92791         * modules/fopen: New file.
92792         * lib/fopen.c: New file.
92793         * m4/fopen.m4: New file.
92794         * modules/freopen: New file.
92795         * lib/freopen.c: New file.
92796         * m4/freopen.m4: New file.
92797         * lib/stdio.in.h (fopen, freopen): New declarations.
92798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
92799         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
92800         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
92801         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
92802         * doc/functions/fopen.texi: Mention the 'fopen' module.
92803         * doc/functions/freopen.texi: Mention the 'freopen' module.
92805 2007-10-06  Bruno Haible  <bruno@clisp.org>
92807         * modules/open-tests: New file.
92808         * tests/test-open.c: New file.
92810         * modules/open: New file.
92811         * lib/open.c: New file.
92812         * m4/open.m4: New file.
92813         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
92814         lib/open.c does.
92815         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
92816         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
92817         macros.
92818         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
92819         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
92820         REPLACE_OPEN.
92821         * doc/functions/open.texi: Mention the 'open' module.
92823 2007-10-04  Bruno Haible  <bruno@clisp.org>
92825         * modules/ceill-tests: New file.
92826         * tests/test-ceill.c: New file.
92828         * modules/ceill: New file.
92829         * lib/ceill.c: Replace entire file.
92830         * m4/ceill.m4: New file.
92831         * lib/math.in.h (ceill): Replace declaration.
92832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
92833         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
92834         * doc/functions/ceill.texi: Mention the 'ceill' module.
92835         * modules/mathl (Files): Remove lib/ceill.c.
92836         (Depends-on): Add ceill.
92838 2007-10-04  Bruno Haible  <bruno@clisp.org>
92840         * modules/ceilf-tests: New file.
92841         * tests/test-ceilf.c: New file.
92843         * modules/ceilf: New file.
92844         * lib/ceil.c: New file.
92845         * lib/ceilf.c: New file.
92846         * m4/ceilf.m4: New file.
92847         * lib/math.in.h (ceilf): New declaration.
92848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
92849         HAVE_DECL_CEILF.
92850         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
92851         HAVE_DECL_CEILF.
92852         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
92854 2007-10-04  Bruno Haible  <bruno@clisp.org>
92856         * modules/floorl-tests: New file.
92857         * tests/test-floorl.c: New file.
92859         * modules/floorl: New file.
92860         * lib/floorl.c: Replace entire file.
92861         * m4/floorl.m4: New file.
92862         * lib/math.in.h (floorl): Replace declaration.
92863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
92864         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
92865         * doc/functions/floorl.texi: Mention the 'floorl' module.
92866         * modules/mathl (Files): Remove lib/floorl.c.
92867         (Depends-on): Add floorl.
92869 2007-10-04  Bruno Haible  <bruno@clisp.org>
92871         * modules/floorf-tests: New file.
92872         * tests/test-floorf.c: New file.
92874         * modules/floorf: New file.
92875         * lib/floor.c: New file.
92876         * lib/floorf.c: New file.
92877         * m4/floorf.m4: New file.
92878         * lib/math.in.h (floorf): New declaration.
92879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
92880         HAVE_DECL_FLOORF.
92881         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
92882         HAVE_DECL_FLOORF.
92883         * doc/functions/floorf.texi: Mention the 'floorf' module.
92885 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
92886             Bruno Haible  <bruno@clisp.org>
92888         Advertise for the Git server instead of the CVS server.
92889         * doc/gnulib-intro.texi (Steady Development): Mention the Git
92890         repository instead of the CVS one.
92891         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
92892         about all VCS systems generically.
92893         * doc/gnulib.texi (Introduction): Capitalize `Git'.
92895 2007-10-04  Bruno Haible  <bruno@clisp.org>
92897         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
92898         means.
92899         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
92901 2007-10-04  Bruno Haible  <bruno@clisp.org>
92903         * modules/truncl-tests: New file.
92904         * tests/test-truncl.c: New file.
92906         * modules/truncl: New file.
92907         * lib/truncl.c: New file.
92908         * m4/truncl.m4: New file.
92909         * lib/math.in.h (truncl): New declaration.
92910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
92911         HAVE_DECL_TRUNCL.
92912         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
92913         HAVE_DECL_TRUNCL.
92914         * doc/functions/truncl.texi: Mention the 'truncl' module.
92916 2007-10-04  Bruno Haible  <bruno@clisp.org>
92918         * modules/truncf-tests: New file.
92919         * tests/test-truncf.c: New file.
92921         * modules/truncf: New file.
92922         * lib/trunc.c: Make paramerizable through USE_* macros.
92923         * lib/truncf.c: New file.
92924         * m4/truncf.m4: New file.
92925         * lib/math.in.h (truncf): New declaration.
92926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
92927         HAVE_DECL_TRUNCF.
92928         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
92929         HAVE_DECL_TRUNCF.
92930         * doc/functions/truncf.texi: Mention the 'truncf' module.
92932 2007-10-03  Bruno Haible  <bruno@clisp.org>
92934         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92935         augmentation also for tests modules.
92936         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
92937         * modules/atexit-tests (Makefile.am): Likewise.
92938         * modules/binary-io-tests (Makefile.am): Likewise.
92939         * modules/c-strcase-tests (Makefile.am): Likewise.
92940         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
92941         * modules/canonicalize-tests (Makefile.am): Likewise.
92942         * modules/closein-tests (Makefile.am): Likewise.
92943         * modules/fprintf-posix-tests (Makefile.am): Likewise.
92944         * modules/freadahead-tests (Makefile.am): Likewise.
92945         * modules/fseek-tests (Makefile.am): Likewise.
92946         * modules/fseeko-tests (Makefile.am): Likewise.
92947         * modules/ftell-tests (Makefile.am): Likewise.
92948         * modules/ftello-tests (Makefile.am): Likewise.
92949         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
92950         * modules/isnanl-tests (Makefile.am): Likewise.
92951         * modules/lseek-tests (Makefile.am): Likewise.
92952         * modules/mbscasecmp-tests (Makefile.am): Likewise.
92953         * modules/mbscasestr-tests (Makefile.am): Likewise.
92954         * modules/mbschr-tests (Makefile.am): Likewise.
92955         * modules/mbscspn-tests (Makefile.am): Likewise.
92956         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
92957         * modules/mbspbrk-tests (Makefile.am): Likewise.
92958         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
92959         * modules/mbsrchr-tests (Makefile.am): Likewise.
92960         * modules/mbsspn-tests (Makefile.am): Likewise.
92961         * modules/mbsstr-tests (Makefile.am): Likewise.
92962         * modules/printf-posix-tests (Makefile.am): Likewise.
92963         * modules/snprintf-posix-tests (Makefile.am): Likewise.
92964         * modules/sprintf-posix-tests (Makefile.am): Likewise.
92965         * modules/tsearch-tests (Makefile.am): Likewise.
92966         * modules/uniname/uniname-tests (Makefile.am): Likewise.
92967         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
92968         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
92969         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
92970         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
92971         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
92972         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
92973         * modules/vprintf-posix-tests (Makefile.am): Likewise.
92974         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
92975         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
92976         * modules/xstrtoimax-tests (Makefile.am): Likewise.
92977         * modules/xstrtol-tests (Makefile.am): Likewise.
92978         * modules/xstrtoumax-tests (Makefile.am): Likewise.
92979         * modules/yesno-tests (Makefile.am): Likewise.
92981 2007-10-03  Bruno Haible  <bruno@clisp.org>
92983         * modules/trunc-tests: New file.
92984         * tests/test-trunc.c: New file.
92986         * modules/trunc: New file.
92987         * lib/trunc.c: New file.
92988         * m4/trunc.m4: New file.
92989         * lib/math.in.h (trunc): New declaration.
92990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
92991         HAVE_DECL_TRUNC.
92992         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
92993         HAVE_DECL_TRUNC.
92994         * doc/functions/trunc.texi: Mention the 'trunc' module.
92996 2007-10-03  Bruno Haible  <bruno@clisp.org>
92998         * tests/test-fpending.c: New file, mostly copied
92999         from coreutils/lib/t-fpending.c.
93000         * modules/fpending-tests: New file.
93002 2007-10-03  Bruno Haible  <bruno@clisp.org>
93004         Port the stdio extensions to QNX (untested).
93005         * lib/fseterr.c (fseterr): Add support for QNX.
93006         * lib/fbufmode.c (fbufmode): Likewise.
93007         * lib/freadable.c (freadable): Likewise.
93008         * lib/fwritable.c (fwritable): Likewise.
93009         * lib/freading.c (freading): Likewise.
93010         * lib/fwriting.c (fwriting): Likewise.
93011         * lib/freadahead.c (freadahed): Likewise.
93012         * lib/fpurge.c (fpurge): Likewise.
93013         * lib/fseeko.c (rpl_fseeko): Likewise.
93015 2007-10-03  Bruno Haible  <bruno@clisp.org>
93016             Jim Meyering  <jim@meyering.net>
93017             Eric Blake  <ebb9@byu.net>
93019         * doc/relocatable.texi: Use @command instead of @program.
93021 2007-10-02  Jim Meyering  <jim@meyering.net>
93023         Perform one more "_.h" -> ".in.h" substitution.
93024         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
93025         instead of unistd_.h here, too.
93027 2007-10-01  Bruno Haible  <bruno@clisp.org>
93029         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
93030         Needed for the alloca-opt module.
93032 2007-09-30  Bruno Haible  <bruno@clisp.org>
93034         * lib/alloca.in.h: Renamed from lib/alloca_.h.
93035         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
93036         alloca_.h.
93037         * lib/argz.in.h: Renamed from lib/argz_.h.
93038         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
93039         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
93040         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
93041         byteswap_.h.
93042         * lib/dirent.in.h: Renamed from lib/dirent_.h.
93043         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
93044         dirent_.h.
93045         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
93046         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
93047         fcntl_.h.
93048         * lib/float.in.h: Renamed from lib/float_.h.
93049         * modules/float (Files, Makefile.am): Use float.in.h instead of
93050         float_.h.
93051         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
93052         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
93053         fnmatch_.h.
93054         * lib/getopt.in.h: Renamed from lib/getopt_.h.
93055         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
93056         getopt_.h.
93057         * lib/glob.in.h: Renamed from lib/glob_.h.
93058         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
93059         * lib/iconv.in.h: Renamed from lib/iconv_.h.
93060         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
93061         iconv_.h.
93062         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
93063         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
93064         inttypes_.h.
93065         * lib/locale.in.h: Renamed from lib/locale_.h.
93066         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
93067         locale_.h.
93068         * lib/math.in.h: Renamed from lib/math_.h.
93069         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
93070         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
93071         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
93072         of netinet_in_.h. Add dependency.
93073         * lib/poll.in.h: Renamed from lib/poll_.h.
93074         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
93075         * lib/search.in.h: Renamed from lib/search_.h.
93076         * modules/search (Files, Makefile.am): Use search.in.h instead of
93077         search_.h.
93078         * lib/signal.in.h: Renamed from lib/signal_.h.
93079         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
93080         _signal.h.
93081         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
93082         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
93083         stdbool_.h.
93084         * lib/stdint.in.h: Renamed from lib/stdint_.h.
93085         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
93086         stdint_.h.
93087         * lib/stdio.in.h: Renamed from lib/stdio_.h.
93088         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
93089         stdio_.h.
93090         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
93091         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
93092         stdlib_.h.
93093         * lib/string.in.h: Renamed from lib/string_.h.
93094         * modules/string (Files, Makefile.am): Use string.in.h instead of
93095         string_.h.
93096         * doc/gnulib-tool.texi (Initial import): Update.
93097         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
93098         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
93099         of sys_select_.h. Add dependency.
93100         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
93101         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
93102         of sys_socket_.h.
93103         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
93104         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
93105         sys_stat_.h.
93106         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
93107         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
93108         sys_time_.h.
93109         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
93110         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
93111         sysexits_.h.
93112         * lib/time.in.h: Renamed from lib/time_.h.
93113         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
93114         * lib/unistd.in.h: Renamed from lib/unistd_.h.
93115         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
93116         unistd_.h.
93117         * lib/wchar.in.h: Renamed from lib/wchar_.h.
93118         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
93119         wchar_.h.
93120         * lib/wctype.in.h: Renamed from lib/wctype_.h.
93121         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
93122         wctype_.h.
93123         * build-aux/bootstrap (slurp): Update.
93124         * lib/.cppi-disable: Update.
93126 2007-09-30  Bruno Haible  <bruno@clisp.org>
93128         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
93129         Needed on BeOS.
93131 2007-09-30  Bruno Haible  <bruno@clisp.org>
93133         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
93135 2007-09-29  Bruno Haible  <bruno@clisp.org>
93137         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
93139 2007-09-29  Bruno Haible  <bruno@clisp.org>
93141         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
93142         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
93143         * build-aux/install-reloc: Compile also areadlink.c.
93144         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
93146 2007-09-29  Bruno Haible  <bruno@clisp.org>
93148         * gnulib-tool (func_emit_initmacro_done): Indentation.
93150 2007-09-29  Bruno Haible  <bruno@clisp.org>
93152         * README: Add CVS checkout update instructions.
93153         Info from Bob Proulx <bob@proulx.com>.
93155 2007-09-28  Eric Blake  <ebb9@byu.net>
93157         Provide move-if-change.
93158         * build-aux/move-if-change: New file, based on best practice
93159         rather than any canonical upstream location.
93161 2007-09-28  Jim Meyering  <jim@meyering.net>
93163         Fix canonicalize loop-detection corner case.
93164         Do not attempt to stat the symlink values stored via seen_triple.
93165         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
93166         on linux-2.6.18, (but not 2.6.22).
93167         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
93168         triple_compare.  The former compares dev,ino,filename, while the latter
93169         would actually stat dirname(filename) when dev and ino were equal.
93170         * lib/hash-triple.c: Install <string.h>.
93171         (STREQ): Define.
93172         (triple_compare_ino_str): New function.
93173         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
93175 2007-09-28  Eric Blake  <ebb9@byu.net>
93177         Enforce that AC_REPLACE_FUNCS files exist.
93178         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
93179         override check for typos.
93181         Fix test-closein on Solaris 10.
93182         * tests/test-closein.c (main): Don't assume stdin can be inherited
93183         closed on all systems.
93184         * tests/test-closein.sh: Likewise.
93185         Reported by Piotr Tarnowski.
93187 2007-09-28  Jim Meyering  <jim@meyering.net>
93189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
93191 2007-09-27  Jim Meyering  <jim@meyering.net>
93193         canonicalize: Avoid a false-positive cycle failure.
93194         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
93195         Sort.  Remove cycle-check.
93196         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
93197         not cycle-check.h.
93198         (seen_triple): New function.
93199         (canonicalize_filename_mode): Use it instead of cycle-check.
93200         * tests/test-canonicalize.c: Add a test for this bug.
93201         * tests/test-canonicalize.sh: Set up and run the test.
93203         New module, file-set, from coreutils.
93204         * modules/file-set: Define it.
93205         * lib/file-set.c, lib/file-set.h: Implement.
93207         New module, hash-triple, from coreutils.
93208         * modules/hash-triple: Define it.
93209         * lib/hash-triple.c, lib/hash-triple.h: Implement.
93211 2007-09-25  Eric Blake  <ebb9@byu.net>
93213         Fix strerror on Interix.
93214         * lib/string_.h (strerror): Declare replacement.
93215         * doc/functions/strerror.texi (strerror): Document the Interix
93216         shortcoming.
93217         * modules/string (Makefile.am): Support new hooks.
93218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
93219         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
93220         gl_FUNC_STRERROR_SEPARATE.
93221         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
93222         * lib/strerror.c (rpl_strerror): Provide replacement.
93223         * modules/strerror (Depends-on): Add string.
93224         (configure.ac): Detect use of module.
93225         * tests/test-strerror.c: New file.
93226         * modules/strerror-tests: New test module.
93227         * modules/argp (Depends-on): Add strerror.
93228         * modules/error (Depends-on): Likewise.
93229         Reported by Martin Koeppe.
93231 2007-09-24  Bruno Haible  <bruno@clisp.org>
93233         * README: Update git instructions.
93235 2007-09-24  Eric Blake  <ebb9@byu.net>
93237         Revert fpending breakage from 2007-09-08.
93238         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
93239         __fpending.c.
93241 2007-09-24  Jim Meyering  <jim@meyering.net>
93243         filenamecat.c: Add a test.
93244         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
93245         showing how the function works when DIR is the empty string.
93247 2007-09-21  Simon Josefsson  <simon@josefsson.org>
93249         * tests/test-canonicalize.sh: Turn on executable bit.
93251 2007-09-19  Eric Blake  <ebb9@byu.net>
93253         * README: Update CVS instructions.
93255 2007-09-18  Bruno Haible  <bruno@clisp.org>
93257         * modules/areadlink: New file.
93258         * lib/areadlink.h (areadlink): New declaration.
93259         * lib/areadlink.c: New file, based on lib/xreadlink.c.
93261 2007-09-17  Jim Meyering  <jim@meyering.net>
93263         * lib/savewd.c (ESTALE) [!defined]: Define.
93264         Reported to be required on Interix by Martin Koeppe.
93266 2007-09-17  Bruno Haible  <bruno@clisp.org>
93268         * gnulib-tool (func_version): Use $version.
93270 2007-09-16  Bruno Haible  <bruno@clisp.org>
93272         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
93273         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
93274         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
93275         Reported by Greg Schafer <gschafer@zip.com.au>.
93277 2007-09-15  Bruno Haible  <bruno@clisp.org>
93279         * gnulib-tool (sed): Try a little harder to make bash understand the
93280         alias.
93281         Reported by Bruce Korb <bruce.korb@gmail.com>.
93283 2007-09-13  Eric Blake  <ebb9@byu.net>
93285         * ChangeLog: Remove conflict markers.
93287 2007-09-13  Simon Josefsson  <simon@josefsson.org>
93289         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
93290         Reported by Bruno Haible <bruno@clisp.org>.
93292 2007-09-12  Bruno Haible  <bruno@clisp.org>
93294         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
93295         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
93296         is not defined.
93298 2007-09-12  Eric Blake  <ebb9@byu.net>
93300         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
93301         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
93302         Autoconf definition.
93303         * modules/euidaccess (Depends-on): Add extensions, for
93304         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
93305         * modules/fnmatch (Depends-on): Likewise.
93306         * modules/getaddrinfo (Depends-on): Likewise.
93307         * modules/getdelim (Depends-on): Likewise.
93308         * modules/getline (Depends-on): Likewise.
93309         * modules/getsubopt (Depends-on): Likewise.
93310         * modules/gettext (Depends-on): Likewise.
93311         * modules/group-member (Depends-on): Likewise.
93312         * modules/mbchar (Depends-on): Likewise.
93313         * modules/memmem (Depends-on): Likewise.
93314         * modules/mempcpy (Depends-on): Likewise.
93315         * modules/memrchr (Depends-on): Likewise.
93316         * modules/pagealign_alloc (Depends-on): Likewise.
93317         * modules/readutmp (Depends-on): Likewise.
93318         * modules/stpcpy (Depends-on): Likewise.
93319         * modules/stpncpy (Depends-on): Likewise.
93320         * modules/strchrnul (Depends-on): Likewise.
93321         * modules/strndup (Depends-on): Likewise.
93322         * modules/strsep (Depends-on): Likewise.
93323         * modules/strverscmp (Depends-on): Likewise.
93324         * modules/vasprintf (Depends-on): Likewise.
93325         * modules/wcwidth (Depends-on): Likewise.
93326         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
93327         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
93328         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
93329         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
93330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
93332         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
93333         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93334         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
93335         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
93336         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93337         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93338         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93339         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
93340         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
93341         * m4/readutmp.m4 (gl_READUTMP): Likewise.
93342         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93343         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93345         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93348         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93349         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
93350         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
93351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93352         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
93353         so that lock.m4 can be used in gettext without extensions module.
93355 2007-09-11  Bruno Haible  <bruno@clisp.org>
93357         * m4/isc-posix.m4: Remove file.
93358         Suggested by Eric Blake.
93360 2007-09-11  Eric Blake  <ebb9@byu.net>
93362         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
93364 2007-09-10  Bruno Haible  <bruno@clisp.org>
93366         * posix-modules: Fix typo in error message.
93367         Reported by Matt <mkraai@beckman.com>.
93369 2007-09-09  Bruno Haible  <bruno@clisp.org>
93371         * doc/functions/getdelim.texi: Update list of platforms lacking the
93372         function.
93373         * doc/functions/getline.texi: Likewise.
93375 2007-09-09  Jim Meyering  <jim@meyering.net>
93377         * lib/hash.c (hash_initialize): Detect calloc failure.
93378         Reported by Bruno Haible.
93380 2007-09-09  Bruno Haible  <bruno@clisp.org>
93382         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
93383         malloc or realloc fails.
93385 2007-09-09  Bruno Haible  <bruno@clisp.org>
93387         * modules/getcwd (Depends-on): Add malloc-posix.
93388         * modules/glob (Depends-on): Likewise.
93389         * modules/putenv (Depends-on): Likewise.
93390         * modules/strdup (Depends-on): Likewise.
93391         * modules/getdelim (Depends-on): Add realloc-posix.
93392         * modules/read-file (Depends-on): Likewise.
93394 2007-09-09  Bruno Haible  <bruno@clisp.org>
93396         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
93397         (gl_FUNC_MALLOC_POSIX): Require it.
93398         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
93399         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
93400         * modules/realloc (Files): Add m4/malloc.m4.
93401         * modules/calloc (Files): Likewise.
93403 2007-09-09  Bruno Haible  <bruno@clisp.org>
93405         * modules/malloc-posix: New file.
93406         * modules/malloc (Depends-on): Add malloc-posix.
93407         * lib/malloc.c: Include errno.h.
93408         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
93409         and a POSIX-compatible malloc into a single function. Set ENOMEM
93410         when returning NULL.
93411         * m4/malloc.m4: New file.
93412         * doc/functions/malloc.texi: Mention the malloc-posix module.
93413         * lib/stdlib_.h (malloc): New declaration.
93414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93415         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
93416         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
93417         and HAVE_MALLOC_POSIX.
93419 2007-09-09  Bruno Haible  <bruno@clisp.org>
93421         * modules/realloc-posix: New file.
93422         * modules/realloc (Depends-on): Add realloc-posix.
93423         * lib/realloc.c: Include errno.h.
93424         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
93425         and a POSIX-compatible realloc into a single function. Set ENOMEM
93426         when returning NULL.
93427         * m4/realloc.m4: New file.
93428         * doc/functions/realloc.texi: Mention the realloc-posix module.
93429         * lib/stdlib_.h (realloc): New declaration.
93430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93431         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
93432         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
93433         and HAVE_REALLOC_POSIX.
93435 2007-09-09  Bruno Haible  <bruno@clisp.org>
93437         * modules/calloc-posix: New file.
93438         * modules/calloc (Depends-on): Add calloc-posix.
93439         * lib/calloc.c: Include errno.h.
93440         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
93441         and a POSIX-compatible calloc into a single function. Set ENOMEM
93442         when returning NULL.
93443         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
93444         * doc/functions/calloc.texi: Mention the calloc-posix module.
93445         * lib/stdlib_.h (calloc): New declaration.
93446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
93447         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
93448         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
93449         and HAVE_CALLOC_POSIX.
93451 2007-09-09  Bruno Haible  <bruno@clisp.org>
93453         Allow for modules to show an arbitrary notice.
93454         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
93455         * gnulib-tool: New option --extract-notice.
93456         (func_usage): Document it.
93457         (sed_extract_prog): Update.
93458         (func_get_notice): New function.
93459         (func_modules_notice): New function.
93460         (func_import, func_create_testdir): Invoke it.
93461         Suggested by Jim Meyering.
93463 2007-09-09  Bruno Haible  <bruno@clisp.org>
93465         * gnulib-tool: New options --verbose, --quiet.
93466         (func_usage): Document them.
93467         (verbose): New variable.
93468         (func_execute_command): New function.
93469         (func_import): Don't show the module list and the file list if
93470         $verbose < 0.
93471         (func_create_testdir): Likewise. Use func_execute_command.
93472         (func_create_megatestdir): Use func_execute_command.
93474 2007-09-08  Bruno Haible  <bruno@clisp.org>
93476         * gnulib-tool (func_import): Prefer rsync over wget when available,
93477         for fetching the PO files.
93479 2007-09-08  Bruno Haible  <bruno@clisp.org>
93481         * posix-modules: New file. Portions copied from gnulib-tool.
93482         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
93484 2007-09-08  Jim Meyering  <jim@meyering.net>
93486         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
93487         * lib/fpending.h: Rename from __fpending.h.
93488         * lib/fpending.c: Rename from __fpending.c.
93489         Include "fpending.h", not "__fpending.h".
93490         * lib/__fpending.h, lib/__fpending.c: Remove files.
93491         * modules/fpending (Files): Reflect new file names.
93492         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
93494 2007-09-08  Bruno Haible  <bruno@clisp.org>
93496         * m4/inttypes-h.m4: Remove stub file.
93498 2007-09-07  Simon Josefsson  <simon@josefsson.org>
93500         * doc/headers/stdint.texi: Discuss #include_next issue.
93502 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
93504         * build-aux/bootstrap: Remove obsolete comment about wget --help.
93506 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93508         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
93509         in variable name.
93511 2007-09-03  Jim Meyering  <jim@meyering.net>
93513         New module: git-version-gen.
93514         * modules/git-version-gen: New file.
93516         Import changes from coreutils for bootstrap script.
93518         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
93520         bootstrap: uses rsync to download the .po files
93521         * build-aux/bootstrap (po_download_command_format): New global.
93522         (download_po_files): Use rsync.
93523         (update_po_files): Don't remove .po files after download,
93524         so future rsync runs can take advantage of the copies.
93526         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
93528         Solve the unnecessary-.po-file-regeneration problem once and for all.
93529         * build-aux/bootstrap (download_po_files): New function, renamed from
93530         get_translations.  Now, downloads, but doesn't update LINGUAS.
93531         (update_po_files): New function.
93533         bootstrap: Ignore more.
93534         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
93535         uniwidth to e.g., lib/.gitignore.
93536         (slurp): Handle the sys_stat_.h -> sys mapping, too.
93538         * build-aux/bootstrap: New setting: vc_ignore.
93539         (insert_sorted_if_absent): Create $file if absent.
93540         Adapt to new, possibly empty, list: $vc_ignore.
93542         bootstrap: generate more ignorable names
93543         * build-aux/bootstrap (slurp): When generating ignorable names,
93544         also map .sin to .sed, .gperf to .c, and .y to .c.
93546 2007-09-03  Jim Meyering  <jim@meyering.net>
93548         * build-aux/git-version-gen: New file, from coreutils.  For details, see
93549         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
93551 2007-09-02  Bruno Haible  <bruno@clisp.org>
93553         Fix mis-recognition of 'mcs' on QNX 6.
93554         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
93555         output contains the string "Mono".
93556         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
93557         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
93559 2007-09-01  Bruno Haible  <bruno@clisp.org>
93561         Fix collision between uniwidth/* and linebreak modules.
93562         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
93563         u32_width): Remove declarations.
93564         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
93565         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
93566         streq3, streq2, streq1, streq0): Remove functions.
93567         (STREQ): Remove macro.
93568         (is_cjk_encoding): Remove function.
93569         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
93570         (uc_width, u8_width, u16_width, u32_width): Remove functions.
93571         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
93572         * NEWS: Document the change.
93574 2007-09-01  Bruno Haible  <bruno@clisp.org>
93576         * lib/streq.h: Add double-inclusion guard.
93578 2007-09-01  Karl Berry  <karl@gnu.org>
93580         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
93582 2007-08-28  Jim Meyering  <jim@meyering.net>
93584         Rename mreadlink_with_size to areadlink_with_size.
93585         * NEWS: Document the change.
93586         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
93587         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
93588         * lib/mreadlink.h: Rename this to...
93589         * lib/areadlink.h: ...this.
93590         * modules/mreadlink-with-size: Rename this to...
93591         * modules/areadlink-with-size: ...this.
93592         * lib/canonicalize.c: Reflect the renaming.
93593         * modules/canonicalize: Likewise.
93595 2007-08-26  Bruno Haible  <bruno@clisp.org>
93597         * gnulib-tool (func_import): When deciding which files to remove,
93598         consider also dangling symbolic links.
93599         Reported by Eric Blake.
93601 2007-08-26  Bruno Haible  <bruno@clisp.org>
93603         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
93605 2007-08-23  Simon Josefsson  <simon@josefsson.org>
93607         * lib/readline.c: Don't include getline.h, the prototype is now
93608         found in stdio.h.
93610 2007-08-23  Jim Meyering  <jim@meyering.net>
93612         Getdelim touchup.
93613         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
93614         around the funlockfile call, since funlockfile never sets errno.
93615         Don't set errno upon failed realloc.
93617 2007-08-22  Eric Blake  <ebb9@byu.net>
93619         Getline touchups.
93620         * lib/getdelim.c (getdelim): Revert regression that required *n to
93621         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
93622         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
93623         getdelim, rather than whether implementation is missing.
93624         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
93625         * lib/stdio_.h (getline): Also declare if replacement is
93626         required.
93627         * doc/functions/getdelim.texi: New file.
93628         * doc/functions/getline.texi: Likewise.
93629         * doc/gnulib.texi (Function Substitutes): Add new files.
93630         Reported by Bruno Haible.
93632 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
93634         * users.txt: Add Guile.
93636 2007-08-22  Eric Blake  <ebb9@byu.net>
93638         * tests/test-getdelim.c (main): Use remove, not unlink.
93639         * tests/test-getline.c (main): Likewise.
93641         Move getline and getdelim into stdio.h, per POSIX 200x.
93642         * modules/getline (Files): Remove getline.h.
93643         (Depends-on): Add stdio.
93644         (configure.ac): Add module indicator.
93645         * modules/getdelim (Files): Remove getdelim.h.
93646         (Depends-on): Add stdio.
93647         (configure.ac): Add module indicator.
93648         * modules/stdio (Makefile.am): Work with new indicators.
93649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
93650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
93651         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
93652         * lib/getdelim.h: Delete.
93653         * lib/getline.h: Delete.
93654         * lib/stdio_.h (getdelim, getline): Declare.
93655         * modules/getdelim-tests: New module.
93656         * modules/getline-tests: Likewise.
93657         * tests/test-getdelim.c: New file.
93658         * tests/test-getline.c: Likewise.
93659         * NEWS: Document the change.
93660         * lib/getline.c: Update choice of header.
93661         * lib/csharpcomp.c: Likewise.
93662         * lib/getpass.c: Likewise.
93663         * lib/javacomp.c: Likewise.
93664         * lib/javaversion.c: Likewise.
93665         * lib/yesno.c: Likewise.
93666         * lib/getdelim.c: Likewise.
93667         (getdelim): Set errno on failure, and avoid memory leak.
93669 2007-08-19  Bruno Haible  <bruno@clisp.org>
93671         * modules/closein (Depends-on): Add freadahead.
93672         * lib/closein.c: Include freadahead.h.
93673         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
93674         is zero.
93676 2007-08-19  Bruno Haible  <bruno@clisp.org>
93678         * modules/freadahead-tests: New file.
93679         * tests/test-freadahead.sh: New file.
93680         * tests/test-freadahead.c: New file.
93682         * modules/freadahead: New file.
93683         * lib/freadahead.h: New file.
93684         * lib/freadahead.c: New file.
93685         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
93686         fbufmode, fpurge, freadable, fwritable.
93688 2007-08-19  Eric Blake  <ebb9@byu.net>
93690         Test yesno in combination with closein.
93691         * lib/yesno.c (yesno): Document use of stdin.
93692         * modules/yesno-tests (Files): New module.
93693         * tests/test-yesno.c (main): New file.
93694         * tests/test-yesno.sh: Likewise.
93696 2007-08-19  Bruno Haible  <bruno@clisp.org>
93698         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
93699         * lib/fseeko.c (rpl_fseeko): Likewise.
93700         * lib/fseterr.c (fseterr): Likewise.
93702 2007-08-19  Bruno Haible  <bruno@clisp.org>
93704         * tests/test-lseek.c (main): Disable a test for BeOS.
93705         * doc/functions/lseek.texi: Document the BeOS bug.
93707 2007-08-19  Bruno Haible  <bruno@clisp.org>
93708             Eric Blake  <ebb9@byu.net>
93710         * lib/lseek.c: Include <sys/stat.h>.
93711         (rpl_lseek): Add workaround code also for Unix platforms.
93712         Needed for BeOS.
93713         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
93714         * doc/functions/lseek.texi: Document BeOS definiency.
93716 2007-08-18  Bruno Haible  <bruno@clisp.org>
93718         * modules/fstrcmp-tests: New file.
93719         * tests/test-fstrcmp.c: New file.
93721 2007-08-18  Bruno Haible  <bruno@clisp.org>
93723         * modules/fstrcmp: New file, from GNU gettext with modifications.
93724         * lib/fstrcmp.h: New file, from GNU gettext.
93725         * lib/fstrcmp.c: New file, from GNU gettext.
93726         * MODULES.html.sh (String handling): Add fstrcmp.
93728 2007-08-18  Bruno Haible  <bruno@clisp.org>
93730         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
93731         'bool'.
93732         (diag, compareseq): Remove const from the ctxt argument.
93733         (USE_HEURISTIC): Undefine at the end.
93735 2007-08-18  Jim Meyering  <jim@meyering.net>
93737         New file: lib/idcache.h
93738         * NEWS: Mention the addition.
93739         * modules/idcache (Files): Add lib/idcache.h
93740         * lib/idcache.c: Include "idcache.h".
93741         Don't include <sys/types.h>.
93742         Add a FIXME comment.
93743         Move file-scoped "static" declarations to the top.
93744         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
93746 2007-08-17  Bruno Haible  <bruno@clisp.org>
93747         and Paul Eggert  <eggert@cs.ucla.edu>
93749         * MODULES.html.sh: Add diffseq.
93750         * modules/diffseq: New file.
93751         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
93752         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
93754 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93756         Import changes from coreutils for bootstrap script.
93758         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
93760         * build-aux/bootstrap (slurp): Work even in environments where
93761         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
93762         current code does not slurp files whose names start with ".", and
93763         this looks like it might be a troublesome area.
93765         2007-07-11  Jim Meyering  <jim@meyering.net>
93767         If there's a GPL vN copyright comment, require that N == 3.
93769         2007-07-08  Jim Meyering  <jim@meyering.net>
93771         Run the coreutils-specific code only if tests/Makefile.am.in exists.
93772         * build-aux/bootstrap (mam_template): Move definition out of loop.
93774         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
93776         * build-aux/bootstrap (symlink_to_dir): Rename function from
93777         symlink_to_gnulib.  Add a directory parameter.  Update all
93778         callers.
93779         (cp_mark_as_generated): Also check for -- and link to -- files in
93780         gl/.
93782         2007-07-08  Jim Meyering  <jim@meyering.net>
93784         Adapt to deeper hierarchy in gnulib.
93785         * build-aux/bootstrap (symlink_to_dir): If the destination
93786         directory doesn't exist, create it. This is required at least for
93787         "lib/uniwidth/cjk.h".
93789         2007-05-15  Jim Meyering  <jim@meyering.net>
93791         * build-aux/bootstrap: Now that generated Makefile.am files
93792         are no longer under version control, they must be created at
93793         bootstrap time.
93795 2007-08-14  Ben Pfaff  <blp@gnu.org>
93797         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
93799 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93801         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
93802         given the changes below.
93803         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
93804         even on hosts that have padding bits beyond the supported 64.
93806 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
93808         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
93809         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
93810         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
93811         depends on it.
93812         (xstrtol_error): Remove.
93813         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
93814         but with a different signature.
93815         (ATTRIBUTE_NORETURN, __attribute__): New macros.
93816         * lib/xstrtol-error.c: Include exitfail.h.
93817         (xstrtol_fatal): New function, with a different signature from the
93818         old xstrtol_error, so that the caller need not worry about passing
93819         in an exit status, or about storage management of the option argument.
93820         (xstrtol_error): Now a static function.  Redo signature to
93821         implement xstrtol_fatal.  Output the correct number of hyphens in
93822         front of the option so that the caller need not worry about
93823         storage management.
93824         (N_): New macro.
93825         (_): Remove; not used now.
93826         * modules/xstrtol: Depend on getopt.
93827         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
93828         of old STRTOL_FATAL_ERROR macro.
93829         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
93830         of test program.
93831         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
93832         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
93834 2007-08-08  Eric Blake  <ebb9@byu.net>
93836         * lib/xstrtol-error.c: Add missing include.
93838         Move xstrtol messages into gnulib domain, when --pobase is used.
93839         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
93840         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
93841         * modules/xstrtol (Files): Distribute new file.
93842         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
93843         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
93844         * tests/test-xstrtol.c: ...into new file.
93845         * tests/test-xstrtoul.c: Also test xstrtoul.
93846         * tests/test-xstrtoimax.c: Also test xstrtoimax.
93847         * tests/test-xstrtoumax.c: Also test xstrtoumax.
93848         * tests/test-xstrtol.sh: Drive the tests.
93849         * tests/test-xstrtoimax.sh: Likewise.
93850         * tests/test-xstrtoumax.sh: Likewise.
93851         * modules/xstrtol-tests: New module.
93852         * modules/xstrtoimax-tests: Likewise.
93853         * modules/xstrtoumax-tests: Likewise.
93855 2007-08-08  Jim Meyering  <jim@meyering.net>
93857         New function: mfile_name_concat.
93858         * lib/filenamecat.c (mfile_name_concat): New function, just like
93859         file_name_concat, but return NULL upon failure rather than exiting
93860         with a diagnostic.
93861         * lib/filenamecat.h: Declare it.
93863 2007-08-07  Bruno Haible  <bruno@clisp.org>
93865         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
93866         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
93867         warning from gcc.
93868         Reported by Eric Blake.
93870 2007-08-07  Simon Josefsson  <simon@josefsson.org>
93872         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
93873         * modules/crypto/arcfour (License): Likewise.
93874         * modules/crypto/des-tests (License): Likewise.
93875         * modules/crypto/gc-arctwo-tests (License): Likewise.
93876         * modules/crypto/gc-des-tests (License): Likewise.
93877         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
93878         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
93879         * modules/crypto/gc-md2-tests (License): Likewise.
93880         * modules/crypto/gc-md4-tests (License): Likewise.
93881         * modules/crypto/gc-md5-tests (License): Likewise.
93882         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
93883         * modules/crypto/gc-rijndael-tests (License): Likewise.
93884         * modules/crypto/gc-sha1-tests (License): Likewise.
93885         * modules/crypto/gc-tests (License): Likewise.
93886         * modules/crypto/hmac-md5 (License): Likewise.
93887         * modules/crypto/hmac-sha1 (License): Likewise.
93888         * modules/crypto/md2-tests (License): Likewise.
93889         * modules/crypto/md4-tests (License): Likewise.
93890         * modules/crypto/md5 (License): Likewise.
93891         * modules/crypto/rijndael (License): Likewise.
93892         * modules/crypto/sha1 (License): Likewise.
93893         * modules/memxor (License): Likewise.
93895 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
93896         and Bruno Haible  <bruno@clisp.org>
93898         * NEWS: Describe interface changes to human, xstrtol.
93899         * lib/human.h: Include <xstrtol.h>.
93900         (human_options): Return enum strtol_error, not int.  Remove
93901         bool arg; take int * instead.
93902         * lib/human.c: Don't include "gettext.h".
93903         (_): Remove; no longer used.
93904         Don't include <xstrtol.h>, since human.h does it.
93905         (human_options): Adjust to abovementioned interface changes.
93906         Do not report error to stderr; that's now the caller's
93907         responsibility.
93908         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
93909         interface change.
93910         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
93911         Str, Argument_type_string.  All uses changed.  Put " argument"
93912         in diagnostics to make them clearer.  Change wording of suffix
93913         message for clarity.
93914         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
93915         Argument_type_string.
93916         (STRTOL_FATAL_WARN): Remove; no longer used.
93917         * modules/human (Depends-on): Remove gettext-h.
93919 2007-08-06  Simon Josefsson  <simon@josefsson.org>
93921         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
93923 2007-07-31  Bruno Haible  <bruno@clisp.org>
93925         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
93926         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
93927         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
93929 2007-07-31  Bruno Haible  <bruno@clisp.org>
93931         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
93932         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
93934 2007-07-30  Bruno Haible  <bruno@clisp.org>
93936         * modules/base64 (License): Use the synonymous term "LGPLv2+".
93937         * modules/c-ctype (License): Likewise.
93938         * modules/c-strcase (License): Likewise.
93939         * modules/check-version (License): Likewise.
93940         * modules/iconv (License): Likewise.
93941         * modules/iconv_open (License): Likewise.
93942         * modules/read-file (License): Likewise.
93943         * modules/striconv (License): Likewise.
93944         * modules/strverscmp (License): Likewise.
93945         * modules/vasprintf (License): Likewise.
93946         * modules/crypto/des (License): Likewise.
93947         * modules/crypto/gc (License): Likewise.
93948         * modules/crypto/gc-arcfour (License): Likewise.
93949         * modules/crypto/gc-arctwo (License): Likewise.
93950         * modules/crypto/gc-des (License): Likewise.
93951         * modules/crypto/gc-hmac-md5 (License): Likewise.
93952         * modules/crypto/gc-hmac-sha1 (License): Likewise.
93953         * modules/crypto/gc-md2 (License): Likewise.
93954         * modules/crypto/gc-md4 (License): Likewise.
93955         * modules/crypto/gc-md5 (License): Likewise.
93956         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
93957         * modules/crypto/gc-random (License): Likewise.
93958         * modules/crypto/gc-rijndael (License): Likewise.
93959         * modules/crypto/gc-sha1 (License): Likewise.
93960         * modules/crypto/md2 (License): Likewise.
93961         * modules/crypto/md4 (License): Likewise.
93963 2007-07-30  Jim Meyering  <jim@meyering.net>
93965         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
93966         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
93967         it has valid stat data.  This bug would cause du not to count the
93968         sizes of inaccessible directories.
93969         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
93970         in <http://bugzilla.redhat.com/250077>.
93972 2007-07-25  Peter O'Gorman  <peter@pogma.com>
93973             Bruno Haible  <bruno@clisp.org>
93975         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
93976         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
93977         #include_next, gives a diagnostic about it, but reports no error in
93978         the exit code.
93979         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
93981 2007-07-24  Ben Pfaff  <blp@gnu.org>
93983         Improve name: "count-one-bits" is better than "popcount".
93984         * MODULES.html.sh: Update name.
93985         * lib/popcount.h: Renamed lib/count-one-bits.h.
93986         (popcount): Renamed count_one_bits.
93987         (popcountl): Renamed count_one_bits_l.
93988         (popcountll): Renamed count_one_bits_ll.
93989         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
93990         * modules/popcount: Renamed module/count-one-bits.
93991         * modules/popcount-tests: Renamed module/count-one-bits-tests.
93992         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
93994 2007-07-23  Ben Pfaff  <blp@gnu.org>
93996         * lib/popcount.h (popcount32): Reduce size of constants, to allow
93997         better code generation, and add U to large constants to avoid
93998         warnings, in non-GCC case.
93999         Suggested by Bruno Haible.
94001 2007-07-23  Ben Pfaff  <blp@gnu.org>
94003         * lib/popcount.h: Use verify_true instead of if...abort.
94004         * modules/popcount: Depend on verify module.
94005         Suggested by Jim Meyering.
94007 2007-07-23  Bruno Haible  <bruno@clisp.org>
94009         * gnulib-tool (func_import): Create a .cvsignore file also when the
94010         directory is not yet in CVS but the toplevel directory is. When
94011         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
94012         Reported by Karl Berry.
94014 2007-07-22  Ben Pfaff  <blp@gnu.org>
94016         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
94017         case.
94018         Suggested by Eric Blake.
94020 2007-07-22  Ben Pfaff  <blp@gnu.org>
94022         New module: popcount.
94023         * MODULES.html.sh: Add popcount.
94024         * modules/popcount: New file.
94025         * modules/popcount-tests: New file.
94026         * tests/test-popcount.c: New file.
94027         * lib/popcount.h: New file.
94028         * m4/popcount.m4: New file.
94030 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94032         * build-aux/announce-gen: Update to GPLv3.
94034         * build-aux/config.guess: Update from config.
94036 2007-07-21  Bruno Haible  <bruno@clisp.org>
94038         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
94039         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
94041 2007-07-20  Jim Meyering  <jim@meyering.net>
94043         * check-module: Diagnose a self-dependency.
94045 2007-07-19  Bruno Haible  <bruno@clisp.org>
94047         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
94048         empty.
94049         Reported by Eric Blake.
94051 2007-07-18  Bruno Haible  <bruno@clisp.org>
94053         * gnulib-tool: New options --po-base, --po-domain.
94054         (func_usage): Document them.
94055         (pobase, po_domain): New variables.
94056         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
94057         DEFAULT_TEXT_DOMAIN.
94058         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
94059         (func_import): Consider pobase and po_domain. Create a po/ directory.
94060         (func_create_testdir): Set pobase and po_domain to empty.
94061         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
94062         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
94064 2007-07-18  Bruno Haible  <bruno@clisp.org>
94066         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94067         EXTRA_DIST augmentation for files in build-aux/.
94069 2007-07-16  Bruno Haible  <bruno@clisp.org>
94071         * modules/lseek (License): Use the synonymous term "LGPLv2+".
94072         * modules/getdelim (License): Likewise.
94074 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94076         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
94077         * modules/d-type (License): Likewise.
94078         * modules/extensions (License): Likewise.
94079         * modules/fnmatch (License): Likewise.
94080         * modules/fseeko (License): Likewise.
94081         * modules/getaddrinfo (License): Likewise.
94082         * modules/getline (License): Likewise.
94083         * modules/getlogin_r (License): Likewise.
94084         * modules/getpass (License): Likewise.
94085         * modules/gettimeofday (License): Likewise.
94086         * modules/glob (License): Likewise.
94087         * modules/inet_ntop (License): Likewise.
94088         * modules/malloc (License): Likewise.
94089         * modules/malloca (License): Likewise.
94090         * modules/memmem (License): Likewise.
94091         * modules/mempcpy (License): Likewise.
94092         * modules/memset (License): Likewise.
94093         * modules/minmax (License): Likewise.
94094         * modules/mktime (License): Likewise.
94095         * modules/netinet_in (License): Likewise.
94096         * modules/pathmax (License): Likewise.
94097         * modules/poll (License): Likewise.
94098         * modules/regex (License): Likewise.
94099         * modules/snprintf (License): Likewise.
94100         * modules/stdbool (License): Likewise.
94101         * modules/stdint (License): Likewise.
94102         * modules/stdio (License): Likewise.
94103         * modules/strcase (License): Likewise.
94104         * modules/strcasestr (License): Likewise.
94105         * modules/strdup (License): Likewise.
94106         * modules/string (License): Likewise.
94107         * modules/strndup (License): Likewise.
94108         * modules/strnlen (License): Likewise.
94109         * modules/strpbrk (License): Likewise.
94110         * modules/strptime (License): Likewise.
94111         * modules/strsep (License): Likewise.
94112         * modules/sys_select (License): Likewise.
94113         * modules/sys_socket (License): Likewise.
94114         * modules/sys_stat (License): Likewise.
94115         * modules/sys_time (License): Likewise.
94116         * modules/time (License): Likewise.
94117         * modules/time_r (License): Likewise.
94118         * modules/timegm (License): Likewise.
94119         * modules/unistd (License): Likewise.
94120         * modules/vsnprintf (License): Likewise.
94121         * modules/wctype (License): Likewise.
94123 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94125         * modules/argz (License): LGPLv2+.
94127 2007-07-15  Karl Berry  <karl@gnu.org>
94129         * doc/gnulib.texi: revise node structure per new fdl.texi.
94131 2007-07-14  Bruno Haible  <bruno@clisp.org>
94133         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
94134         the output file.
94135         * lib/uniname/uninames.h: Regenerated.
94137 2007-07-14  Karl Berry  <karl@gnu.org>
94139         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
94140         omitting sectioning and index commands.
94142 2007-07-13  Bruno Haible  <bruno@clisp.org>
94144         New gnulib-tool option --more-symlinks.
94145         * gnulib-tool (func_usage): Document --more-symlinks.
94146         (do_copyrights): New variable.
94147         Recognize option --more-symlinks.
94148         (func_import): Don't add a copyright notice transform to
94149         sed_transform_lib_file if do_copyrights is empty.
94151 2007-07-13  Bruno Haible  <bruno@clisp.org>
94153         * lib/vasnprintf.c (decimal_point_char): Define also if
94154         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
94155         && !NEED_PRINTF_DIRECTIVE_A.
94156         Reported by Clemens Koller <clemens.koller@anagramm.de> via
94157         Gary V. Vaughan <gary@gnu.org>.
94159 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
94161         * lib/inttypes_.h: Undo previous change, since it was fixed
94162         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
94164 2007-07-13  Bruno Haible  <bruno@clisp.org>
94166         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
94167         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
94169 2007-07-13  Jim Meyering  <jim@meyering.net>
94171         df: Don't fail for Tru64's "file-on-file mount".
94172         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
94173         so we fall through and use statfs instead.  Details here:
94174         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
94175         Reported by Albert Chin.
94177 2007-07-13  Bruno Haible  <bruno@clisp.org>
94179         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
94180         * modules/configmake (License): Likewise.
94181         * modules/gettext (License): Likewise.
94182         * modules/gettext-h (License): Likewise.
94183         * modules/include_next (License): Likewise.
94184         * modules/link-warning (License): Likewise.
94185         * modules/localcharset (License): Likewise.
94186         * modules/localename (License): Likewise.
94187         * modules/lock (License): Likewise.
94188         * modules/relocatable-lib-lgpl (License): Likewise.
94189         * modules/size_max (License): Likewise.
94190         * modules/vasnprintf (License): Likewise.
94191         * modules/wchar (License): Likewise.
94192         * modules/xsize (License): Likewise.
94194 2007-07-13  Bruno Haible  <bruno@clisp.org>
94196         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
94197         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
94199 2007-07-12  Bruno Haible  <bruno@clisp.org>
94201         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
94202         in the modules files.
94204 2007-07-11  Karl Berry  <karl@gnu.org>
94206         * MODULES.html.sh (func_module): use
94207          sed -e '\|^'"${includefile}"'$|d'
94208          instead of /.../d, to avoid errors on $includefile's containing /.
94210 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94212         * gnulib-tool (func_import): Avoid duplication of --avoid
94213         statements
94214         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
94215         names to `_' in variable names.
94217 2007-07-10  Eric Blake  <ebb9@byu.net>
94219         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
94220         * NEWS: Document this change.
94222 2007-07-08  Bruno Haible  <bruno@clisp.org>
94224         Update to Unicode 5.0.
94225         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
94226         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
94227         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
94228         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
94229         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
94230         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
94231         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
94232         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
94233         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
94234         U+10A3F, U+1D242..U+1D244.
94235         (nonspacing_table_ind): Update.
94236         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
94237         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
94239 2007-07-08  Bruno Haible  <bruno@clisp.org>
94241         Update to Unicode 5.0.
94242         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
94243         code transform. Extend the name index field of unicode_name_to_code and
94244         unicode_code_to_name from 16 to 24 bits.
94245         * lib/uniname/uniname.c (unicode_character_name,
94246         unicode_name_character): Add the range 0x12xxx to the code transform.
94247         * lib/uniname/uninames.h: Regenerated.
94248         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
94250 2007-07-07  Bruno Haible  <bruno@clisp.org>
94252         * modules/wcwidth-tests: New file.
94253         * tests/test-wcwidth.c: New file.
94255         Work around MacOS X wcwidth() bug.
94256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
94257         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
94258         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
94259         original wcwidth in non-UTF-8 locales.
94260         * modules/wcwidth (Depends-on): Add localcharset, streq,
94261         uniwidth/width.
94262         * doc/functions/wcwidth.texi: Update.
94264 2007-07-07  Bruno Haible  <bruno@clisp.org>
94266         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
94267         (wcwidth): New declaration.
94268         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
94269         macros.
94270         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
94271         here. Prepare for creating <wchar.h> unconditionally.
94272         * modules/wchar (Depends-on): Add link-warning.
94273         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
94274         REPLACE_WCWIDTH, and GL_LINK_WARNING.
94275         * lib/wcwidth.h: Remove file.
94276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
94277         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
94278         * modules/wcwidth (Files): Remove lib/wcwidth.h.
94279         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
94280         (Include): Replace wcwidth.h with <wchar.h>.
94281         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
94282         * lib/mbchar.h: Don't include wcwidth.h.
94283         * lib/mbswidth.c: Likewise.
94284         * NEWS: Mention the change.
94286 2007-07-07  Bruno Haible  <bruno@clisp.org>
94288         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
94289         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
94290         definition with an external declaration.
94291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
94292         defined as a function. Remove AC_C_INLINE requirement.
94293         * modules/wcwidth (Files): Add lib/wcwidth.c.
94294         (Makefile.am): Remove redundant statement.
94296 2007-07-07  Bruno Haible  <bruno@clisp.org>
94298         * MODULES.html.sh (Unicode string functions): Add the new modules.
94300         * tests/uniwidth/test-u32-strwidth.c: New file.
94301         * modules/uniwidth/u32-strwidth-tests: New file.
94303         * lib/uniwidth/u32-strwidth.c: New file.
94304         * modules/uniwidth/u32-strwidth: New file.
94306         * tests/uniwidth/test-u16-strwidth.c: New file.
94307         * modules/uniwidth/u16-strwidth-tests: New file.
94309         * lib/uniwidth/u16-strwidth.c: New file.
94310         * modules/uniwidth/u16-strwidth: New file.
94312         * tests/uniwidth/test-u8-strwidth.c: New file.
94313         * modules/uniwidth/u8-strwidth-tests: New file.
94315         * lib/uniwidth/u8-strwidth.c: New file.
94316         * modules/uniwidth/u8-strwidth: New file.
94318         * tests/uniwidth/test-u32-width.c: New file.
94319         * modules/uniwidth/u32-width-tests: New file.
94321         * lib/uniwidth/u32-width.c: New file.
94322         * modules/uniwidth/u32-width: New file.
94324         * tests/uniwidth/test-u16-width.c: New file.
94325         * modules/uniwidth/u16-width-tests: New file.
94327         * lib/uniwidth/u16-width.c: New file.
94328         * modules/uniwidth/u16-width: New file.
94330         * tests/uniwidth/test-u8-width.c: New file.
94331         * modules/uniwidth/u8-width-tests: New file.
94333         * lib/uniwidth/u8-width.c: New file.
94334         * modules/uniwidth/u8-width: New file.
94336         * tests/uniwidth/test-uc_width.c: New file.
94337         * modules/uniwidth/width-tests: New file.
94339         * lib/uniwidth/width.c: New file, from GNU libiconv.
94340         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
94341         * modules/uniwidth/width: New file.
94343         * lib/uniwidth.h: New file, from GNU libiconv.
94344         * modules/uniwidth/base: New file.
94346 2007-07-07  Bruno Haible  <bruno@clisp.org>
94348         * lib/uniname.h: New file, from GNU gettext.
94349         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
94350         * lib/uniname/uninames.h: New file, from GNU gettext.
94351         * lib/uniname/uniname.c: New file, from GNU gettext.
94352         * tests/uniname/test-uninames.sh: New file.
94353         * tests/uniname/test-uninames.c: New file, from GNU gettext.
94354         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
94355         * modules/uniname/base: New file.
94356         * modules/uniname/uniname: New file.
94357         * modules/uniname/uniname-tests: New file.
94358         * MODULES.html.sh (Unicode string functions): Add the new modules.
94360 2007-07-06  Bruno Haible  <bruno@clisp.org>
94362         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
94364 2007-07-06  Bruno Haible  <bruno@clisp.org>
94366         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
94367         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
94368         includes <cygwin/sys_time.h> which includes <sys/select.h> which
94369         include <sys/time.h>.
94370         Reported by Eric Blake.
94372 2007-07-06  Eric Blake  <ebb9@byu.net>
94374         Fix testing canonicalize on cygwin.
94375         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
94376         Revert patch from 2007-06-19.
94377         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
94378         canonicalize module is also in use.
94379         * tests/test-canonicalize.c: New file.
94380         * tests/test-canonicalize.sh: Likewise.
94381         * modules/canonicalize-tests: Likewise.
94383 2007-07-06  Jim Meyering  <jim@meyering.net>
94385         * lib/getugroups.c (getugroups): Detect getgrent failure.
94386         Adjust comment to reflect reality: this function may return -1.
94388 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
94390         * build-aux/bootstrap (TP_URL,get_translations): Update to use
94391         the new TP address.
94392         (usage): Fix typo
94393         (gnulib_mk): New variable.
94395 2007-07-05  Jim Meyering  <jim@meyering.net>
94397         Don't let endgrent clobber errno, no matter how improbable.
94398         * lib/getugroups.c (getugroups): Save and restore errno around
94399         endgrent call.
94401         Close the group DB even when failing with 2^31 or more members.
94402         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
94404 2007-07-04  Jim Meyering  <jim@meyering.net>
94406         * lib/getugroups.h: New file.
94407         * lib/getugroups.c: Include "getugroups.h".
94408         Remove uses of "register" keyword.
94409         Move local variable, "cp", down into scope where used.
94410         Give "username" parameter the "const" attribute.
94411         * modules/getugroups (Files): Add lib/getugroups.h
94413 2007-07-04  Karl Berry  <karl@gnu.org>
94415         * MODULES.html.sh (func_all_modules): Complete rename of
94416         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
94418 2007-07-02  Bruno Haible  <bruno@clisp.org>
94420         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
94421         mode, when inttypes.h comes from gnulib.
94422         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
94424 2007-07-02  Simon Josefsson  <simon@josefsson.org>
94426         * NEWS: Mention lgpl module name change.
94428         * modules/lgpl-2.1: Renamed from lgpl.
94430         * NEWS: Mention gpl module name change.
94432         * modules/gpl-3.0: New file, based on gpl-2.0.
94434         * modules/gpl-2.0: Renamed from gpl.
94436         * modules/gpl: Fix filename, doc/gpl.texi is now found at
94437         doc/gpl-2.0.texi.
94439 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94441         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
94442         #define __STDC_LIMIT_MACROS temporarily while including
94443         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
94444         Problem reported by Joel E. Denny in
94445         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
94447 2007-07-01  Bruno Haible  <bruno@clisp.org>
94449         * lib/unistdio.h: New file.
94450         * lib/unistdio/u-asnprintf.h: New file.
94451         * lib/unistdio/u-asprintf.h: New file.
94452         * lib/unistdio/u-printf-args.c: New file.
94453         * lib/unistdio/u-printf-args.h: New file.
94454         * lib/unistdio/u-printf-parse.h: New file.
94455         * lib/unistdio/u-snprintf.h: New file.
94456         * lib/unistdio/u-sprintf.h: New file.
94457         * lib/unistdio/u-vasprintf.h: New file.
94458         * lib/unistdio/u-vsnprintf.h: New file.
94459         * lib/unistdio/u-vsprintf.h: New file.
94460         * lib/unistdio/ulc-asnprintf.c: New file.
94461         * lib/unistdio/ulc-asprintf.c: New file.
94462         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
94463         * lib/unistdio/ulc-printf-parse.c: New file.
94464         * lib/unistdio/ulc-snprintf.c: New file.
94465         * lib/unistdio/ulc-sprintf.c: New file.
94466         * lib/unistdio/ulc-vasnprintf.c: New file.
94467         * lib/unistdio/ulc-vasprintf.c: New file.
94468         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
94469         * lib/unistdio/ulc-vsnprintf.c: New file.
94470         * lib/unistdio/ulc-vsprintf.c: New file.
94471         * lib/unistdio/u8-asnprintf.c: New file.
94472         * lib/unistdio/u8-asprintf.c: New file.
94473         * lib/unistdio/u8-printf-parse.c: New file.
94474         * lib/unistdio/u8-snprintf.c: New file.
94475         * lib/unistdio/u8-sprintf.c: New file.
94476         * lib/unistdio/u8-vasnprintf.c: New file.
94477         * lib/unistdio/u8-vasprintf.c: New file.
94478         * lib/unistdio/u8-vsnprintf.c: New file.
94479         * lib/unistdio/u8-vsprintf.c: New file.
94480         * lib/unistdio/u8-u8-asnprintf.c: New file.
94481         * lib/unistdio/u8-u8-asprintf.c: New file.
94482         * lib/unistdio/u8-u8-snprintf.c: New file.
94483         * lib/unistdio/u8-u8-sprintf.c: New file.
94484         * lib/unistdio/u8-u8-vasnprintf.c: New file.
94485         * lib/unistdio/u8-u8-vasprintf.c: New file.
94486         * lib/unistdio/u8-u8-vsnprintf.c: New file.
94487         * lib/unistdio/u8-u8-vsprintf.c: New file.
94488         * lib/unistdio/u16-asnprintf.c: New file.
94489         * lib/unistdio/u16-asprintf.c: New file.
94490         * lib/unistdio/u16-printf-parse.c: New file.
94491         * lib/unistdio/u16-snprintf.c: New file.
94492         * lib/unistdio/u16-sprintf.c: New file.
94493         * lib/unistdio/u16-vasnprintf.c: New file.
94494         * lib/unistdio/u16-vasprintf.c: New file.
94495         * lib/unistdio/u16-vsnprintf.c: New file.
94496         * lib/unistdio/u16-vsprintf.c: New file.
94497         * lib/unistdio/u16-u16-asnprintf.c: New file.
94498         * lib/unistdio/u16-u16-asprintf.c: New file.
94499         * lib/unistdio/u16-u16-snprintf.c: New file.
94500         * lib/unistdio/u16-u16-sprintf.c: New file.
94501         * lib/unistdio/u16-u16-vasnprintf.c: New file.
94502         * lib/unistdio/u16-u16-vasprintf.c: New file.
94503         * lib/unistdio/u16-u16-vsnprintf.c: New file.
94504         * lib/unistdio/u16-u16-vsprintf.c: New file.
94505         * lib/unistdio/u32-asnprintf.c: New file.
94506         * lib/unistdio/u32-asprintf.c: New file.
94507         * lib/unistdio/u32-printf-parse.c: New file.
94508         * lib/unistdio/u32-snprintf.c: New file.
94509         * lib/unistdio/u32-sprintf.c: New file.
94510         * lib/unistdio/u32-vasnprintf.c: New file.
94511         * lib/unistdio/u32-vasprintf.c: New file.
94512         * lib/unistdio/u32-vsnprintf.c: New file.
94513         * lib/unistdio/u32-vsprintf.c: New file.
94514         * lib/unistdio/u32-u32-asnprintf.c: New file.
94515         * lib/unistdio/u32-u32-asprintf.c: New file.
94516         * lib/unistdio/u32-u32-snprintf.c: New file.
94517         * lib/unistdio/u32-u32-sprintf.c: New file.
94518         * lib/unistdio/u32-u32-vasnprintf.c: New file.
94519         * lib/unistdio/u32-u32-vasprintf.c: New file.
94520         * lib/unistdio/u32-u32-vsnprintf.c: New file.
94521         * lib/unistdio/u32-u32-vsprintf.c: New file.
94522         * tests/unistdio/test-ulc-asnprintf1.c: New file.
94523         * tests/unistdio/test-ulc-asnprintf1.h: New file.
94524         * tests/unistdio/test-ulc-printf1.h: New file.
94525         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
94526         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
94527         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
94528         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
94529         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
94530         * tests/unistdio/test-ulc-vasprintf1.c: New file.
94531         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
94532         * tests/unistdio/test-ulc-vsprintf1.c: New file.
94533         * tests/unistdio/test-u8-asnprintf1.c: New file.
94534         * tests/unistdio/test-u8-asnprintf1.h: New file.
94535         * tests/unistdio/test-u8-printf1.h: New file.
94536         * tests/unistdio/test-u8-vasnprintf1.c: New file.
94537         * tests/unistdio/test-u8-vasnprintf2.c: New file.
94538         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
94539         * tests/unistdio/test-u8-vasnprintf3.c: New file.
94540         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
94541         * tests/unistdio/test-u8-vasprintf1.c: New file.
94542         * tests/unistdio/test-u8-vsnprintf1.c: New file.
94543         * tests/unistdio/test-u8-vsprintf1.c: New file.
94544         * tests/unistdio/test-u16-asnprintf1.c: New file.
94545         * tests/unistdio/test-u16-asnprintf1.h: New file.
94546         * tests/unistdio/test-u16-printf1.h: New file.
94547         * tests/unistdio/test-u16-vasnprintf1.c: New file.
94548         * tests/unistdio/test-u16-vasnprintf2.c: New file.
94549         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
94550         * tests/unistdio/test-u16-vasnprintf3.c: New file.
94551         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
94552         * tests/unistdio/test-u16-vasprintf1.c: New file.
94553         * tests/unistdio/test-u16-vsnprintf1.c: New file.
94554         * tests/unistdio/test-u16-vsprintf1.c: New file.
94555         * tests/unistdio/test-u32-asnprintf1.c: New file.
94556         * tests/unistdio/test-u32-asnprintf1.h: New file.
94557         * tests/unistdio/test-u32-printf1.h: New file.
94558         * tests/unistdio/test-u32-vasnprintf1.c: New file.
94559         * tests/unistdio/test-u32-vasnprintf2.c: New file.
94560         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
94561         * tests/unistdio/test-u32-vasnprintf3.c: New file.
94562         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
94563         * tests/unistdio/test-u32-vasprintf1.c: New file.
94564         * tests/unistdio/test-u32-vsnprintf1.c: New file.
94565         * tests/unistdio/test-u32-vsprintf1.c: New file.
94566         * modules/unistdio/base: New file.
94567         * modules/unistdio/u-printf-args: New file.
94568         * modules/unistdio/ulc-asnprintf: New file.
94569         * modules/unistdio/ulc-asprintf: New file.
94570         * modules/unistdio/ulc-fprintf: New file.
94571         * modules/unistdio/ulc-printf-parse: New file.
94572         * modules/unistdio/ulc-snprintf: New file.
94573         * modules/unistdio/ulc-sprintf: New file.
94574         * modules/unistdio/ulc-vasnprintf: New file.
94575         * modules/unistdio/ulc-vasprintf: New file.
94576         * modules/unistdio/ulc-vfprintf: New file.
94577         * modules/unistdio/ulc-vsnprintf: New file.
94578         * modules/unistdio/ulc-vsprintf: New file.
94579         * modules/unistdio/u8-asnprintf: New file.
94580         * modules/unistdio/u8-asprintf: New file.
94581         * modules/unistdio/u8-printf-parse: New file.
94582         * modules/unistdio/u8-snprintf: New file.
94583         * modules/unistdio/u8-sprintf: New file.
94584         * modules/unistdio/u8-vasnprintf: New file.
94585         * modules/unistdio/u8-vasprintf: New file.
94586         * modules/unistdio/u8-vsnprintf: New file.
94587         * modules/unistdio/u8-vsprintf: New file.
94588         * modules/unistdio/u8-u8-asnprintf: New file.
94589         * modules/unistdio/u8-u8-asprintf: New file.
94590         * modules/unistdio/u8-u8-snprintf: New file.
94591         * modules/unistdio/u8-u8-sprintf: New file.
94592         * modules/unistdio/u8-u8-vasnprintf: New file.
94593         * modules/unistdio/u8-u8-vasprintf: New file.
94594         * modules/unistdio/u8-u8-vsnprintf: New file.
94595         * modules/unistdio/u8-u8-vsprintf: New file.
94596         * modules/unistdio/u16-asnprintf: New file.
94597         * modules/unistdio/u16-asprintf: New file.
94598         * modules/unistdio/u16-printf-parse: New file.
94599         * modules/unistdio/u16-snprintf: New file.
94600         * modules/unistdio/u16-sprintf: New file.
94601         * modules/unistdio/u16-vasnprintf: New file.
94602         * modules/unistdio/u16-vasprintf: New file.
94603         * modules/unistdio/u16-vsnprintf: New file.
94604         * modules/unistdio/u16-vsprintf: New file.
94605         * modules/unistdio/u16-u16-asnprintf: New file.
94606         * modules/unistdio/u16-u16-asprintf: New file.
94607         * modules/unistdio/u16-u16-snprintf: New file.
94608         * modules/unistdio/u16-u16-sprintf: New file.
94609         * modules/unistdio/u16-u16-vasnprintf: New file.
94610         * modules/unistdio/u16-u16-vasprintf: New file.
94611         * modules/unistdio/u16-u16-vsnprintf: New file.
94612         * modules/unistdio/u16-u16-vsprintf: New file.
94613         * modules/unistdio/u32-asnprintf: New file.
94614         * modules/unistdio/u32-asprintf: New file.
94615         * modules/unistdio/u32-printf-parse: New file.
94616         * modules/unistdio/u32-snprintf: New file.
94617         * modules/unistdio/u32-sprintf: New file.
94618         * modules/unistdio/u32-vasnprintf: New file.
94619         * modules/unistdio/u32-vasprintf: New file.
94620         * modules/unistdio/u32-vsnprintf: New file.
94621         * modules/unistdio/u32-vsprintf: New file.
94622         * modules/unistdio/u32-u32-asnprintf: New file.
94623         * modules/unistdio/u32-u32-asprintf: New file.
94624         * modules/unistdio/u32-u32-snprintf: New file.
94625         * modules/unistdio/u32-u32-sprintf: New file.
94626         * modules/unistdio/u32-u32-vasnprintf: New file.
94627         * modules/unistdio/u32-u32-vasprintf: New file.
94628         * modules/unistdio/u32-u32-vsnprintf: New file.
94629         * modules/unistdio/u32-u32-vsprintf: New file.
94630         * modules/unistdio/ulc-asnprintf-tests: New file.
94631         * modules/unistdio/ulc-vasnprintf-tests: New file.
94632         * modules/unistdio/ulc-vasprintf-tests: New file.
94633         * modules/unistdio/ulc-vsnprintf-tests: New file.
94634         * modules/unistdio/ulc-vsprintf-tests: New file.
94635         * modules/unistdio/u8-asnprintf-tests: New file.
94636         * modules/unistdio/u8-vasnprintf-tests: New file.
94637         * modules/unistdio/u8-vasprintf-tests: New file.
94638         * modules/unistdio/u8-vsnprintf-tests: New file.
94639         * modules/unistdio/u8-vsprintf-tests: New file.
94640         * modules/unistdio/u16-asnprintf-tests: New file.
94641         * modules/unistdio/u16-vasnprintf-tests: New file.
94642         * modules/unistdio/u16-vasprintf-tests: New file.
94643         * modules/unistdio/u16-vsnprintf-tests: New file.
94644         * modules/unistdio/u16-vsprintf-tests: New file.
94645         * modules/unistdio/u32-asnprintf-tests: New file.
94646         * modules/unistdio/u32-vasnprintf-tests: New file.
94647         * modules/unistdio/u32-vasprintf-tests: New file.
94648         * modules/unistdio/u32-vsnprintf-tests: New file.
94649         * modules/unistdio/u32-vsprintf-tests: New file.
94650         * MODULES.html.sh (Unicode string functions): Add the new modules.
94652 2007-07-01  Bruno Haible  <bruno@clisp.org>
94654         * lib/sprintf.c (sprintf): Limit the available length estimation,
94655         to avoid address wraparound.
94656         * lib/vsprintf.c (vsprintf): Likewise.
94657         * modules/sprintf-posix (Dependencies): Add stdint.
94658         * modules/vsprintf-posix (Dependencies): Likewise.
94660 2007-07-01  Bruno Haible  <bruno@clisp.org>
94662         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
94663         Windows PATH as well. Conservative double-quoting. Comments.
94665 2007-07-01  Bruno Haible  <bruno@clisp.org>
94666             Eric Blake  <ebb9@byu.net>
94667             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94669         * gnulib-tool (self_abspathname): Fix algorithm to cope with
94670         empty components in $PATH, denoting '.'.
94672 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94674         * gnulib-tool: Fix indentation.
94675         (func_create_megatestdir): Likewise.
94676         Report by Bruno Haible.
94678 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94680         Sync from Automake.
94681         * build-aux/gnupload: Fix shell portability issues with for loops.
94682         Report by Karl Berry.
94684 2007-06-29  Simon Josefsson  <simon@josefsson.org>
94686         * build-aux/maint.mk (POURL): Use translationproject.org.
94688 2007-06-27  Simon Josefsson  <simon@josefsson.org>
94689             Bruno Haible  <bruno@clisp.org>
94691         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
94692         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
94693         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
94694         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
94695         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
94697 2007-06-27  Bruno Haible  <bruno@clisp.org>
94699         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
94700         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
94702 2007-06-26  Karl Berry  <karl@gnu.org>
94704         * MODULES.html.sh: remove xreadlink-with-size.
94706 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
94708         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
94709         method that I hope also handles the double-include problem noted
94710         by Bruno Haible in
94711         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
94713 2007-06-23  Bruno Haible  <bruno@clisp.org>
94715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94716         Don't let the 'mostlyclean' target fail if the last subdirectory could
94717         not be removed.
94718         Reported by Karl Berry.
94720 2007-06-23  Bruno Haible  <bruno@clisp.org>
94722         * gnulib-tool (echo): Add a speedier workaround for ksh.
94723         * tests/test-echo.sh: Likewise.
94725 2007-06-23  Bruno Haible  <bruno@clisp.org>
94727         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
94728         * tests/test-echo.sh: Likewise.
94730 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94732         * gnulib-tool (IFS): Initialize early, so we don't set it to
94733         empty later.
94734         (self_abspathname): Rewrite algorithm to set it, reindent.
94735         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
94736         (func_create_megatestdir): Merge some sed scripts.
94738 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
94740         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
94741         exposed by Sun Studio 11 cc on Solaris 8.
94743 2007-06-22  Bruno Haible  <bruno@clisp.org>
94745         * gnulib-tool (echo): Ensure the echo primitive does not interpret
94746         backslashes.
94747         * tests/test-echo.sh: New file.
94749 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94751         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
94752         simplify `sed_replace_build_aux' scripts, they are portable but
94753         echoing them with `echo' is not.
94754         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
94756 2007-06-21  Karl Berry  <karl@gnu.org>
94758         * config/srclist.txt: guess we can't handle the licenses via
94759         srclist at the moment.
94761 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
94763         * MODULES.html.sh: Add include_next.
94764         * modules/include_next: New file.
94766 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
94768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
94769         INCLUDE_NEXT.
94770         (gl_CHECK_NEXT_HEADERS): New macro.
94771         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
94772         the obsolescent gl_ABSOLUTE_HEADER.
94773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
94774         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
94775         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
94776         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94777         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
94778         * m4/math_h.m4 (gl_MATH_H): Likewise.
94779         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94780         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
94781         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
94782         * m4/stdint.m4 (gl_STDINT_H): Likewise.
94783         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
94784         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
94785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
94786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
94789         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
94790         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
94791         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
94792         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
94793         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
94794         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94795         * m4/inttypes.m4 (gl_INTTYPES_H): Define
94796         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
94797         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
94798         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
94799         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
94800         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
94801         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
94802         * lib/float_.h: Likewise.
94803         * lib/inttypes_.h: Likewise.
94804         * lib/math_.h: Likewise.
94805         * lib/search_.h: Likewise.
94806         * lib/signal_.h: Likewise.
94807         * lib/stdint_.h: Likewise.
94808         * lib/stdio_.h: Likewise.
94809         * lib/stdlib_.h: Likewise.
94810         * lib/string_.h: Likewise.
94811         * lib/sys_stat_.h: Likewise.
94812         * lib/sys_time_.h: Likewise.
94813         * lib/time_.h: Likewise.
94814         * lib/unistd_.h: Likewise.
94815         * lib/wchar_.h: Likewise.
94816         * lib/wctype_.h: Likewise.
94817         * lib/dirent_.h: Likewise.
94818         * lib/iconv_.h: Likewise.
94819         * lib/locale_.h: Likewise.
94820         * lib/netinet_in_.h: Likewise.
94821         * lib/sys_select_.h: Likewise.
94822         * lib/sys_socket_.h: Likewise.
94823         * lib/sysexits_.h: Likewise.
94824         * modules/fcntl (Depends-on): Depend on include_next, not
94825         absolute_header.
94826         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
94827         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
94828         * modules/fchdir: Likewise.
94829         * modules/float: Likewise.
94830         * modules/iconv_open: Likewise.
94831         * modules/inttypes: Likewise.
94832         * modules/locale: Likewise.
94833         * modules/math: Likewise.
94834         * modules/netinet_in: Likewise.
94835         * modules/search: Likewise.
94836         * modules/signal: Likewise.
94837         * modules/stdint: Likewise.
94838         * modules/stdio: Likewise.
94839         * modules/stdlib: Likewise.
94840         * modules/string: Likewise.
94841         * modules/sys_select: Likewise.
94842         * modules/sys_socket: Likewise.
94843         * modules/sys_stat: Likewise.
94844         * modules/sys_time: Likewise.
94845         * modules/sysexits: Likewise.
94846         * modules/time: Likewise.
94847         * modules/unistd: Likewise.
94848         * modules/wchar: Likewise.
94849         * modules/wctype: Likewise.
94850         * modules/sys_stat: Change maintainer to "all".
94851         * modules/unistd: Likewise.
94853 2007-06-20  Karl Berry  <karl@gnu.org>
94855         * config/srclist.txt: track www changes in license files.
94857 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
94859         * build-aux/bootstrap: Remove stray dot.
94860         Make sure build_aux settings are honored when linking
94861         gnulib_extra_files.
94863 2007-06-19  Eric Blake  <ebb9@byu.net>
94865         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
94866         Allow compilation on cygwin.
94868 2007-06-19  Jim Meyering  <jim@meyering.net>
94870         xreadlink-with-size: Remove module.  No longer used.
94871         Ex-callers now use xreadlink or mreadlink-with-size.
94872         * modules/xreadlink-with-size: Remove module.
94873         * lib/xreadlink-with-size.c: Remove file.
94874         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
94875         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
94876         just before the function definition *is* accurate.
94878         Eliminate one way canonicalize_filename_mode could exit.
94879         * lib/canonicalize.c (canonicalize_filename_mode):
94880         Use mreadlink_with_size, not xreadlink_with_size.
94882 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
94884         Detect porting problems to FreeBSD/arm, which has time_t wider than
94885         long int.  Original problem reported for GNU diff by Xin Li in
94886         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
94887         * modules/getdate (Depends-on): Add intprops, verify.
94888         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
94889         is an integer type no wider than long int.
94891 2007-06-18  Jim Meyering  <jim@meyering.net>
94893         New module: mreadlink-with-size.
94894         * MODULES.html.sh: Add mreadlink-with-size.
94895         * modules/mreadlink-with-size: New module
94896         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
94897         not xreadlink-with-size.
94898         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
94900 2007-06-16  Bruno Haible  <bruno@clisp.org>
94902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
94903         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
94904         Reported by Gary V. Vaughan <gary@gnu.org>.
94906 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
94908         Revamp lchown so that it lives in unistd.h where it belongs.
94909         * lib/lchown.h: Remove.
94910         * lib/dirchownmod.c: Don't include lib/lchown.h.
94911         * lib/fchownat.c: Likewise.
94912         * lib/openat.c: Likewise.
94913         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
94914         does not follow symlinks.
94915         (EOPNOTSUPP): Define if not defined.
94916         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
94917         is defined to 0.
94918         (lchown): New decl.
94919         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
94920         Do not check for lchown decl.
94921         Set REPLACE_LCHOWN.
94922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
94923         REPLACE_LCHOWN.
94924         * modules/chown: Make it clear it follows symlinks.
94925         * modules/lchown: Make it clear it doesn't follow symlinks.
94926         (Files): Remove lib/lchown.h
94927         (Depends-on): Add unistd.
94928         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
94929         (Include): Include <unistd.h>, not "lchown.h".
94930         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
94931         REPLACE_LCHOWN.
94933 2007-06-15  Jim Meyering  <jim@meyering.net>
94935         Change license (GPL to LGPL) of fsusage and dependents.
94936         * modules/fsusage (License): Change to LGPL.
94937         * modules/full-read (License): Likewise.
94938         * modules/full-write (License): Likewise.
94939         * modules/safe-read (License): Likewise.
94940         * modules/safe-write (License): Likewise.
94942 2007-06-14  Ben Pfaff  <blp@gnu.org>
94944         Missing part of allocsa -> malloca transition.
94945         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
94946         gl_MALLOCA.
94948 2007-06-12  Bruno Haible  <bruno@clisp.org>
94950         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
94951         to ia64, x86_64, i386.
94952         Reported by Eric Blake.
94954 2007-06-12  Bruno Haible  <bruno@clisp.org>
94956         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
94957         cross-compiling to x86_64.
94959 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
94961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
94962         glitch reported by Ralf Wildenhues in
94963         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
94965         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
94966         Vin Shelton.
94968 2007-06-11  Bruno Haible  <bruno@clisp.org>
94970         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
94971         replacement string.
94972         Reported by Eric Blake.
94974 2007-06-10  Bruno Haible  <bruno@clisp.org>
94976         Prepare vasnprintf code for use with Unicode strings.
94977         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
94978         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
94979         TYPE_U32_STRING.
94980         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
94981         a_u32_string variants.
94982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
94983         * lib/printf-args.c: Don't include config.h and the specification
94984         header if PRINTF_FETCHARGS is already defined.
94985         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
94986         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
94987         TYPE_U16_STRING, TYPE_U32_STRING.
94988         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
94989         u16_directive, u16_directives, u32_directive, u32_directives): New
94990         types.
94991         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
94992         New declarations.
94993         * lib/printf-parse.c: Don't include config.h and the specification
94994         header if PRINTF_PARSE is already defined. Eliminate the set of
94995         parameters for WIDE_CHAR_VERSION; the user of this file must provide
94996         them now. Include c-ctype.h.
94997         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
94998         directive and CHAR_T_ONLY_ASCII.
94999         * lib/vasnprintf.c: Don't include config.h and the specification header
95000         if VASNPRINTF is already defined.
95001         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
95002         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
95003         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
95004         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
95005         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
95006         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
95007         code accordingly.
95008         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
95009         pad_ourselves also in this case, with the 'c' and 's' directives, and
95010         with a different notion of "width".
95011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
95013 2007-06-10  Bruno Haible  <bruno@clisp.org>
95015         * modules/unistr/u32-mbsnlen: New file.
95016         * lib/unistr/u32-mbsnlen.c: New file.
95018         * modules/unistr/u16-mbsnlen: New file.
95019         * lib/unistr/u16-mbsnlen.c: New file.
95021         * modules/unistr/u8-mbsnlen: New file.
95022         * lib/unistr/u8-mbsnlen.c: New file.
95024         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
95025         declarations.
95027 2007-06-10  Bruno Haible  <bruno@clisp.org>
95029         * lib/string_.h (mbsnlen): New declaration.
95030         * lib/mbsnlen.c: New file.
95031         * m4/mbsnlen.m4: New file.
95032         * modules/mbsnlen: New file.
95033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
95034         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
95035         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
95037 2007-06-10  Bruno Haible  <bruno@clisp.org>
95039         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
95041 2007-06-10  Bruno Haible  <bruno@clisp.org>
95043         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
95044         * lib/mbuiter.h: Likewise.
95046 2007-06-10  Bruno Haible  <bruno@clisp.org>
95048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
95049         declaration.
95051 2007-06-10  Karl Berry  <karl@gnu.org>
95053         * config/srclist.txt: remove gettext entries, Bruno prefers
95054         to update individually.
95056 2007-06-10  Bruno Haible  <bruno@clisp.org>
95058         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
95059         'maxlen'. Ensure only length + width bytes are allocated, not
95060         length + 1 + width.
95062 2007-06-09  Bruno Haible  <bruno@clisp.org>
95064         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
95065         (CHAR_T): Remove macro.
95066         (VASNPRINTF): Update.
95068 2007-06-09  Bruno Haible  <bruno@clisp.org>
95070         * MODULES.html.sh (Unicode string functions): Add the new modules.
95072         * modules/uniconv/u32-conv-to-enc: New file.
95073         * lib/uniconv/u32-conv-to-enc.c: New file.
95074         * modules/uniconv/u32-conv-to-enc-tests: New file.
95075         * tests/uniconv/test-u32-conv-to-enc.c: New file.
95077         * modules/uniconv/u16-conv-to-enc: New file.
95078         * lib/uniconv/u16-conv-to-enc.c: New file.
95079         * lib/uniconv/u-conv-to-enc.h: New file.
95080         * modules/uniconv/u16-conv-to-enc-tests: New file.
95081         * tests/uniconv/test-u16-conv-to-enc.c: New file.
95083         * modules/uniconv/u8-conv-to-enc: New file.
95084         * lib/uniconv/u8-conv-to-enc.c: New file.
95085         * modules/uniconv/u8-conv-to-enc-tests: New file.
95086         * tests/uniconv/test-u8-conv-to-enc.c: New file.
95088         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
95089         u32_conv_to_encoding): New declarations.
95091 2007-06-09  Bruno Haible  <bruno@clisp.org>
95093         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
95095 2007-06-09  Bruno Haible  <bruno@clisp.org>
95097         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
95098         * modules/malloca: Renamed from modules/allocsa, updated.
95099         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
95100         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
95101         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
95102         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
95103         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
95104         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
95105         * modules/xmalloca: Renamed from modules/xallocsa, updated.
95106         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
95107         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
95108         * modules/c-strcasestr (Depends-on): Update.
95109         * lib/c-strcasestr.c: Update.
95110         * modules/c-strstr (Depends-on): Update.
95111         * lib/c-strstr.c: Update.
95112         * modules/canonicalize-lgpl (Depends-on): Update.
95113         * lib/canonicalize-lgpl.c: Update.
95114         * modules/clean-temp (Depends-on): Update.
95115         * lib/clean-temp.c: Update.
95116         * modules/csharpcomp (Depends-on): Update.
95117         * lib/csharpcomp.c: Update.
95118         * modules/csharpexec (Depends-on): Update.
95119         * lib/csharpexec.c: Update.
95120         * modules/javacomp (Depends-on): Update.
95121         * lib/javacomp.c: Update.
95122         * modules/javaexec (Depends-on): Update.
95123         * lib/javaexec.c: Update.
95124         * modules/mbscasestr (Depends-on): Update.
95125         * lib/mbscasestr.c: Update.
95126         * modules/mbsstr (Depends-on): Update.
95127         * lib/mbsstr.c: Update.
95128         * modules/setenv (Depends-on): Update.
95129         * lib/setenv.c: Update.
95130         * modules/strcasestr (Depends-on): Update.
95131         * lib/strcasestr.c: Update.
95132         * modules/striconveha (Depends-on): Update.
95133         * lib/striconveha.c: Update.
95134         * modules/relocatable-prog-wrapper (Files): Update.
95135         * lib/relocwrapper.c: Update.
95136         * build-aux/install-reloc: Update.
95137         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
95139 2007-06-08  Bruno Haible  <bruno@clisp.org>
95141         Port to uClibc.
95142         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
95143         * lib/fpurge.c (fpurge): Likewise.
95144         * lib/freading.c (freading): Likewise.
95145         * lib/fseeko.c (rpl_fseeko): Likewise.
95146         * lib/fseterr.c (fseterr): Likewise.
95147         * lib/fwriting.c (fwriting): Likewise.
95148         * tests/test-fflush.c (main): Avoid a failure on uClibc.
95150 2007-06-08  Bruno Haible  <bruno@clisp.org>
95152         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
95153         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
95154         * modules/gettext (Files): Add m4/intlmacosx.m4.
95156 2007-06-07  Bruno Haible  <bruno@clisp.org>
95158         * modules/localename-tests: New file.
95159         * tests/test-localename.c: New file.
95161         New module 'localename'.
95162         * lib/localename.h: New file.
95163         * lib/localename.c: New file, from GNU gettext.
95164         * m4/localename.m4: New file.
95165         * modules/localename: New file.
95167 2007-06-07  Bruno Haible  <bruno@clisp.org>
95169         Work around the lack of <wchar.h> on some builds of uClibc.
95170         * doc/headers/wchar.texi: Update.
95171         * lib/wchar_.h: Include <wchar.h> only if it exists.
95172         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
95173         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
95174         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
95175         doesn't exist.
95176         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
95177         * modules/mbfile (Depends-on): Add wchar.
95178         * modules/mbiter (Depends-on): Likewise.
95179         * modules/mbuiter (Depends-on): Likewise.
95180         Reported by Simon Josefsson.
95182 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
95184         Work around problem reported by Steven M. Schweda in
95185         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
95186         Tru64 5.1B with the Compaq compiler environment installed declares
95187         an 'isblank' function but does not define it in the C library.
95188         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
95189         * lib/regex_internal.h (isblank): Likewise.
95190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
95191         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
95193 2007-06-05  Bruno Haible  <bruno@clisp.org>
95195         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
95196         ia64.
95197         * modules/printf-safe: New file.
95198         * modules/fprintf-posix (Depends-on): Add printf-safe.
95199         * modules/printf-posix (Depends-on): Likewise.
95200         * modules/snprintf-posix (Depends-on): Likewise.
95201         * modules/sprintf-posix (Depends-on): Likewise.
95202         * modules/vasnprintf-posix (Depends-on): Likewise.
95203         * modules/vasprintf-posix (Depends-on): Likewise.
95204         * modules/vfprintf-posix (Depends-on): Likewise.
95205         * modules/vprintf-posix (Depends-on): Likewise.
95206         * modules/vsnprintf-posix (Depends-on): Likewise.
95207         * modules/vsprintf-posix (Depends-on): Likewise.
95208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
95209         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
95210         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
95211         "no" on i386, x86_64, ia64.
95212         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
95213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95214         on i386, x86_64, ia64.
95215         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
95216         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95217         on i386, x86_64, ia64.
95218         * tests/test-vasnprintf-posix.c: Include float.h.
95219         (LDBL80_WORDS): New macro.
95220         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95221         on i386, x86_64, ia64.
95222         * tests/test-vasprintf-posix.c: Include float.h.
95223         (LDBL80_WORDS): New macro.
95224         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
95225         on i386, x86_64, ia64.
95226         * tests/test-snprintf-posix.c: Include float.h.
95227         * tests/test-sprintf-posix.c: Likewise.
95228         * tests/test-vsnprintf-posix.c: Likewise.
95229         * tests/test-vsprintf-posix.c: Likewise.
95231 2007-06-05  Bruno Haible  <bruno@clisp.org>
95233         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
95234         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
95235         non-IEEE numbers on i386, x86_64, ia64.
95236         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
95237         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
95238         * tests/test-isnanl.h: Include float.h.
95239         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
95241 2007-06-05  Bruno Haible  <bruno@clisp.org>
95243         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
95244         also the %a / %A. Handle the %a / %A code before this extra handling.
95246 2007-06-05  Bruno Haible  <bruno@clisp.org>
95248         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
95249         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
95251 2007-06-05  Bruno Haible  <bruno@clisp.org>
95253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
95254         typo in variable name.
95256 2007-06-05  Eric Blake  <ebb9@byu.net>
95258         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
95259         Reported by Simon Josefsson.
95261 2007-06-04  Bruno Haible  <bruno@clisp.org>
95263         Avoid test failures on some PowerPC platforms.
95264         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
95265         Define differently for PowerPC.
95266         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
95267         Reported by Gary V. Vaughan <gary@gnu.org>.
95269 2007-06-02  Bruno Haible  <bruno@clisp.org>
95271         Fix test-stdint failure on FreeBSD/ia64.
95272         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
95273         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
95274         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
95275         * doc/headers/stdint.texi: Update.
95277 2007-06-01  Bruno Haible  <bruno@clisp.org>
95279         * tests/test-binary-io.c (main): Pass a third argument to open().
95280         Reported by Gary V. Vaughan <gary@gnu.org>.
95282 2007-06-01  Bruno Haible  <bruno@clisp.org>
95284         * doc/functions/frexpl.texi: Update for mingw.
95286 2007-06-01  Bruno Haible  <bruno@clisp.org>
95288         * tests/test-lseek.c (main): Disable test of errno for invalid third
95289         argument.
95290         * doc/functions/lseek.texi: Update.
95291         Reported by Gary V. Vaughan <gary@gnu.org>.
95293 2007-05-28  Bruno Haible  <bruno@clisp.org>
95295         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
95297 2007-05-31  Eric Blake  <ebb9@byu.net>
95299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
95300         cross compiling.
95302 2007-05-30  Eric Blake  <ebb9@byu.net>
95303         and Bruno Haible  <bruno@clisp.org>
95305         Work around mingw test failures exposed by m4-1.4.9b.
95306         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
95307         * tests/test-unistd.c: Disable uid_t and git_t tests for the
95308         moment.
95310 2007-05-30  Bruno Haible  <bruno@clisp.org>
95312         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
95313         assuming that they are closed. Needed on HP-UX 11.
95315 2007-05-29  Bruno Haible  <bruno@clisp.org>
95317         Fix a problem with #include_next.
95318         * lib/dirent_.h: Split the double-inclusion guard.
95319         * lib/fcntl_.h: Likewise.
95320         * lib/float_.h: Likewise.
95321         * lib/iconv_.h: Likewise.
95322         * lib/inttypes_.h: Likewise.
95323         * lib/locale_.h: Likewise.
95324         * lib/math_.h: Likewise.
95325         * lib/netinet_in_.h: Likewise.
95326         * lib/search_.h: Likewise.
95327         * lib/signal_.h: Likewise.
95328         * lib/stdint_.h: Likewise.
95329         * lib/stdio_.h: Likewise.
95330         * lib/stdlib_.h: Likewise.
95331         * lib/string_.h: Likewise.
95332         * lib/sys_select_.h: Likewise.
95333         * lib/sys_socket_.h: Likewise.
95334         * lib/sys_stat_.h: Likewise.
95335         * lib/sys_time_.h: Likewise.
95336         * lib/sysexits_.h: Likewise.
95337         * lib/time_.h: Likewise.
95338         * lib/unistd_.h: Likewise.
95339         * lib/wchar_.h: Likewise.
95340         * lib/wctype_.h: Likewise.
95342 2007-05-29  Bruno Haible  <bruno@clisp.org>
95344         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
95345         for the moment.
95347 2007-05-29  Bruno Haible  <bruno@clisp.org>
95349         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
95350         invocation.
95351         Reported by Eric Blake.
95353 2007-05-29  Bruno Haible  <bruno@clisp.org>
95355         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
95356         compiling case.
95358 2007-05-29  Eric Blake  <ebb9@byu.net>
95359             Bruno Haible  <bruno@clisp.org>
95361         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
95362         cross compiles.
95364 2007-05-28  Eric Blake  <ebb9@byu.net>
95366         * modules/closein-tests (test_closein_LDADD): Support test on
95367         cygwin with libtool.
95369 2007-05-28  Bruno Haible  <bruno@clisp.org>
95371         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
95372         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
95373         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
95374         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
95375         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
95376         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
95377         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
95378         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
95379         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
95381 2007-05-28  Eric Blake  <ebb9@byu.net>
95383         Unconditionally include <config.h> in unit tests.
95384         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
95385         * tests/test-allocsa.c, tests/test-arcfour.c,
95386         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
95387         tests/test-array_list.c, tests/test-array_oset.c,
95388         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
95389         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
95390         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
95391         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
95392         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
95393         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
95394         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
95395         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
95396         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
95397         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
95398         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
95399         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
95400         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
95401         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
95402         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
95403         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
95404         test-md5.c, test-memmem.c, test-printf-posix.c,
95405         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
95406         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
95407         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
95408         test-strcasestr.c, test-striconv.c, test-striconveh.c,
95409         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
95410         test-vasnprintf-posix2.c, test-vasnprintf.c,
95411         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
95412         test-vfprintf-posix.c, test-vprintf-posix.c,
95413         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
95414         test-xvasprintf.c: Likewise.
95416 2007-05-28  Bruno Haible  <bruno@clisp.org>
95418         * gnulib-tool (func_import): Remember the --with-tests command-line
95419         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
95420         Reported by Eric Blake.
95422 2007-05-28  Bruno Haible  <bruno@clisp.org>
95424         * modules/ftell-tests: New file.
95425         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
95426         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
95428         * lib/ftell.c: New file.
95429         * modules/ftell: New file.
95430         * m4/ftell.m4: New file.
95431         * doc/functions/ftell.texi: Update.
95432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
95433         REPLACE_FTELL.
95434         * lib/stdio_.h (rpl_ftell): New declaration.
95435         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
95436         REPLACE_FTELL.
95438 2007-05-28  Eric Blake  <ebb9@byu.net>
95440         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
95442 2007-05-28  Bruno Haible  <bruno@clisp.org>
95444         * modules/fseek-tests: New file.
95445         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
95446         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
95448         * lib/fseek.c: New file.
95449         * modules/fseek: New file.
95450         * m4/fseek.m4: New file.
95451         * doc/functions/fseek.texi: Update.
95452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
95453         REPLACE_FSEEK.
95454         * lib/stdio_.h (rpl_fseek): New declaration.
95455         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
95456         REPLACE_FSEEK.
95458 2007-05-28  Bruno Haible  <bruno@clisp.org>
95460         * lib/stdio_.h (fflush): More comments.
95462 2007-05-28  Bruno Haible  <bruno@clisp.org>
95464         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
95465         runtime test.
95467 2007-05-28  Eric Blake  <ebb9@byu.net>
95469         Improve lseek module.
95470         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
95471         * lib/unistd_.h (lseek): Scale back link warning message.
95472         * tests/test-lseek.c: Beef up test.
95473         * tests/test-lseek.sh: Exercise more facets of lseek.
95474         Reported by Bruno Haible.
95476 2007-05-28  Bruno Haible  <bruno@clisp.org>
95478         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
95479         to define.
95481 2007-05-27  Bruno Haible  <bruno@clisp.org>
95483         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
95485 2007-05-27  Bruno Haible  <bruno@clisp.org>
95487         * modules/openmp: New file.
95488         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
95489         Noah Misch.
95491 2007-05-26  Bruno Haible  <bruno@clisp.org>
95493         * modules/chdir-long (Depends-on): Add fchdir.
95494         * modules/chdir-safer (Depends-on): Likewise.
95495         * modules/fts (Depends-on): Likewise.
95496         * modules/fts-lgpl (Depends-on): Likewise.
95497         * modules/openat (Depends-on): Likewise.
95498         * modules/savewd (Depends-on): Likewise.
95500 2007-05-24  Eric Blake  <ebb9@byu.net>
95502         Fix lseek on mingw.
95503         * modules/lseek: New module.
95504         * m4/lseek.m4: New file.
95505         * lib/lseek.c: New file.
95506         * modules/lseek-tests: New file.
95507         * tests/test-lseek.c: New file.
95508         * tests/test-lseek.sh: New file.
95509         * MODULES.html.sh: Document lseek module.
95510         * modules/fflush (Depends-on): Add lseek, fseeko.
95511         * modules/fseeko (Depends-on): Likewise.
95512         * modules/ftello (Depends-on): Likewise.
95513         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
95514         broken.
95515         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
95516         broken.
95517         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
95518         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
95519         * lib/ftello.c (rpl_ftello): Likewise.
95520         * tests/test-fseeko.c (main): Test this.
95521         * tests/test-fseeko.sh: Likewise.
95522         * tests/test-ftello.c (main): Likewise.
95523         * tests/test-ftello.sh: Likewise.
95524         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
95525         implies replacing fseek.
95526         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
95527         HAVE_FTELLO.
95528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
95529         * modules/unistd (Makefile.am): Likewise.
95530         * lib/unistd_.h (lseek): Declare a replacement.
95531         * doc/functions/lseek.texi (lseek): Document this fix.
95532         * doc/functions/fseek.texi (fseek): Likewise.
95533         * doc/functions/ftell.texi (ftell): Likewise.
95535 2007-05-24  Bruno Haible  <bruno@clisp.org>
95537         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
95538         in the printed representation of a NaN.
95539         * tests/test-vasprintf-posix.c (test_function): Likewise.
95540         * tests/test-snprintf-posix.h (test_function): Likewise.
95541         * tests/test-sprintf-posix.h (test_function): Likewise.
95542         Reported by Eric Blake.
95544 2007-05-23  Eric Blake  <ebb9@byu.net>
95546         Fix fseeko/ftello on cygwin 1.5.24.
95547         * doc/functions/fseeko.texi (fseeko): Document the fix.
95548         * doc/functions/ftello.texi (ftello): Document the fix.
95549         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
95550         * doc/functions/stdout.text (stdout): New file.
95551         * doc/functions/stderr.text (stderr): New file.
95552         * doc/gnulib.texi (Function Substitutes): Use new files.
95553         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
95554         prior to 1.7.0.
95555         * tests/test-ftello.c (main): Likewise for ftello.
95556         * tests/test-fseeko.sh: New file.
95557         * tests/test-ftello.sh: New file.
95558         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
95559         with seekable stdin.
95560         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
95561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
95562         (gl_REPLACE_FSEEKO): New macro.
95563         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
95564         * modules/fseeko (Files): Distribute fseeko.c.
95565         * modules/ftello (Files): Distribute ftello.c.
95566         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
95567         mode.
95568         * lib/ftello.c (rpl_ftello): New file.
95569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
95570         fseeko, ftello.
95571         (gl_STDIN_LARGE_OFFSET): New macro.
95572         * modules/stdio (Makefile.am): Perform the replacement.
95573         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
95575 2007-05-23  Bruno Haible  <bruno@clisp.org>
95577         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
95578         GNULIB_POSIXCHECK is defined.
95580 2007-05-21  Bruno Haible  <bruno@clisp.org>
95582         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
95583         Check also the output for NaN arguments. When cross-compiling, guess
95584         no on IRIX.
95585         * lib/vasnprintf.c: Update comments.
95586         * tests/test-vasnprintf-posix.c (strisnan): New function.
95587         (test_function): Use it.
95588         * tests/test-vasprintf-posix.c (strisnan): New function.
95589         (test_function): Use it.
95590         * tests/test-snprintf-posix.h (strisnan): New function.
95591         (test_function): Use it.
95592         * tests/test-sprintf-posix.h (strisnan): New function.
95593         (test_function): Use it.
95594         Reported by Eric Blake.
95596 2007-05-20  Bruno Haible  <bruno@clisp.org>
95598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
95599         numbers that fails on BeOS.
95600         * doc/functions/frexpl.texi: Update.
95602 2007-05-20  Jim Meyering  <jim@meyering.net>
95604         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
95605         forced upon us by glibc-2.6.
95607 2007-05-20  Bruno Haible  <bruno@clisp.org>
95609         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
95610         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
95611         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
95612         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
95613         NEED_PRINTF_INFINITE.
95614         (is_infinitel): New function.
95615         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
95616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
95617         gl_PREREQ_VASNPRINTF_INFINITE.
95618         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
95619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95620         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
95621         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
95622         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
95623         gl_PREREQ_VASNPRINTF_INFINITE.
95624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95631         * doc/functions/fprintf.texi: Update.
95632         * doc/functions/printf.texi: Update.
95633         * doc/functions/snprintf.texi: Update.
95634         * doc/functions/sprintf.texi: Update.
95635         * doc/functions/vfprintf.texi: Update.
95636         * doc/functions/vprintf.texi: Update.
95637         * doc/functions/vsnprintf.texi: Update.
95638         * doc/functions/vsprintf.texi: Update.
95640 2007-05-20  Bruno Haible  <bruno@clisp.org>
95642         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
95643         was not found in libc.
95644         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
95646 2007-05-20  Bruno Haible  <bruno@clisp.org>
95648         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
95649         printed as "-nan" instead of "nan".
95650         * tests/test-vasprintf-posix.c (test_function): Likewise.
95651         * tests/test-snprintf-posix.h (test_function): Likewise.
95652         * tests/test-sprintf-posix.h (test_function): Likewise.
95653         Needed for HP-UX 11.
95655 2007-05-20  Jim Meyering  <jim@meyering.net>
95657         Fix buggy test for the fchownat-deref bug.
95658         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
95659         symlink required for the run-test.  Without it, this test would
95660         always declare that fchownat doesn't work, and client code would
95661         unnecessarily use the replacement function with fixed libc.
95662         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
95663         Reported by Greg Schafer.
95665 2007-05-19  Bruno Haible  <bruno@clisp.org>
95667         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
95668         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
95669         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
95670         Needed for IRIX 6.5 and Solaris 2.5.1.
95672 2007-05-19  Bruno Haible  <bruno@clisp.org>
95674         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
95675         (test_function): Skip tests involving -0.0 on platforms where
95676         -0.0 = 0.0.
95677         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
95678         (test_function): Skip tests involving -0.0 on platforms where
95679         -0.0 = 0.0.
95680         * tests/test-snprintf-posix.h (have_minus_zero): New function.
95681         (test_function): Skip tests involving -0.0 on platforms where
95682         -0.0 = 0.0.
95683         * tests/test-sprintf-posix.h (have_minus_zero): New function.
95684         (test_function): Skip tests involving -0.0 on platforms where
95685         -0.0 = 0.0.
95686         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
95687         tests.
95688         * tests/test-printf-posix.h (test_function): Likewise.
95689         * tests/test-printf-posix.output: Remove all -0.0 related results.
95690         Needed for IRIX 6.5.
95692 2007-05-19  Bruno Haible  <bruno@clisp.org>
95694         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
95695         printed as "nan0x7fffffff" instead of "nan".
95696         * tests/test-vasprintf-posix.c (test_function): Likewise.
95697         * tests/test-snprintf-posix.h (test_function): Likewise.
95698         * tests/test-sprintf-posix.h (test_function): Likewise.
95699         * tests/test-fprintf-posix.h (NaN): Remove macro.
95700         (test_function): Remove all NaN related tests.
95701         * tests/test-printf-posix.h (NaN): Remove macro.
95702         (test_function): Remove all NaN related tests.
95703         * tests/test-printf-posix.output: Remove all NaN related results.
95704         Needed for IRIX 6.5.
95706 2007-05-19  Bruno Haible  <bruno@clisp.org>
95708         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
95709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
95711 2007-05-19  Bruno Haible  <bruno@clisp.org>
95713         * lib/float_.h: New file.
95714         * m4/float_h.m4: New file.
95715         * modules/float: New file.
95716         * modules/isnanl (Dependencies): Add float.
95717         * modules/isnanl-nolibm (Dependencies): Likewise.
95718         * modules/mathl (Dependencies): Likewise.
95719         * modules/printf-frexpl (Dependencies): Likewise.
95720         * modules/signbit (Dependencies): Likewise.
95721         * modules/vasnprintf (Dependencies): Likewise.
95722         * doc/headers/float.texi: Update.
95724 2007-05-19  Jim Meyering  <jim@meyering.net>
95726         * lib/utimens.c (gl_futimens): Rename from futimens,
95727         now that glibc-2.6 declares futimens.
95728         * lib/utimens.h: Likewise.
95730 2007-05-19  Bruno Haible  <bruno@clisp.org>
95732         Avoid test failures on mingw.
95733         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
95734         * tests/test-printf-posix.sh: Likewise.
95735         * tests/test-vfprintf-posix.sh: Likewise.
95736         * tests/test-vprintf-posix.sh: Likewise.
95738 2007-05-19  Bruno Haible  <bruno@clisp.org>
95740         Fix *printf result for NaN, Inf, -0.0 on mingw.
95741         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
95742         * lib/vasnprintf.c: Include math.h and isnan.h.
95743         (is_infinite_or_zero): New function.
95744         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
95745         values in the %f, %F, %e, %E, %g, %G directives.
95746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
95747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95748         gl_PRINTF_INFINITE and test its result. Invoke
95749         gl_PREREQ_VASNPRINTF_INFINITE.
95750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95757         * doc/functions/fprintf.texi: Update.
95758         * doc/functions/printf.texi: Update.
95759         * doc/functions/snprintf.texi: Update.
95760         * doc/functions/sprintf.texi: Update.
95761         * doc/functions/vfprintf.texi: Update.
95762         * doc/functions/vprintf.texi: Update.
95763         * doc/functions/vsnprintf.texi: Update.
95764         * doc/functions/vsprintf.texi: Update.
95766 2007-05-19  Bruno Haible  <bruno@clisp.org>
95768         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
95769         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
95770         Instead of multiplying with 10^k, set extra_zeroes to k.
95771         (scale10_round_long_double): Remove function.
95773 2007-05-18  Bruno Haible  <bruno@clisp.org>
95775         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
95776         introduced on 2007-05-06.
95778 2007-05-18  Bruno Haible  <bruno@clisp.org>
95780         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
95781         %g directives.
95782         * tests/test-vasprintf-posix.c (test_function): Likewise.
95783         * tests/test-snprintf-posix.h (test_function): Likewise.
95784         * tests/test-sprintf-posix.h (test_function): Likewise.
95786 2007-05-18  Bruno Haible  <bruno@clisp.org>
95788         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
95789         (strmatch): New function.
95790         (test_function): Test the %f directive on numbers of various exponents.
95791         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
95792         (strmatch): New function.
95793         (test_function): Test the %f directive on numbers of various exponents.
95794         * tests/test-snprintf-posix.h (strmatch): New function.
95795         (test_function): Test the %f directive on numbers of various exponents.
95796         * tests/test-sprintf-posix.h (strmatch): New function.
95797         (test_function): Test the %f directive on numbers of various exponents.
95798         * tests/test-snprintf-posix.c (SIZEOF): New macro.
95799         * tests/test-sprintf-posix.c (SIZEOF): New macro.
95800         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
95801         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
95803 2007-05-18  Bruno Haible  <bruno@clisp.org>
95805         Add support for 'long double' number output.
95806         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
95807         * lib/vasnprintf.c: Include math.h and float+.h.
95808         (mp_limb_t): New type.
95809         (GMP_LIMB_BITS): New macro.
95810         (mp_twolimb_t): New type.
95811         (GMP_TWOLIMB_BITS): New macro.
95812         (mpn_t): New type.
95813         (multiply, divide, convert_to_decimal, decode_long_double,
95814         scale10_round_long_double, scale10_round_decimal_long_double,
95815         floorlog10l): New functions.
95816         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
95817         for the %f, %F, %e, %E, %g, %G directives.
95818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
95819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95820         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
95821         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
95822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95824         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95825         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95826         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95829         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
95830         * modules/snprintf-posix (Depends-on): Likewise.
95831         * modules/sprintf-posix (Depends-on): Likewise.
95832         * modules/vasnprintf-posix (Depends-on): Likewise.
95833         * modules/vasprintf-posix (Depends-on): Likewise.
95834         * modules/vfprintf-posix (Depends-on): Likewise.
95835         * modules/vsnprintf-posix (Depends-on): Likewise.
95836         * modules/vsprintf-posix (Depends-on): Likewise.
95837         * modules/vasnprintf (Files): Add lib/float+.h.
95838         * doc/functions/fprintf.texi: Update.
95839         * doc/functions/printf.texi: Update.
95840         * doc/functions/snprintf.texi: Update.
95841         * doc/functions/sprintf.texi: Update.
95842         * doc/functions/vfprintf.texi: Update.
95843         * doc/functions/vprintf.texi: Update.
95844         * doc/functions/vsnprintf.texi: Update.
95845         * doc/functions/vsprintf.texi: Update.
95847 2007-05-18  Bruno Haible  <bruno@clisp.org>
95849         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
95851 2007-05-18  Bruno Haible  <bruno@clisp.org>
95853         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
95854         for printing 64-bit integers. Needed for mingw.
95856 2007-05-18  Bruno Haible  <bruno@clisp.org>
95858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
95859         gl_FUNC_FREXPL_WORKS.
95860         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
95862 2007-05-18  Bruno Haible  <bruno@clisp.org>
95864         * modules/frexpl-nolibm-tests: New file.
95866         * modules/frexpl-nolibm: New file.
95867         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
95869 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
95871         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
95872         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
95873         GCC 4.2, which otherwise issues a lot of warnings.
95874         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
95875         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
95876         Likewise.
95877         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
95878         * modules/iconv_open (iconv.h): Likewise.
95879         * modules/locale (locale.h): Likewise.
95880         * modules/netinet_in (netinet/in.h): Likewise.
95881         * modules/sys_select (sys_select.h): Likewise.
95882         * modules/sys_socket (sys/socket.h): Likewise.
95883         * modules/sys_stat (sys/stat.h): Likewise.
95884         * modules/sysexits (sysexits.h): Likewise.
95885         * modules/unistd (unistd.h): Likewise.
95887 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95889         * modules/closein-tests (Makefile.am): Distribute
95890         `test-closein.sh'.
95892 2007-05-17  Bruno Haible  <bruno@clisp.org>
95894         * tests/test-printf-posix.output: Renamed from
95895         tests/test-fprintf-posix.out.
95896         * modules/fprintf-posix-tests: Update.
95897         * modules/printf-posix-tests: Update.
95898         * modules/vfprintf-posix-tests: Update.
95899         * modules/vprintf-posix-tests: Update.
95900         * tests/test-fprintf-posix.sh: Update.
95901         * tests/test-printf-posix.sh: Update.
95902         * tests/test-vfprintf-posix.sh: Update.
95903         * tests/test-vprintf-posix.sh: Update.
95904         Reported by Ralf Wildenhues.
95906 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
95908         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
95909         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
95910         GCC 4.2, which otherwise issues a lot of warnings.
95911         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
95912         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
95913         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
95914         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
95915         it should no longer be needed.
95916         * lib/string_.h: Likewise.
95917         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
95918         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
95919         * modules/inttypes (inttypes.h): Likewise.
95920         * modules/math (math.h): Likewise.
95921         * modules/search (search.h): Likewise.
95922         * modules/signal (signal.h): Likewise.
95923         * modules/stdint (stdint.h): Likewise.
95924         * modules/stdio (stdio.h): Likewise.
95925         * modules/stdlib (stdlib.h): Likewise.
95926         * modules/string (string.h): Likewise.
95927         * modules/sys_time (sys/time.h): Likewise.
95928         * modules/time (time.h): Likewise.
95929         * modules/wchar (wchar.h): Likewise.
95930         * modules/wctype (wtype.h): Likewise.
95932 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95934         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
95936 2007-05-13  Bruno Haible  <bruno@clisp.org>
95938         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
95939         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
95940         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
95941         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
95942         (gl_PREREQ_STRTOK_R): Don't require it here.
95944 2007-05-13  Bruno Haible  <bruno@clisp.org>
95946         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
95947         when used in C++ mode.
95949 2007-05-12  Bruno Haible  <bruno@clisp.org>
95951         * lib/linebuffer.h: Tweak doc.
95952         * lib/linebuffer.c: Likewise.
95954 2007-05-12  James Youngman  <jay@gnu.org>
95956         * lib/linebuffer.c (readlinebuffer_delim): New function,
95957         like readlinebuffer, but use a caller-specified delimiter.
95958         (readlinebuffer): Just call readlinebuffer_delim with '\n'
95959         as the delimiter.
95960         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
95962 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95964         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
95965         * modules/openat (Files): Remove openat-die.c.
95966         (Depends-on): Add openat-die.
95967         * modules/openat-die: New module.
95969 2007-05-06  Bruno Haible  <bruno@clisp.org>
95971         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
95972         Update with info about Cygwin.
95973         * doc/functions/fprintf.texi: Update.
95974         * doc/functions/printf.texi: Update.
95975         * doc/functions/snprintf.texi: Update.
95976         * doc/functions/sprintf.texi: Update.
95977         * doc/functions/vfprintf.texi: Update.
95978         * doc/functions/vprintf.texi: Update.
95979         * doc/functions/vsnprintf.texi: Update.
95980         * doc/functions/vsprintf.texi: Update.
95981         Reported by Eric Blake.
95983 2007-05-06  Bruno Haible  <bruno@clisp.org>
95985         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
95986         padding ourselves for the floating-point directives.
95987         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
95988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
95989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95990         gl_PRINTF_FLAG_ZERO and test its result. Invoke
95991         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
95992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
95994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95996         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95999         * tests/test-snprintf-posix.h (test_function): Also check the width
96000         and some flags in the %f directive.
96001         * tests/test-sprintf-posix.h (test_function): Likewise.
96002         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96003         * tests/test-vasprintf-posix.c (test_function): Likewise.
96004         * doc/functions/fprintf.texi: Update.
96005         * doc/functions/printf.texi: Update.
96006         * doc/functions/snprintf.texi: Update.
96007         * doc/functions/sprintf.texi: Update.
96008         * doc/functions/vfprintf.texi: Update.
96009         * doc/functions/vprintf.texi: Update.
96010         * doc/functions/vsnprintf.texi: Update.
96011         * doc/functions/vsprintf.texi: Update.
96013 2007-05-06  Bruno Haible  <bruno@clisp.org>
96015         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
96016         pass the ' flag character to sprintf or snprintf.
96017         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
96018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
96019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96020         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
96021         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
96022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
96024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96029         * tests/test-snprintf-posix.h (test_function): Also check the grouping
96030         flag.
96031         * tests/test-sprintf-posix.h (test_function): Likewise.
96032         * tests/test-vasnprintf-posix.c (test_function): Likewise.
96033         * tests/test-vasprintf-posix.c (test_function): Likewise.
96034         * doc/functions/fprintf.texi: Update.
96035         * doc/functions/printf.texi: Update.
96036         * doc/functions/snprintf.texi: Update.
96037         * doc/functions/sprintf.texi: Update.
96038         * doc/functions/vfprintf.texi: Update.
96039         * doc/functions/vprintf.texi: Update.
96040         * doc/functions/vsnprintf.texi: Update.
96041         * doc/functions/vsprintf.texi: Update.
96043 2007-05-01  Bruno Haible  <bruno@clisp.org>
96045         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
96047 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
96049         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
96050         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
96052 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96054         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
96055         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
96056         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
96058 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
96060         * lib/argp-help.c (struct hol_entry): New member `ord'.
96061         (HOL_ENTRY_PTRCMP): Use ord for comparison
96062         (hol_sort): Initialize ord.
96064 2007-05-01  Bruno Haible  <bruno@clisp.org>
96066         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
96067         Reported by Eric Blake.
96068         * doc/gnulib.texi (Function Substitutes): Update.
96070 2007-05-01  Bruno Haible  <bruno@clisp.org>
96072         * doc/functions.texi: Remove file, now redundant through
96073         doc/functions/*.texi.
96075 2007-05-01  Bruno Haible  <bruno@clisp.org>
96077         * modules/argp (Depends-on): Add sleep.
96079 2007-05-01  Bruno Haible  <bruno@clisp.org>
96081         * modules/sleep-tests: New file.
96082         * tests/test-sleep.c: New file.
96084         * modules/sleep: New file.
96085         * lib/sleep.c: New file.
96086         * m4/sleep.m4: New file.
96087         * lib/unistd_.h (sleep): New declaration.
96088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
96089         HAVE_SLEEP.
96090         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
96091         * doc/functions/sleep.texi: Document the sleep module.
96093 2007-05-01  Bruno Haible  <bruno@clisp.org>
96095         * lib/sigprocmask.h: Remove file.
96096         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
96097         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
96098         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
96099         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
96100         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
96101         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
96102         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
96103         HAVE_SIGSET_T as a shell variable.
96104         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
96105         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
96106         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
96107         (Depends-on): Add signal. Remove verify.
96108         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
96109         (Include): Mention <signal.h> instead of sigprocmask.h.
96110         * NEWS: Mention the change.
96111         * lib/fatal-signal.c: Don't include sigprocmask.h.
96113 2007-05-01  Bruno Haible  <bruno@clisp.org>
96115         * modules/signal: New file.
96116         * lib/signal_.h: New file.
96117         * m4/signal_h.m4: New file.
96119 2007-05-01  Bruno Haible  <bruno@clisp.org>
96121         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
96122         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
96123         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
96124         HAVE_WCTYPE_CTMP_BUG into wctype.h.
96126 2007-05-01  Bruno Haible  <bruno@clisp.org>
96128         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
96129         configure time.
96130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
96131         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
96132         * modules/sys_stat (Makefile.am): Substitute their values into
96133         sys/stat.h.
96135 2007-05-01  Bruno Haible  <bruno@clisp.org>
96137         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
96138         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
96139         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
96141 2007-05-01  Bruno Haible  <bruno@clisp.org>
96143         * doc/header/assert.texi: Undo last change: don't mention the gnulib
96144         'assert' module here.
96146 2007-05-01  Bruno Haible  <bruno@clisp.org>
96148         * doc/functions/*.texi: New files.
96149         * doc/functions/google-ranking.txt: New file.
96150         * doc/gnulib.texi (Function Substitutes): New chapter.
96151         (ctime, inet_ntoa): Remove sections.
96152         * doc/ctime.texi: Remove file.
96153         * doc/inet_ntoa.texi: Remove file.
96154         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
96155         dependencies.
96156         (%.info): New rule, specifying a --reference-limit.
96158 2007-05-01  Bruno Haible  <bruno@clisp.org>
96160         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
96162 2007-05-01  Bruno Haible  <bruno@clisp.org>
96164         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
96165         the portability of 'mkdir' to mingw systems.
96167 2007-05-01  Bruno Haible  <bruno@clisp.org>
96169         * doc/headers/google-ranking.txt: New file.
96171 2007-04-30  Eric Blake  <ebb9@byu.net>
96173         Prefer fseeko to fseek.
96174         * modules/getpass (Depends-on): Add fseeko.
96175         * lib/getpass.c (getpass): Use fseeko, not fseek.
96177 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
96179         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
96180         assumes the sorting is stable, while most qsort implementations
96181         are not.  Use argument addresses to ensure they never compare as
96182         equal.
96184         * tests/test-argp-2.sh (usage-indent test): Fix output
96185         (func_compare): Restore diff options
96186         * tests/test-argp.c: Restore #include "progname.h"
96188 2007-04-29  Bruno Haible  <bruno@clisp.org>
96190         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
96191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96192         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
96193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96194         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
96195         (configure.ac): Define CHECK_SNPRINTF_POSIX.
96196         (TESTS, check_PROGRAMS): Add test-snprintf.
96197         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
96198         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
96199         (TESTS, check_PROGRAMS): Add test-vsnprintf.
96200         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
96201         assertions that fail on HP-UX, OSF/1, or IRIX.
96202         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
96204 2007-04-29  Bruno Haible  <bruno@clisp.org>
96206         * MODULES.html.sh (posix_functions): Remove 'contents'.
96208 2007-04-29  Karl Berry  <karl@gnu.org>
96210         * config/srclist.txt (gendocs_template_min): new entry.
96212 2007-04-29  Bruno Haible  <bruno@clisp.org>
96214         Work around fpurge bug on BSD systems.
96215         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
96216         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
96217         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
96218         fpurge to rpl_fpurge if the system already has this function.
96219         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
96220         the case where the system already has this function. Correct invariants
96221         on BSD systems.
96222         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
96223         BSD systems.
96225 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96227         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
96228         proposed by Sven Verdoolaege.
96230         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
96231         options.
96232         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
96233         (usage and help tests): Update
96235 2007-04-29  Bruno Haible  <bruno@clisp.org>
96237         * tests/test-fflush.c (main): Use a file of size 17, not 10.
96238         Print more information in case of failure. Disable a test on BeOS.
96240 2007-04-29  Bruno Haible  <bruno@clisp.org>
96242         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
96243         This helps debugging on systems on which no gdb is available.
96245 2007-04-29  Bruno Haible  <bruno@clisp.org>
96247         * lib/freading.h: Improve comments.
96248         * lib/fwriting.h: Likewise.
96249         * tests/test-freading.c (main): Don't check freading immediately after
96250         repositioning. Needed for glibc.
96252 2007-04-29  Bruno Haible  <bruno@clisp.org>
96254         * lib/freading.c (freading): Trivial simplification.
96256 2007-04-28  Bruno Haible  <bruno@clisp.org>
96258         * tests/test-fwriting.c (main): Also test the interaction between
96259         fflush and fwriting.
96260         * modules/fwriting-tests (Depends-on): Add fflush.
96262         * tests/test-freading.c (main): Also test the interaction between
96263         fflush and freading.
96264         * modules/freading-tests (Depends-on): Add fflush.
96266 2007-04-28  Bruno Haible  <bruno@clisp.org>
96268         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
96269         fseeko and ftello.
96270         Suggested by Eric Blake.
96272 2007-04-28  Jim Meyering  <jim@meyering.net>
96274         Avoid false-negative in gl_STDINT_H's C99 conformance test.
96275         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
96276         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
96278 2007-04-27  Eric Blake  <ebb9@byu.net>
96280         * doc/headers/assert.texi (assert.h): Document assert module use.
96282 2007-04-27  Bruno Haible  <bruno@clisp.org>
96284         * doc/headers/*.texi: New files.
96285         * doc/gnulib.texi (Header File Substitutes): New chapter.
96286         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
96287         dependencies.
96288         (standards.info ,standards.html, standards.dvi): Update dependencies.
96289         (mostlyclean, clean): New targets.
96291 2007-04-27  Bruno Haible  <bruno@clisp.org>
96293         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
96294         * modules/sysexits (Files, Makefile.am): Update.
96296         * lib/sys_socket_.h: Renamed from lib/socket_.h.
96297         * modules/sys_socket (Files, Makefile.am): Update.
96299         * lib/sys_stat_.h: Renamed from lib/stat_.h.
96300         * modules/sys_stat (Files, Makefile.am): Update.
96302 2007-04-27  Eric Blake  <ebb9@byu.net>
96304         * lib/freading.h: Improve comments.
96305         * lib/fwriting.h: Likewise.
96306         * lib/fflush.c: Likewise.
96308         Fix closein for mingw.
96309         * modules/closein-tests: Add tests for closein.
96310         * tests/test-closein.c: New file.
96311         * tests/test-closein.sh: Likewise.
96312         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
96313         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
96315 2007-04-27  Bruno Haible  <bruno@clisp.org>
96317         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
96318         version is < 6.
96319         * lib/math_.h [__DECC]: Likewise.
96320         * lib/stdio_.h [__DECC]: Likewise.
96321         * lib/stdlib_.h [__DECC]: Likewise.
96322         * lib/string_.h [__DECC]: Likewise.
96323         * lib/time_.h [__DECC]: Likewise.
96324         * lib/wchar_.h [__DECC]: Likewise.
96325         * lib/wctype_.h [__DECC]: Likewise.
96327 2007-04-27  Bruno Haible  <bruno@clisp.org>
96329         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
96331 2007-04-27  Bruno Haible  <bruno@clisp.org>
96333         * lib/fflush.c: Add comments.
96334         * modules/fpurge-tests (Depends-on): Add fflush.
96335         * modules/freadable-tests (Depends-on): Likewise.
96336         * modules/fwritable-tests (Depends-on): Likewise.
96338 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
96340         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
96341         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
96342         Report by Bruno Haible <bruno@clisp.org>.
96344 2007-04-26  Eric Blake  <ebb9@byu.net>
96346         Fix fflush on mingw.
96347         * modules/fflush (Depends-on): Add freading.
96348         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
96349         but unread data.
96351 2007-04-26  Eric Blake  <ebb9@byu.net>
96352         and Bruno Haible  <bruno@clisp.org>
96354         Implement freading and fwriting.
96355         * lib/freading.c: New file.
96356         * lib/freading.h: Likewise.
96357         * m4/freading.m4: Likewise.
96358         * modules/freading: Likewise.
96359         * modules/freading-tests: Likewise.
96360         * tests/test-freading.c: Likewise.
96361         * lib/fwriting.c: New file.
96362         * lib/fwriting.h: Likewise.
96363         * m4/fwriting.m4: Likewise.
96364         * modules/fwriting: Likewise.
96365         * modules/fwriting-tests: Likewise.
96366         * tests/test-fwriting.c: Likewise.
96367         * MODULES.html.sh (File stream based Input/Output): Mention them.
96369 2007-04-26  Bruno Haible  <bruno@clisp.org>
96371         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
96372         'long' when we assume it.
96373         Suggested by Eric Blake.
96375 2007-04-26  Bruno Haible  <bruno@clisp.org>
96377         Ensure fseeko, ftello are declared on glibc systems.
96378         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
96379         * modules/fseeko (configure.ac-early): Likewise.
96380         * modules/ftello (configure.ac-early): Likewise.
96381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
96382         AC_FUNC_FSEEKO for this.
96383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
96384         (gl_CHECK_FSEEKO): Remove macro.
96386 2007-04-26  Bruno Haible  <bruno@clisp.org>
96388         * tests/test-fflush.c (main): Also check the ftell result after
96389         fflush and fseek/fseeko.
96390         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
96391         file descriptor position cache in the stream.
96392         * lib/fseeko.c (rpl_fseeko): Likewise.
96394 2007-04-26  Bruno Haible  <bruno@clisp.org>
96396         * modules/fflush-tests (Depends-on): Add fseeko.
96398 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
96399             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96401         * lib/argz_.h: ensure error_t definition is obtained in same
96402         mechanism system argz.h would have.
96403         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
96404         argz facilities are known bad.  Err on the side of caution if
96405         cross-compiling.
96407 2007-04-25  Eric Blake  <ebb9@byu.net>
96409         * lib/fpurge.c (includes): Use stdlib.h for free.
96410         * tests/test-fflush.c (main): Also test fflush-fseeko.
96412 2007-04-25  Bruno Haible  <bruno@clisp.org>
96414         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
96415         * lib/fseeko.c: New file.
96416         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
96417         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
96418         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
96419         gl_FUNC_FSEEKO.
96420         (gl_FUNC_FSEEKO): Invoke it.
96421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
96422         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
96423         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
96425 2007-04-25  Bruno Haible  <bruno@clisp.org>
96427         * modules/fflush (Depends-on): Add ftello.
96429 2007-04-25  Bruno Haible  <bruno@clisp.org>
96431         * modules/ftello-tests: New file.
96432         * tests/test-ftello.c: New file.
96434         * modules/ftello: New file.
96435         * m4/ftello.m4: New file.
96436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
96437         HAVE_FTELLO.
96438         * lib/stdio_.h (ftello): New declaration.
96439         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
96440         HAVE_FTELLO.
96442 2007-04-25  Bruno Haible  <bruno@clisp.org>
96444         * modules/fseeko-tests: New file.
96445         * tests/test-fseeko.c: New file.
96447         * modules/fseeko: New file.
96448         * m4/fseeko.m4: New file.
96449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
96450         HAVE_FSEEKO.
96451         * lib/stdio_.h (fseeko): New declaration.
96452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
96453         HAVE_FSEEKO.
96455 2007-04-25  Bruno Haible  <bruno@clisp.org>
96457         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
96459 2007-04-25  Bruno Haible  <bruno@clisp.org>
96461         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
96462         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
96463         * tests/test-unistd.c: Likewise.
96464         * tests/test-fcntl.c: Likewise.
96466 2007-04-23  Eric Blake  <ebb9@byu.net>
96468         * lib/fflush.c: Fix missing include.
96469         Reported by Bruno Haible.
96471 2007-04-23  Bruno Haible  <bruno@clisp.org>
96473         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
96474         Reported by Eric Blake.
96476 2007-04-23  Bruno Haible  <bruno@clisp.org>
96478         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
96480 2007-04-23  Bruno Haible  <bruno@clisp.org>
96482         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
96484 2007-04-23  Bruno Haible  <bruno@clisp.org>
96486         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
96487         Needed on HP-UX 11.
96489 2007-04-16  Eric Blake  <ebb9@byu.net>
96491         Make fflush rely on fpurge.
96492         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
96493         open coding all variants.
96494         * modules/fflush (Depends-on): Add fpurge and unistd.
96495         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
96496         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
96498         Fix --with-tests compilation on cygwin.
96499         * modules/argmatch-tests (Makefile.am): List gnulib library first
96500         in LDADD.
96501         * modules/argp-tests (Makefile.am): Likewise.
96502         * modules/array-list-tests (Makefile.am): Likewise.
96503         * modules/array-oset-tests (Makefile.am): Likewise.
96504         * modules/avltree-list-tests (Makefile.am): Likewise.
96505         * modules/avltree-oset-tests (Makefile.am): Likewise.
96506         * modules/avltreehash-list-tests (Makefile.am): Likewise.
96507         * modules/carray-list-tests (Makefile.am): Likewise.
96508         * modules/dirname-tests (Makefile.am): Likewise.
96509         * modules/frexp-tests (Makefile.am): Likewise.
96510         * modules/isnanl-tests (Makefile.am): Likewise.
96511         * modules/linked-list-tests (Makefile.am): Likewise.
96512         * modules/linkedhash-list-tests (Makefile.am): Likewise.
96513         * modules/lock-tests (Makefile.am): Likewise.
96514         * modules/rbtree-list-tests (Makefile.am): Likewise.
96515         * modules/rbtree-oset-tests (Makefile.am): Likewise.
96516         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
96517         * modules/tls-tests (Makefile.am): Likewise.
96518         * modules/tsearch-tests (Makefile.am): Likewise.
96519         * modules/xvasprintf-tests (Makefile.am): Likewise.
96521         Fix fpurge for cygwin.
96522         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
96523         value.
96524         * modules/fpurge-tests (Depends-on): Clean up trash.
96526 2007-04-16  Simon Josefsson  <simon@josefsson.org>
96528         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
96530         * m4/autobuild.m4: Re-indent.
96532 2007-04-13  Bruno Haible  <bruno@clisp.org>
96534         * modules/fpurge-tests: New file.
96535         * tests/test-fpurge.c: New file.
96537         * modules/fpurge: New file.
96538         * lib/fpurge.h: New file.
96539         * lib/fpurge.c: New file.
96540         * m4/fpurge.m4: New file.
96542 2007-04-13  Bruno Haible  <bruno@clisp.org>
96544         * modules/fbufmode-tests: New file.
96545         * tests/test-fbufmode.c: New file.
96547         * modules/fbufmode: New file.
96548         * lib/fbufmode.h: New file.
96549         * lib/fbufmode.c: New file.
96550         * m4/fbufmode.m4: New file.
96552 2007-04-13  Bruno Haible  <bruno@clisp.org>
96554         * modules/fwritable-tests: New file.
96555         * tests/test-fwritable.c: New file.
96557         * modules/fwritable: New file.
96558         * lib/fwritable.h: New file.
96559         * lib/fwritable.c: New file.
96560         * m4/fwritable.m4: New file.
96562 2007-04-13  Bruno Haible  <bruno@clisp.org>
96564         * modules/freadable-tests: New file.
96565         * tests/test-freadable.c: New file.
96567         * modules/freadable: New file.
96568         * lib/freadable.h: New file.
96569         * lib/freadable.c: New file.
96570         * m4/freadable.m4: New file.
96572 2007-04-13  Bruno Haible  <bruno@clisp.org>
96574         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
96575         MOSTLYCLEANFILES.
96577 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
96579         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
96580         gzip bootstrap.conf to avoid dragging in i18n machinery.
96581         (gnulib_tool_option): Use it.
96583 2007-04-13  Bruno Haible  <bruno@clisp.org>
96585         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
96586         %F directives.
96587         * tests/test-vasprintf-posix.c (test_function): Likewise.
96588         * tests/test-snprintf-posix.h (test_function): Likewise.
96589         * tests/test-sprintf-posix.h (test_function): Likewise.
96590         * tests/test-fprintf-posix.h (test_function): Likewise.
96591         * tests/test-printf-posix.h (test_function): Likewise.
96592         * tests/test-fprintf-posix.out: Likewise.
96594 2007-04-13  Bruno Haible  <bruno@clisp.org>
96596         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
96597         * modules/tls-tests (configure.ac): Likewise.
96598         Reported by Arto C. Nirkko <anirkko@insel.ch>.
96600 2007-04-13  Bruno Haible  <bruno@clisp.org>
96602         * lib/tls.c (glthread_tls_get): Fix return type.
96603         Patch by Arto C. Nirkko <anirkko@insel.ch>.
96605 2007-04-12  Eric Blake  <ebb9@byu.net>
96607         * modules/gettime (Depends-on): Remove gettime.
96608         Reported by Dmitry V. Levin.
96610 2007-04-12  Bruno Haible  <bruno@clisp.org>
96612         * modules/fflush (Include): Mention <stdio.h>.
96613         * modules/strtoimax (Include): Mention <inttypes.h>.
96614         * modules/strtoumax (Include): Likewise.
96616 2007-04-12  Eric Blake  <ebb9@byu.net>
96618         * .cvsignore: New file.
96619         * .gitignore: Likewise.
96621 2007-04-12  Bruno Haible  <bruno@clisp.org>
96623         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
96624         not before, since $(LDADD) often contains libgnu.a.
96625         * modules/striconv-tests (test_striconv_LDADD): Likewise.
96626         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
96627         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
96628         Needed on Cygwin.
96630 2007-04-12  Eric Blake  <ebb9@byu.net>
96632         Work around glibc's failure to flush stdin on fclose.
96633         * lib/closein.c (close_stdin): Flush stdin before closing.
96635         Work around glibc's failure to reset seekable stdin on exit.
96636         * modules/closein: New module.
96637         * lib/closein.c: New file.
96638         * lib/closein.h: Likewise.
96639         * m4/closein.m4: Likewise.
96640         * MODULES.html.sh (File stream based Input/Output): Document it.
96642 2007-04-12  Simon Josefsson  <simon@josefsson.org>
96644         * gnulib-tool: Rename generated 'autobuild' script to
96645         'do-autobuild' in --create-megatestdir output.
96647         * doc/gnulib.texi (Build robot for gnulib): Fix.
96649 2007-04-12  Simon Josefsson  <simon@josefsson.org>
96651         * modules/sysexits (Depends-on): Add absolute-header.
96653 2007-04-12  Eric Blake  <ebb9@byu.net>
96655         No need to preserve errno on success.
96656         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
96657         Reported by Bruno Haible.
96659 2007-04-12  Simon Josefsson  <simon@josefsson.org>
96661         * MODULES.html.sh (Support for maintaining and releasing
96662         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
96664 2007-04-12  Simon Josefsson  <simon@josefsson.org>
96666         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
96668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
96670         * modules/autobuild: New module.
96672         * m4/autobuild.m4: New file.
96674 2007-04-11  Bruno Haible  <bruno@clisp.org>
96676         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
96677         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
96678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
96679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
96680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
96687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
96690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96692         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
96693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
96696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
96699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
96702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
96703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
96704         Reported by Eric Blake.
96706 2007-04-11  Bruno Haible  <bruno@clisp.org>
96708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
96710 2007-04-10  Bruno Haible  <bruno@clisp.org>
96712         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
96713         for NaN and Infinity. Needed on FreeBSD 6.1.
96714         * tests/test-vasnprintf-posix.c (test_function): Undo last change
96715         regarding results for "%010a" of Infinity and NaN.
96716         * tests/test-vasprintf-posix.c (test_function): Likewise.
96717         * tests/test-snprintf-posix.h (test_function): Likewise.
96718         * tests/test-sprintf-posix.h (test_function): Likewise.
96719         * tests/test-fprintf-posix.h (test_function): Likewise.
96720         * tests/test-printf-posix.h (test_function): Likewise.
96721         * tests/test-fprintf-posix.out: Likewise.
96723 2007-04-10  Bruno Haible  <bruno@clisp.org>
96725         * modules/locale-tests: New file.
96726         * tests/test-locale.c: New file.
96728         * modules/locale: New file.
96729         * lib/locale_.h: New file.
96730         * m4/locale_h.m4: New file.
96732 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
96733             Bruno Haible  <bruno@clisp.org>
96735         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
96736         be determined, test for availability of the copysignf, copysign,
96737         copysignl functions.
96738         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
96739         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
96740         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
96742 2007-04-09  Eric Blake  <ebb9@byu.net>
96744         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
96745         * modules/stdio (Makefile.am): Support fflush.
96746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
96747         * modules/fflush: New file.
96748         * lib/fflush.c: Likewise.
96749         * m4/fflush.m4: Likewise.
96750         * modules/fflush-tests: New test.
96751         * tests/test-fflush.c: Likewise.
96752         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
96754 2007-04-06  Bruno Haible  <bruno@clisp.org>
96756         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
96757         (VASNPRINTF): Use signbit for faster determination whether to print a
96758         minus sign.
96759         * modules/vasnprintf (Files): Remove lib/float+.h.
96760         * modules/fprintf-posix (Depends-on): Add signbit.
96761         * modules/snprintf-posix (Depends-on): Likewise.
96762         * modules/sprintf-posix (Depends-on): Likewise.
96763         * modules/vasnprintf-posix (Depends-on): Likewise.
96764         * modules/vasprintf-posix (Depends-on): Likewise.
96765         * modules/vfprintf-posix (Depends-on): Likewise.
96766         * modules/vsnprintf-posix (Depends-on): Likewise.
96767         * modules/vsprintf-posix (Depends-on): Likewise.
96769 2007-04-06  Bruno Haible  <bruno@clisp.org>
96771         * tests/test-frexp.c (main): Test also the sign bit of zero results.
96772         * tests/test-frexpl.c (main): Likewise.
96773         * tests/test-ldexpl.c (main): Likewise.
96774         * modules/frexp-tests (Depends-on): Add signbit.
96775         * modules/frexpl-tests (Depdends-on): Likewise.
96776         * modules/ldexpl-tests (Depdends-on): Likewise.
96778 2007-04-06  Bruno Haible  <bruno@clisp.org>
96780         * modules/signbit-tests: New file.
96781         * tests/test-signbit.c: New file.
96783         * modules/signbit: New file.
96784         * lib/signbitf.c: New file.
96785         * lib/signbitd.c: New file.
96786         * lib/signbitl.c: New file.
96787         * m4/signbit.m4: New file.
96788         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
96789         (signbit): New macro.
96790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
96791         REPLACE_SIGNBIT.
96792         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
96793         REPLACE_FREXPL into math.h.
96795 2007-04-06  Bruno Haible  <bruno@clisp.org>
96797         * modules/isnanf-nolibm-tests: New file.
96798         * tests/test-isnanf.c: New file.
96800         * modules/isnanf-nolibm: New file.
96801         * lib/isnanf.h: New file.
96802         * lib/isnanf.c: New file.
96803         * lib/isnan.c: Consider the USE_FLOAT macro.
96804         * m4/isnanf.m4: New file.
96806 2007-04-06  Bruno Haible  <bruno@clisp.org>
96808         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
96809         (Link): New section.
96811         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
96813 2007-04-06  Bruno Haible  <bruno@clisp.org>
96815         Assume the 'long double' type.
96816         * m4/longdouble.m4: Remove file.
96817         * config/srclist.txt: Don't mention longdouble.m4.
96818         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
96819         * lib/float+.h: Likewise.
96820         * lib/frexp.c: Likewise.
96821         * lib/printf-args.h: Likewise.
96822         * lib/printf-args.c: Likewise.
96823         * lib/printf-frexp.c: Likewise.
96824         * lib/printf-parse.c: Likewise.
96825         * lib/vasnprintf.c: Likewise.
96826         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
96827         * m4/intl.m4: Likewise.
96828         * m4/isnanl.m4: Likewise.
96829         * m4/printf.m4: Likewise.
96830         * m4/printf-frexpl.m4: Likewise.
96831         * m4/vasnprintf.m4: Likewise.
96832         * modules/allocsa (Files): Remove m4/longdouble.m4.
96833         * modules/gettext (Files): Likewise.
96834         * modules/relocatable-prog-wrapper (Files): Likewise.
96835         * modules/vasnprintf (Files): Likewise.
96836         * modules/isnanl (Files): Likewise.
96837         (Include): Simplify.
96838         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
96839         (Include): Simplify.
96840         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
96841         (Include): Simplify.
96842         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
96843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96844         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
96845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96846         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
96847         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96848         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
96849         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96850         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
96851         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96852         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
96853         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
96854         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
96855         * tests/test-isnanl.c: Likewise.
96856         * tests/test-snprintf-posix.h: Likewise.
96857         * tests/test-sprintf-posix.h: Likewise.
96858         * tests/test-vasnprintf-posix.c: Likewise.
96859         * tests/test-vasnprintf-posix2.c: Likewise.
96860         * tests/test-vasprintf-posix.c: Likewise.
96862 2007-04-06  Bruno Haible  <bruno@clisp.org>
96864         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
96865         * lib/math_.h [__DECC]: Include the overridden include file through
96866         #include_next, outside the double-inclusion guard.
96867         * lib/stdio_.h [__DECC]: Likewise.
96868         * lib/stdlib_.h [__DECC]: Likewise.
96869         * lib/string_.h [__DECC]: Likewise.
96870         * lib/time_.h [__DECC]: Likewise.
96871         * lib/wchar_.h [__DECC]: Likewise.
96872         * lib/wctype_.h [__DECC]: Likewise.
96873         * lib/inttypes_.h [__DECC]: Likewise.
96874         Reported by Albert Chin <china@thewrittenword.com> in
96875         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
96877 2007-04-04  Eric Blake  <ebb9@byu.net>
96879         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
96880         1.5.x.
96882 2007-04-04  Bruno Haible  <bruno@clisp.org>
96884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
96885         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
96887 2007-04-04  Bruno Haible  <bruno@clisp.org>
96889         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
96890         results for "%010a" of Infinity and NaN.
96891         * tests/test-vasprintf-posix.c (test_function): Likewise.
96892         * tests/test-snprintf-posix.h (test_function): Likewise.
96893         * tests/test-sprintf-posix.h (test_function): Likewise.
96894         * tests/test-fprintf-posix.h (test_function): Remove these tests.
96895         * tests/test-printf-posix.h (test_function): Likewise.
96896         * tests/test-fprintf-posix.out: Update.
96897         Needed for FreeBSD 6.1.
96899 2007-04-04  Bruno Haible  <bruno@clisp.org>
96901         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
96902         directly used by the gnulib modules nor by gnulib-tool.
96904 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
96906         * DEPENDENCIES: Give overall description of version dependency
96907         desirability.  Use more-typical names for apps.
96908         Add shell, coreutils, diffutils, grep, tar, gzip.
96910 2007-04-04  Simon Josefsson  <simon@josefsson.org>
96912         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
96914 2007-04-04  Karl Berry  <karl@gnu.org>
96916         * MODULES.html.sh (func_module): missing '.
96918 2007-04-03  Bruno Haible  <bruno@clisp.org>
96920         * modules/argmatch-tests (Makefile.am): New variable
96921         test_argmatch_LDADD.
96922         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
96923         * modules/array-list-tests (Makefile.am): New variable
96924         test_array_list_LDADD.
96925         * modules/array-oset-tests (Makefile.am): New variable
96926         test_array_oset_LDADD.
96927         * modules/avltree-list-tests (Makefile.am): New variable
96928         test_avltree_list_LDADD.
96929         * modules/avltree-oset-tests (Makefile.am): New variable
96930         test_avltree_oset_LDADD.
96931         * modules/avltreehash-list-tests (Makefile.am): New variable
96932         test_avltreehash_list_LDADD.
96933         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
96934         test_canonicalize_lgpl_LDADD.
96935         * modules/carray-list-tests (Makefile.am): New variable
96936         test_carray_list_LDADD.
96937         * modules/dirname-tests (Makefile.am): New variable
96938         test_dirname_LDADD.
96939         * modules/linked-list-tests (Makefile.am): New variable
96940         test_linked_list_LDADD.
96941         * modules/linkedhash-list-tests (Makefile.am): New variable
96942         test_linkedhash_list_LDADD.
96943         * modules/rbtree-list-tests (Makefile.am): New variable
96944         test_rbtree_list_LDADD.
96945         * modules/rbtree-oset-tests (Makefile.am): New variable
96946         test_rbtree_oset_LDADD.
96947         * modules/rbtreehash-list-tests (Makefile.am): New variable
96948         test_rbtreehash_list_LDADD.
96949         * modules/xvasprintf-tests (Makefile.am): New variable
96950         test_xvasprintf_LDADD.
96951         Reported by Eric Blake.
96953 2007-04-03  Eric Blake  <ebb9@byu.net>
96955         * DEPENDENCIES: Weaken m4 requirements.
96957 2007-04-03  Bruno Haible  <bruno@clisp.org>
96959         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
96960         * modules/isnanl-tests (configure.ac): Likewise.
96962 2007-04-03  Ben Pfaff  <blp@gnu.org>
96964         * modules/iconv_open: Add $(srcdir)/ to source directory
96965         references in Makefile fragments that call gperf, to fix VPATH
96966         builds.
96968 2007-04-03  Bruno Haible  <bruno@clisp.org>
96970         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
96971         * lib/ldexpl.c: Undo last change.
96973 2007-04-03  Bruno Haible  <bruno@clisp.org>
96975         * modules/printf-frexpl (Depends-on): Undo last change.
96976         (Files): Add m4/ldexpl.m4.
96978 2007-04-03  Bruno Haible  <bruno@clisp.org>
96980         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
96981         * modules/isnanl (Link): New section.
96983         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
96984         * modules/frexp (Link): New section.
96986         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
96987         * modules/frexpl (Link): New section.
96989         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
96990         * modules/ldexpl (Link): New section.
96992 2007-04-03  Bruno Haible  <bruno@clisp.org>
96994         * modules/TEMPLATE-EXTENDED: New file.
96995         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
96997 2007-04-03  Bruno Haible  <bruno@clisp.org>
96999         * DEPENDENCIES: New file.
97000         Suggested by Simon Josefsson.
97002 2007-04-03  Bruno Haible  <bruno@clisp.org>
97004         * doc/gnulib.texi: Escape @.
97006 2007-04-03  James Youngman  <jay@gnu.org>
97007         and Paul Eggert  <eggert@cs.ucla.edu>
97009         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
97010         birthtime on all systems that have birthtime, not just those which
97011         use st_birthtimensec rather than st_birthtim.  Putting zero in
97012         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
97013         that the birth time is not available for files on an NFS mount.
97015 2007-04-03  Simon Josefsson  <simon@josefsson.org>
97017         * modules/memxor: Move back from crypto/, suggested by Bruno.
97018         * modules/crypto/hmac-sha1: Fix memxor dependency.
97020         * modules/crypto/gc: Moved from ../.
97022 2007-04-02  Eric Blake  <ebb9@byu.net>
97024         * lib/ldexpl.c (includes): Avoid libm.
97026         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
97028 2007-04-02  Bruno Haible  <bruno@clisp.org>
97030         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
97031         on IRIX.
97033 2007-04-02  Bruno Haible  <bruno@clisp.org>
97035         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
97036         x86 or x86_64 platforms running MacOS X.
97037         Reported by Ryan Schmidt <@ryandesign.com>.
97039 2007-04-02  Bruno Haible  <bruno@clisp.org>
97041         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
97042         i386.
97044 2007-04-01  Simon Josefsson  <simon@josefsson.org>
97046         * modules/crypto/arcfour: Moved from ../.
97047         * modules/crypto/arcfour-tests: Moved from ../.
97048         * modules/crypto/arctwo: Moved from ../.
97049         * modules/crypto/arctwo-tests: Moved from ../.
97050         * modules/crypto/des: Moved from ../.
97051         * modules/crypto/des-tests: Moved from ../.
97052         * modules/crypto/gc-arcfour: Moved from ../.
97053         * modules/crypto/gc-arcfour-tests: Moved from ../.
97054         * modules/crypto/gc-arctwo: Moved from ../.
97055         * modules/crypto/gc-arctwo-tests: Moved from ../.
97056         * modules/crypto/gc-des: Moved from ../.
97057         * modules/crypto/gc-des-tests: Moved from ../.
97058         * modules/crypto/gc-hmac-md5: Moved from ../.
97059         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
97060         * modules/crypto/gc-hmac-sha1: Moved from ../.
97061         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
97062         * modules/crypto/gc-md2: Moved from ../.
97063         * modules/crypto/gc-md2-tests: Moved from ../.
97064         * modules/crypto/gc-md4: Moved from ../.
97065         * modules/crypto/gc-md4-tests: Moved from ../.
97066         * modules/crypto/gc-md5: Moved from ../.
97067         * modules/crypto/gc-md5-tests: Moved from ../.
97068         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
97069         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
97070         * modules/crypto/gc-random: Moved from ../.
97071         * modules/crypto/gc-rijndael: Moved from ../.
97072         * modules/crypto/gc-rijndael-tests: Moved from ../.
97073         * modules/crypto/gc-sha1: Moved from ../.
97074         * modules/crypto/gc-sha1-tests: Moved from ../.
97075         * modules/crypto/gc-tests: Moved from ../.
97076         * modules/crypto/hmac-md5: Moved from ../.
97077         * modules/crypto/hmac-md5-tests: Moved from ../.
97078         * modules/crypto/hmac-sha1: Moved from ../.
97079         * modules/crypto/hmac-sha1-tests: Moved from ../.
97080         * modules/crypto/md2: Moved from ../.
97081         * modules/crypto/md2-tests: Moved from ../.
97082         * modules/crypto/md4: Moved from ../.
97083         * modules/crypto/md4-tests: Moved from ../.
97084         * modules/crypto/md5: Moved from ../.
97085         * modules/crypto/md5-tests: Moved from ../.
97086         * modules/crypto/memxor: Moved from ../.
97087         * modules/crypto/rijndael: Moved from ../.
97088         * modules/crypto/rijndael-tests: Moved from ../.
97089         * modules/crypto/sha1: Moved from ../.
97091 2007-03-30  James Youngman  <jay@gnu.org>
97093         * tests/test-stat-time.c (prepare_test): use chmod() rather than
97094         rename() to change the ctime of a file (because ctime is unaffected
97095         by rename on jfs2 on AIX 5.1).
97096         (main): Start by doing cleanup, in case a previous run failed leaving
97097         test files behind.
97099 2007-03-31  Bruno Haible  <bruno@clisp.org>
97101         Support old proprietary implementations of iconv.
97102         * modules/iconv_open: New file.
97103         * lib/iconv_.h: New file.
97104         * m4/iconv_h.m4: New file.
97105         * lib/iconv_open.c: New file.
97106         * lib/iconv_open-aix.gperf: New file.
97107         * lib/iconv_open-hpux.gperf: New file.
97108         * lib/iconv_open-irix.gperf: New file.
97109         * lib/iconv_open-osf.gperf: New file.
97110         * m4/iconv_open.m4: New file.
97111         * modules/linebreak (Depends-on): Add iconv_open.
97112         * modules/striconv (Depends-on): Likewise.
97113         * modules/striconveh (Depends-on): Likewise.
97114         * modules/unicodeio (Depends-on): Likewise.
97115         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
97116         (iconv_t)(-1).
97117         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
97118         conversion if cd is (iconv_t)(-1).
97119         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
97120         is not possible.
97122 2007-03-31  Bruno Haible  <bruno@clisp.org>
97124         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97125         work on Solaris either. Protect also second use of "autodetect_jp".
97127 2007-03-31  Bruno Haible  <bruno@clisp.org>
97129         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
97130         the function is not present.
97132 2007-03-31  Bruno Haible  <bruno@clisp.org>
97134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
97135         the function is not present.
97137 2007-03-31  Bruno Haible  <bruno@clisp.org>
97139         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
97140         a bug in HP-UX iconv_open().
97142 2007-03-31  Bruno Haible  <bruno@clisp.org>
97144         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
97145         (Mathematics <math.h>): New section, add fpieee.
97146         (Input/output <stdio.h>): Add fseterr.
97147         (Mathematics <math.h>): New section, add printf-frexp.
97148         (Container data structures): Add sublist.
97149         (Core language properties): Add fpucw, inline.
97150         (Functions for greatest-width integer types <inttypes.h>): Add
97151         imaxabs, imaxdiv, inttypes.
97152         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
97153         isnanl-nolibm, ldexp.
97154         (Mathematics <math.h>): New section, add printf-frexpl.
97155         (Support for systems lacking POSIX:2001): Add fprintf-posix,
97156         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
97157         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
97158         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
97159         (Unicode string functions): Add unistr/u*-mbtoucr.
97160         (Java): Add javacomp-script, javaexec-script.
97161         (C#): Add csharpcomp-script, csharpexec-script.
97162         (Support for building libraries and executables): Add havelib,
97163         relocatable-*.
97164         (Support for maintaining and releasing projects): Renamed from
97165         'Support for maintaining and release projects'. Add announce-gen.
97167 2007-03-31  Bruno Haible  <bruno@clisp.org>
97169         * README: Talk primarily about git.
97170         (git and CVS): Renamed from CVS.
97171         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
97172         gnulib is available through git.
97173         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
97175 2007-03-30  Bruno Haible  <bruno@clisp.org>
97177         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
97178         * lib/poll_.h: Likewise.
97179         * lib/stat_.h: Likewise.
97180         * lib/sys_time_.h: Likewise.
97181         * lib/sysexit_.h: Likewise.
97182         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
97183         * lib/stdbool_.h: Likewise.
97184         * lib/byteswap_.h: Add double-inclusion guard.
97186 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
97188         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
97190 2007-03-30  Karl Berry  <karl@gnu.org>
97192         * config/srclist-update: double space after USA in the license
97193         substitution, since that's how it's usually (?) written.
97195 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
97197         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
97198         reported by Bruno Haible.
97200 2007-03-29  Bruno Haible  <bruno@clisp.org>
97202         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
97203         a bug in AIX iconv().
97205 2007-03-29  Bruno Haible  <bruno@clisp.org>
97207         * modules/ldexpl-tests: New file.
97208         * tests/test-ldexpl.c: New file.
97210 2007-03-29  Bruno Haible  <bruno@clisp.org>
97212         * lib/ldexpl.c: Include fpucw.h.
97213         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
97214         multiplication.
97215         * modules/ldexpl (Depends-on): Add fpucw.
97217 2007-03-29  Bruno Haible  <bruno@clisp.org>
97219         * modules/ldexpl: New file.
97220         * m4/ldexpl.m4: New file.
97221         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
97222         set.
97223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
97224         REPLACE_LDEXPL.
97225         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
97226         REPLACE_LDEXPL.
97227         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
97228         gl_FUNC_LDEXPL_WORKS.
97229         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
97230         * modules/mathl (Files): Remove lib/ldexpl.c.
97231         (Depends-on): Add ldexpl.
97233 2007-03-29  Bruno Haible  <bruno@clisp.org>
97235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
97237 2007-03-29  Bruno Haible  <bruno@clisp.org>
97239         * tests/test-striconveh.c (main): Don't assume that a direct conversion
97240         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
97241         and possibly also HP-UX.
97242         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
97243         work on AIX, IRIX, HP-UX, OSF/1.
97244         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
97245         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
97246         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
97247         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
97248         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
97249         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
97251 2007-03-29  Bruno Haible  <bruno@clisp.org>
97253         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
97255 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97257         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
97258         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
97260 2007-03-29  Eric Blake  <ebb9@byu.net>
97262         * lib/acl-internal.h: Remove redundant include.
97263         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
97264         Cygwin when a file is locked.
97266 2007-03-29  Bruno Haible  <bruno@clisp.org>
97268         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
97269         file.
97270         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
97272 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
97274         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
97275         try to remove a parent directory if the child couldn't be removed
97276         (except for the first rmdir, which could fail because the child
97277         doesn't exist).  Problem reported by Jeff Blaine in
97278         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
97280 2007-03-28  Bruno Haible  <bruno@clisp.org>
97282         * lib/striconveh.c (utf8conv_carefully): New function.
97283         (mem_cd_iconveh_internal): Invoke it.
97285 2007-03-28  Bruno Haible  <bruno@clisp.org>
97287         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
97288         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
97289         input.
97290         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
97291         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
97292         unistr/u8-uctomb.
97294 2007-03-28  Bruno Haible  <bruno@clisp.org>
97296         * modules/unistr/u8-mbtoucr: New file.
97297         * lib/unistr/u8-mbtoucr.c: New file.
97298         * modules/unistr/u16-mbtoucr: New file.
97299         * lib/unistr/u16-mbtoucr.c: New file.
97300         * modules/unistr/u16-mbtoucr: New file.
97301         * lib/unistr/u16-mbtoucr.c: New file.
97302         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
97304 2007-03-27  Simon Josefsson  <simon@josefsson.org>
97305             Bruno Haible  <bruno@clisp.org>
97307         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
97308         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
97309         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
97311         * m4/stdio_h.m4: Add stubs for vasprintf too.
97313         * modules/stdio: Support vasprintf in sed command.
97315         * modules/vasprintf: Depend on stdio for prototypes.  Remove
97316         vasprintf.h.  Add stdio module indicator.
97318         * lib/stdio_.h: Declare asprintf and vasprintf, based on
97319         vasprintf.h.
97321         * lib/vasprintf.h: File removed.
97323         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
97324         * lib/vasprintf.c: Ditto.
97325         * lib/xvasprintf.c: Ditto.
97326         * tests/test-vasprintf-posix.c: Ditto.
97327         * tests/test-vasprintf.c: Ditto.
97329 2007-03-27  Bruno Haible  <bruno@clisp.org>
97331         Make vasnprintf multithread-safe.
97332         * lib/vasnprintf.c (decimal_point_char): New function.
97333         (VASNPRINTF): Use it.
97334         Suggested by Simon Josefsson.
97336 2007-03-27  Eric Blake  <ebb9@byu.net>
97338         Support sub-second birthtime on cygwin.
97339         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
97340         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
97341         (get_stat_birthtime): Also work with st_birthtim.
97343 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
97345         * lib/stat-time.h (USE_BIRTHTIME): Remove.
97346         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
97347         (get_stat_birthtime_ns): Do not try to use "spare" fields.
97348         (get_stat_birthtime_ns): Simplify compile-time tests.
97349         (get_stat_birthtime): Change the API to look like
97350         get_stat_mtime etc., except return a negative tv_nsec on error.
97351         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
97352         Don't check for "spare" fields.
97353         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
97354         or for struct stat.st_birthtime, as these tests aren't used.
97355         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
97357 2007-03-27  Bruno Haible  <bruno@clisp.org>
97359         * lib/stat-time.h: Include <sys/stat.h>.
97361 2007-03-27  James Youngman  <jay@gnu.org>
97363         * lib/stat-time.h (get_stat_birthtime): New function for
97364           retrieving st_birthtime as provided by UFS2 (hence *BSD).
97365         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
97366           and its variants.
97367         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
97368         * modules/stat-time-test: New file.
97369         * tests/test-stat-time.c: New test, devised by Bruno Haible.
97371 2007-03-26  Bruno Haible  <bruno@clisp.org>
97373         Better support of signalling NaNs.
97374         * lib/atanl.c: Include isnanl.h.
97375         (atanl): Perform test for NaN at the beginning of the function and
97376         through a call to isnanl.
97377         * lib/cosl.c: Include isnanl.h.
97378         (cosl): Perform test for NaN at the beginning of the function and
97379         through a call to isnanl.
97380         * lib/ldexpl.c: Include isnanl.h.
97381         (ldexpl): Perform test for NaN through a call to isnanl.
97382         * lib/logl.c: Include isnanl.h.
97383         (logl): Perform test for NaN at the beginning of the function and
97384         through a call to isnanl.
97385         * lib/sinl.c: Include isnanl.h.
97386         (sinl): Perform test for NaN at the beginning of the function and
97387         through a call to isnanl.
97388         * lib/sqrtl.c: Include isnanl.h.
97389         (sqrtl): Perform test for NaN at the beginning of the function and
97390         through a call to isnanl.
97391         * lib/tanl.c: Include isnanl.h.
97392         (tanl): Perform test for NaN at the beginning of the function and
97393         through a call to isnanl.
97394         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
97395         * modules/mathl (Depends-on): Add isnanl.
97397 2007-03-26  Eric Blake  <ebb9@byu.net>
97399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
97400         regression in logic sense of previous patch.
97402 2007-03-26  Bruno Haible  <bruno@clisp.org>
97404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
97405         unportable shell command "if ! ...".
97406         Reported by Ralf Wildenhues.
97408 2007-03-25  Bruno Haible  <bruno@clisp.org>
97410         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
97411         <sysexits.h> file, and only add EX_CONFIG.
97412         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
97413         absolute file name and whether it is sufficient. Substitute also
97414         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
97415         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
97416         ABSOLUTE_SYSEXITS_H into sysexits.h.
97418 2007-03-25  Bruno Haible  <bruno@clisp.org>
97420         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
97421         hints is NULL.
97423 2007-03-25  Bruno Haible  <bruno@clisp.org>
97425         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
97426         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
97428 2007-03-25  Bruno Haible  <bruno@clisp.org>
97430         * lib/vasnprintf.c: Include langinfo.h.
97431         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
97432         multithread-safe.
97433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
97434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
97435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
97441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97442         Reported by Simon Josefsson.
97444 2007-03-25  Bruno Haible  <bruno@clisp.org>
97446         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
97447         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
97448         * modules/vasnprintf (Depends-on): Add stdint.
97450 2007-03-25  Bruno Haible  <bruno@clisp.org>
97452         * modules/fpieee: New file.
97453         * m4/fpieee.m4: New file.
97454         * modules/isnan-nolibm (Depends-on): Add fpieee.
97455         * modules/isnanl-nolibm (Depends-on): Add fpieee.
97456         * modules/isnanl (Depends-on): Add fpieee.
97458 2007-03-25  Bruno Haible  <bruno@clisp.org>
97460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
97462 2007-03-25  Bruno Haible  <bruno@clisp.org>
97464         Avoid test failures on IRIX 6.5.
97465         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
97466         (main): Use it.
97467         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
97468         macros.
97469         (main): Use them.
97471 2007-03-25  Bruno Haible  <bruno@clisp.org>
97473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
97474         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
97475         exists but doesn't work.
97476         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
97477         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
97478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
97479         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
97480         math.h.
97482 2007-03-25  Bruno Haible  <bruno@clisp.org>
97484         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
97485         returns inf. Needed on IRIX 6.5.
97487 2007-03-25  Bruno Haible  <bruno@clisp.org>
97489         * tests/test-frexpl.c: Include isnanl-nolibm.h.
97490         (main): Use isnanl instead of x != x idiom.
97491         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
97493         * tests/test-frexp.c: Include isnan.h.
97494         (main): Use isnan instead of x != x idiom.
97495         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
97497 2007-03-25  Bruno Haible  <bruno@clisp.org>
97499         * tests/test-frexp.c (NaN): New function/macro.
97500         (main): Use it instead of 0.0 / 0.0.
97501         * tests/test-isnan.c (NaN): New function/macro.
97502         (main): Use it instead of 0.0 / 0.0.
97503         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
97504         (test_function): Use it instead of 0.0 / 0.0.
97505         * tests/test-vasprintf-posix.c (NaN): New function/macro.
97506         (test_function): Use it instead of 0.0 / 0.0.
97507         * tests/test-snprintf-posix.h (NaN): New function/macro.
97508         (test_function): Use it instead of 0.0 / 0.0.
97509         * tests/test-sprintf-posix.h (NaN): New function/macro.
97510         (test_function): Use it instead of 0.0 / 0.0.
97511         * tests/test-fprintf-posix.h (NaN): New function/macro.
97512         (test_function): Use it instead of 0.0 / 0.0.
97513         * tests/test-printf-posix.h (NaN): New function/macro.
97514         (test_function): Use it instead of 0.0 / 0.0.
97516         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
97518 2007-03-25  Bruno Haible  <bruno@clisp.org>
97520         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
97522 2007-03-25  Bruno Haible  <bruno@clisp.org>
97524         * lib/regexec.c (merge_state_with_log): Make static.
97526 2007-03-25  Bruno Haible  <bruno@clisp.org>
97528         * lib/trigl.c (kernel_rem_pio2): Make static.
97530 2007-03-25  Bruno Haible  <bruno@clisp.org>
97532         * lib/sincosl.c (sincosl_table): Make static.
97534 2007-03-25  Bruno Haible  <bruno@clisp.org>
97536         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
97537         if the compiler does not support C99.
97539 2007-03-25  Bruno Haible  <bruno@clisp.org>
97541         * modules/time (Makefile.am): Ensure all rule action lines start with a
97542         tab.
97544 2007-03-24  Bruno Haible  <bruno@clisp.org>
97546         * modules/tsearch-tests: New file.
97547         * tests/test-tsearch.sh: New file.
97548         * tests/test-tsearch.c: New file, mostly copied from glibc.
97550         * modules/search-tests: New file.
97551         * tests/test-search.c: New file.
97553         * modules/search: New file.
97554         * lib/search_.h: New file, incorporating lib/tsearch.h.
97555         * m4/search_h.m4: New file.
97556         * lib/tsearch.h: Remove file.
97557         * lib/tsearch.c: Include search.h instead of tsearch.h.
97558         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
97559         HAVE_TSEARCH.
97560         * modules/tsearch (Files): Remove lib/tsearch.h.
97561         (Depends-on): Add search.
97562         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
97563         (Include): Change tsearch.h into search.h.
97565 2007-03-24  Bruno Haible  <bruno@clisp.org>
97567         * modules/fpucw: New file.
97568         * lib/fpucw.h: New file.
97569         * lib/frexp.c: Include fpucw.h.
97570         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
97571         (FUNC): Use them.
97572         * lib/printf-frexp.c: Include fpucw.h.
97573         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
97574         (FUNC): Use them.
97575         * lib/vasnprintf.c: Include fpucw.h.
97576         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
97577         'long double' calculations.
97578         * tests/test-frexpl.c: Include fpucw.h.
97579         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
97580         * tests/test-printf-frexpl.c: Include fpucw.h.
97581         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
97582         * modules/frexpl (Depends-on): Add fpucw.
97583         * modules/printf-frexpl (Depends-on): Likewise.
97584         * modules/fprintf-posix (Depends-on): Likewise.
97585         * modules/snprintf-posix (Depends-on): Likewise.
97586         * modules/sprintf-posix (Depends-on): Likewise.
97587         * modules/vasnprintf-posix (Depends-on): Likewise.
97588         * modules/vasprintf-posix (Depends-on): Likewise.
97589         * modules/vfprintf-posix (Depends-on): Likewise.
97590         * modules/vsnprintf-posix (Depends-on): Likewise.
97591         * modules/vsprintf-posix (Depends-on): Likewise.
97592         * modules/frexpl-tests (Depends-on): Likewise.
97593         * modules/printf-frexpl-tests (Depends-on): Likewise.
97595 2007-03-24  Bruno Haible  <bruno@clisp.org>
97597         * lib/float+.h: New file.
97598         * lib/isnan.c: Include float+.h.
97599         (SIZE): New macro.
97600         (FUNC): Compare only SIZE bytes of the value.
97601         * lib/vasnprintf.c: Include float+.h.
97602         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
97603         SIZEOF_LDBL or SIZEOF_DBL bytes.
97604         * modules/isnan-nolibm (Files): Add lib/float+.h.
97605         * modules/isnanl-nolibm (Files): Add lib/float+.h.
97606         * modules/isnanl (Files): Add lib/float+.h.
97607         * modules/vasnprintf (Files): Add lib/float+.h.
97609 2007-03-24  Bruno Haible  <bruno@clisp.org>
97611         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
97612         include isnanl-nolibm.h.
97614 2007-03-24  Bruno Haible  <bruno@clisp.org>
97616         * tests/test-read-file.c (main): Don't produce spurious output for
97617         expected situations. Make the test fail if it encountered unexpected
97618         results.
97620 2007-03-24  Bruno Haible  <bruno@clisp.org>
97622         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
97623         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
97625 2007-03-24  Bruno Haible  <bruno@clisp.org>
97627         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
97629 2007-03-24  Bruno Haible  <bruno@clisp.org>
97631         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
97632         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
97634         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
97635         * modules/utf8-ucs4: Turn into a symbolic link to module
97636         unistr/u8-mbtouc.
97638         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
97639         utf8-ucs4-unsafe.
97640         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
97641         unistr/u8-mbtouc-unsafe.
97643         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
97644         * modules/utf16-ucs4: Turn into a symbolic link to module
97645         unistr/u16-mbtouc.
97647         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
97648         utf16-ucs4-unsafe.
97649         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
97650         unistr/u16-mbtouc-unsafe.
97652         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
97653         * modules/ucs4-utf8: Turn into a symbolic link to module
97654         unistr/u8-ubtomb.
97656         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
97657         * modules/ucs4-utf16: Turn into a symbolic link to module
97658         unistr/u16-ubtomb.
97660 2007-03-24  Bruno Haible  <bruno@clisp.org>
97662         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
97663         Enable the function only if HAVE_INLINE.
97664         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
97665         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
97666         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
97667         Enable the function only if HAVE_INLINE.
97668         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
97669         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
97670         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
97671         Enable the function only if HAVE_INLINE.
97672         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
97673         Enable the function only if HAVE_INLINE.
97674         * modules/utf8-ucs4: Update.
97675         * modules/utf8-ucs4-unsafe: Update.
97676         * modules/utf16-ucs4: Update.
97677         * modules/utf16-ucs4-unsafe: Update.
97678         * modules/ucs4-utf8: Update.
97679         * modules/ucs4-utf16: Update.
97681 2007-03-24  Bruno Haible  <bruno@clisp.org>
97683         * lib/utf8-ucs4.h: Remove file.
97684         * lib/utf8-ucs4-unsafe.h: Remove file.
97685         * lib/utf16-ucs4.h: Remove file.
97686         * lib/utf16-ucs4-unsafe.h: Remove file.
97687         * lib/ucs4-utf8.h: Remove file.
97688         * lib/ucs4-utf16.h: Remove file.
97689         * lib/unistr.h: Include their previous contents.
97690         * m4/utf-ucs4.m4: Remove file.
97691         * m4/ucs4-utf.m4: Remove file.
97692         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
97693         (Depends-on): Add unistr/base.
97694         (configure.ac): Remove gl_UTF_UCS4.
97695         (Makefile.am): Update.
97696         (Include): Change to unistr.h.
97697         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
97698         (Depends-on): Add unistr/base.
97699         (configure.ac): Remove gl_UTF_UCS4.
97700         (Makefile.am): Update.
97701         (Include): Change to unistr.h.
97702         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
97703         (Depends-on): Add unistr/base.
97704         (configure.ac): Remove gl_UTF_UCS4.
97705         (Makefile.am): Update.
97706         (Include): Change to unistr.h.
97707         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
97708         (Depends-on): Add unistr/base.
97709         (configure.ac): Remove gl_UTF_UCS4.
97710         (Makefile.am): Update.
97711         (Include): Change to unistr.h.
97712         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
97713         (Depends-on): Add unistr/base.
97714         (configure.ac): Remove gl_UCS4_UTF.
97715         (Makefile.am): Update.
97716         (Include): Change to unistr.h.
97717         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
97718         (Depends-on): Add unistr/base.
97719         (configure.ac): Remove gl_UCS4_UTF.
97720         (Makefile.am): Update.
97721         (Include): Change to unistr.h.
97722         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
97723         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
97724         utf8-ucs4-unsafe.h.
97725         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
97726         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
97727         utf16-ucs4-unsafe.h.
97728         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
97729         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
97730         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
97731         * lib/unistr/u8-strchr.c: Likewise.
97732         * lib/unistr/u8-strrchr.c: Likewise.
97733         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
97734         * lib/unistr/u16-strchr.c: Likewise.
97735         * lib/unistr/u16-strrchr.c: Likewise.
97736         * lib/striconveh.c: Update.
97737         * lib/linebreak.c: Update.
97739 2007-03-24  Bruno Haible  <bruno@clisp.org>
97741         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
97742         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
97744 2007-03-22  Bruno Haible  <bruno@clisp.org>
97746         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
97748 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
97750         * MODULES.html.sh (File system functions): New module write-any-file.
97751         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
97752         * m4/write-any-file.m4: New files.
97754 2007-03-23  Eric Blake  <ebb9@byu.net>
97756         * gnulib-tool: Rearrange space-tab sequences, since some editors
97757         like to eat them.
97759 2007-03-23  Eric Blake  <ebb9@byu.net>
97761         * lib/version-etc.c (version_etc_va): Update license wording to
97762         be more concise.  Recommended by Richard Stallman.
97764 2007-03-22  Bruno Haible  <bruno@clisp.org>
97766         * lib/poll.c (MSG_PEEK): New fallback definition.
97768 2007-03-22  Bruno Haible  <bruno@clisp.org>
97770         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
97771         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
97772         (main): Update.
97773         Fixes a compilation error on BeOS.
97775 2007-03-22  Bruno Haible  <bruno@clisp.org>
97777         * modules/frexpl-tests: New file.
97778         * tests/test-frexpl.c: New file.
97780         * modules/frexpl: New file.
97781         * m4/frexpl.m4: New file.
97782         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
97783         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
97784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
97785         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
97786         (Depends-on): Add frexpl. Remove isnanl-nolibm.
97787         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
97789 2007-03-22  Bruno Haible  <bruno@clisp.org>
97791         * lib/frexpl.c: Share code with lib/frexp.c.
97792         * modules/mathl (Files): Add lib/frexp.c.
97793         (Depends-on): Add isnanl-nolibm.
97795 2007-03-22  Bruno Haible  <bruno@clisp.org>
97797         * modules/printf-frexp (Files): Add m4/frexp.m4.
97798         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
97799         only if the found frexp function actually works.
97801 2007-03-22  Bruno Haible  <bruno@clisp.org>
97803         * lib/frexp.c: Remove older implementation that uses divisions.
97805 2007-03-21  Bruno Haible  <bruno@clisp.org>
97807         * modules/frexp-tests: New file.
97808         * tests/test-frexp.c: New file.
97810         * modules/frexp: New file.
97811         * lib/frexp.c: New file.
97812         * m4/frexp.m4: New file.
97813         * lib/math_.h (frexp): New declaration.
97814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
97815         REPLACE_FREXP.
97816         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
97818 2007-03-21  Bruno Haible  <bruno@clisp.org>
97820         * modules/isnanl-tests: New file.
97821         * tests/test-isnanl.c: New file.
97823         * modules/isnanl: New file.
97824         * lib/isnanl.h: New file.
97825         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
97826         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
97827         gl_FUNC_ISNANL_WORKS.
97828         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
97829         New macros.
97831 2007-03-21  Bruno Haible  <bruno@clisp.org>
97833         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
97834         lib/isnanl.h.
97835         (Include): Update.
97836         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
97837         * lib/vasnprintf.c: Update.
97838         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
97839         tests/test-isnanl.h, remove tests/test-isnanl.c.
97840         (Makefile.am): Update.
97841         * tests/test-isnanl-nolibm.c: New file.
97842         * tests/test-isnanl.h: New file.
97843         * tests/test-isnanl.c: Remove file.
97845 2007-03-21  Jim Meyering  <jim@meyering.net>
97847         When trying to open ".", treat ESTALE like EACCES.
97848         * lib/savewd.c (savewd_save): Resort to forking not just upon
97849         failure with EACCES, but also when errno is ESTALE.
97851 2007-03-20  Bruno Haible  <bruno@clisp.org>
97853         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
97854         Needed on AIX 5.1. Reported by Matthew Woehlke.
97856 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
97858         Suggestions by Bruno Haible:
97859         * lib/acl-internal.h: Include "gettext.h" rather than rolling
97860         our own.
97861         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
97862         * modules/acl (Depends-on): Add gettext.
97864 2007-03-19  Bruno Haible  <bruno@clisp.org>
97866         * modules/iconvme: Remove file.
97867         * lib/iconvme.h: Remove file.
97868         * lib/iconvme.c: Remove file.
97869         * m4/iconvme.m4: Remove file.
97871 2007-03-19  Bruno Haible  <bruno@clisp.org>
97873         * doc/relocatable-maint.texi: Break long shell script line.
97874         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
97876 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
97878         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
97879         handle file_has_acl.
97880         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
97881         * lib/acl.c: Move header inclusions and related macro defns into
97882         lib/acl-internal.h.
97883         (S_ISLNK): Remove defn, since that's now done for us.
97884         (file_has_acl): Move to lib/file-has-acl.c.
97885         Call acl_trivial if available.  This is the crucial part of the fix.
97886         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
97887         shared within the library.  Rewrite a bit, partly to make it compatible
97888         with the GNU coding style.
97889         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
97890         Remove unnecessary double-quotes.
97891         Don't test for acl_to_text; the build will catch that.
97892         Replace acl_entries if it doesn't exist and it is needed.
97893         Check for -lsec and acl_trivial (as used on Solaris 10).
97894         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
97895         lib/file-has-acl.c.
97896         (Depends-on): Add sys_stat, for S_ISLNK.
97898 2007-03-19  Ben Pfaff  <blp@gnu.org>
97900         * doc/gnulib.texi: Fix typos.
97901         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
97903 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
97905         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
97906         If size is zero here, buf must be zero.
97908 2007-03-19  Simon Josefsson  <simon@josefsson.org>
97910         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
97911         <bruno@clisp.org>.
97913 2007-03-18  Bruno Haible  <bruno@clisp.org>
97915         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
97916         Suggested by Eric Blake.
97918 2007-03-18  Ben Pfaff  <blp@gnu.org>
97920         * doc/relocatable.texi: Recommend using as prefix a directory
97921         that does not exist and will never be created.  Based on
97922         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
97923         and others.
97925 2007-03-17  Bruno Haible  <bruno@clisp.org>
97927         * lib/fchownat.c: Include lchown.h.
97929 2007-03-17  Bruno Haible  <bruno@clisp.org>
97931         Fix endless loop when the given allocated size was > INT_MAX.
97932         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
97933         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
97934         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
97935         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
97936         * lib/sprintf.c (sprintf): Likewise.
97938 2007-03-17  Bruno Haible  <bruno@clisp.org>
97940         * tests/test-argp-2.sh (func_compare): Output a context diff.
97942 2007-03-17  Bruno Haible  <bruno@clisp.org>
97944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
97945         locale's decimal-point character.
97947 2007-03-17  Bruno Haible  <bruno@clisp.org>
97949         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
97950         before comparing it. Needed because on some platforms (e.g. x86) a
97951         'long double' occupies less bytes than sizeof (long double).
97953 2007-03-17  Bruno Haible  <bruno@clisp.org>
97955         * tests/test-crc.c (main): Make printf statements 64-bit clean.
97956         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
97957         * tests/test-getaddrinfo.c (simple): Likewise.
97958         * tests/test-read-file.c (main): Likewise.
97960 2007-03-17  Bruno Haible  <bruno@clisp.org>
97962         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
97964 2007-03-17  Bruno Haible  <bruno@clisp.org>
97966         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
97967         unused variable.
97969 2007-03-17  Bruno Haible  <bruno@clisp.org>
97971         * tests/test-c-strcasecmp.c: Include c-strcase.h.
97972         * tests/test-c-strncasecmp.c: Likewise.
97974 2007-03-17  Bruno Haible  <bruno@clisp.org>
97976         * modules/stdlib (Depends-on): Add unistd.
97977         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
97978         Needed for MacOS X 10.3.
97980 2007-03-17  Bruno Haible  <bruno@clisp.org>
97982         * lib/unistr/u-strdup.h: Include <stdlib.h>.
97984 2007-03-17  Bruno Haible  <bruno@clisp.org>
97986         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
97988 2007-03-17  Bruno Haible  <bruno@clisp.org>
97990         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
97991         to reflect files copied from gnulib (with or without modifications).
97992         Suggested by Jim Meyering.
97994 2007-03-17  Eric Blake  <ebb9@byu.net>
97996         * NEWS: Document stdlib change from 2007-02-18.
97998 2007-03-17  Jim Meyering  <jim@meyering.net>
98000         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
98001         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
98002         someone uses a name containing shell meta-characters.
98003         Reported by Alfred M. Szmidt.
98005         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
98007 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98009         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
98010         and copy gettext configuration files only if configure.ac contains
98011         a use of AM_GNU_GETTEXT_VERSION.
98013 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
98015         * build-aux/bootstrap (gnulib_name): New variable.
98016         (gnulib_tool_options): Use it.
98018 2007-03-13  Simon Josefsson  <simon@josefsson.org>
98020         * tests/test-des.c: Use new namespace.
98022 2007-03-15  Bruno Haible  <bruno@clisp.org>
98024         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
98025         Reported by James Youngman <jay@gnu.org>.
98027 2007-03-15  Bruno Haible  <bruno@clisp.org>
98029         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
98030         declared prototype. Needed with cc on OSF/1 5.1.
98032 2007-03-15  Bruno Haible  <bruno@clisp.org>
98034         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
98035         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
98036         (struct gl_list_implementation): Add dispose_fn argument to the
98037         'create_empty', 'create' methods.
98038         (struct gl_list_impl_base): Add field 'dispose_fn'.
98039         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
98040         argument.
98041         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
98042         dispose_fn argument.
98043         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
98044         dispose_fn on the dropped values.
98045         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
98046         dispose_fn argument.
98047         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
98048         dropped values.
98049         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
98050         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98051         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
98052         (gl_tree_remove_node): Call dispose_fn on the dropped value.
98053         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
98054         argument.
98055         (gl_tree_list_free): Call dispose_fn on the dropped values.
98056         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
98057         the dropped values.
98058         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
98059         Add dispose_fn argument.
98060         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
98061         Call dispose_fn on the dropped values.
98062         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
98063         Add dispose_fn argument.
98064         (gl_sublist_create): Initialize the 'dispose_fn' field.
98065         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
98066         * tests/test-array_list.c (main): Update.
98067         * tests/test-carray_list.c (main): Update.
98068         * tests/test-avltree_list.c (main): Update.
98069         * tests/test-rbtree_list.c (main): Update.
98070         * tests/test-avltreehash_list.c (main): Update.
98071         * tests/test-rbtreehash_list.c (main): Update.
98072         * tests/test-linked_list.c (main): Update.
98073         * tests/test-linkedhash_list.c (main): Update.
98074         * tests/test-array_oset.c (main): Update.
98076 2007-03-15  Bruno Haible  <bruno@clisp.org>
98078         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
98079         (gl_oset_create_empty): Add dispose_fn argument.
98080         (struct gl_oset_implementation): Add dispose_fn argument to
98081         'create_empty' method.
98082         (struct gl_oset_impl_base): Add dispose_fn field.
98083         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
98084         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
98085         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
98086         values.
98087         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
98088         (gl_tree_oset_free): Call dispose_fn on the dropped values.
98089         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98090         dropped value.
98091         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
98092         dropped value.
98093         * tests/test-array_oset.c (main): Update.
98094         * tests/test-avltree_oset.c (main): Update.
98095         * tests/test-rbtree_oset.c (main): Update.
98096         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
98098 2007-03-13  Bruno Haible  <bruno@clisp.org>
98100         * tests/test-stdbool.c (i): Update after last patch.
98102 2007-03-12  Bruno Haible  <bruno@clisp.org>
98104         * lib/quotearg.c: Include <wctype.h> early, before the definition of
98105         the iswprint macro. Needed on Solaris 2.5.1.
98107 2007-03-12  Bruno Haible  <bruno@clisp.org>
98109         * tests/test-printf-frexp.c (main): Declare x as volatile.
98111 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98113         * doc/gnulib.texi (Build robot for gnulib): New section.
98115 2007-03-12  Jim Meyering  <jim@meyering.net>
98117         * build-aux/bootstrap: New file.
98118         * build-aux/bootstrap.conf: New file, from coreutils.
98120 2007-03-11  Bruno Haible  <bruno@clisp.org>
98122         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
98124 2007-03-12  Simon Josefsson  <simon@josefsson.org>
98126         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
98127         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
98128         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
98130 2007-03-11  Bruno Haible  <bruno@clisp.org>
98132         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
98133         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
98135 2007-03-11  Bruno Haible  <bruno@clisp.org>
98137         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
98138         formula. Needed for SunPRO C 5.0.
98140 2007-03-11  Bruno Haible  <bruno@clisp.org>
98142         * modules/long-options (Depends-on): Add getopt.
98144 2007-03-11  Bruno Haible  <bruno@clisp.org>
98146         * modules/modechange (Depends-on): Add stdbool.
98148 2007-03-11  Bruno Haible  <bruno@clisp.org>
98150         * modules/i-ring (Depends-on): Add stdbool.
98152 2007-03-11  Bruno Haible  <bruno@clisp.org>
98154         * modules/gc-des (Depends-on): Add stdbool.
98156 2007-03-11  Bruno Haible  <bruno@clisp.org>
98158         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
98160 2007-03-11  Bruno Haible  <bruno@clisp.org>
98162         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
98164 2007-03-11  Bruno Haible  <bruno@clisp.org>
98166         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
98168 2007-03-11  Bruno Haible  <bruno@clisp.org>
98170         * lib/vasnprintf.c (sprintf): Undefine.
98172 2007-03-11  Bruno Haible  <bruno@clisp.org>
98174         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
98175         initializers in SunPRO C and Compaq C compilers.
98177 2007-03-11  Bruno Haible  <bruno@clisp.org>
98179         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
98180         decrementing code ANSI C compliant.
98182 2007-03-11  Bruno Haible  <bruno@clisp.org>
98184         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
98185         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
98187 2007-03-11  Bruno Haible  <bruno@clisp.org>
98189         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
98190         <stdbool.h> substitute doesn't pass.
98192 2007-03-11  Bruno Haible  <bruno@clisp.org>
98194         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
98196 2007-03-11  Bruno Haible  <bruno@clisp.org>
98198         * gnulib-tool (func_create_megatestdir): Create also an autobuild
98199         script, for submission to autobuild.josefsson.org.
98201 2007-03-10  Bruno Haible  <bruno@clisp.org>
98203         * modules/canonicalize-lgpl-tests: New file.
98204         * tests/test-canonicalize-lgpl.sh: New file.
98205         * tests/test-canonicalize-lgpl.c: New file.
98207         * modules/c-strcase-tests: New file.
98208         * tests/test-c-strcase.sh: New file.
98209         * tests/test-c-strcasecmp.c: New file.
98210         * tests/test-c-strncasecmp.c: New file.
98212         * modules/atexit-tests: New file.
98213         * tests/test-atexit.sh: New file.
98214         * tests/test-atexit.c: New file.
98216 2007-03-10  Bruno Haible  <bruno@clisp.org>
98218         * tests/test-binary-io.sh: Use temporary filenames that are not so
98219         likely to clash with those of other tests (in a parallel make).
98220         * tests/test-binary-io.c: Likewise.
98222 2007-03-10  Bruno Haible  <bruno@clisp.org>
98224         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
98225         fallback; use #error instead.
98226         Suggested by Simon Josefsson.
98228 2007-03-10  Bruno Haible  <bruno@clisp.org>
98230         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
98231         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
98232         first and the last.
98234 2007-03-10  Bruno Haible  <bruno@clisp.org>
98236         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
98238 2007-03-10  Bruno Haible  <bruno@clisp.org>
98240         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
98241         "make distcheck".
98242         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
98243         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
98244         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
98246 2007-03-10  Bruno Haible  <bruno@clisp.org>
98248         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
98249         variable.
98250         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
98251         variable.
98253 2007-03-09  Eric Blake  <ebb9@byu.net>
98254         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
98256         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
98257         types are not being provided by gnulib.
98258         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
98259         types are supported.
98261 2007-03-10  Bruno Haible  <bruno@clisp.org>
98263         * lib/stdio_.h (__attribute__): New macro.
98264         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
98265         vsprintf): Specify __attribute__ __format__ for GCC.
98266         Suggested by Eric Blake.
98268 2007-03-09  Bruno Haible  <bruno@clisp.org>
98270         * modules/printf-posix-tests: New file.
98271         * tests/test-printf-posix.sh: New file.
98272         * tests/test-printf-posix.c: New file.
98274         * modules/printf-posix: New file.
98275         * lib/printf.c: New file.
98276         * m4/printf-posix-rpl.m4: New file.
98277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
98278         REPLACE_PRINTF.
98279         * lib/stdio_.h (printf): New declaration.
98280         (format, __format__, ____printf____, ____scanf____, ____strftime____,
98281         ____strfmon____): New macros.
98282         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
98283         REPLACE_PRINTF.
98285 2007-03-09  Bruno Haible  <bruno@clisp.org>
98287         * tests/test-vasnprintf-posix2.sh: New file.
98288         * tests/test-vasnprintf-posix2.c: New file.
98289         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
98290         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
98291         (Makefile.am): Activate test-vasnprintf-posix2.sh.
98293         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
98294         a locale dependent decimal point, rather than always '.'.
98296 2007-03-09  Eric Blake  <ebb9@byu.net>
98298         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
98299         spite of platforms like Tandem/NSK that define it to -1.
98301 2007-03-08  Bruno Haible  <bruno@clisp.org>
98303         * modules/vprintf-posix-tests: New file.
98304         * tests/test-vprintf-posix.sh: New file.
98305         * tests/test-vprintf-posix.c: New file.
98306         * tests/test-printf-posix.h: New file.
98308         * modules/vprintf-posix: New file.
98309         * lib/vprintf.c: New file.
98310         * m4/vprintf-posix.m4: New file.
98311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
98312         REPLACE_VPRINTF.
98313         * lib/stdio_.h (vprintf): New declaration.
98314         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
98315         REPLACE_VPRINTF.
98317 2007-03-08  Bruno Haible  <bruno@clisp.org>
98319         * modules/fprintf-posix-tests: New file.
98320         * tests/test-fprintf-posix.sh: New file.
98321         * tests/test-fprintf-posix.c: New file.
98323         * modules/fprintf-posix: New file.
98324         * lib/fprintf.c: New file.
98325         * m4/fprintf-posix.m4: New file.
98326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
98327         REPLACE_FPRINTF.
98328         * lib/stdio_.h (fprintf): New declaration.
98329         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
98330         REPLACE_FPRINTF.
98332 2007-03-08  Bruno Haible  <bruno@clisp.org>
98334         * modules/vfprintf-posix-tests: New file.
98335         * tests/test-vfprintf-posix.sh: New file.
98336         * tests/test-vfprintf-posix.c: New file.
98337         * tests/test-fprintf-posix.h: New file.
98338         * tests/test-fprintf-posix.out: New file.
98340         * modules/vfprintf-posix: New file.
98341         * lib/vfprintf.c: New file.
98342         * m4/vfprintf-posix.m4: New file.
98343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
98344         REPLACE_VFPRINTF.
98345         * lib/stdio_.h (vfprintf): New declaration.
98346         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
98347         REPLACE_VFPRINTF.
98349 2007-03-08  Bruno Haible  <bruno@clisp.org>
98351         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
98353 2007-03-08  Bruno Haible  <bruno@clisp.org>
98355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
98356         instead of 'expr' invocations.
98357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98362         Suggested by Paul Eggert.
98364 2007-03-08  Bruno Haible  <bruno@clisp.org>
98366         * modules/fseterr-tests: New file.
98367         * tests/test-fseterr.c: New file.
98369         * modules/fseterr: New file.
98370         * lib/fseterr.h: New file.
98371         * lib/fseterr.c: New file.
98373 2007-03-08  Bruno Haible  <bruno@clisp.org>
98375         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
98376         * lib/getopt_.h: Likewise.
98377         * lib/mbswidth.h: Likewise.
98378         * lib/setenv.h: Likewise.
98379         * lib/vasnprintf.h: Likewise.
98380         * lib/vasprintf.h: Likewise.
98381         * lib/verror.h: Likewise.
98382         * lib/xsetenv.h: Likewise.
98383         * lib/xvasprintf.h: Likewise.
98385 2007-03-08  Jim Meyering  <jim@meyering.net>
98387         * users.txt: Add parted.
98389         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
98391 2007-03-07  Bruno Haible  <bruno@clisp.org>
98393         * m4/printf.m4: Make the shell script snippets copy&pastable.
98395 2007-03-02  Bruno Haible  <bruno@clisp.org>
98397         * lib/netinet_in_.h: New file.
98398         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
98399         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
98400         * modules/netinet_in (Files): Add lib/netinet_in_.h.
98401         (Depends-on): Add absolute-header.
98402         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
98403         into netinet/in.h.
98405 2007-03-03  Bruno Haible  <bruno@clisp.org>
98407         * lib/sys_select_.h: New file.
98408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
98409         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
98410         * modules/sys_select (Files): Add lib/sys_select_.h.
98411         (Depends-on): Add absolute-header.
98412         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
98413         into sys/select.h.
98415 2007-03-02  Bruno Haible  <bruno@clisp.org>
98417         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
98418         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
98419         values.
98420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
98421         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
98422         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
98423         * modules/sys_socket (Depends-on): Add absolute-header.
98424         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
98425         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
98426         (Include): Remove requirement of inclusion of <sys/types.h>.
98428 2007-03-02  Bruno Haible  <bruno@clisp.org>
98430         * lib/byteswap_.h (bswap_32): Fix formula.
98432 2007-03-06  Bruno Haible  <bruno@clisp.org>
98434         * modules/sprintf-posix-tests: New file.
98435         * tests/test-sprintf-posix.c: New file.
98437         * modules/sprintf-posix: New file.
98438         * lib/sprintf.c: New file.
98439         * m4/sprintf-posix.m4: New file.
98440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
98441         REPLACE_SPRINTF.
98442         * lib/stdio_.h (sprintf): New declaration.
98443         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
98444         REPLACE_SPRINTF.
98446 2007-03-06  Bruno Haible  <bruno@clisp.org>
98448         * modules/vsprintf-posix-tests: New file.
98449         * tests/test-vsprintf-posix.c: New file.
98450         * tests/test-sprintf-posix.h: New file.
98452         * modules/vsprintf-posix: New file.
98453         * lib/vsprintf.c: New file.
98454         * m4/vsprintf-posix.m4: New file.
98455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
98456         REPLACE_VSPRINTF.
98457         * lib/stdio_.h (vsprintf): New declaration.
98458         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
98459         REPLACE_VSPRINTF.
98461 2007-03-06  Bruno Haible  <bruno@clisp.org>
98463         * modules/vsnprintf (Depend-on): Remove minmax.
98465 2007-03-06  Bruno Haible  <bruno@clisp.org>
98467         * modules/snprintf-posix-tests: New file.
98468         * tests/test-snprintf-posix.c: New file.
98470         * modules/snprintf-posix: New file.
98471         * m4/snprintf-posix.m4: New file.
98472         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
98473         gl_FUNC_SNPRINTF.
98474         (gl_FUNC_SNPRINTF): Invoke it.
98475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
98476         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
98477         is set.
98478         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
98480 2007-03-06  Bruno Haible  <bruno@clisp.org>
98482         * modules/vsnprintf-posix-tests: New file.
98483         * tests/test-vsnprintf-posix.c: New file.
98484         * tests/test-snprintf-posix.h: New file.
98486         * modules/vsnprintf-posix: New file.
98487         * m4/vsnprintf-posix.m4: New file.
98488         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
98489         gl_FUNC_VSNPRINTF.
98490         (gl_FUNC_VSNPRINTF): Invoke it.
98491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
98492         * lib/stdio_.h (vsnprintf): Define as a replacement if
98493         REPLACE_VSNPRINTF is set.
98494         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
98496 2007-03-06  Bruno Haible  <bruno@clisp.org>
98498         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
98499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
98501 2007-03-06  Bruno Haible  <bruno@clisp.org>
98503         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
98504         (asinl): Declare also if HAVE_DECL_ASINL is set.
98505         (atanl): Declare also if HAVE_DECL_ATANL is set.
98506         (ceill): Declare also if HAVE_DECL_CEILL is set.
98507         (cosl): Declare also if HAVE_DECL_COSL is set.
98508         (expl): Declare also if HAVE_DECL_EXPL is set.
98509         (floorl): Declare also if HAVE_DECL_FLOORL is set.
98510         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
98511         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
98512         (logl): Declare also if HAVE_DECL_LOGL is set.
98513         (sinl): Declare also if HAVE_DECL_SINL is set.
98514         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
98515         (tanl): Declare also if HAVE_DECL_TANL is set.
98516         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
98517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
98518         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
98519         declaration of frexpl, ldexpl.
98520         * modules/printf-frexpl (Depends-on): Add math.
98521         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
98523 2007-03-05  Bruno Haible  <bruno@clisp.org>
98525         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
98526         frexpl and ldexpl are declared.
98527         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
98529 2007-03-05  Bruno Haible  <bruno@clisp.org>
98531         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
98532         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
98534 2007-03-05  Bruno Haible  <bruno@clisp.org>
98536         * lib/stdio_.h: Include <stddef.h>.
98538 2007-03-05  Bruno Haible  <bruno@clisp.org>
98540         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
98542 2007-03-05  Bruno Haible  <bruno@clisp.org>
98544         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
98545         NetBSD 4, from Ralf Wildenhues.
98547 2007-03-04  Bruno Haible  <bruno@clisp.org>
98549         * lib/vasprintf.h: Update #if logic for the case when the functions
98550         exist but are overridden.
98552 2007-03-04  Bruno Haible  <bruno@clisp.org>
98554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
98555         implementations: glibc-2.4 and MacOS X 10.3.
98556         * tests/test-vasnprintf-posix.c (test_function): Test also the case
98557         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
98558         * tests/test-vasprintf-posix.c (test_function): Likewise.
98560 2007-03-04  Bruno Haible  <bruno@clisp.org>
98562         * modules/vasprintf-posix-tests: New file.
98563         * tests/test-vasprintf-posix.c: New file.
98565         * modules/vasprintf-posix: New file.
98566         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
98567         defined.
98568         * m4/vasprintf-posix.m4: New file.
98569         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
98570         gl_FUNC_VASPRINTF.
98571         (gl_FUNC_VASPRINTF): Invoke it.
98572         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
98573         here.
98574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
98576 2007-03-04  Bruno Haible  <bruno@clisp.org>
98578         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
98579         REPLACE_GETTIMEOFDAY.
98580         * modules/sys_time (Makefile.am): Likewise.
98581         * m4/sys_time_h.m4: Likewise.
98582         * m4/gettimeofday.m4: Likewise.
98584 2007-03-04  Bruno Haible  <bruno@clisp.org>
98586         * modules/vasnprintf-posix-tests: New file.
98587         * tests/test-vasnprintf-posix.c: New file.
98589         * modules/vasnprintf-posix: New file.
98590         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
98591         printf-frexpl.h.
98592         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
98593         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
98594         REPLACE_VASNPRINTF is defined.
98595         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
98596         gl_FUNC_VASNPRINTF.
98597         (gl_FUNC_VASNPRINTF): Invoke it.
98598         * m4/vasnprintf-posix.m4: New file.
98599         * m4/printf.m4: New file.
98601 2007-03-04  Bruno Haible  <bruno@clisp.org>
98603         Compile progreloc.c only if --enable-relocatable is specified.
98604         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
98605         if --enable-relocatable was specified.
98606         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
98607         lib_SOURCES.
98609 2007-03-04  Jim Meyering  <jim@meyering.net>
98611         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
98612         Use it consistently, rather than enumerating errno constants.
98614 2007-03-04  Bruno Haible  <bruno@clisp.org>
98616         * modules/xvasprintf-tests: New file.
98617         * tests/test-xvasprintf.c: New file.
98619         * modules/vasprintf-tests: New file.
98620         * tests/test-vasprintf.c: New file.
98622         * modules/vasnprintf-tests: New file.
98623         * tests/test-vasnprintf.c: New file.
98625         * modules/vsnprintf-tests: New file.
98626         * tests/test-vsnprintf.c: New file.
98628         * modules/snprintf-tests: New file.
98629         * tests/test-snprintf.c: New file.
98631 2007-03-04  Bruno Haible  <bruno@clisp.org>
98633         Compile relocatable.c only if --enable-relocatable is specified.
98634         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
98635         gl_RELOCATABLE_LIBRARY.
98636         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
98637         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
98638         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
98639         gl_RELOCATABLE_LIBRARY.
98640         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
98641         (Makefile.am): Remove lib_SOURCES.
98642         * modules/relocatable-lib-lgpl (configure.ac): Invoke
98643         gl_RELOCATABLE_LIBRARY.
98644         (Makefile.am): Remove lib_SOURCES.
98645         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
98646         always.
98647         * modules/relocatable-prog-wrapper (configure.ac): Invoke
98648         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
98650 2007-03-04  Bruno Haible  <bruno@clisp.org>
98652         * modules/argmatch-tests: New file.
98653         * tests/test-argmatch.c: New file.
98655         * tests/test-allocsa.c (main): Halve the number of loop runs.
98657         * modules/alloca-opt-tests: New file.
98658         * tests/test-alloca-opt.c: New file.
98660 2007-03-04  Jim Meyering  <jim@meyering.net>
98662         Work around difference between Linux ACLs and Solaris 10 ZFS.
98663         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
98664         for EINVAL.
98666 2007-03-03  Bruno Haible  <bruno@clisp.org>
98668         * modules/relocatable-prog (Depends-on): Add back progreloc's
98669         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
98671 2007-03-03  Bruno Haible  <bruno@clisp.org>
98673         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
98674         * modules/relocatable-lib: New file.
98676 2007-03-03  Bruno Haible  <bruno@clisp.org>
98678         * modules/relocatable-prog: Renamed from modules/relocatable.
98679         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
98681 2007-03-03  Bruno Haible  <bruno@clisp.org>
98683         * modules/relocatable-script (Files): Add doc/relocatable.texi,
98684         m4/relocatable-lib.m4.
98685         (Depends-on): Remove 'relocatable'.
98686         (configure.ac): Add gl_RELOCATABLE_NOP.
98688 2007-03-03  Bruno Haible  <bruno@clisp.org>
98690         * modules/relocatable-prog-wrapper: New file.
98691         * modules/relocatable (Depends-on): Add it. Remove all other
98692         dependencies except progname.
98693         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
98695         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
98696         (gl_FUNC_STRERROR): Nop.
98697         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
98699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
98700         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
98702         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
98703         (gl_FUNC_READLINK): Update.
98705         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
98707 2007-03-03  Bruno Haible  <bruno@clisp.org>
98709         * lib/xreadlink.c: Include <unistd.h> unconditionally.
98710         * modules/xreadlink (Depends-on): Add unistd.
98711         * modules/xreadlink-with-size (Depends-on): Likewise.
98713 2007-03-03  Bruno Haible  <bruno@clisp.org>
98715         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
98716         extracted from gt_FUNC_SETENV.
98717         (gt_FUNC_SETENV): Remove macro.
98718         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
98719         remove gt_FUNC_SETENV.
98721 2007-03-03  Bruno Haible  <bruno@clisp.org>
98723         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
98724         ENABLE_RELOCATABLE here.
98725         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
98727 2007-03-03  Bruno Haible  <bruno@clisp.org>
98729         * modules/rbtreehash-list-tests (Depends-on): Add progname.
98730         * tests/test-rbtreehash_list.c: Include progname.h.
98731         (main): Call set_program_name.
98733         * modules/rbtree-oset-tests (Depends-on): Add progname.
98734         * tests/test-rbtree_oset.c: Include progname.h.
98735         (main): Call set_program_name.
98737         * modules/rbtree-list-tests (Depends-on): Add progname.
98738         * tests/test-rbtree_list.c: Include progname.h.
98739         (main): Call set_program_name.
98741         * modules/linked-list-tests (Depends-on): Add progname.
98742         * tests/test-linked_list.c: Include progname.h.
98743         (main): Call set_program_name.
98745 2007-03-03  Bruno Haible  <bruno@clisp.org>
98747         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
98748         All uses of __restrict changed to _Restrict_.
98749         * lib/glob_.h (__restrict): Remove macro.
98751 2007-03-02  Bruno Haible  <bruno@clisp.org>
98753         * modules/gettext (configure.ac): Require gettext infrastructure
98754         from version 0.16.1.
98756 2007-03-02  Bruno Haible  <bruno@clisp.org>
98758         * modules/linkedhash-list-tests (Depends-on): Add progname.
98759         * tests/test-linkedhash_list.c: Include progname.h.
98760         (main): Call set_program_name.
98762         * modules/carray-list-tests (Depends-on): Add progname.
98763         * tests/test-carray_list.c: Include progname.h.
98764         (main): Call set_program_name.
98766         * modules/avltreehash-list-tests (Depends-on): Add progname.
98767         * tests/test-avltreehash_list.c: Include progname.h.
98768         (main): Call set_program_name.
98770         * modules/avltree-oset-tests (Depends-on): Add progname.
98771         * tests/test-avltree_oset.c: Include progname.h.
98772         (main): Call set_program_name.
98774         * modules/avltree-list-tests (Depends-on): Add progname.
98775         * tests/test-avltree_list.c: Include progname.h.
98776         (main): Call set_program_name.
98778         * modules/array-oset-tests (Depends-on): Add progname.
98779         * tests/test-array_oset.c: Include progname.h.
98780         (main): Call set_program_name.
98782         * modules/array-list-tests (Depends-on): Add progname.
98783         * tests/test-array_list.c: Include progname.h.
98784         (main): Call set_program_name.
98786         * modules/argp-tests (Depends-on): Add progname.
98787         * tests/test-argp.c: Include argp.h first. Include progname.h.
98788         (main): Call set_program_name.
98790 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
98792         * doc/gnulib-tool.texi (Initial import): Reword description of
98793         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
98794         limited effect even if defined after the first system include.
98796 2007-03-01  Bruno Haible  <bruno@clisp.org>
98798         * build-aux/config.libpath: Update to libtool-1.5.22.
98799         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
98801 2007-03-01  Bruno Haible  <bruno@clisp.org>
98803         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
98804         foo_CFLAGS.
98805         Reported by Ralf Wildenhues.
98807 2007-03-01  Bruno Haible  <bruno@clisp.org>
98809         * build-aux/install-reloc: Remove object files left over by some
98810         compilers.
98811         Reported by Ralf Wildenhues.
98813 2007-03-01  Bruno Haible  <bruno@clisp.org>
98815         * build-aux/install-reloc: Break long lines.
98817 2007-03-01  Bruno Haible  <bruno@clisp.org>
98819         * doc/relocatable.texi: Document that it may not work on OpenBSD.
98820         Reported by Ralf Wildenhues.
98822 2007-03-01  Bruno Haible  <bruno@clisp.org>
98824         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
98825         include ordering constraints.
98827 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98829         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
98830         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
98831         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
98832         as another example.
98833         * lib/time_.h: Fix misspelling.
98834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98835         Require gl_HEADER_TIME_H_DEFAULTS.
98836         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
98837         * m4/time_r.m4 (gl_TIME_R): Likewise.
98838         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
98840 2007-03-01  Bruno Haible  <bruno@clisp.org>
98842         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
98843         * m4/utimens.m4 (gl_UTIMENS): Likewise.
98845 2007-03-01  Jim Meyering  <jim@meyering.net>
98847         * modules/xreadlink (Maintainer): Add my name.
98848         * modules/xreadlink-with-size (Depends-on): Alphabetize.
98850 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
98851             Bruno Haible  <bruno@clisp.org>
98853         * build-aux/install-reloc: Compile also c-ctype.c.
98854         * build-aux/relocatable.sh.in: New file.
98855         * doc/relocatable.texi: New file.
98856         * doc/relocatable-maint.texi: New file.
98857         * doc/gnulib.texi: Include relocatable-maint.texi.
98858         * lib/progreloc.c: Include unistd.h unconditionally.
98859         * lib/relocwrapper.c: Include unistd.h unconditionally.
98860         Include c-ctype.h.
98861         (add_dotbin): Use c_tolower.
98862         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
98863         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
98864         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
98865         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
98866         to m4/relocatable-lib.m4.
98867         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
98868         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
98869         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
98870         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
98871         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
98872         * modules/relocatable: New file.
98873         * modules/relocatable-lib: New file.
98874         * modules/relocatable-script: New file.
98876 2007-02-28  Bruno Haible  <bruno@clisp.org>
98878         Import --enable-relocatable infrastructure.
98879         * build-aux/config.libpath: New file, from GNU gettext.
98880         * build-aux/install-reloc: New file, from GNU gettext.
98881         * build-aux/reloc-ldflags: New file, from GNU gettext.
98882         * lib/relocatable.h: New file, from GNU gettext.
98883         * lib/relocatable.c: New file, from GNU gettext.
98884         * lib/relocwrapper.c: New file, from GNU gettext.
98885         * m4/relocatable.m4: New file, from GNU gettext.
98887 2007-02-28  Bruno Haible  <bruno@clisp.org>
98889         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
98891         * modules/xreadlink: New file, from GNU gettext with modifications.
98892         * lib/xreadlink.c: New file, from GNU gettext.
98893         * lib/xreadlink.h: Add comments.
98894         (xreadlink): New declaration.
98896         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
98897         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
98898         lib/xreadlink-with-size.c.
98899         (configure.ac): Remove gl_XREADLINK invocation.
98900         (Makefile.am): Augment lib_SOURCES.
98901         * m4/xreadlink.m4: Remove file.
98902         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
98903         (xreadlink_with_size): Renamed from xreadink.
98904         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
98905         * modules/canonicalize (Depends-on): Replace xreadlink with
98906         xreadlink-with-size.
98907         * lib/canonicalize.c (canonicalize_filename_mode): Update.
98909 2007-02-25  Jim Meyering  <jim@meyering.net>
98911         * build-aux/announce-gen: When complaining about excess arguments,
98912         list them.
98914 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
98916         * README: Document signed integer overflow situation more
98917         accurately.
98919 2007-02-25  Bruno Haible  <bruno@clisp.org>
98921         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
98922         'a' or 'A' conversion.
98924 2007-02-25  Bruno Haible  <bruno@clisp.org>
98926         * modules/filename: Renamed from modules/pathname.
98927         (Files): Replace lib/pathname.h with lib/filename.h. Replace
98928         lib/concatpath.c with lib/concat-filename.c.
98929         (Makefile.am): Update.
98930         (Include): Replace pathname.h with filename.h.
98931         * lib/filename.h: Renamed from lib/pathname.h.
98932         (concatenated_filename): Renamed from concatenated_pathname.
98933         * lib/concat-filename.c: Renamed from lib/concatpath.c.
98934         (concatenated_filename): Renamed from concatenated_pathname.
98935         * lib/findprog.c: Include filename.h instead of pathname.h.
98936         (find_in_path): Update.
98937         * lib/javacomp.c: Include filename.h instead of pathname.h.
98938         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
98939         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
98940         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
98941         is_oldgcj_14_13_usable, is_javac_usable): Update.
98942         * lib/javaexec.c: Include filename.h instead of pathname.h.
98943         (execute_java_class): Update.
98944         * modules/findprog: Update.
98945         * modules/javacomp: Update.
98946         * modules/javaexec: Update.
98947         * MODULES.html.sh (File system functions): Add 'filename', remove
98948         'pathname'.
98950 2007-02-25  Bruno Haible  <bruno@clisp.org>
98952         * modules/printf-frexpl-tests: New file.
98953         * tests/test-printf-frexpl.c: New file.
98955         * modules/printf-frexpl: New file.
98956         * lib/printf-frexpl.h: New file.
98957         * lib/printf-frexpl.c: New file.
98958         * m4/printf-frexpl.m4: New file.
98960 2007-02-25  Bruno Haible  <bruno@clisp.org>
98962         * modules/printf-frexp-tests: New file.
98963         * tests/test-printf-frexp.c: New file.
98965         * modules/printf-frexp: New file.
98966         * lib/printf-frexp.h: New file.
98967         * lib/printf-frexp.c: New file.
98968         * m4/printf-frexp.m4: New file.
98970 2007-02-25  Bruno Haible  <bruno@clisp.org>
98972         Assume automake >= 1.10 for the tests.
98973         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
98974         * modules/arctwo-tests: Likewise.
98975         * modules/argp-tests: Likewise.
98976         * modules/avltree-list-tests: Likewise.
98977         * modules/avltree-oset-tests: Likewise.
98978         * modules/avltreehash-list-tests: Likewise.
98979         * modules/carray-list-tests: Likewise.
98980         * modules/crc-tests: Likewise.
98981         * modules/des-tests: Likewise.
98982         * modules/gc-arcfour-tests: Likewise.
98983         * modules/gc-arctwo-tests: Likewise.
98984         * modules/gc-des-tests: Likewise.
98985         * modules/gc-hmac-md5-tests: Likewise.
98986         * modules/gc-hmac-sha1-tests: Likewise.
98987         * modules/gc-md2-tests: Likewise.
98988         * modules/gc-md4-tests: Likewise.
98989         * modules/gc-md5-tests: Likewise.
98990         * modules/gc-pbkdf2-sha1-tests: Likewise.
98991         * modules/gc-rijndael-tests: Likewise.
98992         * modules/gc-sha1-tests: Likewise.
98993         * modules/gc-tests: Likewise.
98994         * modules/getaddrinfo-tests: Likewise.
98995         * modules/hmac-md5-tests: Likewise.
98996         * modules/hmac-sha1-tests: Likewise.
98997         * modules/linked-list-tests: Likewise.
98998         * modules/linkedhash-list-tests: Likewise.
98999         * modules/lock-tests: Likewise.
99000         * modules/md2-tests: Likewise.
99001         * modules/md4-tests: Likewise.
99002         * modules/md5-tests: Likewise.
99003         * modules/rbtree-list-tests: Likewise.
99004         * modules/rbtree-oset-tests: Likewise.
99005         * modules/rbtreehash-list-tests: Likewise.
99006         * modules/read-file-tests: Likewise.
99007         * modules/rijndael-tests: Likewise.
99008         * modules/stdint-tests: Likewise.
99009         * modules/tls-tests: Likewise.
99011 2007-02-24  Bruno Haible  <bruno@clisp.org>
99013         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
99014         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
99015         function; instead check whether isnan with a double argument links.
99016         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
99017         function; instead check whether isnan with a 'long double' argument
99018         links.
99019         Reported by Eric Blake <ebb9@byu.net>.
99021 2007-02-24  Bruno Haible  <bruno@clisp.org>
99023         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
99024         defined.
99025         * lib/isnanl.c: Remove all code. Just include isnan.c.
99026         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
99028 2007-02-25  Jim Meyering  <jim@meyering.net>
99030         Avoid conflicting types for 'unsetenv' on FreeBSD.
99031         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
99032         conflicting with FreeBSD's (5.0 and 6.1) function declaration
99033         in stdlib.h.
99035 2007-02-24  Bruno Haible  <bruno@clisp.org>
99037         * modules/isnanl-nolibm-tests: New file.
99038         * tests/test-isnanl.c: New file.
99040         * modules/isnanl-nolibm: New file.
99041         * lib/isnanl.h: New file.
99042         * lib/isnanl.c: New file.
99043         * m4/isnanl.m4: New file.
99045 2007-02-24  Bruno Haible  <bruno@clisp.org>
99047         * modules/isnan-nolibm-tests: New file.
99048         * tests/test-isnan.c: New file.
99050         * modules/isnan-nolibm: New file.
99051         * lib/isnan.h: New file.
99052         * lib/isnan.c: New file.
99053         * m4/isnan.m4: New file.
99055 2007-02-24  Bruno Haible  <bruno@clisp.org>
99057         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
99058         assume that an exponent fits in 20 bits.
99060 2007-02-24  Jim Meyering  <jim@meyering.net>
99062         * m4/regex.m4: Update the description of the configure-time option,
99063         --without-included-regex, to state accurately what the defaults are,
99064         and perhaps to give people an idea why using this option is risky.
99066 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
99069         loops on small arguments.  This attempts to avoid the problem
99070         Bruno Haible reported for AIX 4.3.2 in
99071         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
99073 2007-02-23  Bruno Haible  <bruno@clisp.org>
99075         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
99076         Needed for help2man.
99078 2007-02-23  Karl Berry  <karl@gnu.org>
99080         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
99081         exists, foo.h should be cvs-ignored, not committed.
99083 2007-02-23  Eric Blake  <ebb9@byu.net>
99085         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
99086         * lib/stat-time.h (includes): Likewise.
99087         * lib/utimecmp.c (includes): Likewise.
99088         * lib/utimens.h (includes): Likewise.
99089         * lib/getdate.y (includes): Also include "timespec.h" for use
99090         internal to the module.
99091         * modules/utimens (Depends-on): Revert yesterday's patch.
99092         * modules/nanosleep (Depends-on): Add missing dependency.
99094 2007-02-22  Bruno Haible  <bruno@clisp.org>
99096         * lib/glob.c: Don't include getlogin_r.h.
99098 2007-02-22  Jim Meyering  <jim@meyering.net>
99100         * modules/utimens (Depends-on): Add timespec, required for
99101         utimens.h's inclusion of timespec.h.
99103 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
99105         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
99106         long unreadable paths in GNU/Linux.  Problem reported by Andreas
99107         Schwab in
99108         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
99109         I'll try to think of a better way to fix the Solaris problem.
99111         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
99112         like glibc; on Solaris 10, it fails with errno == EINVAL.
99113         POSIX says the behavior is unspecified if the first argument is NULL,
99114         so play it safe and never pass NULL to the system getcwd.
99116 2007-02-21  Jim Meyering  <jim@meyering.net>
99118         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
99119         of gettimeofday.  It would conflict with the one now always
99120         provided via sys_time_.h.  Reported by Matthew Woehlke, as
99121         an IRIX 6.5 build failure.
99123 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99125         Minor fixups to port to Solaris 10 with Sun C 5.8.
99126         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
99127         * modules/getcwd (Depends-on): Add dirfd.
99128         * lib/putenv.c (putenv): #undef it.
99129         (rpl_putenv): New decl.
99130         (malloc, free): Include <stdlib.h> rather than prototyping separately.
99132 2007-02-20  Bruno Haible  <bruno@clisp.org>
99134         * modules/stdio-tests: New file.
99135         * tests/test-stdio.c: New file.
99137         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
99138         (Depends-on): Add stdio.
99139         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99140         (Include): Use <stdio.h> instead of vsnprintf.h.
99141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99142         HAVE_DECL_VSNPRINTF.
99143         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
99145         * modules/snprintf (Files): Remove lib/snprintf.h.
99146         (Depends-on): Add stdio.
99147         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
99148         (Include): Use <stdio.h> instead of snprintf.h.
99149         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
99150         HAVE_DECL_SNPRINTF.
99151         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
99152         * lib/getaddrinfo.c: Likewise.
99154         * modules/stdio: New file.
99155         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
99156         * lib/snprintf.h: Remove file.
99157         * lib/vsnprintf.h: Remove file.
99158         * lib/.cppi-disable: Remove snprintf.h.
99159         * m4/stdio_h.m4: New file.
99160         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
99162 2007-02-20  Jim Meyering  <jim@meyering.net>
99164         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
99165         used by e.g., mingw.  From Bruno Haible.
99167 2007-02-19  Bruno Haible  <bruno@clisp.org>
99169         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
99170         warnings.
99171         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99173 2007-02-19  Bruno Haible  <bruno@clisp.org>
99175         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
99176         from mingw users.
99178 2007-02-19  Bruno Haible  <bruno@clisp.org>
99180         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
99181         warnings.
99182         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
99184 2007-02-19  Jim Meyering  <jim@meyering.net>
99186         Don't use FD after a successful "fdopendir (fd)".
99187         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
99188         Reset it by calling dirfd on the just-obtained DIR*.
99190         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
99191         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
99193 2007-02-18  Bruno Haible  <bruno@clisp.org>
99195         * lib/readlink.c: Include <unistd.h>.
99196         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
99197         HAVE_READLINK.
99198         * modules/readlink (Depends-on): Add unistd.
99199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99200         (Include): Add <unistd.h>.
99202         * lib/getlogin_r.h: Remove file.
99203         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
99204         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
99205         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
99206         HAVE_DECL_GETLOGIN_R.
99207         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
99208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99209         (Include): Use <unistd.h> instead of getlogin_r.h.
99211         * lib/getcwd.h: Remove file.
99212         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
99213         * lib/xgetcwd.c: Likewise.
99214         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
99215         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
99216         * modules/getcwd (Files): Remove lib/getcwd.h.
99217         (Depends-on): Add unistd.
99218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99219         (Include): Use <unistd.h> instad of getcwd.h.
99221         * lib/ftruncate.c: Include <unistd.h> first.
99222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
99223         Set HAVE_FTRUNCATE.
99224         * modules/ftruncate (Depends-on): Add unistd.
99225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99227         * lib/fchdir.c: Include <unistd.h> first.
99228         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
99229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
99230         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
99231         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99232         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
99234         * lib/dup2.c: Include <unistd.h> first.
99235         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
99236         HAVE_DUP2.
99237         * modules/dup2 (Depends-on): Add unistd.
99238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99240         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
99241         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
99242         REPLACE_CHOWN. Don't define chown as a macro here.
99243         * modules/chown (Depends-on): Add unistd.
99244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99246         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
99247         Add definition for GL_LINK_WARNING.
99248         (chown, dup2): New declarations.
99249         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
99250         link warning.
99251         (ftruncate): New declaration.
99252         (getcwd): New declaration, taken from old getcwd.h.
99253         (getlogin_r): New declaration, taken from old getlogin_r.h.
99254         (readlink): New declaration.
99255         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
99256         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
99257         (gl_PREREQ_UNISTD): Remove macro.
99258         (gl_UNISTD_MODULE_INDICATOR): New macro.
99259         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
99260         many new variables. Don't set UNISTD_H.
99261         * modules/unistd (Description): Change.
99262         (Depends-on): Add link-warning.
99263         (configure.ac): Update.
99264         (Makefile.am): Create unistd.h always. Substitute many new variables
99265         into it.
99267 2007-02-18  Bruno Haible  <bruno@clisp.org>
99269         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
99270         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
99271         HAVE_GETSUBOPT.
99272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
99273         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
99274         * lib/getsubopt.h: Remove file.
99275         * modules/getsubopt (Files): Remove lib/getsubopt.h.
99276         (Depends-on): Add stdlib.
99277         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99278         (Includes): Use <stdlib.h> instead of getsubopt.h.
99279         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
99280         Set HAVE_GETSUBOPT.
99281         * lib/getsubopt.c: Don't include getsubopt.h.
99283 2007-02-18  Bruno Haible  <bruno@clisp.org>
99285         * modules/fchdir (Depends-on): Add dup2.
99287 2007-02-18  Bruno Haible  <bruno@clisp.org>
99289         * lib/stdlib_.h: Handle glibc's special invocation convention
99290         specially.
99292 2007-02-18  Bruno Haible  <bruno@clisp.org>
99294         * modules/stdlib-tests: New file.
99295         * tests/test-stdlib.c: New file.
99297         * modules/mkstemp (Files): Remove lib/mkstemp.h.
99298         (Depends-on): Add stdlib.
99299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99300         (Includes): Use <stdlib.h> instead of mkstemp.h.
99301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99302         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
99303         * lib/mkstemp.c: Don't include mkstemp.h.
99304         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
99305         * lib/stdlib--.h: Don't include mkstemp.h.
99307         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
99308         (Depends-on): Add stdlib.
99309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99310         (Includes): Use <stdlib.h> instead of mkdtemp.h.
99311         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
99312         HAVE_MKDTEMP.
99313         * lib/mkdtemp.c: Don't include mkdtemp.h.
99314         * lib/clean-temp.c: Don't include mkdtemp.h.
99316         * modules/exit (Files): Remove lib/exit.h.
99317         (Depends-on): Add stdlib.
99318         (Makefile.am): Remove lib_SOURCES.
99319         (Include): Use <stdlib.h> instead of exit.h.
99320         * lib/argmatch.c: Don't include exit.h.
99321         * lib/execute.c: Likewise.
99322         * lib/pagealign_alloc.c: Likewise.
99323         * lib/pipe.c: Likewise.
99324         * lib/wait-process.c: Likewise.
99325         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
99326         * lib/exitfail.c: Likewise.
99327         * lib/savewd.c: Likewise.
99328         * lib/xsetenv.c: Likewise.
99330         * modules/stdlib: New file.
99331         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
99332         and extra comments about mkstemp().
99333         * lib/exit.h: Remove file.
99334         * lib/mkdtemp.h: Remove file.
99335         * lib/mkstemp.h: Remove file.
99336         * m4/stdlib_h.m4: New file.
99337         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
99339 2007-02-18  Bruno Haible  <bruno@clisp.org>
99341         * modules/math-tests: New file.
99342         * tests/test-math.c: New file.
99344         * modules/math: New file.
99345         * modules/mathl (Files): Remove lib/mathl.h.
99346         (Depends-on): Add math.
99347         (Makefile.am): Don't mention mathl.h.
99348         (Include): Use <math.h> instead of mathl.h.
99349         * lib/math_.h: New file.
99350         * lib/mathl.h: Remove file.
99351         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
99352         mathl.h.
99353         * lib/asinl.c: Likewise.
99354         * lib/atanl.c: Likewise.
99355         * lib/ceill.c: Likewise.
99356         * lib/cosl.c: Likewise.
99357         * lib/expl.c: Likewise.
99358         * lib/floorl.c: Likewise.
99359         * lib/frexpl.c: Likewise.
99360         * lib/ldexpl.c: Likewise.
99361         * lib/logl.c: Likewise.
99362         * lib/sincosl.c: Likewise.
99363         * lib/sinl.c: Likewise.
99364         * lib/sqrtl.c: Likewise.
99365         * lib/tanl.c: Likewise.
99366         * lib/trigl.c: Likewise.
99367         * m4/math_h.m4: New file.
99368         * MODULES.html.sh (Mathematics): Add math.
99370 2007-02-17  Bruno Haible  <bruno@clisp.org>
99372         * modules/wctype-tests: New file.
99373         * tests/test-wctype.c: New file.
99375         * modules/wchar-tests: New file.
99376         * tests/test-wchar.c: New file.
99378         * modules/unistd-tests: New file.
99379         * tests/test-unistd.c: New file.
99381         * modules/time-tests: New file.
99382         * tests/test-time.c: New file.
99384         * modules/sysexits-tests: New file.
99385         * tests/test-sysexits.c: New file.
99387         * modules/sys_time-tests: New file.
99388         * tests/test-sys_time.c: New file.
99390         * modules/sys_stat-tests: New file.
99391         * tests/test-sys_stat.c: New file.
99393         * modules/sys_socket-tests: New file.
99394         * tests/test-sys_socket.c: New file.
99396         * modules/sys_select-tests: New file.
99397         * tests/test-sys_select.c: New file.
99399         * modules/string-tests: New file.
99400         * tests/test-string.c: New file.
99402         * modules/stdbool-tests: New file.
99403         * tests/test-stdbool.c: New file.
99405         * modules/netinet_in-tests: New file.
99406         * tests/test-netinet_in.c: New file.
99408         * modules/inttypes-tests: New file.
99409         * tests/test-inttypes.c: New file.
99411         * modules/fcntl-tests: New file.
99412         * tests/test-fcntl.c: New file.
99414         * modules/byteswap-tests: New file.
99415         * tests/test-byteswap.c: New file.
99417         * modules/arpa_inet-tests: New file.
99418         * tests/test-arpa_inet.c: New file.
99420 2007-02-17  Bruno Haible  <bruno@clisp.org>
99422         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
99423         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
99424         if the corresponding module is not enabled. Emit link warnings if
99425         the function is used nevertheless.
99426         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
99427         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
99428         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
99429         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
99430         * modules/inttypes (Depends-on): Add link-warning.
99431         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99432         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
99433         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
99434         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
99435         * modules/imaxdiv (configure.ac): Likewise.
99436         * modules/strtoimax (configure.ac): Likewise.
99437         * modules/strtoumax (configure.ac): Likewise.
99439 2007-02-17  Bruno Haible  <bruno@clisp.org>
99441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
99442         gl_STRING_MODULE_INDICATOR_DEFAULTS.
99443         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
99444         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
99446 2007-02-17  Bruno Haible  <bruno@clisp.org>
99448         * modules/link-warning: New file.
99449         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
99450         * lib/string_.h (GL_LINK_WARNING): Remove definition.
99451         * modules/string (Depends-on): Add link-warning.
99452         (Makefile.am): Copy the contents of build-aux/link-warning.h into
99453         string.h.
99454         * MODULES.html.sh (Support for building libraries and executables): Add
99455         link-warning.
99457 2007-02-17  Bruno Haible  <bruno@clisp.org>
99459         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
99460         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
99461         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
99462         long lines.
99464 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
99465             Bruno Haible  <bruno@clisp.org>
99467         * modules/tmpfile: New file.
99468         * lib/tmpfile.c: New file.
99469         * m4/tmpfile.m4: New file.
99470         * MODULES.html.sh (func_all_modules): New section "Input/output".
99472 2007-02-15  Bruno Haible  <bruno@clisp.org>
99474         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
99475         (supports_delete_on_close): New function.
99476         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
99478 2007-02-14  Bruno Haible  <bruno@clisp.org>
99480         * modules/mbspcasecmp-tests: New file.
99481         * tests/test-mbspcasecmp.sh: New file.
99482         * tests/test-mbspcasecmp.c: New file.
99484         New module mbspcasecmp.
99485         * modules/mbspcasecmp: New file.
99486         * lib/mbspcasecmp.c: New file.
99487         * lib/string_.h (strncasecmp): Change warning message.
99488         (mbspcasecmp): New declaration.
99489         * m4/mbspcasecmp.m4: New file.
99490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99491         GNULIB_MBSPCASECMP.
99492         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
99493         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
99495 2007-02-14  Bruno Haible  <bruno@clisp.org>
99497         * modules/mbsncasecmp-tests: New file.
99498         * tests/test-mbsncasecmp.sh: New file.
99499         * tests/test-mbsncasecmp.c: New file.
99501         New module mbsncasecmp.
99502         * modules/mbsncasecmp: New file.
99503         * lib/mbsncasecmp.c: New file.
99504         * lib/string_.h (mbsncasecmp): New declaration.
99505         * m4/mbsncasecmp.m4: New file.
99506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99507         GNULIB_MBSNCASECMP.
99508         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
99509         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
99511 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
99513         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
99514         Verify that it doesn't overlap with our flags.
99515         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
99516         do not have the desired effect in multibyte locales; instead, use
99517         mbscasecmp.
99518         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
99519         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
99520         we don't require GNU fnmatch ourselves (if our users require it, they
99521         should do so explicitly).
99523         Fix regex code so it doesn't rely on strcasecmp.
99524         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
99525         Otherwise, include gnulib's langinfo.h.
99526         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
99527         undesirable behavior in non-C locales.  Instead, rely on localecharset.
99528         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
99529         * modules/regex (FILES): Remove m4/codeset.m4.
99530         (Depends-on): Add localcharset.  Remove strcase.
99532 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99534         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
99535         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
99537 2007-02-13  Bruno Haible  <bruno@clisp.org>
99539         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
99540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99542 2007-02-12  Bruno Haible  <bruno@clisp.org>
99544         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
99545         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
99546         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
99547         time warning rather than a link error.
99549 2007-02-12  Bruno Haible  <bruno@clisp.org>
99551         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
99552         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99555 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
99557         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
99558         args, not 2.
99560 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
99562         New module 'time', so that apps can include <time.h> as per
99563         POSIX and GNU instead of separate include files like time_r.h
99564         and timegm.h.  This implementation tries out a simpler approach
99565         for replacing decls in standard include files (as compared to
99566         the string module), somewhat as an experiment.
99568         * config/srclist.txt: Comment out mktime.c for now.
99569         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
99570         since it doesn't apply any more.  Use generic wording instead.
99571         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
99572         'time'.
99573         * lib/time_.h, m4/time_h.m4, modules/time: New files.
99574         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
99575         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
99576         Don't include <sys/types.h>; no longer needed since we assume C89.
99577         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
99578         * lib/strftime.c: Likewise.
99579         * lib/time_r.c: Likewise.
99580         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
99581         * lib/nanosleep.c: Include <time.h> first, to check interface.
99582         * lib/strptime.c: Likewise.
99583         * lib/time_r.c: Likewise.
99584         * lib/timegm.c: Likewise.
99585         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
99586         needed.
99587         * lib/timegm.c: Don't include timegm.h; no longer needed.
99588         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
99589         time.h now handles any problems in that area.
99590         (struct timespec, nanosleep): Remove; time.h now arranges for these.
99591         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
99592         that time.h defines struct timespec.
99593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
99594         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
99595         handles that.
99596         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
99597         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
99598         needed.  Set REPLACE_LOCALTIME.
99599         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
99600         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
99601         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
99602         nanosleep; time_h.m4 now does that.  Don't require
99603         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
99604         module handles this now.
99605         * modules/getdate (Depends-on): Remove timespec.  Add time.
99606         * modules/nanosleep (Depends-on): Likewise.
99607         * modules/stat-time (Depends-on): Likewise.
99608         * modules/nanosleep (Include): Include time.h, not timespec.h.
99609         * modules/strptime (Files): Remove lib/strptime.h.
99610         (Depends-on): Add extensions, time.
99611         (Include): Include time.h, not strptime.h.
99612         * modules/time_r (Files): Remove lib/time_r.h.
99613         (Depends-on): Add time.
99614         (Include): Include time.h, not time_r.h.
99615         * modules/timegm: Likewise.
99616         * modules/timespec (Description): Now does timespec-related decls
99617         of our own, instead of struct timespec itself.
99618         (Depends-on): Add time; remove extensions.
99619         (Maintainer): Add self.
99620         * modules/utimecmp (Depends-on): Add time; remove timespec.
99621         * modules/utimens (Depends-on): Likewise.
99622         * modules/xnanosleep (Depends-on): Likewise.
99624 2007-02-11  Bruno Haible  <bruno@clisp.org>
99626         * lib/c-strstr.c: Include allocsa.h.
99627         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
99628         * lib/c-strcasestr.c: Include allocsa.h.
99629         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
99630         * lib/strcasestr.c: Include allocsa.h.
99631         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
99632         * lib/mbsstr.c: Include allocsa.h.
99633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
99634         allocsa/freesa instead of malloc/free.
99635         * lib/mbscasestr.c: Include allocsa.h.
99636         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
99637         allocsa/freesa instead of malloc/free.
99638         * modules/c-strstr (Depends-on): Add allocsa.
99639         * modules/c-strcasestr (Depends-on): Likewise.
99640         * modules/strcasestr (Depends-on): Likewise.
99641         * modules/mbsstr (Depends-on): Likewise.
99642         * modules/mbscasestr (Depends-on): Likewise.
99644 2007-02-11  Bruno Haible  <bruno@clisp.org>
99646         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
99648         * modules/mbsspn-tests: New file.
99649         * tests/test-mbsspn.sh: New file.
99650         * tests/test-mbsspn.c: New file.
99652 2007-02-11  Bruno Haible  <bruno@clisp.org>
99654         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
99656         * modules/mbspbrk-tests: New file.
99657         * tests/test-mbspbrk.sh: New file.
99658         * tests/test-mbspbrk.c: New file.
99660 2007-02-11  Bruno Haible  <bruno@clisp.org>
99662         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
99663         unneeded cast.
99665         * modules/mbscspn-tests: New file.
99666         * tests/test-mbscspn.sh: New file.
99667         * tests/test-mbscspn.c: New file.
99669 2007-02-11  Bruno Haible  <bruno@clisp.org>
99671         * modules/mbscasecmp-tests: New file.
99672         * tests/test-mbscasecmp.sh: New file.
99673         * tests/test-mbscasecmp.c: New file.
99675 2007-02-11  Bruno Haible  <bruno@clisp.org>
99677         Ensure O(n) worst-case complexity of mbscasestr.
99678         * lib/mbscasestr.c: Include stdbool.h.
99679         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
99680         functions.
99681         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
99682         the bookkeeping indicates that it's worth it.
99683         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
99685         * modules/mbscasestr-tests: New file.
99686         * tests/test-mbscasestr1.c: New file.
99687         * tests/test-mbscasestr2.sh: New file.
99688         * tests/test-mbscasestr2.c: New file.
99689         * tests/test-mbscasestr3.sh: New file.
99690         * tests/test-mbscasestr3.c: New file.
99691         * tests/test-mbscasestr4.sh: New file.
99692         * tests/test-mbscasestr4.c: New file.
99693         * m4/locale-tr.m4: New file.
99695 2007-02-11  Bruno Haible  <bruno@clisp.org>
99697         Ensure O(n) worst-case complexity of mbsstr.
99698         * lib/mbsstr.c: Include stdbool.h.
99699         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
99700         functions.
99701         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
99702         bookkeeping indicates that it's worth it.
99703         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
99705         * modules/mbsstr-tests: New file.
99706         * tests/test-mbsstr1.c: New file.
99707         * tests/test-mbsstr2.sh: New file.
99708         * tests/test-mbsstr2.c: New file.
99709         * tests/test-mbsstr3.sh: New file.
99710         * tests/test-mbsstr3.c: New file.
99711         * m4/locale-fr.m4: New file.
99713 2007-02-11  Bruno Haible  <bruno@clisp.org>
99715         * lib/mbsrchr.c (mbsrchr): Fix bug.
99717         * modules/mbsrchr-tests: New file.
99718         * tests/test-mbsrchr.sh: New file.
99719         * tests/test-mbsrchr.c: New file.
99721 2007-02-11  Bruno Haible  <bruno@clisp.org>
99723         * lib/mbschr.c (mbschr): Fix bug.
99725         * modules/mbschr-tests: New file.
99726         * tests/test-mbschr.sh: New file.
99727         * tests/test-mbschr.c: New file.
99728         * m4/locale-zh.m4: New file.
99730 2007-02-11  Bruno Haible  <bruno@clisp.org>
99732         Support for copying multibyte string iterators.
99733         * lib/mbiter.h: Include <string.h>.
99734         (mbiter_multi_copy): New function.
99735         (mbi_copy): New macro.
99736         * lib/mbuiter.h: Include <string.h>.
99737         (mbuiter_multi_copy): New function.
99738         (mbui_copy): New macro.
99740 2007-02-11  Bruno Haible  <bruno@clisp.org>
99742         New module mbslen.
99743         * modules/mbslen: New file.
99744         * lib/mbslen.c: New file.
99745         * lib/string_.h (mbslen): New declaration.
99746         * m4/mbslen.m4: New file.
99747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99748         GNULIB_MBSLEN.
99749         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
99750         * MODULES.html.sh (Internationalization functions): Add mbslen.
99752 2007-02-11  Bruno Haible  <bruno@clisp.org>
99754         Ensure O(n) worst-case complexity of strcasestr substitute.
99755         * lib/strcasestr.c: Include stdbool.h.
99756         (knuth_morris_pratt): New function.
99757         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
99758         bookkeeping indicates that it's worth it.
99759         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
99761         * modules/strcasestr-tests: New file.
99762         * tests/test-strcasestr.c: New file.
99764 2007-02-11  Bruno Haible  <bruno@clisp.org>
99766         Ensure O(n) worst-case complexity of c_strcasestr.
99767         * lib/c-strcasestr.c: Include stdbool.h, string.h.
99768         (knuth_morris_pratt): New function.
99769         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
99770         the bookkeeping indicates that it's worth it.
99771         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
99773         * modules/c-strcasestr-tests: New file.
99774         * tests/test-c-strcasestr.c: New file.
99776 2007-02-11  Bruno Haible  <bruno@clisp.org>
99778         Ensure O(n) worst-case complexity of c_strstr.
99779         * lib/c-strstr.c: Include stdbool.h, string.h.
99780         (knuth_morris_pratt): New function.
99781         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
99782         bookkeeping indicates that it's worth it.
99783         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
99785         * lib/c-strstr.c: Complete rewrite for maintainability.
99787         * modules/c-strstr-tests: New file.
99788         * tests/test-c-strstr.c: New file.
99790 2007-02-11  Bruno Haible  <bruno@clisp.org>
99792         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
99793         5.2.1 and earlier, whereby \055 was treated just like the range
99794         delimiter '-'.
99795         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99797 2007-02-08  Bruno Haible  <bruno@clisp.org>
99799         * modules/regex (Depends-on): Add stdbool.
99800         Reported by Dalibor Topic <robilad@kaffe.org>.
99802 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
99804         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
99805         Prefer returning from main to exiting from it.
99806         Remove unnecessary parens after sizeof.
99808 2007-02-05  Bruno Haible  <bruno@clisp.org>
99810         New module mbssep.
99811         * modules/mbssep: New file.
99812         * lib/mbssep.c: New file.
99813         * lib/string_.h (strsep): Add a conditional link warning.
99814         (mbssep): New declaration.
99815         * m4/mbssep.m4: New file.
99816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99817         GNULIB_MBSSEP.
99818         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
99819         * MODULES.html.sh (Internationalization functions): Add mbssep.
99821 2007-02-05  Bruno Haible  <bruno@clisp.org>
99823         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
99824         Optimize search in case of 1 delimiter.
99826 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
99828         * lib/acl.h: Include sys/types.h before sys/acl.h.
99830 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
99832         Merge upstream fix for glibc bugzilla #3957:
99834         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
99836         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
99837         bit for RE_HAT_LISTS_NOT_NEWLINE.
99838         (build_charclass_op): Remove bogus comment.
99840 2007-02-05  Simon Josefsson  <simon@josefsson.org>
99842         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
99844 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
99846         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
99847         * lib/memmem.c [!defined _LIBC]: Include config.h.
99849 2007-02-04  Bruno Haible  <bruno@clisp.org>
99851         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
99852         warning message.
99854 2007-02-04  Bruno Haible  <bruno@clisp.org>
99856         New module mbstok_r.
99857         * modules/mbstok_r: New file.
99858         * lib/mbstok_r.c: New file.
99859         * lib/string_.h (strtok_r): Change argument names to match the
99860         comments. Add a conditional link warning.
99861         (mbstok_r): New declaration.
99862         * m4/mbstok_r.m4: New file.
99863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99864         GNULIB_MBSTOK_R.
99865         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
99866         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
99868 2007-02-04  Bruno Haible  <bruno@clisp.org>
99870         New module mbsspn.
99871         * modules/mbsspn: New file.
99872         * lib/mbsspn.c: New file.
99873         * lib/string_.h (strspn): Add a conditional link warning.
99874         (mbsspn): New declaration.
99875         * m4/mbsspn.m4: New file.
99876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99877         GNULIB_MBSSPN.
99878         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
99879         * MODULES.html.sh (Internationalization functions): Add mbsspn.
99881 2007-02-04  Bruno Haible  <bruno@clisp.org>
99883         New module mbspbrk.
99884         * modules/mbspbrk: New file.
99885         * lib/mbspbrk.c: New file.
99886         * lib/string_.h (strpbrk): Add a conditional link warning.
99887         (mbspbrk): New declaration.
99888         * m4/mbspbrk.m4: New file.
99889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99890         GNULIB_MBSPBRK.
99891         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
99892         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
99894 2007-02-04  Bruno Haible  <bruno@clisp.org>
99896         New module mbscspn.
99897         * modules/mbscspn: New file.
99898         * lib/mbscspn.c: New file.
99899         * lib/string_.h (strcspn): Add a conditional link warning.
99900         (mbscspn): New declaration.
99901         * m4/mbscspn.m4: New file.
99902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99903         GNULIB_MBSCSPN.
99904         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
99905         * MODULES.html.sh (Internationalization functions): Add mbscspn.
99907 2007-02-04  Bruno Haible  <bruno@clisp.org>
99909         New module mbscasestr, reduced goal of strcasestr.
99910         * modules/mbscasestr: New file.
99911         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
99912         (mbscasestr): Renamed from strcasestr.
99913         * lib/strcasestr.c: Don't include mbuiter.h.
99914         (strcasestr): Remove support for multibyte locales.
99915         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
99916         Change the conditional link warning.
99917         (mbscasestr): New declaration.
99918         * m4/mbscasestr.m4: New file.
99919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
99920         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
99921         REPLACE_STRCASESTR.
99922         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
99923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
99924         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
99925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
99926         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
99927         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
99928         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
99929         (Depends-on): Remove mbuiter.
99930         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
99932 2007-02-04  Bruno Haible  <bruno@clisp.org>
99934         Simplify handling of strncasecmp.
99935         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
99936         the conditional link warning.
99937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
99938         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
99939         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
99940         * modules/strcase (configure.ac): Don't invoke
99941         gl_STRING_MODULE_INDICATOR.
99942         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
99944 2007-02-04  Bruno Haible  <bruno@clisp.org>
99946         New module mbscasecmp, reduced goal of strcasecmp.
99947         * modules/mbscasecmp: New file.
99948         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
99949         (mbscasecmp): Renamed from strcasecmp.
99950         * lib/strcasecmp.c: Don't include mbuiter.h.
99951         (strcasecmp): Remove support for multibyte locales.
99952         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
99953         Change the conditional link warning.
99954         (mbscasecmp): New declaration.
99955         * m4/mbscasecmp.m4: New file.
99956         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
99957         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
99958         REPLACE_STRCASECMP.
99959         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
99960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99961         GNULIB_MBSCASECMP.
99962         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
99963         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
99964         * modules/strcase (Files): Remove m4/mbrtowc.m4.
99965         (Depends-on): Remove mbuiter.
99966         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
99968 2007-02-04  Bruno Haible  <bruno@clisp.org>
99970         New module mbsstr. Remove module strstr.
99971         * modules/mbsstr: New file.
99972         * modules/strstr: Remove file.
99973         * lib/mbsstr.c: Renamed from lib/strstr.c.
99974         (mbsstr): Renamed from strstr.
99975         * lib/string_.h (strstr): Remove declaration. Change the conditional
99976         link warning.
99977         (mbsstr): New declaration.
99978         * m4/mbsstr.m4: New file.
99979         * m4/strstr.m4: Remove file.
99980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
99981         REPLACE_STRSTR.
99982         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
99983         Don't initialize GNULIB_STRSTR.
99984         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
99985         substitute GNULIB_STRSTR and REPLACE_STRSTR.
99986         * MODULES.html.sh (Internationalization functions): Add mbsstr.
99987         (Support for systems lacking ANSI C 89): Remove strstr.
99989 2007-02-04  Bruno Haible  <bruno@clisp.org>
99991         New module mbsrchr.
99992         * modules/mbsrchr: New file.
99993         * lib/mbsrchr.c: New file.
99994         * lib/string_.h (strrchr): Add a conditional link warning.
99995         (mbsrchr): New declaration.
99996         * m4/mbsrchr.m4: New file.
99997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99998         GNULIB_MBSRCHR.
99999         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
100000         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
100002 2007-02-04  Bruno Haible  <bruno@clisp.org>
100004         New module mbschr.
100005         * modules/mbschr: New file.
100006         * lib/mbschr.c: New file.
100007         * lib/string_.h (strchr): Add a conditional link warning.
100008         (mbschr): New declaration.
100009         * m4/mbschr.m4: New file.
100010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
100011         GNULIB_MBSCHR.
100012         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
100013         * MODULES.html.sh (Internationalization functions): Add mbschr.
100015 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
100017         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
100019         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
100021 2007-02-04  Bruno Haible  <bruno@clisp.org>
100023         New module description section 'configure.ac-early'.
100024         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
100025         (func_get_autoconf_early_snippet): New function.
100026         (func_import, func_create_testdir): Use it. Remove special cases for
100027         modules 'extensions' and 'lock'.
100028         * modules/extensions (configure.ac-early): Require
100029         gl_USE_SYSTEM_EXTENSIONS.
100030         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
100032 2007-02-04  Bruno Haible  <bruno@clisp.org>
100034         Make use of gcj-4.3's -fsource and -ftarget option.
100035         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
100036         and if so try the options -fsource and -ftarget.
100037         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
100038         source_version, ftarget_option, target_version arguments.
100039         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
100040         (is_envjavac_oldgcj_14_14_usable): Renamed from
100041         is_envjavac_gcj_14_14_usable.
100042         (is_envjavac_oldgcj_14_13_usable): Renamed from
100043         is_envjavac_gcj_14_13_usable.
100044         (is_gcj_present): Update.
100045         (is_gcj_43, is_gcj43_usable): New functions.
100046         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
100047         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
100048         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
100049         try the options -fsource and -ftarget.
100051 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
100053         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
100054         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
100055         larger value.
100057 2007-02-03  Jim Meyering  <jim@meyering.net>
100059         Give tools a better chance to allocate space for very large buffers.
100060         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
100062         Make pwd and readlink work also when run with an unreadable parent dir
100063         on systems with openat support.
100064         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
100065         provided getcwd function, even when we have openat support.
100066         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
100068 2007-02-02  Bruno Haible  <bruno@clisp.org>
100070         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
100071         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
100072         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
100073         portability problems if one of these functions is only used on specific
100074         platforms.
100075         Reported by Paul Eggert.
100077 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
100079         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
100080         is causing more trouble than it's curing.
100081         * lib/regex_internal.h (__mempcpy): Remove.
100082         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
100083         (and make the code a tad smaller to boot).
100084         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
100086 2007-02-02  Jim Meyering  <jim@meyering.net>
100088         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
100089         section, not in the Makefile.am: one.
100091 2007-02-02  Eric Blake  <ebb9@byu.net>
100093         * lib/strchrnul.c: Always include config.h first.
100095         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
100096         gnulib strstr is not necessary here.
100098 2007-02-02  Simon Josefsson  <simon@josefsson.org>
100100         * m4/socklen.m4: Fix typo.
100102 2007-02-02  Eric Blake  <ebb9@byu.net>
100104         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
100105         * modules/netinet_in (Makefile.am): Likewise.
100107 2007-02-01  Bruno Haible  <bruno@clisp.org>
100109         * lib/string_.h (GL_LINK_WARNING): New macro.
100110         (strcasecmp, strstr, strcasestr): If provided by the system,
100111         conditionally define as a macro that leads to a warning instead of to
100112         an error.
100113         (strncasecmp): Conditionally define as a macro that leads to a warning.
100115 2007-02-01  Karl Berry  <karl@gnu.org>
100117         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
100119 2007-02-01  Bruno Haible  <bruno@clisp.org>
100121         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
100122         renamings.
100124 2007-02-01  Eric Blake  <ebb9@byu.net>
100126         * modules/regex (Depends-on): Revert dependence on mempcpy.
100127         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
100128         module's definition of mempcpy.
100129         Reported by Paul Eggert.
100131 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
100133         * lib/string_.h: If the gnulib module XYZ is not present, undefine
100134         the symbol XYZ before redefining it.  This fixes a problem with
100135         programs that don't use XYZ, when compiled on systems that define
100136         XYZ to something else.
100138 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
100140         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
100141         occurs when "mkdir -m foo" creates a setgid directory that is (1)
100142         writeable to group or other and (2) is intended to have a special
100143         mode bit that is set or cleared.  In such a case, the directory
100144         should be neither group- nor other-writeable until the special
100145         mode bits are right.
100147 2007-01-31  Eric Blake  <ebb9@byu.net>
100149         * modules/mountlist (Depends-on): Add strstr.
100151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
100152         bug.
100153         * modules/string (Makefile.am): Remove redundant replacement.
100154         * modules/regex (Depends-on): Add mempcpy.
100156 2007-01-31  Bruno Haible  <bruno@clisp.org>
100158         New module description field 'Link'.
100159         * gnulib-tool (func_usage): Document --extract-link-directive.
100160         (sed_extract_prog): Recognize 'Link' directive.
100161         (func_get_link_directive): New function.
100162         (func_import): Show summary of link directives.
100163         Handle --extract-link-directive option.
100164         * modules/acl (Link): New section.
100165         * modules/clock-time (Link): New section.
100166         * modules/euidaccess (Link): New section.
100167         * modules/gettext (Link): New section.
100168         * modules/iconv (Link): New section.
100169         * modules/lock (Link): New section.
100170         * modules/nanosleep (Link): New section.
100171         * modules/readline (Link): New section.
100173 2007-01-27  Bruno Haible  <bruno@clisp.org>
100175         Enforce the use of gnulib modules for unportable <string.h> functions.
100176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
100177         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
100178         (gl_HEADER_STRING_H_BODY): Require it.
100179         * lib/string_.h: If the gnulib module XYZ is not present, redefine
100180         the symbol XYZ to one that gives a link error.
100181         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
100182         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
100183         * modules/mempcpy (configure.ac): Likewise.
100184         * modules/memrchr (configure.ac): Likewise.
100185         * modules/stpcpy (configure.ac): Likewise.
100186         * modules/stpncpy (configure.ac): Likewise.
100187         * modules/strcase (configure.ac): Likewise.
100188         * modules/strcasestr (configure.ac): Likewise.
100189         * modules/strchrnul (configure.ac): Likewise.
100190         * modules/strdup (configure.ac): Likewise.
100191         * modules/strndup (configure.ac): Likewise.
100192         * modules/strnlen (configure.ac): Likewise.
100193         * modules/strpbrk (configure.ac): Likewise.
100194         * modules/strsep (configure.ac): Likewise.
100195         * modules/strstr (configure.ac): Likewise.
100196         * modules/strtok_r (configure.ac): Likewise.
100198 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
100200         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
100202 2007-01-30  Jim Meyering  <jim@meyering.net>
100204         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
100206 2007-01-29  Bruno Haible  <bruno@clisp.org>
100208         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
100209         * lib/execute.c: Likewise.
100210         * lib/pipe.c: Likewise.
100211         * lib/printf-args.h: Likewise.
100212         * lib/printf-args.c: Likewise.
100213         * lib/printf-parse.c: Likewise.
100214         * lib/vasnprintf.c: Likewise.
100216 2007-01-29  Eric Blake  <ebb9@byu.net>
100218         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
100219         declaration.
100221 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
100223         * lib/strptime.h (strptime): Use 'restrict' for args where
100224         POSIX requires this.
100225         * lib/strptime.c (strptime): Likewise.
100226         Change license notice from LGPL to GPL, since gnulib-tool will
100227         change this as needed.
100228         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
100229         defined.
100230         Include "strptime.h" first, to check interface.
100231         Do not #undef _LIBC and _NL_CURRENT.
100232         Do not include <stdlib.h>; no longer needed.
100233         Include "time_r.h" and declare ptime_locale_status
100234         only if _LIBC is not defined.
100235         (__P): Remove unused macro.
100236         (match_string): Bring back glibc version, but use it only if _LIBC
100237         is defined.
100238         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
100239         Remove unnecessary assertion and abort() call.
100240         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
100241         * m4/strptime.m4: Fix serial number comment.
100242         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
100243         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
100244         (Depends-on): Add time_r.
100246 2007-01-29  Bruno Haible  <bruno@clisp.org>
100248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100249         strptime.
100250         * modules/strptime (Depends-on): Add stdbool.
100251         * lib/strptime.h: Include <time.h> always. Add comments.
100253 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100255         * modules/strptime: New file.
100256         * lib/strptime.h: New file.
100257         * lib/strptime.c: New file.
100258         * m4/strptime.m4: New file.
100260 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
100262         * MODULES.html.sh: New module mpsort.
100263         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
100265         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
100266         a circularity problem with HP-UX ia64 reported by Bob Proulx in
100267         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
100268         All uses changed.
100269         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
100270         All uses changed.
100271         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
100272         to _Restrict_.
100273         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
100274         the parameter matches the prototype.
100276 2007-01-28  Jim Meyering  <jim@meyering.net>
100278         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
100279         sys/time.h here, reverting that part of the previous patch:
100280         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
100282 2007-01-28  Bruno Haible  <bruno@clisp.org>
100284         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
100285         value of $(SYS_TIME_H).
100286         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
100287         remove it conditionally, too. [added by Jim Meyering]
100288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
100289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
100290         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
100291         GETTIMEOFDAY_REPLACEMENT to 1.
100293 2007-01-28  Bruno Haible  <bruno@clisp.org>
100295         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
100296         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
100297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
100298         Set UNISTD_H instead of UNISTD_H2.
100299         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
100301 2007-01-28  Bruno Haible  <bruno@clisp.org>
100303         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
100304         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
100306 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100308         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
100309         (func_create_testdir): Ensure C locale for `grep' and `tr'
100310         character ranges.
100311         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
100312         ACLOCAL_AMFLAGS parsing state machine.
100314 2007-01-27  Bruno Haible  <bruno@clisp.org>
100316         * modules/unistr/base: Update.
100318 2007-01-27  Bruno Haible  <bruno@clisp.org>
100320         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
100321         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
100322         * modules/unistr/u32-mbtouc-unsafe: Renamed from
100323         modules/unistr/u32-mbtouc.
100324         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
100325         * lib/unistr.h: Update.
100326         * lib/linebreak.c: Update.
100327         * modules/unistr/u32-mbtouc: Renamed from
100328         modules/unistr/u32-mbtouc-safe.
100329         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
100330         * lib/unistr.h: Update.
100331         * lib/unistr/u32-to-u8.c: Update.
100332         * lib/unistr/u32-to-u16.c: Update.
100334 2007-01-27  Bruno Haible  <bruno@clisp.org>
100336         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
100337         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
100338         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
100339         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
100340         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
100341         * modules/unistr/u16-mbtouc-unsafe: Renamed from
100342         modules/unistr/u16-mbtouc.
100343         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
100344         * lib/unistr.h: Update.
100345         * lib/linebreak.c: Update.
100346         * modules/linebreak: Update.
100347         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
100348         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
100349         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
100350         * modules/unistr/u16-mbtouc: Renamed from
100351         modules/unistr/u16-mbtouc-safe.
100352         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
100353         * lib/unistr.h: Update.
100354         * lib/unistr/u16-to-u8.c: Update.
100355         * modules/unistr/u16-to-u8: Update.
100356         * lib/unistr/u16-to-u32.c: Update.
100357         * modules/unistr/u16-to-u32: Update.
100359 2007-01-27  Bruno Haible  <bruno@clisp.org>
100361         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
100362         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
100363         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
100364         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
100365         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
100366         * modules/unistr/u8-mbtouc-unsafe: Renamed from
100367         modules/unistr/u8-mbtouc.
100368         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
100369         * lib/unistr.h: Update.
100370         * lib/striconveh.c: Update.
100371         * modules/striconveh: Update.
100372         * lib/linebreak.c: Update.
100373         * modules/linebreak: Update.
100374         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
100375         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
100376         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
100377         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
100378         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
100379         * lib/unistr.h: Update.
100380         * lib/striconveh.c: Update.
100381         * modules/striconveh: Update.
100382         * lib/unistr/u8-to-u16.c: Update.
100383         * modules/unistr/u8-to-u16: Update.
100384         * lib/unistr/u8-to-u32.c: Update.
100385         * modules/unistr/u8-to-u32: Update.
100387 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100389         Sync from Libtool.
100390         * lib/argz.c: Do not include strings.h nor memory.h, include
100391         string.h unconditionally.  Patch by Simon Josefsson.
100393 2007-01-27  Bruno Haible  <bruno@clisp.org>
100395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
100396         from gl_HEADER_STRING_H_BODY.
100397         (gl_HEADER_STRING_H_BODY): Require it.
100398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
100399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100401         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100403         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
100404         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
100405         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100406         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
100407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100408         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100409         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
100410         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100411         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
100412         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100414 2007-01-27  Bruno Haible  <bruno@clisp.org>
100416         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
100417         check_PROGRAMS into noinst_PROGRAMS.
100418         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
100419         check_PROGRAMS in this case.
100420         (func_import): Set for_test to false.
100421         (func_create_testdir): Set for_test to true.
100423 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100424             Bruno Haible  <bruno@clisp.org>
100426         * modules/strcasestr (Files): Remove lib/strcasestr.h.
100427         (Depends-on): Add string.
100428         (Includes): Use <string.h> instead of strcasestr.h.
100429         * modules/string (Makefile.am): Also substitute the value of
100430         REPLACE_STRCASESTR.
100431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
100432         assume strcasestr is declared in <string.h> not <strings.h>. Also
100433         set REPLACE_STRCASESTR.
100434         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
100435         REPLACE_STRCASESTR.
100436         * lib/strcasestr.h: Remove file.
100437         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
100438         * lib/string_.h (strcasestr): New declaration.
100440 2007-01-27  Bruno Haible  <bruno@clisp.org>
100442         * lib/string_.h: Use 'extern'.
100444 2007-01-27  Jim Meyering  <jim@meyering.net>
100446         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
100447         of set-but-not-used local, "q".
100449         * lib/mempcpy.c: Include <config.h> before <string.h>.
100450         This fixes a compilation error on HP-UX, due to the system's
100451         "restrict"-using mempcpy prototype.
100453 2007-01-26  Bruno Haible  <bruno@clisp.org>
100455         Small optimization.
100456         * lib/javacomp.c: Include c-strstr.h.
100457          (is_envjavac_gcj): Use c_strstr instead of strstr.
100458         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
100460 2007-01-26  Bruno Haible  <bruno@clisp.org>
100462         * MODULES.html.sh (Unicode string functions): Add the new modules.
100464         * modules/uniconv/u32-strconv-to-locale: New file.
100465         * lib/uniconv/u32-strconv-to-locale.c: New file.
100467         * modules/uniconv/u16-strconv-to-locale: New file.
100468         * lib/uniconv/u16-strconv-to-locale.c: New file.
100470         * modules/uniconv/u8-strconv-to-locale: New file.
100471         * lib/uniconv/u8-strconv-to-locale.c: New file.
100473         * modules/uniconv/u32-strconv-from-locale: New file.
100474         * lib/uniconv/u32-strconv-from-locale.c: New file.
100476         * modules/uniconv/u16-strconv-from-locale: New file.
100477         * lib/uniconv/u16-strconv-from-locale.c: New file.
100479         * modules/uniconv/u8-strconv-from-locale: New file.
100480         * lib/uniconv/u8-strconv-from-locale.c: New file.
100482         * modules/uniconv/u32-strconv-to-enc: New file.
100483         * lib/uniconv/u32-strconv-to-enc.c: New file.
100484         * modules/uniconv/u32-strconv-to-enc-tests: New file.
100485         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
100487         * modules/uniconv/u16-strconv-to-enc: New file.
100488         * lib/uniconv/u16-strconv-to-enc.c: New file.
100489         * lib/uniconv/u-strconv-to-enc.h: New file.
100490         * modules/uniconv/u16-strconv-to-enc-tests: New file.
100491         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
100493         * modules/uniconv/u8-strconv-to-enc: New file.
100494         * lib/uniconv/u8-strconv-to-enc.c: New file.
100495         * modules/uniconv/u8-strconv-to-enc-tests: New file.
100496         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
100498         * modules/uniconv/u32-strconv-from-enc: New file.
100499         * lib/uniconv/u32-strconv-from-enc.c: New file.
100500         * modules/uniconv/u32-strconv-from-enc-tests: New file.
100501         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
100503         * modules/uniconv/u16-strconv-from-enc: New file.
100504         * lib/uniconv/u16-strconv-from-enc.c: New file.
100505         * modules/uniconv/u16-strconv-from-enc-tests: New file.
100506         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
100508         * modules/uniconv/u8-strconv-from-enc: New file.
100509         * lib/uniconv/u8-strconv-from-enc.c: New file.
100510         * lib/uniconv/u-strconv-from-enc.h: New file.
100511         * modules/uniconv/u8-strconv-from-enc-tests: New file.
100512         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
100514         * modules/uniconv/u32-conv-from-enc: New file.
100515         * lib/uniconv/u32-conv-from-enc.c: New file.
100516         * modules/uniconv/u32-conv-from-enc-tests: New file.
100517         * tests/uniconv/test-u32-conv-from-enc.c: New file.
100519         * modules/uniconv/u16-conv-from-enc: New file.
100520         * lib/uniconv/u16-conv-from-enc.c: New file.
100521         * lib/uniconv/u-conv-from-enc.h: New file.
100522         * modules/uniconv/u16-conv-from-enc-tests: New file.
100523         * tests/uniconv/test-u16-conv-from-enc.c: New file.
100525         * modules/uniconv/u8-conv-from-enc: New file.
100526         * lib/uniconv/u8-conv-from-enc.c: New file.
100527         * modules/uniconv/u8-conv-from-enc-tests: New file.
100528         * tests/uniconv/test-u8-conv-from-enc.c: New file.
100530         * modules/uniconv/base: New file.
100531         * lib/uniconv.h: New file.
100533 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
100535         * doc/gnulib-tool.texi (Initial import): Update to match current
100536         behavior with strdup module.
100537         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
100538         * lib/memmem.h: Remove; all uses removed.  This is now done
100539         by <string.h>.
100540         * lib/mempcpy.h: Likewise.
100541         * lib/memrchr.h: Likewise.
100542         * lib/stpcpy.h: Likewise.
100543         * lib/stpncpy.h: Likewise.
100544         * lib/strcase.h: Likewise.
100545         * lib/strchrnul.h: Likewise.
100546         * lib/strdup.h: Likewise.
100547         * lib/strndup.h: Likewise.
100548         * lib/strnlen.h: Likewise.
100549         * lib/strpbrk.h: Likewise.
100550         * lib/strsep.h: Likewise.
100551         * lib/strstr.h: Likewise.
100552         * lib/strtok_r.h: Likewise.
100553         * lib/string_.h: New file.
100554         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
100555         Rely on <string.h> instead.
100556         * lib/canon-host.c: Likewise.
100557         * lib/chdir-long.c: Likewise.
100558         * lib/concatpath.c: Likewise.
100559         * lib/exclude.c: Likewise.
100560         * lib/fchdir.c: Likewise.
100561         * lib/getaddrinfo.c: Likewise.
100562         * lib/getcwd.c: Likewise.
100563         * lib/getsubopt.c: Likewise.
100564         * lib/glob.c: Likewise.
100565         * lib/hard-locale.c: Likewise.
100566         * lib/iconvme.c: Likewise.
100567         * lib/javacomp.c: Likewise.
100568         * lib/mempcpy.c: Likewise.
100569         * lib/memrchr.c: Likewise.
100570         * lib/regex_internal.h: Likewise.
100571         * lib/stpncpy.c: Likewise.
100572         * lib/strcasecmp.c: Likewise.
100573         * lib/strchrnul.c: Likewise.
100574         * lib/strdup.c: Likewise.
100575         * lib/striconv.c: Likewise.
100576         * lib/striconveh.c: Likewise.
100577         * lib/striconveha.c: Likewise.
100578         * lib/strncasecmp.c: Likewise.
100579         * lib/strndup.c: Likewise.
100580         * lib/strnlen.c: Likewise.
100581         * lib/strsep.c: Likewise.
100582         * lib/strstr.c: Likewise.
100583         * lib/strtok_r.c: Likewise.
100584         * lib/userspec.c: Likewise.
100585         * lib/w32spawn.h: Likewise.
100586         * lib/xstrndup.c: Likewise.
100587         * lib/mountlist.c (strstr): Remove decl.
100588         * m4/string_h.m4: New file.
100589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
100590         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
100591         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
100592         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
100593         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
100594         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
100595         Set REPLACE_STRCASECMP if necessary.
100596         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
100597         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
100598         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
100599         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
100600         HAVE_DECL_STRDUP if necessary.
100601         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
100602         since gl_FUNC_STRNDUP does that now.
100603         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
100604         Check for decl here...
100605         (gl_PREREQ_STRNLEN): ... not here.
100606         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
100607         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
100608         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
100609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
100610         necessary.
100611         * modules/string: New file.
100612         * modules/memmem (Files): Remove special-purpose include file.
100613         (Depends-on): Add string.
100614         (Include): Include <string.h>, not the removed file.
100615         * modules/mempcpy: Likewise.
100616         * modules/memrchr: Likewise.
100617         * modules/stpcpy: Likewise.
100618         * modules/stpncpy: Likewise.
100619         * modules/strcase: Likewise.
100620         * modules/strchrnul: Likewise.
100621         * modules/strdup: Likewise.
100622         * modules/strndup: Likewise.
100623         * modules/strnlen: Likewise.
100624         * modules/strpbrk: Likewise.
100625         * modules/strsep: Likewise.
100626         * modules/strstr: Likewise.
100627         * modules/strtok_r: Likewise.
100628         * tests/test-dirname.c: Don't include "strdup.h", since
100629         <string.h> now suffices.
100630         * tests/test-memmem.c: Don't include "memmem.h", since
100631         <string.h> now suffices.
100633 2007-01-25  Bruno Haible  <bruno@clisp.org>
100635         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
100636         *resultp is 0.
100638         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
100639         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
100640         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
100641         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
100643         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
100644         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
100645         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
100646         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
100647         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
100648         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
100650 2007-01-24  Bruno Haible  <bruno@clisp.org>
100652         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
100653         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
100654         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
100655         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
100656         gl_FUNC_FTS_CORE.
100657         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
100658         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
100659         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100660         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
100661         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
100662         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
100663         gl_FUNC_FCHOWNAT.
100664         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
100665         gl_FUNC_STRFTIME.
100666         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
100667         Reported by Ralf Wildenhues.
100669 2007-01-24  Bruno Haible  <bruno@clisp.org>
100671         Drop AC_REQUIRE calls that are redundant with the module dependencies.
100672         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
100673         gl_GETADDRINFO.
100674         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
100675         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
100676         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
100678 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
100680         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
100681         Don't use 'exit'; just return from 'main'.
100682         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
100684         * lib/fnmatch_.h: Readjust white space and comments to match
100685         glibc, to avoid spurious diffs.
100687 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100689         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
100690         2004-12-01 change by Jakub Jelinek, since this code won't compile
100691         if !LIBC.  Problem reported by Bob Proulx.
100693 2007-01-23  Bruno Haible  <bruno@clisp.org>
100695         * lib/striconveh.c: Include c-strcaseeq.h.
100696         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
100697         * modules/striconveh (Depends-on): Add c-strcaseeq.
100699 2007-01-23  Bruno Haible  <bruno@clisp.org>
100701         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
100703         * modules/c-strcaseeq: New file.
100704         * lib/c-strcaseeq.h: New file.
100706         * modules/streq: New file.
100707         * lib/streq.h: New file.
100709 2007-01-23  Bruno Haible  <bruno@clisp.org>
100711         * modules/striconveha-tests: New file.
100712         * tests/test-striconveha.c: New file.
100714         * lib/striconveha.h: Include <stdbool.h>.
100715         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
100716         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
100717         (mem_iconveha_notranslit): Renamed from mem_iconveha.
100718         (mem_iconveha): New function.
100719         (str_iconveha_notranslit): Renamed from str_iconveha.
100720         (str_iconveha): New function.
100721         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
100722         c-strcase.
100724 2007-01-23  Bruno Haible  <bruno@clisp.org>
100726         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
100727         encodings without forgiving before trying any encoding with handler.
100728         (str_iconveha): Try all encodings without forgiving before trying any
100729         encoding with handler.
100731 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
100733         Import the following changes from libc.
100735         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
100737         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
100739         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
100741         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
100742         normal_bracket label.
100744         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
100746         [BZ #361]
100747         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
100748         to normal_bracket after fetching the next character.
100750 2007-01-22  Bruno Haible  <bruno@clisp.org>
100752         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
100753         argument.
100754         * lib/striconveh.c (iconv_carefully_1): New function.
100755         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
100756         argument.
100757         (str_cd_iconveh): Update.
100758         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
100759         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
100760         * tests/test-striconveh.c (MAGIC): New macro.
100761         (new_offsets): New function.
100762         (main): Test call with and without offsets.
100764 2007-01-22  Bruno Haible  <bruno@clisp.org>
100766         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
100767         * modules/sys_select (Makefile.am): Likewise.
100768         * modules/sys_socket (Makefile.am): Likewise.
100769         * modules/sys_time (Makefile.am): Likewise.
100771 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
100773         * modules/gettimeofday (License): Change from GPL to LGPL, since
100774         gettimeofday is a library function.
100776 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100778         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
100780 2007-01-21  Bruno Haible  <bruno@clisp.org>
100782         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
100784 2007-01-21  Bruno Haible  <bruno@clisp.org>
100786         * modules/striconveha: New file.
100787         * lib/striconveha.h: New file.
100788         * lib/striconveha.c: New file.
100789         * MODULES.html.sh (Internationalization functions): Add striconveha.
100790         * lib/striconv.c (str_iconv): Optimize the case of an empty input
100791         string.
100792         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
100794 2007-01-21  Bruno Haible  <bruno@clisp.org>
100796         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
100797         * lib/striconveh.c (str_iconveh): Likewise.
100799 2007-01-21  Bruno Haible  <bruno@clisp.org>
100801         * lib/striconveh.h (mem_iconveh): New declaration.
100802         * lib/striconveh.c (mem_iconveh): New function.
100803         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
100805 2007-01-21  Bruno Haible  <bruno@clisp.org>
100807         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
100809         * lib/striconveh.h (mem_cd_iconveh): Change specification.
100810         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
100811         original result buffer.
100812         (str_cd_iconveh): Update.
100813         * tests/test-striconveh.c (main): Update.
100815         * lib/striconv.h (mem_cd_iconv): Change specification.
100816         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
100817         result buffer.
100818         (str_cd_iconv): Update.
100819         * tests/test-striconv.c (main): Update.
100821 2007-01-21  Bruno Haible  <bruno@clisp.org>
100823         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
100825 2007-01-20  Jim Meyering  <jim@meyering.net>
100827         * lib/userspec.c (parse_with_separator): If a user or group string
100828         starts with "+", skip the corresponding name-to-ID look-up, since
100829         such a look-up must fail: user and group names may not include "+".
100831 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
100833         * lib/poll.c: Include sys/time.h and time.h unconditionally,
100834         since we now assume the sys_time module.
100835         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
100836         check for sys/time.h; no longer needed.
100837         * modules/poll (Depends-on): Depend on sys_time.
100839 2007-01-18  Bruno Haible  <bruno@clisp.org>
100841         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
100842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
100844         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
100845         gettimeofday.
100847         * tests/test-gettimeofday.c: Include <time.h>.
100848         (dummy): Remove variable.
100850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
100851         gl_HEADER_SYS_TIME_H.
100852         (gl_HEADER_SYS_TIME_H): New macro.
100854         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
100855         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
100856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
100857         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
100858         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
100859         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
100860         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
100861         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
100862         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
100863         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
100864         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
100866         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
100867         last change; it caused a compilation error when cross-compiling to
100868         Cygwin.
100870 2007-01-18  Jim Meyering  <jim@meyering.net>
100872         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
100873         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
100874         than the race-prone "test -d sys || mkdir sys".
100875         (configure.ac): Use AC_PROG_MKDIR_P.
100876         * modules/sys_select: Likewise.
100877         * modules/sys_socket: Likewise.
100878         * modules/sys_time: Likewise.
100880 2007-01-18  Eric Blake  <ebb9@byu.net>
100882         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
100883         replace gettimeofday.
100884         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
100885         name, to avoid infinite recursion.
100887 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
100889         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
100890         module sys_time.
100891         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
100892         assume timespec.h defines struct timeval.
100893         * lib/settime.c: Likewise.
100894         * lib/utimens.c: Likewise.
100895         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
100896         since we now assume the gettimeofday module.
100897         * lib/tempname.c (__gen_tempname): Likewise.
100898         * lib/gettimeofday.h: Remove.
100899         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
100900         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
100901         Include <time.h>, for 'time()'.
100902         (localtime_buffer_addr): Also use this workaround if
100903         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
100904         to simplify the uses.  All uses changed.
100905         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
100906         that #undef is inside {}, and 'const' follows type name consistently.
100907         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
100908         (gettimeofday): Do not use the maximum possible value for
100909         tv->tv_usec, since that might break usages other than ls.c.
100910         Instead, we'll leave ls.c alone.  This undoes today's patch
100911         by Bruno.  Add a compile-time warning for 1s-clock resolution;
100912         we've never observed the problem but might as well keep the
100913         canary.
100914         * lib/nanosleep.c: Include timespec.h first, for interface check.
100915         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
100916         now assume the sys_time module.
100917         * lib/tempname.c: Likewise.
100918         * lib/timespec.h: Likewise.
100919         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
100920         needed.
100921         * lib/strftime.c: Likewise.
100922         * lib/timespec.h: Likewise.
100923         * lib/posixtm.c: Include posixtm.h first, for interface check.
100924         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
100925         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
100926         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
100927         * lib/sys_time_.h: New file.
100928         * lib/timespec.h (struct timespec): Use long int, not long.
100929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
100930         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
100931         Remove obsolescent call to AC_HEADER_TIME.
100932         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
100933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
100935         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
100936         Likewise.
100937         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
100938         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
100939         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
100940         into the sys_time module.  Check for gettimeofday just once.
100941         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
100942         for gettimeofday signature to just check the signature.  Merely
100943         compile it, since linking doesn't test signature.  Improve test for
100944         whether gettimeofday.o is actually needed.
100945         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
100946         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
100947         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
100948         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
100949         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
100950         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
100951         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
100952         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
100953         than worrying about sys/time.h.
100954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
100955         Don't bother worrying about TIME_WITH_SYS_TIME.
100956         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
100957         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
100958         * m4/sys_time_h.m4: New file.
100959         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
100960         Don't include sys/time.h.  Return from main rather than exiting.
100961         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
100962         all uses changed.
100963         * modules/gethrxtime (Depends-on): Add sys_time.
100964         * modules/gettime (Depends-on): Likewise.
100965         * modules/gettimeofday (Depends-on): Likewise.
100966         * modules/nanosleep (Depends-on): Likewise.
100967         * modules/settime (Depends-on): Likewise.
100968         * modules/tempname (Depends-on): Likewise.
100969         * modules/utimens (Depends-on): Likewise.
100970         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
100971         (Include): Change back to <sys/time.h>.
100972         (Maintainer): Add self.
100973         * modules/sys_time: New file.
100974         * modules/tempname (Depends-on): Add gettimeofday.
100975         * tests/test-gettimeofday.c: Include <sys/time.h>
100976         rather than gettimeofday.h.
100978 2007-01-17  Bruno Haible  <bruno@clisp.org>
100980         * gnulib-tool (func_get_license): Revert last patch. Instead, let
100981         the license default to GPL.
100982         (func_create_testdir): Don't complain if a module is LGPL and its
100983         tests module depends on GPLed modules.
100985 2007-01-17  Bruno Haible  <bruno@clisp.org>
100987         * lib/gettimeofday.c (gettimeofday): Add code for the case
100988         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
100989         maximum possible value for tv->tv_usec, rather than the minimum one.
100991 2005-10-08  Martin Lambers  <marlam@marlam.de>
100992 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100993 2007-01-16  Bruno Haible  <bruno@clisp.org>
100995         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
100996         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
100997         gl_FUNC_GETTIMEOFDAY.
100998         (Include): Add gettimeofday.h.
100999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
101000         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
101001         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
101002         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
101003         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
101004         * lib/gettimeofday.h: New file.
101005         * lib/gettimeofday.c: Include <sys/timeb.h>.
101006         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
101007         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
101008         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
101009         fall back on time().
101011         * tests/test-gettimeofday.c: New file.
101012         * modules/gettimeofday-tests: New file.
101014 2007-01-16  Eric Blake  <ebb9@byu.net>
101016         * modules/fnmatch (Depends-on): Depend on wchar.
101017         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
101018         * m4/fnmatch.m4: Likewise.
101019         * modules/mbchar (Makefile.am): Assume <wchar.h>.
101020         * m4/mbchar.m4: Likewise.
101021         * modules/mbswidth (Depends-on): Depend on wchar.
101022         * lib/mbswidth.c: Assume <wchar.h>.
101023         * m4/mbswidth.m4: Likewise.
101024         * modules/quotearg (Depends-on): Depend on wchar.
101025         * lib/quotearg.c: Assume <wchar.h>.
101026         * m4/quotearg.m4: Likewise.
101027         * modules/regex (Depends-on): Depend on wchar.
101028         * lib/regex_internal.h: Assume <wchar.h>.
101029         * m4/regex.m4: Likewise.
101030         * modules/stdint (Depends-on): Depend on wchar.
101031         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
101032         * m4/stdint.m4: Likewise.
101033         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
101034         * modules/strftime (Depends-on): Depend on wchar.
101035         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
101036         * modules/strtol (Depends-on): Depend on wchar.
101037         * lib/strtol.c: Assume <wchar.h>.
101038         * modules/wcwidth (Depends-on): Depend on wchar.
101039         * lib/wcwidth.h: Assume <wchar.h>.
101040         * m4/wcwidth.m4: Likewise.
101042 2007-01-16  Bruno Haible  <bruno@clisp.org>
101044         * modules/csharpexec-script: New, created from...
101045         * modules/csharpexec: ... this.
101047 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
101049         * modules/javaexec-script: New, created from...
101050         * modules/javaexec: ... this.
101052 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101054         * modules/poll (Dependencies): Add sys_select.
101056 2007-01-15  Jim Meyering  <jim@meyering.net>
101058         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
101059         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
101060         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
101061         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
101063 2007-01-15  Bruno Haible  <bruno@clisp.org>
101065         * modules/striconveh: New file.
101066         * lib/striconveh.h: New file.
101067         * lib/striconveh.c: New file.
101068         * MODULES.html.sh (Internationalization functions): Add striconveh.
101070         * modules/striconveh-tests: New file.
101071         * tests/test-striconveh.c: New file.
101073 2007-01-15  Bruno Haible  <bruno@clisp.org>
101075         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
101076         not from GNU libiconv or GNU libc.
101078 2007-01-15  Bruno Haible  <bruno@clisp.org>
101080         * doc/gnulib-intro.texi (Copyright): Explain the different license
101081         terms for module descriptions, autoconf macros, tests, documentation.
101083 2007-01-14  Bruno Haible  <bruno@clisp.org>
101085         * modules/striconv-tests: New file.
101086         * tests/test-striconv.c: New file.
101088 2007-01-14  Bruno Haible  <bruno@clisp.org>
101090         * modules/iconv-tests: New file.
101091         * tests/test-iconv.c: New file.
101093 2007-01-14  Bruno Haible  <bruno@clisp.org>
101095         * gnulib-tool (func_get_license): For test modules, use the license of
101096         the main module.
101098 2007-01-14  Bruno Haible  <bruno@clisp.org>
101100         * modules/iconv (Include): Clarify that <iconv.h> can only be included
101101         if iconv is found to exist.
101103 2007-01-14  Bruno Haible  <bruno@clisp.org>
101105         * modules/c-ctype-tests: New file.
101106         * tests/test-c-ctype.c: New file.
101108 2007-01-14  Bruno Haible  <bruno@clisp.org>
101110         * modules/binary-io-tests: New file.
101111         * tests/test-binary-io.sh: New file.
101112         * tests/test-binary-io.c: New file.
101114 2007-01-14  Bruno Haible  <bruno@clisp.org>
101116         * modules/array-oset-tests: New file.
101117         * tests/test-array_oset.c: New file.
101119 2007-01-14  Bruno Haible  <bruno@clisp.org>
101121         * modules/array-list-tests: New file.
101122         * tests/test-array_list.c: New file.
101124 2007-01-14  Bruno Haible  <bruno@clisp.org>
101126         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
101127         and make.
101128         Reported by Simon Josefsson in
101129         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
101131 2007-01-14  Bruno Haible  <bruno@clisp.org>
101133         * modules/allocsa-tests: New file.
101134         * tests/test-allocsa.c: New file.
101136 2007-01-14  Bruno Haible  <bruno@clisp.org>
101138         * modules/fchdir (Depends-on): Add absolute-header.
101139         * modules/unistd (Depends-on): Likewise.
101141 2006-12-30  Bruno Haible  <bruno@clisp.org>
101143         * modules/fchdir: New file.
101144         * modules/unistd (Files): Add lib/unistd_.h.
101145         (Makefile.am): Generate unistd.h from unistd_.h.
101146         * lib/fchdir.c: New file.
101147         * lib/dirent_.h: New file.
101148         * lib/unistd_.h: New file.
101149         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
101150         * m4/fchdir.m4: New file.
101151         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
101152         (gl_HEADER_UNISTD): Invoke it.
101153         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
101154         function.
101155         * lib/backupfile.c (opendir, closedir): Undefine.
101156         * lib/chown.c (open, close): Undefine.
101157         * lib/clean-temp.c (open, close): Undefine.
101158         * lib/copy-file.c (open, close): Undefine.
101159         * lib/execute.c (open, close): Undefine.
101160         * lib/fsusage.c (open, close): Undefine.
101161         * lib/gc-gnulib.c (open, close): Undefine.
101162         * lib/getcwd.c (opendir, closedir): Undefine.
101163         * lib/glob.c (opendir, closedir): Undefine.
101164         * lib/javacomp.c (open, close): Undefine.
101165         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
101166         * lib/openat-proc.c (open, close): Undefine.
101167         * lib/pagealign_alloc.c (open, close): Undefine.
101168         * lib/pipe.c (open, close): Undefine.
101169         * lib/progreloc.c (open, close): Undefine.
101170         * lib/savedir.c (opendir, closedir): Undefine.
101171         * lib/utime.c (open, close): Undefine.
101172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
101174 2007-01-10  Bruno Haible  <bruno@clisp.org>
101176         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
101178 2007-01-12  Eric Blake  <ebb9@byu.net>
101180         Provide a robust <wchar.h>.  Further simplifications are now
101181         possible in other modules, but not included here.
101182         * modules/wchar: New module.
101183         * m4/wchar.m4: New file.
101184         * lib/wchar_.h: Likewise.
101185         * modules/mbchar (Depends-on): Depend on wchar, as the first use
101186         of the new module.
101187         * MODULES.html.sh (Extended multibyte and wide character utilities):
101188         New section.
101190 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
101192         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
101193         to a reasonable default for memory allocation.
101194         (xreadlink): Don't allocate a huge buffer, to work around a buggy
101195         file system that reports garbage st_size values for symlinks.
101196         Problem reported by Liyang Hu.
101198 2007-01-11  Simon Josefsson  <simon@josefsson.org>
101200         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
101201         Emacs .#* auto-save files).
101203 2007-01-11  Bruno Haible  <bruno@clisp.org>
101205         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
101206         directory.
101208 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101210         Use @...@ consistently in lib/wctype_.h.
101211         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
101212         on it being set to 1 or 0.
101213         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
101214         go back to AC_SUBSTing it.
101215         * modules/wctype (Makefile.am): Undo previous change.
101217 2007-01-10  Eric Blake  <ebb9@byu.net>
101219         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
101220         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
101221         * modules/wctype (Makefile.am): Likewise.
101222         Reported by Chris McGuire.
101224 2007-01-10  Jim Meyering  <jim@meyering.net>
101226         fts.c: a small readability/maintainability improvement
101227         * lib/fts.c (fts_read): Make this code slightly more readable and
101228         maintainable by hoisting the "sp->fts_cur = p" assignments to
101229         immediately follow the statements that set P.  Derived from
101230         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
101232 2007-01-10  Eric Blake  <ebb9@byu.net>
101234         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
101235         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
101236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101237         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
101238         Reported by Chris McGuire.
101240 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101242         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
101243         in sed script.
101245 2007-01-09  Bruno Haible  <bruno@clisp.org>
101247         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
101248         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
101249         variables.
101250         (func_module): Use them.
101252 2007-01-09  Bruno Haible  <bruno@clisp.org>
101254         * modules/unistr/base: New file.
101255         * lib/unistr.h: New file.
101257         * modules/unistr/u8-to-u16: New file.
101258         * lib/unistr/u8-to-u16.c: New file.
101260         * modules/unistr/u8-to-u32: New file.
101261         * lib/unistr/u8-to-u32.c: New file.
101263         * modules/unistr/u16-to-u8: New file.
101264         * lib/unistr/u16-to-u8.c: New file.
101266         * modules/unistr/u16-to-u32: New file.
101267         * lib/unistr/u16-to-u32.c: New file.
101269         * modules/unistr/u32-to-u8: New file.
101270         * lib/unistr/u32-to-u8.c: New file.
101272         * modules/unistr/u32-to-u16: New file.
101273         * lib/unistr/u32-to-u16.c: New file.
101275         * modules/unistr/u8-check: New file.
101276         * modules/unistr/u16-check: New file.
101277         * modules/unistr/u32-check: New file.
101278         * lib/unistr/u8-check.c: New file.
101279         * lib/unistr/u16-check.c: New file.
101280         * lib/unistr/u32-check.c: New file.
101282         * modules/unistr/u8-chr: New file.
101283         * modules/unistr/u16-chr: New file.
101284         * modules/unistr/u32-chr: New file.
101285         * lib/unistr/u8-chr.c: New file.
101286         * lib/unistr/u16-chr.c: New file.
101287         * lib/unistr/u32-chr.c: New file.
101289         * modules/unistr/u8-cmp: New file.
101290         * modules/unistr/u16-cmp: New file.
101291         * modules/unistr/u32-cmp: New file.
101292         * lib/unistr/u8-cmp.c: New file.
101293         * lib/unistr/u16-cmp.c: New file.
101294         * lib/unistr/u32-cmp.c: New file.
101296         * modules/unistr/u8-cpy: New file.
101297         * modules/unistr/u16-cpy: New file.
101298         * modules/unistr/u32-cpy: New file.
101299         * lib/unistr/u8-cpy.c: New file.
101300         * lib/unistr/u16-cpy.c: New file.
101301         * lib/unistr/u32-cpy.c: New file.
101302         * lib/unistr/u-cpy.h: New file.
101304         * modules/unistr/u8-cpy-alloc: New file.
101305         * modules/unistr/u16-cpy-alloc: New file.
101306         * modules/unistr/u32-cpy-alloc: New file.
101307         * lib/unistr/u8-cpy-alloc.c: New file.
101308         * lib/unistr/u16-cpy-alloc.c: New file.
101309         * lib/unistr/u32-cpy-alloc.c: New file.
101310         * lib/unistr/u-cpy-alloc.h: New file.
101312         * modules/unistr/u8-endswith: New file.
101313         * modules/unistr/u16-endswith: New file.
101314         * modules/unistr/u32-endswith: New file.
101315         * lib/unistr/u8-endswith.c: New file.
101316         * lib/unistr/u16-endswith.c: New file.
101317         * lib/unistr/u32-endswith.c: New file.
101318         * lib/unistr/u-endswith.h: New file.
101320         * modules/unistr/u8-mblen: New file.
101321         * modules/unistr/u16-mblen: New file.
101322         * modules/unistr/u32-mblen: New file.
101323         * lib/unistr/u8-mblen.c: New file.
101324         * lib/unistr/u16-mblen.c: New file.
101325         * lib/unistr/u32-mblen.c: New file.
101327         * modules/unistr/u8-mbtouc: New file.
101328         * modules/unistr/u16-mbtouc: New file.
101329         * modules/unistr/u32-mbtouc: New file.
101330         * lib/unistr/u8-mbtouc.c: New file.
101331         * lib/unistr/u16-mbtouc.c: New file.
101332         * lib/unistr/u32-mbtouc.c: New file.
101334         * modules/unistr/u8-mbtouc-safe: New file.
101335         * modules/unistr/u16-mbtouc-safe: New file.
101336         * modules/unistr/u32-mbtouc-safe: New file.
101337         * lib/unistr/u8-mbtouc-safe.c: New file.
101338         * lib/unistr/u16-mbtouc-safe.c: New file.
101339         * lib/unistr/u32-mbtouc-safe.c: New file.
101341         * modules/unistr/u8-move: New file.
101342         * modules/unistr/u16-move: New file.
101343         * modules/unistr/u32-move: New file.
101344         * lib/unistr/u8-move.c: New file.
101345         * lib/unistr/u16-move.c: New file.
101346         * lib/unistr/u32-move.c: New file.
101347         * lib/unistr/u-move.h: New file.
101349         * modules/unistr/u8-next: New file.
101350         * modules/unistr/u16-next: New file.
101351         * modules/unistr/u32-next: New file.
101352         * lib/unistr/u8-next.c: New file.
101353         * lib/unistr/u16-next.c: New file.
101354         * lib/unistr/u32-next.c: New file.
101356         * modules/unistr/u8-prev: New file.
101357         * modules/unistr/u16-prev: New file.
101358         * modules/unistr/u32-prev: New file.
101359         * lib/unistr/u8-prev.c: New file.
101360         * lib/unistr/u16-prev.c: New file.
101361         * lib/unistr/u32-prev.c: New file.
101363         * modules/unistr/u8-set: New file.
101364         * modules/unistr/u16-set: New file.
101365         * modules/unistr/u32-set: New file.
101366         * lib/unistr/u8-set.c: New file.
101367         * lib/unistr/u16-set.c: New file.
101368         * lib/unistr/u32-set.c: New file.
101369         * lib/unistr/u-set.h: New file.
101371         * modules/unistr/u8-startswith: New file.
101372         * modules/unistr/u16-startswith: New file.
101373         * modules/unistr/u32-startswith: New file.
101374         * lib/unistr/u8-startswith.c: New file.
101375         * lib/unistr/u16-startswith.c: New file.
101376         * lib/unistr/u32-startswith.c: New file.
101377         * lib/unistr/u-startswith.h: New file.
101379         * modules/unistr/u8-stpcpy: New file.
101380         * modules/unistr/u16-stpcpy: New file.
101381         * modules/unistr/u32-stpcpy: New file.
101382         * lib/unistr/u8-stpcpy.c: New file.
101383         * lib/unistr/u16-stpcpy.c: New file.
101384         * lib/unistr/u32-stpcpy.c: New file.
101385         * lib/unistr/u-stpcpy.h: New file.
101387         * modules/unistr/u8-stpncpy: New file.
101388         * modules/unistr/u16-stpncpy: New file.
101389         * modules/unistr/u32-stpncpy: New file.
101390         * lib/unistr/u8-stpncpy.c: New file.
101391         * lib/unistr/u16-stpncpy.c: New file.
101392         * lib/unistr/u32-stpncpy.c: New file.
101393         * lib/unistr/u-stpncpy.h: New file.
101395         * modules/unistr/u8-strcat: New file.
101396         * modules/unistr/u16-strcat: New file.
101397         * modules/unistr/u32-strcat: New file.
101398         * lib/unistr/u8-strcat.c: New file.
101399         * lib/unistr/u16-strcat.c: New file.
101400         * lib/unistr/u32-strcat.c: New file.
101401         * lib/unistr/u-strcat.h: New file.
101403         * modules/unistr/u8-strchr: New file.
101404         * modules/unistr/u16-strchr: New file.
101405         * modules/unistr/u32-strchr: New file.
101406         * lib/unistr/u8-strchr.c: New file.
101407         * lib/unistr/u16-strchr.c: New file.
101408         * lib/unistr/u32-strchr.c: New file.
101410         * modules/unistr/u8-strcmp: New file.
101411         * modules/unistr/u16-strcmp: New file.
101412         * modules/unistr/u32-strcmp: New file.
101413         * lib/unistr/u8-strcmp.c: New file.
101414         * lib/unistr/u16-strcmp.c: New file.
101415         * lib/unistr/u32-strcmp.c: New file.
101417         * modules/unistr/u8-strcpy: New file.
101418         * modules/unistr/u16-strcpy: New file.
101419         * modules/unistr/u32-strcpy: New file.
101420         * lib/unistr/u8-strcpy.c: New file.
101421         * lib/unistr/u16-strcpy.c: New file.
101422         * lib/unistr/u32-strcpy.c: New file.
101423         * lib/unistr/u-strcpy.h: New file.
101425         * modules/unistr/u8-strcspn: New file.
101426         * modules/unistr/u16-strcspn: New file.
101427         * modules/unistr/u32-strcspn: New file.
101428         * lib/unistr/u8-strcspn.c: New file.
101429         * lib/unistr/u16-strcspn.c: New file.
101430         * lib/unistr/u32-strcspn.c: New file.
101431         * lib/unistr/u-strcspn.h: New file.
101433         * modules/unistr/u8-strdup: New file.
101434         * modules/unistr/u16-strdup: New file.
101435         * modules/unistr/u32-strdup: New file.
101436         * lib/unistr/u8-strdup.c: New file.
101437         * lib/unistr/u16-strdup.c: New file.
101438         * lib/unistr/u32-strdup.c: New file.
101439         * lib/unistr/u-strdup.h: New file.
101441         * modules/unistr/u8-strlen: New file.
101442         * modules/unistr/u16-strlen: New file.
101443         * modules/unistr/u32-strlen: New file.
101444         * lib/unistr/u8-strlen.c: New file.
101445         * lib/unistr/u16-strlen.c: New file.
101446         * lib/unistr/u32-strlen.c: New file.
101447         * lib/unistr/u-strlen.h: New file.
101449         * modules/unistr/u8-strmblen: New file.
101450         * modules/unistr/u16-strmblen: New file.
101451         * modules/unistr/u32-strmblen: New file.
101452         * lib/unistr/u8-strmblen.c: New file.
101453         * lib/unistr/u16-strmblen.c: New file.
101454         * lib/unistr/u32-strmblen.c: New file.
101456         * modules/unistr/u8-strmbtouc: New file.
101457         * modules/unistr/u16-strmbtouc: New file.
101458         * modules/unistr/u32-strmbtouc: New file.
101459         * lib/unistr/u8-strmbtouc.c: New file.
101460         * lib/unistr/u16-strmbtouc.c: New file.
101461         * lib/unistr/u32-strmbtouc.c: New file.
101463         * modules/unistr/u8-strncat: New file.
101464         * modules/unistr/u16-strncat: New file.
101465         * modules/unistr/u32-strncat: New file.
101466         * lib/unistr/u8-strncat.c: New file.
101467         * lib/unistr/u16-strncat.c: New file.
101468         * lib/unistr/u32-strncat.c: New file.
101469         * lib/unistr/u-strncat.h: New file.
101471         * modules/unistr/u8-strncmp: New file.
101472         * modules/unistr/u16-strncmp: New file.
101473         * modules/unistr/u32-strncmp: New file.
101474         * lib/unistr/u8-strncmp.c: New file.
101475         * lib/unistr/u16-strncmp.c: New file.
101476         * lib/unistr/u32-strncmp.c: New file.
101478         * modules/unistr/u8-strncpy: New file.
101479         * modules/unistr/u16-strncpy: New file.
101480         * modules/unistr/u32-strncpy: New file.
101481         * lib/unistr/u8-strncpy.c: New file.
101482         * lib/unistr/u16-strncpy.c: New file.
101483         * lib/unistr/u32-strncpy.c: New file.
101484         * lib/unistr/u-strncpy.h: New file.
101486         * modules/unistr/u8-strnlen: New file.
101487         * modules/unistr/u16-strnlen: New file.
101488         * modules/unistr/u32-strnlen: New file.
101489         * lib/unistr/u8-strnlen.c: New file.
101490         * lib/unistr/u16-strnlen.c: New file.
101491         * lib/unistr/u32-strnlen.c: New file.
101492         * lib/unistr/u-strnlen.h: New file.
101494         * modules/unistr/u8-strpbrk: New file.
101495         * modules/unistr/u16-strpbrk: New file.
101496         * modules/unistr/u32-strpbrk: New file.
101497         * lib/unistr/u8-strpbrk.c: New file.
101498         * lib/unistr/u16-strpbrk.c: New file.
101499         * lib/unistr/u32-strpbrk.c: New file.
101500         * lib/unistr/u-strpbrk.h: New file.
101502         * modules/unistr/u8-strrchr: New file.
101503         * modules/unistr/u16-strrchr: New file.
101504         * modules/unistr/u32-strrchr: New file.
101505         * lib/unistr/u8-strrchr.c: New file.
101506         * lib/unistr/u16-strrchr.c: New file.
101507         * lib/unistr/u32-strrchr.c: New file.
101509         * modules/unistr/u8-strspn: New file.
101510         * modules/unistr/u16-strspn: New file.
101511         * modules/unistr/u32-strspn: New file.
101512         * lib/unistr/u8-strspn.c: New file.
101513         * lib/unistr/u16-strspn.c: New file.
101514         * lib/unistr/u32-strspn.c: New file.
101515         * lib/unistr/u-strspn.h: New file.
101517         * modules/unistr/u8-strstr: New file.
101518         * modules/unistr/u16-strstr: New file.
101519         * modules/unistr/u32-strstr: New file.
101520         * lib/unistr/u8-strstr.c: New file.
101521         * lib/unistr/u16-strstr.c: New file.
101522         * lib/unistr/u32-strstr.c: New file.
101523         * lib/unistr/u-strstr.h: New file.
101525         * modules/unistr/u8-strtok: New file.
101526         * modules/unistr/u16-strtok: New file.
101527         * modules/unistr/u32-strtok: New file.
101528         * lib/unistr/u8-strtok.c: New file.
101529         * lib/unistr/u16-strtok.c: New file.
101530         * lib/unistr/u32-strtok.c: New file.
101531         * lib/unistr/u-strtok.h: New file.
101533         * modules/unistr/u8-uctomb: New file.
101534         * modules/unistr/u16-uctomb: New file.
101535         * modules/unistr/u32-uctomb: New file.
101536         * lib/unistr/u8-uctomb.c: New file.
101537         * lib/unistr/u16-uctomb.c: New file.
101538         * lib/unistr/u32-uctomb.c: New file.
101540         * MODULES.html.sh (Unicode string functions): Add the new modules.
101542 2007-01-08  Bruno Haible  <bruno@clisp.org>
101544         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
101545         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
101546         subdirectories.
101548 2007-01-08  Karl Berry  <karl@gnu.org>
101550         * doc/error.texi: mention that main() fns must set program_name
101551         when progname is used.
101553 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
101555         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
101556         WCTYPE_H is empty, for the benefit of builds from non-distclean
101557         directories.  Problem reported by Eric Blake in
101558         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
101560 2007-01-08  Bruno Haible  <bruno@clisp.org>
101562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
101563         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
101564         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
101565         PROVIDE_CANONICALIZE_FILENAME_MODE.
101566         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
101568 2007-01-08  Bruno Haible  <bruno@clisp.org>
101570         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
101571         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
101572         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
101573         * lib/fts.c: Likewise.
101574         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
101576 2006-12-25  Bruno Haible  <bruno@clisp.org>
101578         * modules/utf8-ucs4-safe: New file.
101579         * lib/utf8-ucs4-safe.h: New file.
101580         * lib/unistr/utf8-ucs4-safe.c: New file.
101582         * modules/utf16-ucs4-safe: New file.
101583         * lib/utf16-ucs4-safe.h: New file.
101584         * lib/unistr/utf16-ucs4-safe.c: New file.
101586         * MODULES.html.sh (Unicode string functions): Add the new modules.
101588 2007-01-08  Bruno Haible  <bruno@clisp.org>
101590         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
101591         (Depends-on): Add unitypes.
101592         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
101593         (u8_mbtouc_aux): Move out to separate file.
101594         (u8_mbtouc): Use ucs4_t, uint8_t types.
101595         * lib/unistr/utf8-ucs4.c: New file.
101597         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
101598         (Depends-on): Add unitypes.
101599         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
101600         (u16_mbtouc_aux): Move out to separate file.
101601         (u16_mbtouc): Use ucs4_t, uint16_t types.
101602         * lib/unistr/utf16-ucs4.c: New file.
101604         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
101605         (Depends-on): Add unitypes.
101606         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
101607         (u8_uctomb_aux): Move out to separate file.
101608         (u8_uctomb): Use ucs4_t, uint8_t types.
101609         * lib/unistr/ucs4-utf8.c: New file.
101611         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
101612         (Depends-on): Add unitypes.
101613         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
101614         (u16_uctomb_aux): Move out to separate file.
101615         (u16_uctomb): Use ucs4_t, uint16_t types.
101616         * lib/unistr/ucs4-utf16.c: New file.
101618 2006-12-25  Bruno Haible  <bruno@clisp.org>
101620         * modules/unitypes: New file.
101621         * lib/unitypes.h: New file.
101622         * MODULES.html.sh (func_all_modules): New section "Unicode string
101623         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
101624         this section. Add unitypes.
101626 2007-01-08  Bruno Haible  <bruno@clisp.org>
101628         Avoid variable names that conflict with those from libtool.
101629         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
101630         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
101631         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
101632         library_names_spec to acl_library_names_spec, hardcode_* to
101633         acl_hardcode_*.
101634         Reported by Ralf Wildenhues.
101636 2007-01-08  Bruno Haible  <bruno@clisp.org>
101638         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
101639         definition.
101640         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
101641         definition.
101642         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
101643         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
101644         definition.
101645         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
101646         definition.
101647         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
101648         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
101649         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
101650         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
101651         definition.
101652         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
101653         definition.
101654         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
101655         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
101656         GC_USE_<algorithm>.
101657         * lib/gc-libgcrypt.c: Likewise.
101658         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
101659         * modules/gc-arctwo (configure.ac): Likewise.
101660         * modules/gc-des (configure.ac): Likewise.
101661         * modules/gc-hmac-md5 (configure.ac): Likewise.
101662         * modules/gc-hmac-sha1 (configure.ac): Likewise.
101663         * modules/gc-md2 (configure.ac): Likewise.
101664         * modules/gc-md4 (configure.ac): Likewise.
101665         * modules/gc-md5 (configure.ac): Likewise.
101666         * modules/gc-random (configure.ac): Likewise.
101667         * modules/gc-rijndael (configure.ac): Likewise.
101668         * modules/gc-sha1 (configure.ac): Likewise.
101670 2007-01-08  Bruno Haible  <bruno@clisp.org>
101672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
101673         macro definition.
101674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
101675         definition.
101676         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
101677         definition.
101678         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
101679         * modules/fcntl-safer (configure.ac): Likewise.
101680         * modules/fopen-safer (configure.ac): Likewise.
101681         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
101682         GNULIB_FWRITEERROR macro definition.
101684 2007-01-08  Bruno Haible  <bruno@clisp.org>
101686         * m4/gnulib-common.m4: New file.
101687         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
101688         (func_get_filelist): Add m4/gnulib-common.m4.
101690 2007-01-08  Bruno Haible  <bruno@clisp.org>
101692         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
101693         command.
101695 2007-01-08  Jim Meyering  <jim@meyering.net>
101697         Use a more robust test for a "can't happen" condition.
101698         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
101699         narrowed the st_size value.  Presuming the "can't happen" condition
101700         is true, that narrowing could conceivably convert an invalid st_size
101701         value into a valid one.  Instead, use a change based on Matthew
101702         Woehlke's original patch.
101704         Slight readability improvement: use an assert-like macro
101705         in place of literal "abort ()" uses.
101706         * lib/fts.c (fts_assert): Define.
101707         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
101708         Use this macro instead of a bare 'abort'.
101710 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
101712         Don't worry about using IRIX 5.3's wctype.h broken definitions;
101713         simply work around them.
101714         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
101715         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
101716         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
101717         declaring.
101718         Don't bother to define as macros, since the standard doesn't require it.
101719         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
101720         longer worry about IRIX 5.3.
101721         (HAVE_WCTYPE_CTMP_BUG): Remove.
101723 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101725         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
101726         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
101727         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
101728         Problems reported by Georg Schwarz for IRIX 5.3.
101730         * gnulib-tool (autoconf_minversion): Take the maximum version number
101731         found, not the minimum.  Problem reported by James Youngman.
101733 2007-01-03  Karl Berry  <karl@gnu.org>
101735         * doc/error.texi: new file, explaining interaction with progname.
101736         * doc/gnulib.texi: include it.  Update copyright.
101738 2007-01-03  Simon Josefsson  <simon@josefsson.org>
101740         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
101741         AC_CANONICAL_HOST, to improve autobuild outputs.
101743 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
101744             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
101746         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
101747         sockets, server sockets, and other file descriptors.  Count errors
101748         to compute the return value.  Reorder the code a bit to be easier
101749         to follow.  Don't set event bits that were not requested (except
101750         POLLERR and POLLHUP).
101752 2007-01-01  Bruno Haible  <bruno@clisp.org>
101754         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
101756 2007-01-03  Jim Meyering  <jim@meyering.net>
101758         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
101760 2007-01-02  Bruno Haible  <bruno@clisp.org>
101762         * modules/settime (Include): Require timespec.h.
101763         * modules/nanosleep (Include): Likewise.
101765 2007-01-01  Bruno Haible  <bruno@clisp.org>
101767         * gnulib-tool (func_emit_copyright_notice): Bump year.
101768         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
101770 2007-01-01  Bruno Haible  <bruno@clisp.org>
101772         Improve support for OpenBSD.
101773         * build-aux/config.rpath (libname_spec): Export.
101774         (library_names_spec): New variable. Export.
101775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
101776         library_names_spec from the config.rpath output. Locate shared library
101777         through the name pattern in library_names_spec.
101779 2007-01-01  Eric Blake  <ebb9@byu.net>
101781         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
101783 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
101785         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
101786         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
101787         assume the C locale, and avoid an "eval" that could cause trouble.
101788         Problem with SORT reported by Bob Proulx.
101790         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
101791         Define.  Trivial patch from Henning Nielsen Lund, originally
101792         sent to bug-grep@gnu.org today.
101794 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
101796         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
101797         struct stat.  Problem reported by Henning Nielsen Lund.
101798         * lib/acl.c: Include acl.h first, to check interface.  Don't
101799         bother to include sys/types.h and sys/stat.h again.
101801 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101803         Import the following change from libc; problem reported by
101804         Sven Verdoolaege.
101806         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
101808         [BZ #1373]
101809         * lib/argp.h: Remove __NTH for __argp_usage inline function.
101811 2006-12-28  Jim Meyering  <jim@meyering.net>
101813         * build-aux/announce-gen: Do not assume that the package
101814         builds any of tar.gz, tar.bz2, and .xdelta files.
101815         Suggestion from Simon Josefsson.
101817 2006-12-28  Simon Josefsson  <simon@josefsson.org>
101819         * modules/announce-gen: New file.
101821 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
101823         * lib/mbchar.h: Just include <wctype.h>; the wctype module
101824         handles its gotchas now.
101825         * lib/mbswidth.c: Likewise.
101826         * lib/wcwidth.h: Likewise.
101827         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
101828         and iswcntrl; the wctype module does this stuff now.
101829         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
101830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101831         * modules/mbchar (Depends-on): Add wctype.
101832         * modules/mbswidth (Depends-on): Likewise.
101833         * modules/wcwidth (Depends-on): Likewise.
101835 2006-12-27  Eric Blake  <ebb9@byu.net>
101837         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
101838         module uses more than what <wctype.h> is required to provide.
101840 2006-12-26  Eric Blake  <ebb9@byu.net>
101842         * gnulib-tool (sed_extract_prog): Avoid space-tab.
101844 2006-12-26  Eric Blake  <ebb9@byu.net>
101846         * modules/absolute-header: New module.
101847         * modules/fcntl (Depends-on): Depend on it.
101848         * modules/inttypes (Depends-on): Likewise.
101849         * modules/stdint (Depends-on): Likewise.
101850         * modules/sys_stat (Depends-on): Likewise.
101851         * modules/wctype (Depends-on): Likewise.
101852         * MODULES.html.sh (Support for building libraries and
101853         executables): Document it.
101855 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
101857         * gnulib-tool (SED): Remove, undoing previous change.
101858         The problem was that it broke coreutils on Solaris, because
101859         "sed --posix" leaked into a makefile.
101860         (sed): New alias, if 'alias' and GNU sed.
101862 2006-12-24  Jim Meyering  <jim@meyering.net>
101864         Work around an fchownat bug in glibc-2.4:
101865         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
101866         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
101867         in spite of the -P option.
101868         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
101869         New macros.
101870         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
101871         * modules/openat (Files): Add lib/fchownat.c.
101872         * lib/openat.c (fchownat): Don't define here.  Move to...
101873         * lib/fchownat.c: ...this new file.
101875 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101877         Fix bug reported by Bruno Haible in
101878         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
101879         where quotearg.c didn't compile on Mac OS X 10.2 because it
101880         lacks <wchar.h> and wint_t.
101881         * lib/wctype_.h (__wctype_wint_t): New type.
101882         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
101883         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
101884         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
101885         Arg is now of type __wctype_wint_t, not wint_t.
101886         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
101887         substitute HAVE_WINT_T.
101888         * modules/wctype (Files): Add m4/wint_t.m4.
101889         (wctype.h): Substitute HAVE_WINT_T.
101891 2006-12-23  Bruno Haible  <bruno@clisp.org>
101893         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
101895 2006-12-23  Bruno Haible  <bruno@clisp.org>
101897         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
101898         S_ISLNK.
101899         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
101900         mingw.
101902 2006-12-22  Bruno Haible  <bruno@clisp.org>
101904         * lib/copy-file.c: Include acl.h.
101905         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
101906         Close the file descriptors only after being done with copy_acl.
101907         * modules/copy-file (Depends-on): Add acl.
101909 2006-12-22  Bruno Haible  <bruno@clisp.org>
101911         * gnulib-tool (SED): New variable.
101912         Use $SED instead of sed everywhere.
101914 2006-12-22  Bruno Haible  <bruno@clisp.org>
101916         * modules/no-c++: New file.
101917         * m4/no-c++.m4: New file.
101918         * MODULES.html.sh (Support for building libraries and executables):
101919         Add no-c++.
101921 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
101923         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
101924         Include <limits.h>, and use its INT_MAX to rewrite the
101925         j loop so that it does not overflow 'int'.  Problem reported by
101926         Ralf Wildenhues in
101927         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
101928         Play it safe by shifting left by 1 rather than multiplying by 2,
101929         as GCC is less likely to optimize this away when the value
101930         is signed (when it assumes overflow leads to undefined behavior).
101931         Also, don't assume time_t uses two's complement.
101933 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
101935         * MODULES.html.sh: New module wctype.
101936         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
101937         * lib/fnmatch.c: Don't bother to include <wchar.h> before
101938         <wctype.h>, since the new wctype module should fix this.
101939         * lib/quotearg.c: Include <wctype.h> unconditionally, since
101940         the wctype module should arrange for it.
101941         * lib/regex_internal.h: Likewise.
101942         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
101943         since the wctype module should handle this now.
101944         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
101945         * modules/fnmatch (Depends-on): Add wctype.
101946         * modules/quotearg (Depends-on): Likewise.
101947         * modules/regex (Depends-on): Likewise.
101949 2006-12-19  Bruno Haible  <bruno@clisp.org>
101951         * lib/strdup.h [C++]: Wrap definitions in extern "C".
101952         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
101954 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101956         * modules/savewd (Depends-on): Fix dependency on fcntl.
101958 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
101960         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
101961         conforms to C99, rather than relying on the user's environment
101962         setting of STDINT_H.
101964 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
101965         and Eric Blake  <ebb9@byu.net>
101967         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
101968         This is more consistent with the other defines here.
101969         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
101970         Port to z/OS.  Problem reported by Paul Gilmartin.
101971         Change local vars to use gl_ prefix rather than ac_.
101972         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
101973         with other defines.
101974         * modules/double-slash-root: New module.
101975         * modules/dirname (Files): Remove m4/double-slash-root.m4.
101976         (Depends-on): Add double-slash-root.
101977         * MODULES.html.sh (File system functions): Mention new module.
101979 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
101981         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
101982         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
101983         This is for the benefit of gzip, which doesn't do i18n.
101985 2006-12-12  Jim Meyering  <jim@meyering.net>
101987         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
101988         Reported by Andreas Schwab <schwab@suse.de>.
101990 2006-12-12  Bruno Haible  <bruno@clisp.org>
101992         Merge these changes.
101993         2006-09-05  Bruno Haible  <bruno@clisp.org>
101994         * lib/iconvme.c (iconv_string): No need to save and restore errno when
101995         iconv_alloc succeeded.
101996         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
101997         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
101998         test for " && dest " at the end - dest is always != NULL there. Call
101999         iconv with 4xNULL arguments initially, to reset the state. Call iconv
102000         with 2xNULL arguments, also to flush the state storage. Handle the
102001         IRIX iconv behaviour. Realloc the final result, to throw away unused
102002         memory.
102004 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
102006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
102007         and fchmodat unconditionally, since glibc 2.4 has them.
102008         Problem reported by Arkadiusz Miskiewicz.
102010 2006-12-10  Bruno Haible  <bruno@clisp.org>
102012         * gnulib-tool (func_import): Show the include files only for those
102013         modules that are copied and specified.
102014         Reported by Karl Berry.
102016 2006-12-08  Jim Meyering  <jim@meyering.net>
102018         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
102019         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
102021         * build-aux/announce-gen: Add two new options, both optional:
102022         --bootstrap-tools=TOOL_LIST
102023               a comma-separated list of tools, e.g.,
102024               autoconf,automake,bison,gnulib
102025         --gnulib-snapshot-date=DATE
102026               if gnulib is in the bootstrap tool list,
102027               then report this as the snapshot date.
102028               If not specified, use the current date/time.
102029               If you specify a date here, be sure it's UTC.
102031 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102033         * tests/test-argp-2.sh: Fix test to match actual output.
102034         (func_compare): Fix sed script to be portable.
102036 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
102038         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
102039         workaround for this case.  It is not autoconfigured now; offhand
102040         it's hard to see how to autoconfigure it.
102042 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
102044         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
102045         a directory that is about to be chowned.  Such a directory's
102046         initial file permissions should permit the owner only and this
102047         should not be changed until after the chown, since the group and
102048         other bits would be incorrect if they granted permission before
102049         the chown.
102051         Fix porting problem for iswctype reported by Georg Schwarz in:
102052         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
102053         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
102054         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
102055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
102056         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102058 2006-12-03  Jim Meyering  <jim@meyering.net>
102060         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
102061         p->fts_statp may not yet be defined.
102062         (fts_read): Instead, set it in the caller, once p->fts_statp is
102063         sure to be defined, and corresponds to a top-level directory.
102064         This bug made du -x fail.  Here's the coreutils test case:
102065         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
102066         Reported by Mike Frysinger.
102068 2006-12-01  Jim Meyering  <jim@meyering.net>
102070         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
102071         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
102072         Reported by Simon Josefsson.
102074 2006-11-30  Jim Meyering  <jim@meyering.net>
102076         * m4/warning.m4: Use the all-permissive copyright notice
102077         recommended by RMS (rather than LGPL).
102078         * m4/vararrays.m4: Likewise.
102079         * m4/flexmember.m4: Likewise.
102081 2006-11-29  Bruno Haible  <bruno@clisp.org>
102083         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102084         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
102085         using +=.
102086         Reported by Simon Josefsson <simon@josefsson.org>.
102088 2006-11-28  James Youngman  <jay@gnu.org>
102090         * README: Advise users that they might find the bug-gnulib@gnu.org
102091         and autotools-announce@gnu.org mailing lists useful.
102093 2006-11-28  Bruno Haible  <bruno@clisp.org>
102095         * m4/ptrdiff_max.m4: Remove file.
102097 2006-11-21  Bruno Haible  <bruno@clisp.org>
102099         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
102100         _AC_COMPUTE_INT.
102101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102102         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
102103         _AC_COMPUTE_INT.
102104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102105         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
102106         _AC_COMPUTE_INT.
102107         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102109 2006-11-28  Jim Meyering  <jim@meyering.net>
102111         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
102112         warning from "gcc -Wshadow" about shadowing the builtin.
102114 2006-11-27  Bruno Haible  <bruno@clisp.org>
102116         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
102117         _AC_COMPUTE_INT.
102118         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
102120 2006-11-27  Bruno Haible  <bruno@clisp.org>
102121             Paul Eggert  <eggert@cs.ucla.edu>
102123         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
102125 2006-11-26  Bruno Haible  <bruno@clisp.org>
102127         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
102128         noinst_LTLIBRARIES.
102130 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
102131             Bruno Haible  <bruno@clisp.org>
102133         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
102134         if compiling with "gcc -ansi".
102136 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
102138         Fix some incompatibilities with gcc -ansi -pedantic.
102139         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
102140         if compiling pedantically with GCC, unless it's C99 or later.
102141         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
102142         it mishandles gcc -ansi -pedantic as well.
102143         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
102144         if gcc -pedantic.
102145         * lib/regexec.c (check_node_accept_bytes): Don't use auto
102146         initializers for struct if -pedantic, unless it's C99 or later.
102148 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
102150         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
102151         Don't close an fd more than once. Identical atimes indicate
102152         success, not failure.
102154 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
102156         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
102158 2006-11-23  Jim Meyering  <jim@meyering.net>
102160         * build-aux/announce-gen: New file.  From coreutils.
102162 2006-11-22  Jim Meyering  <jim@meyering.net>
102164         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
102165         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
102166         (fts_read): Use a temporary to narrow the overused st_size member
102167         before using it in a switch statement.  Reported by Matthew Woehlke.
102169         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
102170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
102172 2006-11-20  Bruno Haible  <bruno@clisp.org>
102174         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
102175         changequote instead of pairs of brackets.
102176         Reported by Andreas Schwab <schwab@suse.de>.
102178 2006-11-21  Jim Meyering  <jim@meyering.net>
102180         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
102181         so as to remain compatible with older compilers.
102182         Patch from Michael Deutschmann.
102184 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102186         * MODULES.html.sh (File system functions): Add openat.
102188         * lib/openat.h (rpl_fstatat): New macro, if
102189         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
102190         (fstatat): Define to rpl_fstatat under the same conditions,
102191         unless COMPILING_FSTATAT.
102192         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
102193         seems to have the bug.
102194         * lib/fstatat.c: New file.
102195         * modules/openat (Files): Add it.
102197 2006-11-20  Bruno Haible  <bruno@clisp.org>
102199         * Makefile: New file.
102201 2006-11-20  Jim Meyering  <jim@meyering.net>
102203         The beginnings of syntax-related checks for gnulib.
102204         * lib/Makefile: New file.
102205         * lib/t-idcache: New script.  Ensure that the two halves of
102206         idcache.c stay in sync.
102208         * lib/idcache.c: Adjust comments in user- and group- portions to
102209         be more accurate, and to be consistent with one another.
102211 2006-11-20  Jim Meyering  <jim@meyering.net>
102213         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
102214         continue using the flexible array member (thus, this module performs
102215         half as many malloc calls), with the addition that...
102216         (getgroup, getuser): Consistently record a non-match via an empty
102217         "name" string, and map an empty string match to a NULL return value.
102218         * modules/idcache (Depends-on): Re-add flexmember.
102220         * lib/idcache.c (getuser): Remove all uses of the register keyword.
102221         (getuidbyname, getgroup, getgidbyname): Likewise.
102223         Use cleaner syntax: NULL rather than 0.
102224         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
102226 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102228         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
102229         It mishandled the case where the group was missing.
102230         Problem reported by Greg Schafer.
102231         * modules/idcache: Likewise.
102233 2006-11-18  Jim Meyering  <jim@meyering.net>
102235         * check-module (%exempt_header): Add exception for some
102236         conditionally-included headers.
102238         * modules/i-ring (Depends-on): Add verify.
102239         (License): Change to LGPL.
102241 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102243         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
102244         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
102245         and inttostr.h.  Use snprintf rather than uinttostr, so that
102246         LGPLed code doesn't depend on GPLed.
102248 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102250         * modules/inline (License): Change from GPL to LGPL.
102252 2006-11-17  Jim Meyering  <jim@meyering.net>
102254         * modules/d-type (License): Switch to LGPL.
102256 2006-11-15  Bruno Haible  <bruno@clisp.org>
102258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
102260 2006-11-15  Eric Blake  <ebb9@byu.net>
102262         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
102263         the module dependency.
102265 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102266             Bruno Haible  <bruno@clisp.org>
102268         * gnulib-tool (func_create_testdir): Add license consistency check.
102270 2006-11-15  Eric Blake  <ebb9@byu.net>
102272         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
102273         random "(cached)" in configure output.
102275 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102277         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
102278         test for conforming inttypes.h is both announced and cached.
102280         * MODULES.html.sh (seen_modules, seen_files): New variables.
102281         (func_module): Rewrite to use a few less gnulib-tool and sed
102282         invocations.  Avoid a couple of quadratic algorithms for ...
102283         (missed_modules, missed_files): ... these, with ...
102284         (func_append, func_tmpdir): ... these new functions, from
102285         gnulib-tool.  Analogously, install traps for cleanup.
102287         * tests/test-gc.c (main): Remove unused variables.
102288         * tests/test-read-file.c: Include stdlib.h, for 'free'.
102290 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
102292         * modules/inttostr (License): Change to LGPL.
102294 2006-11-14  Eric Blake  <ebb9@byu.net>
102296         * modules/tempname (License): Change to LGPL.
102298 2006-11-14  Eric Blake  <ebb9@byu.net>
102300         * doc/functions.texi (Function Portability): *printf functions on
102301         Cygwin now understand all POSIX size specifiers.
102303 2006-11-14  Bruno Haible  <bruno@clisp.org>
102305         * modules/c-ctype (License): Change to LGPL.
102307 2006-11-12  Bruno Haible  <bruno@clisp.org>
102309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
102310         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
102311         for GNOME libraries, for which the include files are installed in
102312         subdirectories of $prefix/include.
102314 2006-11-12  Bruno Haible  <bruno@clisp.org>
102316         * m4/lib-link.m4: Require at least autoconf-2.54.
102317         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
102318         name to underscores for the --with option.
102320 2006-11-13  Bruno Haible  <bruno@clisp.org>
102322         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
102323         the tests directory.
102324         Reported by Ralf Wildenhues.
102326 2006-11-13  Bruno Haible  <bruno@clisp.org>
102328         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
102329         (func_emit_initmacro_end): Undo the override here.
102330         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
102331         Works around the famous automake error in coreutils.
102333 2006-11-13  Eric Blake  <ebb9@byu.net>
102335         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
102336         element, not its node.
102338 2006-11-12  Bruno Haible  <bruno@clisp.org>
102340         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
102341         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
102343 2006-11-12  Bruno Haible  <bruno@clisp.org>
102345         * gnulib-tool: New option --local-symlink.
102346         (func_usage): Document it.
102347         (lsymbolic): New variable.
102348         (func_import, func_create_testdir): If --symlink was not specified,
102349         test whether --local-symlink was specified and the file comes from
102350         the local_gnulib_dir.
102352 2006-11-12  Bruno Haible  <bruno@clisp.org>
102354         * gnulib-tool (func_ln): New function.
102355         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
102357 2006-11-12  Bruno Haible  <bruno@clisp.org>
102359         Finish support for source files in subdirectories.
102360         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
102361         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
102362         AUTOMAKE_OPTIONS.
102363         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
102365 2006-11-12  Bruno Haible  <bruno@clisp.org>
102367         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102368         EXTRA_lib_SOURCES augmentation.
102369         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
102371 2006-11-12  Jim Meyering  <jim@meyering.net>
102373         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
102374         file descriptors.  This also averts a failure on systems with
102375         native openat support when a traversed directory lacks "x" access.
102376         * lib/fts_.h: Include "i-ring.h"
102377         (struct FTS) [fts_fd_ring]: New member.
102378         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
102379         (FCHDIR): Add parentheses.
102380         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
102381         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
102382         When descending, rather than simply closing the previous
102383         fts_cwd_fd value, push that file descriptor onto the ring.
102384         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
102385         (fts_open): Initialize the new fd_ring member.
102386         (fts_close): Clear the ring.
102387         (fts_safe_changedir): When possible, use our new fd_ring to skip
102388         the diropen and fstat and dev/ino comparison that would normally
102389         accompany a virtual `chdir ("..")'.
102391         * modules/fts (Depends-on): Add i-ring.
102392         * modules/i-ring: New module.
102393         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
102394         * m4/i-ring.m4: New file.
102396 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102398         * gnulib-tool (func_create_testdir): Fix replacement of
102399         `build-aux' in configure.ac.  Run autotools in gltests
102400         subdirectory.
102401         (func_create_testdir, func_create_megatestdir, test): There is
102402         no need for '--force' in most autotool invocations in a new
102403         tree.  Actually fail the whole test if any of the tools, or the
102404         configure or make stages fail.
102406         Sync from Automake.
102407         * build-aux/gnupload: Revert last change.  Add pointer to upload
102408         instructions of the GNU Maintenance Instructions.
102409         Suggestion by Karl Berry.
102411 2006-11-10  Jim Meyering  <jim@meyering.net>
102413         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
102415 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102417         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
102418         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
102419         (bind_textdomain_codeset) [! ENABLE_NLS]:
102420         Evaluate all the arguments.  That way, callers get compatible behavior
102421         if the arguments have side effects.  Also, it avoids some GCC
102422         diagnostics in some cases; Joel E. Denny reported problems when Bison
102423         was configured with --enable-gcc-warnigs.
102425 2006-11-10  Jim Meyering  <jim@meyering.net>
102427         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
102428         relevant options in CFLAGS (like -O, -fno-inline) are taken into
102429         account.
102431 2006-11-10  Jim Meyering  <jim@meyering.net>
102433         * modules/inline: New file/module.
102434         * modules/xalloc (Files): Remove m4/inline.m4.
102435         (Depends-on): Add inline, instead.
102436         * modules/oset: Likewise.
102437         * modules/list: Likewise.
102439 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102441         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
102442         Problem reported by Matthew Woehlke.
102444 2006-11-09  Bruno Haible  <bruno@clisp.org>
102446         * lib/tempname.c (gen_tempname): Remove variant that invokes
102447         __gen_tempname.
102448         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
102449         __gen_tempname.
102451 2006-11-08  Bruno Haible  <bruno@clisp.org>
102453         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
102454         to 'yes' instead of 'cross-compiling'.
102456 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
102458         * lib/quotearg.h (quotearg_free): New decl.
102459         * lib/quotearg.c (quotearg_free): New function.
102460         (slot0, nslots, slotvec0, slotvec):
102461         Now file-scope so that quotearg_free can get at them.
102463 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102465         Sync from Automake.
102466         * build-aux/gnupload: Add missing 'gnu' to example URL.
102467         Report by Karl Berry.
102469 2006-11-08  Bruno Haible  <bruno@clisp.org>
102471         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
102472         Suggested by Paul Eggert.
102474 2006-11-08  Jim Meyering  <jim@meyering.net>
102476         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
102477         It's already included if !_LIBC.
102478         (fts_safe_changedir): Add a comment.
102480 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
102482         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
102483         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
102484         Matthew Woehlke.
102486         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
102487         definitions up, to avoid colliding with change below.
102488         (static_inline) [HAVE_INLINE]: New macro.
102489         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
102490         Provide extern decls when !HAVE_INLINE.  Do not define unless
102491         static_inline is defined, either by us or by xmalloc.c.  Use
102492         static_inline rather than static inline.
102493         (XCALLOC): Optimize sizeof(T) = 1 case.
102494         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
102496 2006-11-07  Bruno Haible  <bruno@clisp.org>
102498         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
102499         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
102500         AC_C_INLINE.
102501         * modules/xalloc (Files): Add m4/inline.m4.
102503 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102505         * README: Fix typo.
102506         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
102507         (Miscellanous Notes): ...from this.
102509 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
102511         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
102512         Mention that offsetof should be used instead of sizeof.
102513         From Bruno Haible.
102515 2006-11-07  Bruno Haible  <bruno@clisp.org>
102517         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
102519 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
102521         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
102522         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
102523         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
102524         (gl_tree_add_before, gl_tree_add_after):
102525         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
102526         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
102527         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102528         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
102529         (gl_linked_add_after, gl_linked_add_at): Likewise.
102530         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
102531         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
102532         (gl_tree_add_before, gl_tree_add_after): Likewise.
102533         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
102534         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
102535         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
102537 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102539         * lib/gl_oset.h: Use C comment style, not C++ comment style.
102541 2006-11-06  Bruno Haible  <bruno@clisp.org>
102543         * m4/inline.m4: New file.
102544         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
102545         * modules/list (Files): Add m4/inline.m4.
102546         * modules/oset (Files): Likewise.
102548 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
102550         * lib/idcache.c: Include <stddef.h>, for offsetof.
102551         (struct userid.name): Change from char * to a flexible array member.
102552         All uses changed.
102553         * modules/idcache (Depends-on): Add flexmember.
102555         * MODULES.html.sh (Core language properties): New module flexmember.
102556         * modules/flexmember, m4/flexmember.m4: New files.
102558         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
102559         inline functions that are identical with the old xnmalloc_inline,
102560         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
102561         that we can avoid some unnecessary integer multiplications and
102562         divisions in the common case where the element size is known at
102563         compile time.
102564         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
102565         needed.
102566         (xnboundedmalloc): Remove.
102567         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
102568         arguments, for consistency with rest of this header.
102569         (xcharalloc): Rewrite using XNMALLOC.
102570         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
102571         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
102572         versions have been moved to lib/xalloc.h and renamed to be the
102573         non-*_inline versions.
102574         (xmalloc, xrealloc): Implement without reference to the xnmalloc
102575         and xnrealloc functions, since those functions are now inline and
102576         now call us.
102577         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
102578         renaming described above.
102579         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
102580         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
102581         captures the dependency in AC_C_INLINE.
102583         New module canonicalize-lgpl, proposed by Charles Wilson in
102584         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
102585         with a few small changes afterwards.
102586         * MODULES.html.sh (File system functions): New module
102587         canonicalize-lgpl.
102588         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
102589         and canonicalize_file_name.
102590         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
102591         * modules/canonicalize-lgpl: New files.
102593 2006-11-05  Bruno Haible  <bruno@clisp.org>
102595         * gnulib-tool (func_import, func_create_testdir): Create directories
102596         also for files in subdirectories of lib/.
102598 2006-11-05  Bruno Haible  <bruno@clisp.org>
102600         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
102601         ANSI C compliant.
102603 2006-11-03  Bruno Haible  <bruno@clisp.org>
102605         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
102606         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
102607         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
102608         (xnboundedmalloc): New inline function.
102609         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
102610         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
102611         xmalloc.
102612         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
102613         xmalloc.
102614         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
102615         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
102616         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
102617         xmalloc.
102618         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
102619         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
102620         xmalloc.
102621         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
102622         gl_tree_add_after): Use XMALLOC instead of xmalloc.
102623         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
102624         xmalloc.
102625         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
102626         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
102627         gl_tree_add_after): Use XMALLOC instead of xmalloc.
102628         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
102629         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
102630         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
102631         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
102633 2006-11-03  Bruno Haible  <bruno@clisp.org>
102635         * lib/c-ctype.h [C++]: Define functions without name mangling.
102636         * lib/fwriteerror.h [C++]: Likewise.
102637         * lib/gcd.h [C++]: Likewise.
102638         * lib/linebreak.h [C++]: Likewise.
102640 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
102642         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
102643         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
102644         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
102645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
102646         Check for functions and headers just once.
102647         Check for declaration of canonicalize_file_name.
102648         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
102650 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
102652         * gnulib-tool (func_import): Fix typo in actioncmd.
102654 2006-11-02  Bruno Haible  <bruno@clisp.org>
102656         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
102657         newline sequence in the Makefile.am snippet as a space, like "make"
102658         does.
102659         Reported by Roger Persson <perrog@gmail.com>.
102661 2006-11-01  Bruno Haible  <bruno@clisp.org>
102663         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
102664         already declared in <string.h>.
102665         * lib/strcase.h (strncasecmp): Don't declare it if yes.
102667 2006-11-01  Bruno Haible  <bruno@clisp.org>
102669         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
102670         * lib/strcase.h: Include <string.h>.
102671         (strcasecmp): Define to rpl_strcasecmp here.
102673 2006-11-01  Bruno Haible  <bruno@clisp.org>
102675         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
102677 2006-11-01  Eric Blake  <ebb9@byu.net>
102679         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
102681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
102683 2006-10-29  Bruno Haible  <bruno@clisp.org>
102685         Make it compile in C++ mode.
102686         * lib/full-write.c (full_rw): Add a cast.
102688 2006-11-01  Bruno Haible  <bruno@clisp.org>
102690         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
102691         be POSIX compliant.
102692         Reported by Roger Persson <perrog@gmail.com>.
102694 2006-11-01  Eric Blake  <ebb9@byu.net>
102696         * lib/getopt_.h: Fix comments.
102698 2006-10-31  Eric Blake  <ebb9@byu.net>
102700         * modules/tmpdir (Depends-on): Add sys_stat.
102701         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
102702         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
102703         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
102704         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
102705         tempname.
102707 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
102709         Avoid some C++ diagnostics reported by Bruno Haible.
102710         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
102711         xmalloc.
102712         (quotearg_alloc): Use xcharalloc rather than xmalloc.
102713         (struct slotvec): Move to top level.
102714         (quotearg_n_options): Rewrite to avoid xmalloc.
102715         * lib/xalloc.h (xcharalloc): New function.
102716         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
102717         [defined __cplusplus]: Add function template that provides result
102718         type propagation.  This part of the change is from Bruno Haible.
102720 2006-10-29  Bruno Haible  <bruno@clisp.org>
102722         Make it compile in C++ mode.
102723         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
102724         * lib/strnlen1.c (strnlen1): Cast memchr result.
102725         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
102726         * lib/clean-temp.c (string_equals, string_hash): Add casts.
102727         (create_temp_dir): Rename local variable 'template'.
102728         (compile_csharp_using_sscli): Add cast.
102729         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
102730         * lib/findprog.c (find_in_path): Likewise.
102731         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
102732         * lib/wait-process.c (register_slave_subprocess): Likewise.
102734 2006-10-22  Bruno Haible  <bruno@clisp.org>
102736         * modules/tsearch: New file.
102737         * lib/tsearch.h: New file.
102738         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
102739         * m4/tsearch.m4: New file.
102740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
102742 2006-10-29  Eric Blake  <ebb9@byu.net>
102744         * lib/arcfour.c: Assume config.h.
102745         * lib/arctwo.c: Likewise.
102746         * lib/base64.c: Likewise.
102747         * lib/check-version.c: Likewise.
102748         * lib/crc.c: Likewise.
102749         * lib/des.c: Likewise.
102750         * lib/gc-gnulib.c: Likewise.
102751         * lib/gc-libgcrypt.c: Likewise.
102752         * lib/gc-pbkdf2-sha1.c: Likewise.
102753         * lib/getaddrinfo.c: Likewise.
102754         * lib/getdelim.c: Likewise.
102755         * lib/getline.c: Likewise.
102756         * lib/hmac-md5.c: Likewise.
102757         * lib/hmac-sha1.c: Likewise.
102758         * lib/iconvme.c: Likewise.
102759         * lib/md2.c: Likewise.
102760         * lib/md4.c: Likewise.
102761         * lib/memxor.c: Likewise.
102762         * lib/read-file.c: Likewise.
102763         * lib/readline.c: Likewise.
102764         * lib/rijndael-alg-fst.c: Likewise.
102765         * lib/rijndael-api-fst.c: Likewise.
102766         * lib/xgetdomainname.c: Likewise.
102768 2006-10-28  Eric Blake  <ebb9@byu.net>
102770         * lib/xstrndup.c: Assume config.h.
102772 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102774         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
102775         stat-macros.h is now for our own macros, whereas stat_h is for
102776         macros in the <sys/stat.h> name space.
102777         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
102778         (STAT_MACROS_H): Remove.
102779         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
102780         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
102781         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
102782         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
102783         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
102784         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
102785         Move these macros to ...
102786         * lib/stat_.h: here.  Don't include stat-macros.h.
102787         * lib/canonicalize.c: Don't include stat-macros.h.
102788         * lib/chown.c: Likewise.
102789         * lib/euidaccess.c: Likewise.
102790         * lib/file-type.c: Likewise.
102791         * lib/filemode.c: Likewise.
102792         * lib/glob.c: Likewise.
102793         * lib/isapipe.c: Likewise.
102794         * lib/lchown.c: Likewise.
102795         * lib/lstat.c: Likewise.
102796         * lib/mkdir-p.c: Likewise.
102797         * lib/rmdir.c: Likewise.
102798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
102799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
102800         unless mkdir isn't declared, to speed up 'configure'.
102801         Always create sys/stat.h, since it's unlikely any real sys/stat.h
102802         would define all the S_* symbols.
102803         * modules/canonicalize (Depends-on):
102804         Depend on sys_stat, not stat-macros.
102805         * modules/chown: Likewise.
102806         * modules/euidaccess: Likewise.
102807         * modules/filemode: Likewise.
102808         * modules/file-type: Likewise.
102809         * modules/glob: Likewise.
102810         * modules/isapipe: Likewise.
102811         * modules/lchown: Likewise.
102812         * modules/lstat: Likewise.
102813         * modules/mkancesdirs: Likewise.
102814         * modules/rmdir: Likewise.
102815         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
102816         * modules/modechange: Likewise.
102817         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
102818         (configure.ac): Remove gl_STAT_MACROS.
102819         * modules/sys_stat (Depends-on): Remove stat-macros.
102821 2006-10-27  Bruno Haible  <bruno@clisp.org>
102823         * m4/signed.m4: Remove file.
102824         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
102825         invocation.
102826         * modules/vasnprintf (Files): Remove m4/signed.m4.
102828 2006-10-27  Bruno Haible  <bruno@clisp.org>
102830         Update to GNU gettext 0.16.
102831         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
102832         m4/inttypes-h.m4, m4/signed.m4.
102833         * m4/gettext.m4: Update to GNU gettext 0.16.
102834         * m4/intl.m4: New file, from GNU gettext.
102835         * m4/intldir.m4: New file, from GNU gettext.
102836         * config/srclist.txt: Update
102838 2006-10-27  Eric Blake  <ebb9@byu.net>
102840         * MODULES.html.sh: Document tempname.
102841         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
102842         dependencies.
102843         (Files): Move lib/tempname.c...
102844         * modules/tempname: ...to this new module.
102845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
102846         (gl_PREREQ_TEMPNAME): Move...
102847         * m4/tempname.m4: ...to this new file.
102848         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
102849         * modules/sys_stat (Depends-on): Add stat-macros.
102850         * lib/stat_.h (includes): Pick up stat macros.
102851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
102852         if stat macros are broken.
102853         * lib/tempname.c (includes): No need to include "stat-macros.h".
102854         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
102855         (direxists, __path_search) [!_LIBC]: Don't compile these in
102856         gnulib; the tmpdir module covers that.
102857         * lib/tempname.h: New file.
102859 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
102861         * COPYING: Explain how gnulib-tool converts licence headers.
102862         Almost all wording by Eric Blake.
102864 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
102866         * lib/mbchar.h (is_basic_table): Make read-only.
102867         * lib/mbchar.c (is_basic_table): Likewise.
102868         Reported by John Darrington.
102870 2006-10-25  Bruno Haible  <bruno@clisp.org>
102872         * lib/progname.h (set_program_name): Undefine before defining.
102874 2006-10-25  Bruno Haible  <bruno@clisp.org>
102876         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
102877         false for non-gcc C++ compilers.
102878         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
102880 2006-10-24  Bruno Haible  <bruno@clisp.org>
102882         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
102883         iconv implementations like Irix iconv.
102885 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102887         * modules/vararrays: New file.
102888         * m4/vararrays.m4: New file, taken from diffutils.
102889         * MODULES.html.sh: New module vararrays.
102891 2006-10-24  Karl Berry  <karl@gnu.org>
102893         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
102894         Don't call GNU Unix.
102896 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102898         * users.txt: Add Libtool.
102900         Sync from Libtool:
102902         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102904         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
102905         to gnulib's policy of including config.h unconditionally.
102907 2006-10-24  Bruno Haible  <bruno@clisp.org>
102909         * modules/wcwidth (Files): Add m4/wint_t.m4.
102910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
102911         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
102913 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102915         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
102916         to pacify GCC with some -W flags enabled.  Problem reported by
102917         Bruno Haible.
102919 2006-10-24  Jim Meyering  <jim@meyering.net>
102921         * MODULES.html.sh: Remove uinttostr.  It's not a module.
102922         Reported by Karl Berry.
102924 2006-10-23  Bruno Haible  <bruno@clisp.org>
102926         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
102928 2006-10-24  Bruno Haible  <bruno@clisp.org>
102930         * lib/gl_list.h: Use C comment style, not C++ comment style.
102932 2006-10-23  Eric Blake  <ebb9@byu.net>
102934         * lib/getaddrinfo.c (includes): Add missing include.
102936 2006-10-23  Bruno Haible  <bruno@clisp.org>
102937             Paul Eggert  <eggert@cs.ucla.edu>
102939         Ability to rename obstack_free.
102940         * lib/obstack.h (__obstack_free): New macro. Declare instead of
102941         obstack_free.
102942         (obstack_free): Invoke the __obstack_free macro.
102943         * lib/obstack.c (obstack_free): Use __obstack_free macro.
102945 2006-10-23  Bruno Haible  <bruno@clisp.org>
102946             Paul Eggert  <eggert@cs.ucla.edu>
102948         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
102949         __argc, __argv from the declaration. (They are defined as macros on
102950         mingw.)
102952 2006-10-22  Bruno Haible  <bruno@clisp.org>
102954         * doc/gnulib-intro.texi: New file.
102955         * doc/gnulib.texi: Include it.
102957 2006-10-21  Bruno Haible  <bruno@clisp.org>
102959         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
102960         "Introduction", "Miscellanous Notes", "Particular Modules".
102962 2006-10-21  Bruno Haible  <bruno@clisp.org>
102964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102965         Change mostlyclean-local rule to avoid sh syntax error from bash
102966         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
102968 2006-10-23  Jim Meyering  <jim@meyering.net>
102970         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
102971         in place of snprintf.
102973         * modules/inttostr (Files): Add lib/uinttostr.c.
102974         * lib/uinttostr.c (inttostr): New file/function.
102975         * lib/inttostr.h (uinttostr): Declare.
102976         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
102977         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
102978         Add uinttostr.
102979         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
102981 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
102983         * lib/canonicalize.c (ELOOP): Define if not already defined.
102984         Problem reported by Bruno Haible in
102985         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
102987 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
102989         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
102990         Problem reported by Perry Smith and Ville Laurikari.
102992         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
102993         uses.
102995 2006-10-19  Bruno Haible  <bruno@clisp.org>
102997         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
102998         for mingw.
103000 2006-10-19  Bruno Haible  <bruno@clisp.org>
103002         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
103003         Needed for mingw.
103005 2006-10-19  Bruno Haible  <bruno@clisp.org>
103007         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
103009 2006-10-19  Bruno Haible  <bruno@clisp.org>
103011         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
103012         it.
103014 2006-10-19  Bruno Haible  <bruno@clisp.org>
103016         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
103017         invocation.
103019 2006-10-19  Bruno Haible  <bruno@clisp.org>
103021         * gnulib-tool (func_create_testdir): Don't include ftruncate and
103022         mountlist by default.
103024 2006-10-16  Bruno Haible  <bruno@clisp.org>
103026         * lib/c-strstr.c: Include c-strstr.h.
103028 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
103030         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
103031         in a slash.
103033 2006-10-18  Bruno Haible  <bruno@clisp.org>
103035         * lib/lock.h [C++]: Wrap definitions in extern "C".
103037 2006-10-18  Bruno Haible  <bruno@clisp.org>
103039         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
103040         gl_LIBOBJS list.
103042 2006-10-18  Bruno Haible  <bruno@clisp.org>
103044         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
103046 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
103048         * lib/xstrtol.h: Include gettext.h.
103049         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
103050         Problem reported by Eric Blake.
103051         * modules/xstrtol (Depends-on): Add gettext-h.
103053 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
103055         * lib/strftime.c (advance): New macro.
103056         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
103057         incomplete type, so you can't add 0 to it.  Problem and patch
103058         reported by Eelco Dolstra for dietlibc.
103060 2006-10-18  Jim Meyering  <jim@meyering.net>
103062         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
103063         type for a local, and rename it: s/up/user_proc/.
103065 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
103067         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
103068         READ_UTMP_USER_PROCESS.
103069         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
103071 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
103073         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
103074         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
103076 2006-10-17  Eric Blake  <ebb9@byu.net>
103078         * lib/sigprocmask.c (sigprocmask): Fix typo.
103080         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
103082         * modules/clean-temp (Makefile.am): Don't add to make output...
103083         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
103084         config.h.
103086 2006-10-17  Bruno Haible  <bruno@clisp.org>
103088         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
103089         differently if DEFAULT_TEXT_DOMAIN is set.
103091 2006-10-16  Bruno Haible  <bruno@clisp.org>
103093         * lib/clean-temp.c: Include fwriteerror.h.
103095 2006-10-16  Bruno Haible  <bruno@clisp.org>
103097         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
103099 2006-10-16  Bruno Haible  <bruno@clisp.org>
103101         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
103102         * lib/sigprocmask.h: Include <sys/types.h>.
103103         (sigset_t): Use the system's definition if present.
103105 2006-10-17  Eric Blake  <ebb9@byu.net>
103107         * lib/xvasprintf.c (includes): Assume config.h.
103108         * lib/xasprintf.c (includes): Likewise.
103110 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
103112         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
103113         at least as wide as intmax_t.
103115 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
103117         (Imported from Automake.)
103118         * build-aux/gnupload: Update to version 1.1 of directive file.
103120 2006-10-16  Eric Blake  <ebb9@byu.net>
103122         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
103123         match Automake 1.10a.
103125 2006-10-14  Bruno Haible  <bruno@clisp.org>
103127         * modules/sigprocmask: New file.
103128         * lib/sigprocmask.h: New file.
103129         * lib/sigprocmask.c: New file.
103130         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
103131         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
103132         request sigprocmask.o.
103133         (gl_PREREQ_SIGPROCMASK): New macro.
103134         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
103135         (Depends-on): Add sigprocmask.
103136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
103137         gt_SIGNALBLOCKING. Test for 'raise' only once.
103138         * lib/fatal-signal.c: Include sigprocmask.h.
103139         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
103140         unblock_fatal_signals): Define always.
103141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103142         sigprocmask.
103144 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103146         Sync from Automake.
103147         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
103148         which incorrectly sets the mode of an existing destination
103149         directory.  In some cases the unpatched install-sh could do the
103150         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
103151         system.  We hope this is rare in practice, but it's clearly worth
103152         fixing.  Problem reported by Alex Unleashed in
103153         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
103154         Also, don't bother to check for -m bugs unless we're using -m;
103155         suggested by Stepan Kasal.
103157 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103159         Sync from Automake.
103160         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
103161         `-c' flag, so they appear at the same position as in %FASTDEP%
103162         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
103163         which ignores unknown options only after the first non-option.
103164         Bug report against M4 by Nelson H. F. Beebe.
103166 2006-10-13  Jim Meyering  <jim@meyering.net>
103168         Fix a bug in yesterday's change.
103169         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
103170         p->fts_statp->st_dev would be used uninitialized.
103171         Ensures that we always call fts_stat on the very first entry.
103172         Miklos Szeredi reported that find -xdev stopped working.
103174 2006-10-12  Bruno Haible  <bruno@clisp.org>
103176         * gnulib-tool (func_get_automake_snippet): Append an automatically
103177         computed EXTRA_DIST augmentation.
103178         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
103179         * modules/alloca-opt (Makefile.am): Likewise.
103180         * modules/allocsa (Makefile.am): Likewise.
103181         * modules/arcfour (Makefile.am): Likewise.
103182         * modules/arctwo (Makefile.am): Likewise.
103183         * modules/argmatch (Makefile.am): Likewise.
103184         * modules/argz (Makefile.am): Likewise.
103185         * modules/atexit (Makefile.am): Likewise.
103186         * modules/backupfile (Makefile.am): Likewise.
103187         * modules/byteswap (Makefile.am): Likewise.
103188         * modules/c-strtod (Makefile.am): Likewise.
103189         * modules/c-strtold (Makefile.am): Likewise.
103190         * modules/calloc (Makefile.am): Likewise.
103191         * modules/canon-host (Makefile.am): Likewise.
103192         * modules/canonicalize (Makefile.am): Likewise.
103193         * modules/chdir-long (Makefile.am): Likewise.
103194         * modules/chdir-safer (Makefile.am): Likewise.
103195         * modules/check-version (Makefile.am): Likewise.
103196         * modules/chown (Makefile.am): Likewise.
103197         * modules/cloexec (Makefile.am): Likewise.
103198         * modules/close-stream (Makefile.am): Likewise.
103199         * modules/closeout (Makefile.am): Likewise.
103200         * modules/crc (Makefile.am): Likewise.
103201         * modules/csharpexec (Makefile.am): Likewise.
103202         * modules/cycle-check (Makefile.am): Likewise.
103203         * modules/des (Makefile.am): Likewise.
103204         * modules/dev-ino (Makefile.am): Likewise.
103205         * modules/dirfd (Makefile.am): Likewise.
103206         * modules/dirname (Makefile.am): Likewise.
103207         * modules/dup2 (Makefile.am): Likewise.
103208         * modules/eealloc (Makefile.am): Likewise.
103209         * modules/error (Makefile.am): Likewise.
103210         * modules/euidaccess (Makefile.am): Likewise.
103211         * modules/exclude (Makefile.am): Likewise.
103212         * modules/exitfail (Makefile.am): Likewise.
103213         * modules/fcntl-safer (Makefile.am): Likewise.
103214         * modules/fcntl (Makefile.am): Likewise.
103215         * modules/file-type (Makefile.am): Likewise.
103216         * modules/fileblocks (Makefile.am): Likewise.
103217         * modules/filemode (Makefile.am): Likewise.
103218         * modules/filenamecat (Makefile.am): Likewise.
103219         * modules/fnmatch (Makefile.am): Likewise.
103220         * modules/fopen-safer (Makefile.am): Likewise.
103221         * modules/fpending (Makefile.am): Likewise.
103222         * modules/fprintftime (Makefile.am): Likewise.
103223         * modules/free (Makefile.am): Likewise.
103224         * modules/fsusage (Makefile.am): Likewise.
103225         * modules/ftruncate (Makefile.am): Likewise.
103226         * modules/fts (Makefile.am): Likewise.
103227         * modules/gc-arcfour (Makefile.am): Likewise.
103228         * modules/gc-des (Makefile.am): Likewise.
103229         * modules/gc-hmac-md5 (Makefile.am): Likewise.
103230         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
103231         * modules/gc-md4 (Makefile.am): Likewise.
103232         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103233         * modules/gc-sha1 (Makefile.am): Likewise.
103234         * modules/gc (Makefile.am): Likewise.
103235         * modules/getaddrinfo (Makefile.am): Likewise.
103236         * modules/getcwd (Makefile.am): Likewise.
103237         * modules/getdelim (Makefile.am): Likewise.
103238         * modules/getdomainname (Makefile.am): Likewise.
103239         * modules/getgroups (Makefile.am): Likewise.
103240         * modules/gethostname (Makefile.am): Likewise.
103241         * modules/gethrxtime (Makefile.am): Likewise.
103242         * modules/getline (Makefile.am): Likewise.
103243         * modules/getloadavg (Makefile.am): Likewise.
103244         * modules/getlogin_r (Makefile.am): Likewise.
103245         * modules/getndelim2 (Makefile.am): Likewise.
103246         * modules/getopt (Makefile.am): Likewise.
103247         * modules/getpagesize (Makefile.am): Likewise.
103248         * modules/getpass-gnu (Makefile.am): Likewise.
103249         * modules/getpass (Makefile.am): Likewise.
103250         * modules/getsubopt (Makefile.am): Likewise.
103251         * modules/gettime (Makefile.am): Likewise.
103252         * modules/gettimeofday (Makefile.am): Likewise.
103253         * modules/getugroups (Makefile.am): Likewise.
103254         * modules/getusershell (Makefile.am): Likewise.
103255         * modules/glob (Makefile.am): Likewise.
103256         * modules/group-member (Makefile.am): Likewise.
103257         * modules/hard-locale (Makefile.am): Likewise.
103258         * modules/hash (Makefile.am): Likewise.
103259         * modules/hmac-md5 (Makefile.am): Likewise.
103260         * modules/hmac-sha1 (Makefile.am): Likewise.
103261         * modules/human (Makefile.am): Likewise.
103262         * modules/idcache (Makefile.am): Likewise.
103263         * modules/imaxabs (Makefile.am): Likewise.
103264         * modules/imaxdiv (Makefile.am): Likewise.
103265         * modules/inet_ntop (Makefile.am): Likewise.
103266         * modules/inet_pton (Makefile.am): Likewise.
103267         * modules/intprops (Makefile.am): Likewise.
103268         * modules/inttostr (Makefile.am): Likewise.
103269         * modules/inttypes (Makefile.am): Likewise.
103270         * modules/isapipe (Makefile.am): Likewise.
103271         * modules/javaversion (Makefile.am): Likewise.
103272         * modules/lchmod (Makefile.am): Likewise.
103273         * modules/lchown (Makefile.am): Likewise.
103274         * modules/localcharset (Makefile.am): Likewise.
103275         * modules/long-options (Makefile.am): Likewise.
103276         * modules/lstat (Makefile.am): Likewise.
103277         * modules/malloc (Makefile.am): Likewise.
103278         * modules/mathl (Makefile.am): Likewise.
103279         * modules/mbchar (Makefile.am): Likewise.
103280         * modules/md2 (Makefile.am): Likewise.
103281         * modules/md4 (Makefile.am): Likewise.
103282         * modules/md5 (Makefile.am): Likewise.
103283         * modules/memcasecmp (Makefile.am): Likewise.
103284         * modules/memchr (Makefile.am): Likewise.
103285         * modules/memcmp (Makefile.am): Likewise.
103286         * modules/memcoll (Makefile.am): Likewise.
103287         * modules/memcpy (Makefile.am): Likewise.
103288         * modules/memmem (Makefile.am): Likewise.
103289         * modules/memmove (Makefile.am): Likewise.
103290         * modules/mempcpy (Makefile.am): Likewise.
103291         * modules/memrchr (Makefile.am): Likewise.
103292         * modules/memset (Makefile.am): Likewise.
103293         * modules/memxor (Makefile.am): Likewise.
103294         * modules/mkancesdirs (Makefile.am): Likewise.
103295         * modules/mkdir-p (Makefile.am): Likewise.
103296         * modules/mkdir (Makefile.am): Likewise.
103297         * modules/mkdtemp (Makefile.am): Likewise.
103298         * modules/mkstemp (Makefile.am): Likewise.
103299         * modules/mktime (Makefile.am): Likewise.
103300         * modules/modechange (Makefile.am): Likewise.
103301         * modules/mountlist (Makefile.am): Likewise.
103302         * modules/nanosleep (Makefile.am): Likewise.
103303         * modules/obstack (Makefile.am): Likewise.
103304         * modules/openat (Makefile.am): Likewise.
103305         * modules/pagealign_alloc (Makefile.am): Likewise.
103306         * modules/pathmax (Makefile.am): Likewise.
103307         * modules/physmem (Makefile.am): Likewise.
103308         * modules/poll (Makefile.am): Likewise.
103309         * modules/posixtm (Makefile.am): Likewise.
103310         * modules/posixver (Makefile.am): Likewise.
103311         * modules/putenv (Makefile.am): Likewise.
103312         * modules/quote (Makefile.am): Likewise.
103313         * modules/quotearg (Makefile.am): Likewise.
103314         * modules/raise (Makefile.am): Likewise.
103315         * modules/read-file (Makefile.am): Likewise.
103316         * modules/readline (Makefile.am): Likewise.
103317         * modules/readlink (Makefile.am): Likewise.
103318         * modules/readtokens (Makefile.am): Likewise.
103319         * modules/readutmp (Makefile.am): Likewise.
103320         * modules/realloc (Makefile.am): Likewise.
103321         * modules/regex (Makefile.am): Likewise.
103322         * modules/rename-dest-slash (Makefile.am): Likewise.
103323         * modules/rename (Makefile.am): Likewise.
103324         * modules/rijndael (Makefile.am): Likewise.
103325         * modules/rmdir (Makefile.am): Likewise.
103326         * modules/rpmatch (Makefile.am): Likewise.
103327         * modules/safe-read (Makefile.am): Likewise.
103328         * modules/safe-write (Makefile.am): Likewise.
103329         * modules/same-inode (Makefile.am): Likewise.
103330         * modules/same (Makefile.am): Likewise.
103331         * modules/save-cwd (Makefile.am): Likewise.
103332         * modules/savedir (Makefile.am): Likewise.
103333         * modules/setenv (Makefile.am): Likewise.
103334         * modules/settime (Makefile.am): Likewise.
103335         * modules/sha1 (Makefile.am): Likewise.
103336         * modules/sig2str (Makefile.am): Likewise.
103337         * modules/snprintf (Makefile.am): Likewise.
103338         * modules/stat-macros (Makefile.am): Likewise.
103339         * modules/stat-time (Makefile.am): Likewise.
103340         * modules/stdbool (Makefile.am): Likewise.
103341         * modules/stdint (Makefile.am): Likewise.
103342         * modules/stdlib-safer (Makefile.am): Likewise.
103343         * modules/stpcpy (Makefile.am): Likewise.
103344         * modules/stpncpy (Makefile.am): Likewise.
103345         * modules/strcase (Makefile.am): Likewise.
103346         * modules/strcasestr (Makefile.am): Likewise.
103347         * modules/strchrnul (Makefile.am): Likewise.
103348         * modules/strcspn (Makefile.am): Likewise.
103349         * modules/strdup (Makefile.am): Likewise.
103350         * modules/strerror (Makefile.am): Likewise.
103351         * modules/strftime (Makefile.am): Likewise.
103352         * modules/strndup (Makefile.am): Likewise.
103353         * modules/strnlen (Makefile.am): Likewise.
103354         * modules/strpbrk (Makefile.am): Likewise.
103355         * modules/strsep (Makefile.am): Likewise.
103356         * modules/strstr (Makefile.am): Likewise.
103357         * modules/strtod (Makefile.am): Likewise.
103358         * modules/strtoimax (Makefile.am): Likewise.
103359         * modules/strtok_r (Makefile.am): Likewise.
103360         * modules/strtol (Makefile.am): Likewise.
103361         * modules/strtoll (Makefile.am): Likewise.
103362         * modules/strtoul (Makefile.am): Likewise.
103363         * modules/strtoull (Makefile.am): Likewise.
103364         * modules/strtoumax (Makefile.am): Likewise.
103365         * modules/strverscmp (Makefile.am): Likewise.
103366         * modules/sys_socket (Makefile.am): Likewise.
103367         * modules/sys_stat (Makefile.am): Likewise.
103368         * modules/sysexits (Makefile.am): Likewise.
103369         * modules/time_r (Makefile.am): Likewise.
103370         * modules/timegm (Makefile.am): Likewise.
103371         * modules/timespec (Makefile.am): Likewise.
103372         * modules/tmpfile-safer (Makefile.am): Likewise.
103373         * modules/trim (Makefile.am): Likewise.
103374         * modules/unistd-safer (Makefile.am): Likewise.
103375         * modules/unlinkdir (Makefile.am): Likewise.
103376         * modules/unlocked-io (Makefile.am): Likewise.
103377         * modules/userspec (Makefile.am): Likewise.
103378         * modules/utime (Makefile.am): Likewise.
103379         * modules/utimecmp (Makefile.am): Likewise.
103380         * modules/utimens (Makefile.am): Likewise.
103381         * modules/vasnprintf (Makefile.am): Likewise.
103382         * modules/vasprintf (Makefile.am): Likewise.
103383         * modules/vsnprintf (Makefile.am): Likewise.
103384         * modules/xalloc (Makefile.am): Likewise.
103385         * modules/xgetcwd (Makefile.am): Likewise.
103386         * modules/xnanosleep (Makefile.am): Likewise.
103387         * modules/xreadlink (Makefile.am): Likewise.
103388         * modules/xstrtod (Makefile.am): Likewise.
103389         * modules/xstrtol (Makefile.am): Likewise.
103390         * modules/xstrtold (Makefile.am): Likewise.
103391         * modules/yesno (Makefile.am): Likewise.
103392         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
103394 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
103396         * modules/error (Makefile.am): Distribute files through
103397         EXTRA_DIST, not lib_SOURCES.
103399 2006-10-12  Eric Blake  <ebb9@byu.net>
103401         * modules/error (Makefile.am): Distribute files in /lib.
103402         * modules/obstack (Makefile.am): Likewise.
103404 2006-10-12  Bruno Haible  <bruno@clisp.org>
103406         * modules/acl (Makefile.am): Distribute all files in lib/ through
103407         EXTRA_DIST.
103408         * modules/arcfour (Makefile.am): Likewise.
103409         * modules/arctwo (Makefile.am): Likewise.
103410         * modules/argmatch (Makefile.am): Likewise.
103411         * modules/argz (Makefile.am): Likewise.
103412         * modules/atexit (Makefile.am): Likewise.
103413         * modules/backupfile (Makefile.am): Likewise.
103414         * modules/c-strtod (Makefile.am): Likewise.
103415         * modules/c-strtold (Makefile.am): Likewise.
103416         * modules/calloc (Makefile.am): Likewise.
103417         * modules/canon-host (Makefile.am): Likewise.
103418         * modules/canonicalize (Makefile.am): Likewise.
103419         * modules/chdir-long (Makefile.am): Likewise.
103420         * modules/chdir-safer (Makefile.am): Likewise.
103421         * modules/check-version (Makefile.am): Likewise.
103422         * modules/chown (Makefile.am): Likewise.
103423         * modules/cloexec (Makefile.am): Likewise.
103424         * modules/close-stream (Makefile.am): Likewise.
103425         * modules/closeout (Makefile.am): Likewise.
103426         * modules/crc (Makefile.am): Likewise.
103427         * modules/cycle-check (Makefile.am): Likewise.
103428         * modules/des (Makefile.am): Likewise.
103429         * modules/dirfd (Makefile.am): Likewise.
103430         * modules/dirname (Makefile.am): Likewise.
103431         * modules/dup2 (Makefile.am): Likewise.
103432         * modules/euidaccess (Makefile.am): Likewise.
103433         * modules/exclude (Makefile.am): Likewise.
103434         * modules/exitfail (Makefile.am): Likewise.
103435         * modules/fcntl-safer (Makefile.am): Likewise.
103436         * modules/file-type (Makefile.am): Likewise.
103437         * modules/fileblocks (Makefile.am): Likewise.
103438         * modules/filemode (Makefile.am): Likewise.
103439         * modules/filenamecat (Makefile.am): Likewise.
103440         * modules/fnmatch (Makefile.am): Likewise.
103441         * modules/fopen-safer (Makefile.am): Likewise.
103442         * modules/fpending (Makefile.am): Likewise.
103443         * modules/fprintftime (Makefile.am): Likewise.
103444         * modules/free (Makefile.am): Likewise.
103445         * modules/fsusage (Makefile.am): Likewise.
103446         * modules/ftruncate (Makefile.am): Likewise.
103447         * modules/fts (Makefile.am): Likewise.
103448         * modules/gc (Makefile.am): Likewise.
103449         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
103450         * modules/getaddrinfo (Makefile.am): Likewise.
103451         * modules/getcwd (Makefile.am): Likewise.
103452         * modules/getdelim (Makefile.am): Likewise.
103453         * modules/getdomainname (Makefile.am): Likewise.
103454         * modules/getgroups (Makefile.am): Likewise.
103455         * modules/gethostname (Makefile.am): Likewise.
103456         * modules/gethrxtime (Makefile.am): Likewise.
103457         * modules/getline (Makefile.am): Likewise.
103458         * modules/getloadavg (Makefile.am): Likewise.
103459         * modules/getlogin_r (Makefile.am): Likewise.
103460         * modules/getopt (Makefile.am): Likewise.
103461         * modules/getpass (Makefile.am): Likewise.
103462         * modules/getpass-gnu (Makefile.am): Likewise.
103463         * modules/getsubopt (Makefile.am): Likewise.
103464         * modules/gettime (Makefile.am): Likewise.
103465         * modules/gettimeofday (Makefile.am): Likewise.
103466         * modules/getugroups (Makefile.am): Likewise.
103467         * modules/getusershell (Makefile.am): Likewise.
103468         * modules/glob (Makefile.am): Likewise.
103469         * modules/group-member (Makefile.am): Likewise.
103470         * modules/hard-locale (Makefile.am): Likewise.
103471         * modules/hash (Makefile.am): Likewise.
103472         * modules/hmac-md5 (Makefile.am): Likewise.
103473         * modules/hmac-sha1 (Makefile.am): Likewise.
103474         * modules/human (Makefile.am): Likewise.
103475         * modules/idcache (Makefile.am): Likewise.
103476         * modules/imaxabs (Makefile.am): Likewise.
103477         * modules/imaxdiv (Makefile.am): Likewise.
103478         * modules/inet_ntop (Makefile.am): Likewise.
103479         * modules/inet_pton (Makefile.am): Likewise.
103480         * modules/inttostr (Makefile.am): Likewise.
103481         * modules/isapipe (Makefile.am): Likewise.
103482         * modules/lchown (Makefile.am): Likewise.
103483         * modules/long-options (Makefile.am): Likewise.
103484         * modules/lstat (Makefile.am): Likewise.
103485         * modules/malloc (Makefile.am): Likewise.
103486         * modules/mathl (Makefile.am): Likewise.
103487         * modules/mbchar (Makefile.am): Likewise.
103488         * modules/md2 (Makefile.am): Likewise.
103489         * modules/md4 (Makefile.am): Likewise.
103490         * modules/md5 (Makefile.am): Likewise.
103491         * modules/memcasecmp (Makefile.am): Likewise.
103492         * modules/memchr (Makefile.am): Likewise.
103493         * modules/memcmp (Makefile.am): Likewise.
103494         * modules/memcoll (Makefile.am): Likewise.
103495         * modules/memcpy (Makefile.am): Likewise.
103496         * modules/memmem (Makefile.am): Likewise.
103497         * modules/memmove (Makefile.am): Likewise.
103498         * modules/mempcpy (Makefile.am): Likewise.
103499         * modules/memrchr (Makefile.am): Likewise.
103500         * modules/memset (Makefile.am): Likewise.
103501         * modules/memxor (Makefile.am): Likewise.
103502         * modules/mkancesdirs (Makefile.am): Likewise.
103503         * modules/mkdir (Makefile.am): Likewise.
103504         * modules/mkdir-p (Makefile.am): Likewise.
103505         * modules/mkdtemp (Makefile.am): Likewise.
103506         * modules/mkstemp (Makefile.am): Likewise.
103507         * modules/mktime (Makefile.am): Likewise.
103508         * modules/modechange (Makefile.am): Likewise.
103509         * modules/mountlist (Makefile.am): Likewise.
103510         * modules/nanosleep (Makefile.am): Likewise.
103511         * modules/openat (Makefile.am): Likewise.
103512         * modules/pagealign_alloc (Makefile.am): Likewise.
103513         * modules/physmem (Makefile.am): Likewise.
103514         * modules/poll (Makefile.am): Likewise.
103515         * modules/posixtm (Makefile.am): Likewise.
103516         * modules/posixver (Makefile.am): Likewise.
103517         * modules/putenv (Makefile.am): Likewise.
103518         * modules/quote (Makefile.am): Likewise.
103519         * modules/quotearg (Makefile.am): Likewise.
103520         * modules/raise (Makefile.am): Likewise.
103521         * modules/read-file (Makefile.am): Likewise.
103522         * modules/readline (Makefile.am): Likewise.
103523         * modules/readlink (Makefile.am): Likewise.
103524         * modules/readtokens (Makefile.am): Likewise.
103525         * modules/readutmp (Makefile.am): Likewise.
103526         * modules/realloc (Makefile.am): Likewise.
103527         * modules/regex (Makefile.am): Likewise.
103528         * modules/rename (Makefile.am): Likewise.
103529         * modules/rename-dest-slash (Makefile.am): Likewise.
103530         * modules/rijndael (Makefile.am): Likewise.
103531         * modules/rmdir (Makefile.am): Likewise.
103532         * modules/rpmatch (Makefile.am): Likewise.
103533         * modules/safe-read (Makefile.am): Likewise.
103534         * modules/safe-write (Makefile.am): Likewise.
103535         * modules/same (Makefile.am): Likewise.
103536         * modules/save-cwd (Makefile.am): Likewise.
103537         * modules/savedir (Makefile.am): Likewise.
103538         * modules/setenv (Makefile.am): Likewise.
103539         * modules/settime (Makefile.am): Likewise.
103540         * modules/sha1 (Makefile.am): Likewise.
103541         * modules/sig2str (Makefile.am): Likewise.
103542         * modules/snprintf (Makefile.am): Likewise.
103543         * modules/stdlib-safer (Makefile.am): Likewise.
103544         * modules/stpcpy (Makefile.am): Likewise.
103545         * modules/stpncpy (Makefile.am): Likewise.
103546         * modules/strcase (Makefile.am): Likewise.
103547         * modules/strcasestr (Makefile.am): Likewise.
103548         * modules/strchrnul (Makefile.am): Likewise.
103549         * modules/strcspn (Makefile.am): Likewise.
103550         * modules/strdup (Makefile.am): Likewise.
103551         * modules/strerror (Makefile.am): Likewise.
103552         * modules/strftime (Makefile.am): Likewise.
103553         * modules/strndup (Makefile.am): Likewise.
103554         * modules/strnlen (Makefile.am): Likewise.
103555         * modules/strpbrk (Makefile.am): Likewise.
103556         * modules/strsep (Makefile.am): Likewise.
103557         * modules/strstr (Makefile.am): Likewise.
103558         * modules/strtod (Makefile.am): Likewise.
103559         * modules/strtoimax (Makefile.am): Likewise.
103560         * modules/strtok_r (Makefile.am): Likewise.
103561         * modules/strtol (Makefile.am): Likewise.
103562         * modules/strtoll (Makefile.am): Likewise.
103563         * modules/strtoul (Makefile.am): Likewise.
103564         * modules/strtoull (Makefile.am): Likewise.
103565         * modules/strtoumax (Makefile.am): Likewise.
103566         * modules/strverscmp (Makefile.am): Likewise.
103567         * modules/time_r (Makefile.am): Likewise.
103568         * modules/timegm (Makefile.am): Likewise.
103569         * modules/tmpfile-safer (Makefile.am): Likewise.
103570         * modules/unistd-safer (Makefile.am): Likewise.
103571         * modules/unlinkdir (Makefile.am): Likewise.
103572         * modules/userspec (Makefile.am): Likewise.
103573         * modules/utime (Makefile.am): Likewise.
103574         * modules/utimecmp (Makefile.am): Likewise.
103575         * modules/utimens (Makefile.am): Likewise.
103576         * modules/vasnprintf (Makefile.am): Likewise.
103577         * modules/vasprintf (Makefile.am): Likewise.
103578         * modules/vsnprintf (Makefile.am): Likewise.
103579         * modules/xalloc (Makefile.am): Likewise.
103580         * modules/xgetcwd (Makefile.am): Likewise.
103581         * modules/xnanosleep (Makefile.am): Likewise.
103582         * modules/xreadlink (Makefile.am): Likewise.
103583         * modules/xstrtod (Makefile.am): Likewise.
103584         * modules/xstrtol (Makefile.am): Likewise.
103585         * modules/xstrtold (Makefile.am): Likewise.
103586         * modules/yesno (Makefile.am): Likewise.
103588 2006-10-12  Jim Meyering  <jim@meyering.net>
103590         * m4/getloadavg.m4: Revert the change below.
103592         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
103593         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
103594         fail with a symlink, which is what coreutils' ./bootstrap now
103595         creates by default.
103597 2006-10-12  Bruno Haible  <bruno@clisp.org>
103599         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
103600         mingw.
103601         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
103602         MSVC and mingw explicitly.
103604 2006-10-11  Simon Josefsson  <jas@extundo.com>
103605             Bruno Haible  <bruno@clisp.org>
103607         Add support for multiple gnulib-tool invocations in the scope of a
103608         single configure.ac file.
103609         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
103610         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
103611         with the same contents as the _LIBADD variable.
103612         (func_emit_initmacro_start, func_emit_initmacro_end,
103613         func_emit_initmacro_done): New functions.
103614         (func_import, func_create_testdir): Invoke them. Allow the identifiers
103615         gl_LIBOBJS and gl_LTLIBOBJS.
103617 2006-10-11  Bruno Haible  <bruno@clisp.org>
103619         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
103620         (func_create_testdir): Don't create po/Makefile.am, don't invoke
103621         autoreconf. Instead, invoke autopoint explicitly but move back the
103622         *.m4 files from gnulib.
103624 2006-10-11  Bruno Haible  <bruno@clisp.org>
103626         * gnulib-tool (func_usage): Make module names after --create-testdir
103627         optional.
103628         (func_create_testdir): If no module was specified, use nearly all
103629         modules.
103631 2006-10-12  Jim Meyering  <jim@meyering.net>
103633         Big performance improvement for fts-based tools that use FTS_NOSTAT.
103634         Avoid spurious inode-mismatch problems on non-POSIX file systems.
103635         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
103636         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
103637         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
103638         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
103639         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
103640         (fts_set_stat_required): New function.
103641         (fts_open): Defer the calls to fts_stat, if possible or requested.
103642         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
103643         into fts_stat itself.
103644         (fts_read): Perform any required (deferred) fts_stat call.
103645         (fts_build): Likewise, for the directory we're about to open and read.
103646         In the readdir loop, carefully decide whether each entry will require
103647         an eventual call to fts_stat, using dirent.d_type info if available.
103648         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
103649         a command line argument into this function.  Update all callers.
103650         Map a return value of FTS_DOT to FTS_D for a command line argument.
103651         * modules/fts (Depends-on): Add d-type.  Alphabetize.
103652         Thanks to Miklos Szeredi for his tenacity and for the initial
103653         bug report about "find" failing on a FUSE-based file system.
103655         * lib/fts.c (fts_open): Use consistent indentation.
103657 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
103659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
103660         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
103661         reported by Jim Meyering.  All uses of cache variables renamed
103662         to match Autoconf's.
103663         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
103664         the other one.
103666         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
103667         Fix misspelling in diagnostic.
103669 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
103671         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
103672         defined.  Problem reported by Matthew Woehlke.
103674         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
103675         Add support for Tandem NonStop R series.
103676         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
103677         Use new macro.
103679         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
103680         (has_trailing_slash): Omit size arg; all callers changed.
103681         Omit 'inline', since it doesn't help performance and we'd
103682         need to configure it.
103683         Don't count //, ///, etc. as having a trailing slash.
103684         As a side effect, this removes a C99ism reported by Matthew Woehlke.
103685         (rpl_rename_dest_slash): On failure, use rename's errno rather
103686         than (in some cases) an incorrect or junk errno.
103687         Simplify code by removing need to compute length; this does
103688         cause it to make two passes instead of one over the file name,
103689         but it's worth it.
103691         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
103692         change, since Autoconf's version may no longer be appropriate now
103693         that we are using CVS Autoconf's version.  Add support for Tandem.
103695 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
103696             Bruno Haible  <bruno@clisp.org>
103698         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
103699         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
103700         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
103701         gl_AC_TYPE_LONG_LONG.
103703         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
103704         instead of HAVE_LONG_LONG.
103705         * lib/printf-args.c (printf_fetchargs): Likewise.
103706         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
103707         * lib/vasnprintf.c (VASNPRINTF): Likewise.
103708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
103709         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
103710         gl_AC_TYPE_LONG_LONG.
103712 2006-10-11  Bruno Haible  <bruno@clisp.org>
103714         * m4/longlong.m4: Add comments.
103715         * m4/ulonglong.m4: Likewise.
103717 2006-10-10  Bruno Haible  <bruno@clisp.org>
103719         Make it possible to #define stpcpy, strdup to aliases.
103720         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
103721         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
103723 2006-10-10  Bruno Haible  <bruno@clisp.org>
103725         Make it possible to #define gcd to an alias.
103726         * lib/gcd.c: Include config.h.
103728 2006-10-10  Bruno Haible  <bruno@clisp.org>
103730         Make it possible to #define c_isascii to an alias.
103731         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
103732         defined. Undefine the macros before defining them, to avoid gcc
103733         warnings.
103734         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
103735         define NO_C_CTYPE_MACROS early.
103737 2006-10-10  Bruno Haible  <bruno@clisp.org>
103739         Make it possible to #define set_program_name to an alias.
103740         * lib/progname.c: Don't undefine set_program_name; instead, undefine
103741         ENABLE_RELOCATABLE early.
103743 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103745         Port to Tandem NSK OSS, which has 64-bit signed int but at most
103746         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
103747         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
103748         More generally, don't assume that 64-bit signed int is available
103749         if unsigned int is, and vice versa.
103750         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
103751         unsigned symbols, not on their signed counterparts.
103752         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
103753         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
103754         (UINT64_C, UINTMAX_C):
103755         Likewise.
103756         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
103757         unsigned counterparts.
103758         (Have_long_long, Unsigned): New macros.
103759         (Int): Renamed from INT.
103760         (strtoimax): Use the new macros.
103761         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
103762         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
103763         * modules/inttypes (inttypes.h): Substitute
103764         HAVE_UNSIGNED_LONG_LONG_INT.
103765         * modules/stdint (stdint.h): Likewise.
103766         (Files): Add m4/ulonglong.m4.
103768 2006-10-10  Bruno Haible  <bruno@clisp.org>
103770         Fix a gcc -Wshadow warning.
103771         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
103772         to 'bucket'.
103773         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
103774         gl_linked_indexof_from_to): Likewise.
103775         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
103776         Likewise.
103777         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
103778         Likewise.
103779         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
103780         Reported by Eric Blake.
103782 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
103784         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
103785         for NetBSD.  Problem reported by Bruno Haible.
103787 2006-10-09  Jim Meyering  <jim@meyering.net>
103789         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
103790         Patch from Bruno Haible.
103792 2006-10-09  Jim Meyering  <jim@meyering.net>
103794         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
103795         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
103796         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
103798 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
103800         Don't include <config.h> twice; this doesn't work in some cases,
103801         e.g., when config.h has "#define intmax_t long long int" and
103802         we include <config.h>, <inttypes.h>, <config.h> in that order.
103803         Problem reported by Matthew Woehlke in:
103804         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
103805         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
103806         * lib/fts-cycle.c: Don't include config.h.
103807         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
103808         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
103809         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
103810         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
103811         inttypes.h.
103812         * lib/xstrtoumax.c: Likewise.
103813         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
103814         __strtol and the like, so that this module is more like its siblings.
103815         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
103816         Remove; no longer needed now that we assume gnulib inttypes.h.
103818 2006-10-08  Bruno Haible  <bruno@clisp.org>
103820         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
103821         option.
103823 2006-10-07  Jim Meyering  <jim@meyering.net>
103825         * modules/inttypes (inttypes.h): Revert what seems to have been
103826         an inadvertent part of today's change: use "|", not "/" in the
103827         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
103829 2006-10-07  Bruno Haible  <bruno@clisp.org>
103831         * modules/sublist: New file.
103833 2006-10-07  Bruno Haible  <bruno@clisp.org>
103835         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
103836         * modules/argz (argz.h): Likewise.
103837         * modules/arpa_inet (arpa/inet.h): Likewise.
103838         * modules/byteswap (byteswap.h): Likewise.
103839         * modules/configmake (configmake.h): Likewise.
103840         * modules/fcntl (fcntl.h): Likewise.
103841         * modules/fnmatch (fnmatch.h): Likewise.
103842         * modules/getopt (getopt.h): Likewise.
103843         * modules/glob (glob.h): Likewise.
103844         * modules/inttypes (inttypes.h): Likewise.
103845         * modules/netinet_in (netinet/in.h): Likewise.
103846         * modules/poll (poll.h): Likewise.
103847         * modules/stdbool (stdbool.h): Likewise.
103848         * modules/stdint (stdint.h): Likewise.
103849         * modules/sys_select (sys/select.h): Likewise.
103850         * modules/sys_socket (sys/socket.h): Likewise.
103851         * modules/sys_stat (sys/stat.h): Likewise.
103852         * modules/sysexits (sysexits.h): Likewise.
103853         * modules/unistd (unistd.h): Likewise.
103854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103855         Add a "DO NOT EDIT" comment to the generated file.
103856         (func_import): Likewise for gnulib-comp.m4.
103858 2006-10-07  Bruno Haible  <bruno@clisp.org>
103860         * lib/gl_sublist.h: New file.
103861         * lib/gl_sublist.c: New file.
103863 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103865         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
103866         name (relative to the original working directory) and the file
103867         name component (relative to the temporary working directory).  All
103868         callers changed.
103869         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
103870         * lib/mkdir-p.c (make_dir_parents): Likewise.
103871         * lib/mkdir-p.h (make_dir_parents): Likewise.
103873 2006-10-06  Eric Blake  <ebb9@byu.net>
103875         Define several macros for use by the clean-temp module.
103876         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
103877         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
103878         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
103880         * lib/clean-temp.h (close_stream_temp): New declaration.
103881         * lib/clean-temp.c (includes): Pull in headers according to what
103882         other modules are in use.
103883         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
103885 2006-10-06  Bruno Haible  <bruno@clisp.org>
103887         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
103888         instead of fopen, fwriteerror.
103890 2006-10-06  Bruno Haible  <bruno@clisp.org>
103892         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
103893         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
103894         int.
103895         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
103896         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
103897         Return an error indicator.
103898         Suggested by Eric Blake.
103900 2006-10-06  Bruno Haible  <bruno@clisp.org>
103902         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
103903         Reported by Eric Blake.
103905 2006-10-06  Bruno Haible  <bruno@clisp.org>
103907         * modules/closeout (Description): Mention stderr too.
103909 2006-10-06  Bruno Haible  <bruno@clisp.org>
103910         and Paul Eggert  <eggert@cs.ucla.edu>
103912         * lib/closeout.c (close_stdout): Also close stderr.
103913         * lib/closeout.h: Update comment.
103915 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103917         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
103918         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
103919         * lib/dirchownmod.c: Include lchown.h.
103920         * lib/lchown.c: Don't include files that lchown.h now includes.
103921         Don't declare chown, since lchown.h now does that.
103922         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
103923         (lchown): Define to rpl_chown if lchown is declared but
103924         does not exist.  Declare using a prototype if lchown is not
103925         declared.  Add a copyright notice.
103926         * lib/mkstemp.h: Include <unistd.h>.
103927         * lib/openat.c: Include lchown.h.
103929         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
103930         we now test for that separately.
103931         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
103932         rather than O_NOFOLLOW, when testing whether it's possible to
103933         avoid a race condition reliably.
103934         * lib/savewd.c (savewd_chdir): Likewise.
103936         Remove macros that are no longer needed now that stdint.h is
103937         reliable.
103938         * lib/fsusage.c (UINTMAX_MAX): Remove.
103939         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
103940         * lib/utimecmp.c (SIZE_MAX): Remove.
103942         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
103944         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
103945         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
103946         O_NOATIME works.
103948 2006-10-05  Bruno Haible  <bruno@clisp.org>
103950         * lib/gl_list.h (gl_sortedlist_search_from_to,
103951         gl_sortedlist_indexof_from_to): New declarations.
103952         (gl_list_implementation): New fields sortedlist_search_from_to,
103953         sortedlist_indexof_from_to.
103954         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
103955         inline functions.
103956         * lib/gl_list.c (gl_sortedlist_search_from_to,
103957         gl_sortedlist_indexof_from_to): New functions.
103958         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
103959         function.
103960         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
103961         (gl_array_sortedlist_search_from_to): New function.
103962         (gl_array_list_implementation): Update.
103963         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
103964         function.
103965         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
103966         (gl_carray_sortedlist_search_from_to): New function.
103967         (gl_carray_list_implementation): Update.
103968         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
103969         gl_linked_sortedlist_indexof_from_to): New functions.
103970         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
103971         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
103972         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
103973         gl_tree_sortedlist_indexof_from_to): New functions.
103974         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
103975         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
103976         Update.
103977         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
103978         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
103979         Update.
103981 2006-10-05  Bruno Haible  <bruno@clisp.org>
103983         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
103984         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
103985         (struct gl_list_implementation): Add fields search_from_to,
103986         indexof_from_to. Remove fields search, indexof.
103987         (gl_list_search): Use the search_from_to method.
103988         (gl_list_search_from, gl_list_search_from_to): New functions.
103989         (gl_list_indexof): Use the indexof_from_to method.
103990         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
103991         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
103992         (gl_list_search_from, gl_list_search_from_to): New functions.
103993         (gl_list_indexof): Use the indexof_from_to method.
103994         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
103995         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
103996         gl_array_indexof. Add start_index, end_index arguments.
103997         (gl_array_search_from_to): Renamed from gl_array_search. Add
103998         start_index, end_index arguments.
103999         (gl_array_remove, gl_array_list_implementation): Update.
104000         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
104001         gl_carray_indexof. Add start_index, end_index arguments.
104002         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
104003         start_index, end_index arguments.
104004         (gl_carray_remove, gl_carray_list_implementation): Update.
104005         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
104006         gl_linked_search. Add start_index, end_index arguments.
104007         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
104008         start_index, end_index arguments.
104009         (gl_linked_remove): Update.
104010         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
104011         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
104012         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
104013         field to 'size_t'.
104014         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
104015         gl_tree_search. Add start_index, end_index arguments.
104016         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104017         start_index, end_index arguments.
104018         (gl_tree_remove): Update.
104019         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
104020         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
104021         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
104022         function.
104023         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
104024         gl_tree_search. Add start_index, end_index arguments.
104025         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
104026         start_index, end_index arguments.
104027         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
104028         Update.
104029         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
104031 2006-10-05  Bruno Haible  <bruno@clisp.org>
104033         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
104035         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
104036         fwriteerror_temp): New declarations.
104037         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
104038         (descriptors): New variable.
104039         (cleanup): First, close the descriptors.
104040         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
104041         fclose_temp, fwriteerror_temp): New functions.
104043 2006-10-04  Jim Meyering  <jim@meyering.net>
104045         * lib/fts.c (fts_open): Tiny comment change.
104047 2006-10-04  Bruno Haible  <bruno@clisp.org>
104049         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
104050         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
104051         gl_LOCK_BODY.
104052         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
104053         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
104054         gl_LOCK_EARLY_BODY.
104055         (gl_LOCK): Require gl_LOCK_BODY.
104057 2006-10-04  Bruno Haible  <bruno@clisp.org>
104059         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
104060         (gl_oset_search_atleast): New declaration.
104061         (struct gl_oset_implementation): Add field 'search_atleast'.
104062         (gl_oset_search_atleast): New inline function.
104063         * lib/gl_oset.c (gl_oset_search_atleast): New function.
104064         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
104065         (gl_array_oset_implementation): Update.
104066         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
104067         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
104068         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
104070 2006-10-04  Bruno Haible  <bruno@clisp.org>
104072         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
104074 2006-10-03  Bruno Haible  <bruno@clisp.org>
104076         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
104077         from gl_avltreehash_list_implementation.
104079 2006-10-03  Bruno Haible  <bruno@clisp.org>
104081         * lib/gl_oset.c (gl_oset_add): Fix return type.
104083 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
104085         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
104087 2006-10-02  Eric Blake  <ebb9@byu.net>
104089         * modules/strnlen (Depends-on): Add extensions.
104091 2006-10-02  Eric Blake  <ebb9@byu.net>
104093         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
104094         definition in 2.60+.
104096 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
104098         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
104099         checks.
104101 2006-10-02  Bruno Haible  <bruno@clisp.org>
104103         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
104104         to the AUTOMAKE_OPTIONS.
104105         Reported by Jim Meyering.
104107 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
104109         Work around bug in Solaris 10 /proc file system:
104110         /proc/self/fd/NNN/.. isn't the parent directory of
104111         the directory whose file descriptor is NNN.  This needs to
104112         be worked around at run time, not compile time, since a
104113         program might be built on Solaris 8, where things work, and
104114         run on Solaris 10.
104115         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
104116         to use the following interface instead:
104117         (OPENAT_BUFFER_SIZE): New macro.
104118         (openat_proc_name): New function.
104119         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
104120         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
104121         Likewise.
104122         * lib/openat-proc.c: New file.
104123         * modules/openat (Files): Add lib/openat-proc.c.
104124         (Depends-on): Add same-inode, stdbool.
104125         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
104127 2006-09-29  Bruno Haible  <bruno@clisp.org>
104129         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
104130         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
104131         argument. Set stdout_closed before testing for ferror, not after.
104132         (fwriteerror, fwriteerror_no_ebadf): New functions.
104134 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104136         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
104138 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
104140         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
104141         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
104143 2006-09-28  Jim Meyering  <jim@meyering.net>
104145         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
104146         Include <unistd.h>.
104148 2006-09-28  Bruno Haible  <bruno@clisp.org>
104150         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
104151         * modules/linkedhash-list (Depends-on): Likewise.
104152         * modules/rbtreehash-list (Depends-on): Likewise.
104154 2006-09-28  Bruno Haible  <bruno@clisp.org>
104156         * lib/strndup.h: Simplify the redefinition of strndup.
104157         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
104158         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
104160 2006-09-28  Bruno Haible  <bruno@clisp.org>
104162         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
104163         * lib/gl_linkedhash_list.c: Likewise.
104164         * lib/gl_rbtreehash_list.c: Likewise.
104166 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
104168         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
104169         getaddrinfo.
104171         * lib/__fpending.h: Don't include <stdio_ext.h> unless
104172         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
104173         it causes <stdio_ext.h> to cause a compile-time error.
104174         Problem reported by Nelson H. F. Beebe.
104175         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
104176         of HAVE_DECL___PENDING.
104178         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
104179         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
104180         declaration.
104182 2006-09-27  Jim Meyering  <jim@meyering.net>
104184         This file could end up with a definition for a function
104185         named __strndup, rather than rpl_strndup on a system with
104186         incomplete weak_alias support.
104187         * lib/strndup.c (strndup): Rename from __strndup.
104188         Remove #defines that used to map __strndup to strndup.
104189         Don't use K&R prototypes.
104190         Remove LIBC-related code, since this file is not sync'd with glibc.
104191         * lib/strndup.h: Revamp, accordingly.
104192         * m4/strndup.m4: Modernize.
104194 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
104196         * modules/savewd (Depends-on): Add 'raise'.
104197         * lib/savewd.c: Include <signal.h>, for 'raise'.
104199 2006-09-26  Jim Meyering  <jim@meyering.net>
104201         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
104202         when we detect Darwin 8.7.0's acl_get_file bug.
104203         Rearrange to perform the new (below) run-test while $LIBS
104204         contains any acl-related library.  Set USE_ACL at the end.
104205         (gl_ACL_GET_FILE): New function.
104207 2006-09-26  Eric Blake  <ebb9@byu.net>
104209         * lib/verror.c: Include <config.h> unconditionally.
104211 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
104213         * modules/clock-time (Maintainer): Add self.
104214         * modules/getlogin_r (Depends-on): Add extensions.
104216 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104218         * modules/clock-time: New module.
104219         * modules/nanosleep (Depends-on): Add clock-time.
104220         * modules/gethrxtime (Depends-on): Likewise.
104221         * modules/gettime (Depends-on): Likewise.
104222         * modules/settime (Depends-on): Likewise.
104224         * modules/fts-lgpl: Depend on openat.
104225         * modules/mkancesdirs: Depend on savewd.
104226         * modules/mkdir-p: Likewise.
104228 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104230         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
104232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
104233         `gl_have_arbitrary_file_name_length_limit' to
104234         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
104235         actually works between configure runs.
104237 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104238             Bruno Haible  <bruno@clisp.org>
104240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
104242 2006-09-25  Jim Meyering  <jim@meyering.net>
104244         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
104245         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
104247 2006-09-25  Eric Blake  <ebb9@byu.net>
104249         * gnulib-tool (func_import, func_create_testdir): Fix typos in
104250         exec's in 2006-09-18 patch when shuffling fds.
104252 2006-09-25  Bruno Haible  <bruno@clisp.org>
104254         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
104255         Reported by Jim Meyering.
104257 2006-09-24  Jim Meyering  <jim@meyering.net>
104259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
104260         compare a pointer against a literal "0".  That caused failures with
104261         at least HP-UX's hpcc.
104263 2006-09-22  Simon Josefsson  <jas@extundo.com>
104265         * modules/gc-sha1:
104266         * modules/gc-md4:
104267         * modules/gc-hmac-sha1:
104268         * modules/gc-hmac-md5:
104269         * modules/gc-des:
104270         * modules/gc-arcfour: Distribute more files.
104272 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104274         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
104275         (gl_linked_iterator_from_to): Initialize struct completely.
104276         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
104277         (gl_tree_iterator_from_to): Likewise
104278         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
104279         * lib/gl_array_list.c [lint] (gl_array_iterator)
104280         (gl_array_iterator_from_to): Likewise.
104281         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
104282         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
104283         (gl_carray_iterator_from_to): Likewise.
104285         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
104286         * lib/md4.c (md4_process_block): Remove unused variable.
104287         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
104288         parentheses for clarity.
104290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104292         * modules/bison-i18n (Depends-on): Add gettext.
104294 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104296         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
104297         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
104298         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
104299         also add missing comma that caused broken test.
104300         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
104301         stdlib.h, for `abort'.
104302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
104303         variables.
104304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
104305         include unistd.h if present, for `rmdir'.
104306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
104307         variables.
104308         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
104309         in the process include standard headers for prototypes.
104310         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
104311         gets declared on GNU/Linux.
104312         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
104313         unistd.h, for `rmdir'.
104314         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
104316         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
104317         always true.
104318         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
104320         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
104322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104324         * gnulib-tool (func_version): Create output all at once.  This
104325         may help avoid triggering unnecessary SIGPIPEs, and at any
104326         rate it doesn't hurt.
104328 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104329             Bruno Haible  <bruno@clisp.org>
104331         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
104332         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
104333         * m4/signed.m4 (bh_C_SIGNED): Likewise.
104335         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
104336         (gl_FUNC_VASPRINTF): Invoke it.
104338 2006-09-22  Bruno Haible  <bruno@clisp.org>
104340         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
104341         getloadavg.c as first argument.
104343 2006-09-22  Bruno Haible  <bruno@clisp.org>
104345         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
104346         at the beginning of the gl_INIT macro.
104347         * modules/getloadavg (configure.ac): Pass $gl_source_base to
104348         gl_GETLOADAVG.
104350 2006-09-22  Bruno Haible  <bruno@clisp.org>
104352         * gnulib-tool (func_create_megatestdir): Don't include the config-h
104353         module.
104354         Suggested by Ralf Wildenhues.
104356 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104358         Import this patch from libc:
104360         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
104362         * lib/regex_internal.c (re_string_reconstruct): Handle
104363         offset < pstr->valid_raw_len && pstr->offsets_needed case.
104364         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
104365         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
104366         re_string_context_at.
104368         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
104369         now requires it.
104370         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
104371         gl_REGEX now does it for us.
104372         (gl_REGEX): Add test taken from
104373         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
104375         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
104376         Check that large offsets work.  Modernize Autoconf usages.
104377         Prefer "yes" to mean a good thing rather than a bad.
104378         Don't put "#define mkstemp" in config.h, as this might interfere
104379         with standard system headers that "#define mkstemp mkstemp64".
104381         * modules/mkstemp (Depends-on): Add extensions, so that
104382         mkstemp is visible on some platforms.
104383         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
104384         (Include): Change to "mkstemp.h" from <stdlib.h>.
104385         (Files): Add mkstemp.h.
104387         * lib/mkstemp.h: New file, since some standard headers
104388         #define mkstemp.
104389         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
104390         Include "mkstemp.h".
104391         Make the _LIBC code resemble glibc original more,
104392         e.g., use K&R style.
104393         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
104394         (mkstemp): Remove, since mkstemp.h does this for us.
104395         * lib/stdlib--.h: Include mkstemp.h.
104397         Import this patch from libc:
104399         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104401         * lib/tempname.c (__gen_tempname): Change attempts_min
104402         into a macro.  Use preprocessor to decide how to initialize
104403         attempts [Coverity CID 67].
104405 2006-09-20  Bruno Haible  <bruno@clisp.org>
104407         * lib/mkdtemp.c: Import from libc.
104408         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
104409                 * sysdeps/posix/tempname.c (__gen_tempname): Change
104410                 attempts_min into a macro.  Use preprocessor to decide how to
104411                 initialize attempts [Coverity CID 67].
104412         2001-11-27  Paul Eggert  <eggert@twinsun.com>
104413                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
104414                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
104416 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104418         * gnulib-tool (func_exit): New function, to allow to pass the
104419         exit status portably through the trap.  Use everywhere.
104420         (--help, --version): Signal a write error.
104421         (trap): catch SIGPIPE, for write errors.
104422         Exit at the end of the trap, with the correct exit status.
104424 2006-09-19  Karl Berry  <karl@gnu.org>
104426         * doc/gnulib.texi: note about the license texinfo files.
104428 2006-09-19  Eric Blake  <ebb9@byu.net>
104430         * gnulib-tool: Avoid space-tab.
104432 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104434         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
104435         that prevented coreutils 6.1 from building.  Problem reported
104436         by Petter Reinholdtsen.
104438 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
104440         * gnulib-tool (avoidlist): Fix typo that broke options like
104441         --avoid=lock that are used by coreutils bootstrap.
104443 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
104445         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
104446         more systematically.
104448 2006-09-18  Jim Meyering  <jim@meyering.net>
104450         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
104452 2006-09-18  Bruno Haible  <bruno@clisp.org>
104454         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
104456 2006-09-18  Bruno Haible  <bruno@clisp.org>
104458         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
104459         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
104460         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
104461         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
104462         * m4/gettext.m4: Require autoconf >= 2.52.
104463         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
104464         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
104465         of gl_cv_header_inttypes_h.
104467 2006-09-18  Bruno Haible  <bruno@clisp.org>
104469         * lib/javaversion.c: Include configmake.h.
104471 2006-09-18  Bruno Haible  <bruno@clisp.org>
104473         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
104474         avoid that the while loops be executed in a subshell.
104476 2006-09-18  Bruno Haible  <bruno@clisp.org>
104478         * MODULES.html.sh (func_module): Break long lines.
104479         Suggested by Bruce Korb <bkorb@gnu.org>.
104481 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104483         Speed up by a factor of 1.12.
104484         * gnulib-tool (nl): New variable.
104485         (func_import): Rewrite include directive extraction to only read each
104486         directive once.
104488 2006-09-17  Bruno Haible  <bruno@clisp.org>
104490         * modules/javaversion (Makefile.am): Remove DEFS setting.
104491         (Depends-on): Add configmake, for PKGDATADIR definition.
104493 2006-09-17  Bruno Haible  <bruno@clisp.org>
104495         * gnulib-tool (func_create_testdir): Rewrite all files at once.
104497 2006-09-17  Bruno Haible  <bruno@clisp.org>
104499         * gnulib-tool (func_append): New function, stolen from libtool.m4.
104500         (func_modules_transitive_closure, func_modules_add_dummy,
104501         func_modules_to_filelist, func_import, func_create_testdir,
104502         func_create_megatestdir, ...): Use it wherever possible.
104503         Suggested by Ralf Wildenhues.
104505 2006-09-16  Karl Berry  <karl@gnu.org>
104507         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
104508         to avoid sectioning errors.
104509         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
104510         [ifinfo]: blank line after @center-ed titles.
104511         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
104512         Spell FSF address consistently with others.
104513         (These changes approved by rms.)
104515 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104517         Speed up by a factor of 1.61.
104518         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
104519         already checked module names again.
104521 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104523         Speed up by a factor of 1.13.
104524         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
104525         for new_files, and the input to func_add_or_update.
104527 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104529         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
104530         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
104532 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
104534         * modules/mkancesdirs (Depends-on): Add fcntl.
104535         * modules/savewd: New file.
104536         * MODULES.html.sh (File system functions): Add savewd.
104538         * modules/configmake (Makefile.am): Add support for the
104539         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
104541 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
104543         * m4/savewd.m4: New file.
104545 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
104547         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
104548         (dirchownmod): New arg FD.  All callers changed.
104549         Use FD rather than opening the directory ourself, as opening is
104550         now the caller's responsibility.
104551         * lib/dirchownmod.h: Likewise.
104552         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
104553         hosts that require <sys/types.h> before <sys/stat.h>.  Include
104554         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
104555         (test_dir): Remove.
104556         (mkancesdirs): Return length of prefix of FILE that has already
104557         been made, or -2 if there is a child doing the work.  Redo
104558         algorithm so that it is O(N) rather than O(N**2).  Optimize away
104559         ".", and treat ".." specially since it might stray back into
104560         already-created areas.  Use a subprocess if necessary.  New arg
104561         WD; all users changed.  MAKE_DIR function should now return 1
104562         if it creates a directory that is not readable.  Return -2 if
104563         a child process is spun off.
104564         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
104565         Adjust signature to match code.
104566         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
104567         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
104568         all users changed.
104569         * lib/savewd.c, lib/savewd.h: New files.
104571 2006-09-15  Jim Meyering  <jim@meyering.net>
104573         * modules/rename-dest-slash: New module.
104574         * MODULES.html.sh (posix_compat): Add it here.
104576         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
104578 2006-09-15  Jim Meyering  <jim@meyering.net>
104580         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
104581         file.
104583         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
104585 2006-09-15  Jim Meyering  <jim@meyering.net>
104587         * lib/rename-dest-slash.c (has_trailing_slash): Use
104588         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
104589         (rpl_rename_dest_slash): Perform the cheaper trailing slash
104590         test before testing whether SRC is a directory.
104591         Suggestions from Bruno Haible.
104593         Avoid a warning about an unused variable.
104594         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
104595         into the #ifdef block where it's used.
104597         * lib/rename-dest-slash.c: New file.
104599 2006-09-14  Bruno Haible  <bruno@clisp.org>
104601         * lib/allocsa.c: Include <config.h> unconditionally.
104602         * lib/asnprintf.c: Likewise.
104603         * lib/asprintf.c: Likewise.
104604         * lib/c-strcasecmp.c: Likewise.
104605         * lib/c-strcasestr.c: Likewise.
104606         * lib/c-strncasecmp.c: Likewise.
104607         * lib/c-strstr.c: Likewise.
104608         * lib/classpath.c: Likewise.
104609         * lib/clean-temp.c: Likewise.
104610         * lib/concatpath.c: Likewise.
104611         * lib/copy-file.c: Likewise.
104612         * lib/csharpcomp.c: Likewise.
104613         * lib/csharpexec.c: Likewise.
104614         * lib/execute.c: Likewise.
104615         * lib/fatal-signal.c: Likewise.
104616         * lib/findprog.c: Likewise.
104617         * lib/fwriteerror.c: Likewise.
104618         * lib/gl_array_list.c: Likewise.
104619         * lib/gl_array_oset.c: Likewise.
104620         * lib/gl_avltree_list.c: Likewise.
104621         * lib/gl_avltree_oset.c: Likewise.
104622         * lib/gl_avltreehash_list.c: Likewise.
104623         * lib/gl_carray_list.c: Likewise.
104624         * lib/gl_linked_list.c: Likewise.
104625         * lib/gl_linkedhash_list.c: Likewise.
104626         * lib/gl_list.c: Likewise.
104627         * lib/gl_oset.c: Likewise.
104628         * lib/gl_rbtree_list.c: Likewise.
104629         * lib/gl_rbtree_oset.c: Likewise.
104630         * lib/gl_rbtreehash_list.c: Likewise.
104631         * lib/imaxabs.c: Likewise.
104632         * lib/imaxdiv.c: Likewise.
104633         * lib/javacomp.c: Likewise.
104634         * lib/javaexec.c: Likewise.
104635         * lib/javaversion.c: Likewise.
104636         * lib/linebreak.c: Likewise.
104637         * lib/localcharset.c: Likewise.
104638         * lib/lock.c: Likewise.
104639         * lib/mbchar.c: Likewise.
104640         * lib/mbswidth.c: Likewise.
104641         * lib/mkdtemp.c: Likewise.
104642         * lib/pipe.c: Likewise.
104643         * lib/printf-args.c: Likewise.
104644         * lib/printf-parse.c: Likewise.
104645         * lib/progname.c: Likewise.
104646         * lib/progreloc.c: Likewise.
104647         * lib/readlink.c: Likewise.
104648         * lib/sh-quote.c: Likewise.
104649         * lib/stpcpy.c: Likewise.
104650         * lib/stpncpy.c: Likewise.
104651         * lib/strcasecmp.c: Likewise.
104652         * lib/strcasestr.c: Likewise.
104653         * lib/strcspn.c: Likewise.
104654         * lib/striconv.c: Likewise.
104655         * lib/strncasecmp.c: Likewise.
104656         * lib/strnlen1.c: Likewise.
104657         * lib/strstr.c: Likewise.
104658         * lib/strtok_r.c: Likewise.
104659         * lib/tls.c: Likewise.
104660         * lib/tmpdir.c: Likewise.
104661         * lib/unicodeio.c: Likewise.
104662         * lib/unsetenv.c: Likewise.
104663         * lib/vasnprintf.c: Likewise.
104664         * lib/vasprintf.c: Likewise.
104665         * lib/wait-process.c: Likewise.
104666         * lib/xallocsa.c: Likewise.
104667         * lib/xsetenv.c: Likewise.
104668         * lib/xstriconv.c: Likewise.
104670 2006-09-13  Simon Josefsson  <jas@extundo.com>
104672         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
104673         that internally, suggested by Ralf Wildenhues
104674         <Ralf.Wildenhues@gmx.de>.
104676 2006-09-13  Simon Josefsson  <jas@extundo.com>
104678         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
104679         @LIBOBJS@.
104680         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104682 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104684         * lib/_fpending.c: Include <config.h> unconditionally, since we no
104685         longer worry about uses that don't define HAVE_CONFIG_H.
104686         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
104687         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
104688         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
104689         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
104690         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
104691         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
104692         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
104693         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
104694         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
104695         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
104696         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
104697         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
104698         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
104699         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
104700         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
104701         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
104702         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
104703         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
104704         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
104705         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
104706         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
104707         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
104708         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
104709         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
104710         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
104711         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
104712         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
104713         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
104714         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
104715         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
104716         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
104717         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
104718         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
104719         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
104720         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
104721         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
104722         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
104723         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
104724         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
104725         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
104726         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
104727         Likewise.
104729 2006-09-13  Eric Blake  <ebb9@byu.net>
104731         * lib/getopt.c: Fix typo in last commit.
104733 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104735         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
104736         dgettext.
104738 2006-09-12  Jim Meyering  <jim@meyering.net>
104740         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
104741         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
104742         Reported by Nelson H. F. Beebe.
104744 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
104746         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
104747         program_invocation_name and program_invocation_short_name are
104748         initialized.
104749         * lib/argp-namefrob.h: Move declarations of program_invocation_name
104750         and program_invocation_short_name to argp.h, so they are visible
104751         to user programs.
104752         * lib/argp.h: Likewise
104754 2006-09-10  Bruno Haible  <bruno@clisp.org>
104756         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
104757         m4/inttypes_h.m4, m4/uintmax_t.m4.
104759 2006-09-10  Bruno Haible  <bruno@clisp.org>
104761         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
104762         gl_AC_TYPE_UINTMAX_T.
104764 2006-09-10  Bruno Haible  <bruno@clisp.org>
104766         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
104768 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
104770         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
104771         convention.  Text proposed by Bruno Haible.
104772         (struct argp_option): Document the use of N_() wrappers.
104774         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
104775         '\v', and translate the two parts separately, instead of feeding
104776         the whole string to gettext.  This allows to exclude
104777         '\v' from the strings visible to the translator by writing doc
104778         strings as N_("..") "\v" N_("..").
104780 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
104782         * config/srclist.txt: Undo latest change; the bug was fixed.
104784 2006-09-09  Bruno Haible  <bruno@clisp.org>
104786         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
104787         assignments if building a library without libtool.
104788         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
104789         in func_emit_lib_Makefile_am.
104790         (func_import): When building a static library libfoo.a, arrange to
104791         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
104792         (func_create_testdir): Likewise.
104793         * modules/gc (configure.ac, Makefile.am): If building statically,
104794         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
104795         * modules/iconvme (configure.ac, Makefile.am): Likewise.
104796         * modules/striconv (configure.ac, Makefile.am): Likewise.
104797         Based on a suggestion by Ralf Wildenhues.
104799 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104801         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
104802         Check for unistd.h too, since Autoconf doesn't assume POSIX.
104803         Also:
104805         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104806         Add year_2050_test to catch glibc bug 2821
104807         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
104809         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104810         Prefer #ifdef to #if.
104812         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
104813         Return from 'main' instead of calling 'exit'.
104815 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104817         * lib/mktime.c (guess_time_tm): Fix bug where mktime
104818         returned the maximum time_t value rather than (time_t) -1.
104819         Problem originally reported by William Bardwell
104820         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
104822         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
104823         Moved to here ...
104824         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
104825         ... from here.
104827 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104829         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
104830         2821 is fixed.
104832 2006-09-08  Jim Meyering  <jim@meyering.net>
104834         Don't make generated files read-only.  That would bother too many
104835         people.  However, do retain the ability to work when targets are
104836         read-only: remove the destination and temporary files before writing
104837         them (when generated via sed or echo), or by using the -f option for
104838         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
104839         * modules/alloca-opt, modules/argz, modules/arpa_inet:
104840         * modules/byteswap, modules/configmake, modules/fcntl:
104841         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
104842         * modules/localcharset, modules/netinet_in, modules/poll:
104843         * modules/stdbool, modules/stdint, modules/sys_select:
104844         * modules/sys_socket, modules/sys_stat, modules/sysexits:
104846 2006-09-08  Jim Meyering  <jim@meyering.net>
104848         Avoid new build failure on FreeBSD 6.0.
104849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
104850         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
104851         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
104853 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
104857 2006-09-07  Jim Meyering  <jim@meyering.net>
104859         Fix global typo in last change: use chmod u-w, not chmod u-x.
104860         Spotted by Paul Eggert and Bruce Korb.
104861         * modules/alloca-opt, modules/argz, modules/arpa_inet:
104862         * modules/byteswap, modules/configmake, modules/fcntl:
104863         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
104864         * modules/localcharset, modules/netinet_in, modules/poll:
104865         * modules/stdbool, modules/stdint, modules/sys_select:
104866         * modules/sys_socket, modules/sys_stat, modules/sysexits:
104868 2006-09-06  Jim Meyering  <jim@meyering.net>
104870         Make generated files be read-only.
104871         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
104872         Ensure that each generated file is now read-only.
104873         * modules/argz: Likewise.
104874         * modules/arpa_inet: Likewise.
104875         * modules/byteswap: Likewise.
104876         * modules/configmake: Likewise.
104877         * modules/fcntl: Likewise.
104878         * modules/fnmatch: Likewise.
104879         * modules/getopt: Likewise.
104880         * modules/glob: Likewise.
104881         * modules/inttypes: Likewise.
104882         * modules/netinet_in: Likewise.
104883         * modules/poll: Likewise.
104884         * modules/stdbool: Likewise.
104885         * modules/stdint: Likewise.
104886         * modules/sys_select: Likewise.
104887         * modules/sys_socket: Likewise.
104888         * modules/sys_stat: Likewise.
104889         * modules/sysexits: Likewise.
104890         * modules/localcharset: Same as above, but continue using temporary
104891         file named "t-$@" (why different?) rather than the "$@-t" used
104892         everywhere else.
104894         * modules/sysexits (Makefile.am): Replace literal occurrences
104895         of "sysexit.h" more readable, and more consistent, "$@".
104897 2006-09-06  Bruno Haible  <bruno@clisp.org>
104899         * modules/striconv: New file.
104900         * modules/xstriconv: New file.
104901         * MODULES.html.sh (Internationalization functions): Add striconv,
104902         xstriconv.
104904 2006-09-06  Bruno Haible  <bruno@clisp.org>
104906         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
104907         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
104908         not using libtool correctly.
104910 2006-09-06  Bruno Haible  <bruno@clisp.org>
104912         * lib/striconv.h: New file.
104913         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
104914         iconvstring.c.
104915         * lib/xstriconv.h: New file.
104916         * lib/xstriconv.c: New file.
104918 2006-09-06  Bruno Haible  <bruno@clisp.org>
104920         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
104921         lib_..._LDFLAGS.
104923 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104925         * lib/argz_.h: Sync from Libtool.
104927         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
104928                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
104930         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
104932 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
104934         * modules/trim: New file.
104936 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
104938         * lib/trim.h: New file.
104939         * lib/trim.c: New file.
104941 2006-09-05  Bruno Haible  <bruno@clisp.org>
104943         * MODULES.html.sh (String handling): Add trim.
104945 2006-09-04  Karl Berry  <karl@gnu.org>
104947         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
104948         until next release.
104950 2006-09-03  Bruno Haible  <bruno@clisp.org>
104952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
104953         correctly.
104955 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104957         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
104958         not gl_GETLOADAVG.  Omit unneeded semicolons.
104959         Problems reported by Ralf Wildenhues in
104960         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
104961         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
104962         at the end, which is the usual gnulib style.
104964         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
104965         of doing all the work ourselves.
104966         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
104967         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
104969 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104971         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
104972         Problem reported by Ralf Wildenhues in
104973         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
104975         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
104976         HAVE_STRUCT_STATFS_F_FSTYPENAME.
104978 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104980         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
104981         yesterday's patch by changing test -n to test -z.
104983 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104985         * modules/getloadavg (Files): Add m4/getloadavg.m4.
104986         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
104987         the former is now obsolescent.
104989         * modules/chdir-long (Depends-on): Add fcntl.
104991 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104993         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
104994         obsolescent, and programs should use gnulib instead.
104995         * m4/getloadavg.m4: New file, with contents taken from Autoconf
104996         but with prefixes changed.
104998 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
105000         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
105001         or stdbool.h, because they might not exist while configuring.
105003         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
105004         Don't include unistd.h or limits.h; not needed, since chdir-long.h
105005         does that for us.
105006         (O_DIRECTORY): Remove.
105008 2006-08-31  Eric Blake  <ebb9@byu.net>
105010         * gnulib-tool: Don't let emacs change spaces to TAB.
105012 2006-08-31  Bruno Haible  <bruno@clisp.org>
105014         * gnulib-tool: When calling func_import more than once, do it in a
105015         subshell.
105016         Reported by Eric Blake <ebb9@byu.net>.
105018 2006-08-31  Bruno Haible  <bruno@clisp.org>
105020         * gnulib-tool (nl): Remove variable.
105021         (sed_transform_lib_file): Use more robust test for config-h module.
105022         (func_import): Fix typo in 2006-08-25 patch.
105024 2006-08-31  Bruno Haible  <bruno@clisp.org>
105026         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
105027         specified, augment Makefile.am variables instead of assigning them.
105029 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105031         Work around a bug in both the Linux and SunOS 64-bit kernels:
105032         nanosleep mishandles sleeps for longer than 2**31 seconds.
105033         Problem reported by Frank v Waveren in
105034         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
105036         Check for nanosleep bug.
105037         (LIB_NANOSLEEP): Append clock_gettime library if needed.
105039 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105041         Work around a bug in both the Linux and SunOS 64-bit kernels:
105042         nanosleep mishandles sleeps for longer than 2**31 seconds.
105043         Problem reported by Frank v Waveren in
105044         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
105045         * lib/nanosleep.c (BILLION): New constant.
105046         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
105047         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
105048         implementation.
105050 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105052         * modules/nanosleep (Depends-on): Add gettime.
105054 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
105055         and Simon Josefsson  <jas@extundo.com>
105056         and Oskar Liljeblad  <oskar@osk.mine.nu>
105058         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
105059         * gnulib-tool (func_import): New license type 'unmodifiable license
105060         text'.
105061         * modules/fdl: Use it.  Longer description.
105062         * module/gpl, module/lgpl: New files.
105064 2006-08-30  Jim Meyering  <jim@meyering.net>
105066         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
105067         shadowing the parameter.
105069 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105071         Sync from Libtool:
105073         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105075         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
105076         sharing with gnulib.  Report by Eric Blake.
105078 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105080         * modules/isapipe: New file.
105081         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
105083 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105085         * modules/configmake (Makefile.am): Add a comment, and omit
105086         the CONFIGMAKE_ prefix from generated macro names.  Suggested
105087         by Bruno Haible.
105089 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105091         * m4/isapipe.m4: New file.
105093 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
105095         * lib/isapipe.c, lib/isapipe.h: New files.
105097 2006-08-29  Jim Meyering  <jim@meyering.net>
105099         * modules/configmake (Makefile.am): Make configmake.h depend on
105100         Makefile.  Otherwise, a stale configmake.h could hang around.
105102 2006-08-29  Eric Blake  <ebb9@byu.net>
105104         * lib/error.c (error_at_line, print_errno_message): Match libc, after
105105         resolution of upstream bug 3044.
105107 2006-08-29  Bruno Haible  <bruno@clisp.org>
105109         * modules/localcharset (Depends-on): Add configmake.
105110         (Makefile.am): Remove setting of LIBDIR through DEFS.
105112 2006-08-29  Bruno Haible  <bruno@clisp.org>
105114         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
105115         defined.
105117 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105119         * modules/fcntl: New file.
105120         * modules/chdir-safer (Depends-on): Add fcntl.
105121         * modules/fts: Likewise.
105122         * modules/mkdir-p: Likewise.
105124         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
105125         This undoes the most recent change, since we're now addressing the
105126         problem in a different way.
105128         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
105129         into output, since the output might be called Makefile.am even
105130         if $makefile_name is something different.
105131         (func_import): Use $makefile_am rather than
105132         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
105133         empty.
105135         * modules/inttypes (Files): Add m4/inttypes-h.m4.
105137 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105139         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
105140         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
105141         recent change to stdint.m4, since we're now addressing the problem in a
105142         different way.
105144 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105146         * m4/fcntl_h.m4: New file.
105148 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
105150         * lib/fcntl_.h: New file.
105151         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
105152         the fcntl module.
105153         * lib/dirchownmod.c: Likewise.
105154         * lib/fts.c: Likewise.
105156         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
105157         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
105158         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
105159         just before including <inttypes.h>, to avoid circular inclusion.
105161 2006-08-28  Jim Meyering  <jim@meyering.net>
105163         * doc/visibility.texi: Actually read and correct the grammar of the
105164         sentence affected by yesterday's change.
105166 2006-08-28  Eric Blake  <ebb9@byu.net>
105168         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
105169         needs wrapper.
105171 2006-08-28  Eric Blake  <ebb9@byu.net>
105173         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
105175 2006-08-28  Eric Blake  <ebb9@byu.net>
105177         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
105179 2006-08-28  Bruno Haible  <bruno@clisp.org>
105181         * modules/c-strstr: New file, from GNU gettext.
105182         * MODULES.html.sh (String handling): Add c-strstr.
105184 2006-08-28  Bruno Haible  <bruno@clisp.org>
105186         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
105187         macros.
105188         Reported by Eric Blake.
105190 2006-08-28  Bruno Haible  <bruno@clisp.org>
105192         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
105193         (VASNPRINTF): Return a string of length > INT_MAX without failing.
105194         * lib/vasprintf.c: Include errno.h, limits.h.
105195         (EOVERFLOW): New fallback definition.
105196         (vasprintf): Test here whether the string length is > INT_MAX.
105197         * lib/vsnprintf.c: Include errno.h, limits.h.
105198         (EOVERFLOW): New fallback definition.
105199         (vsnprintf): Fix bug when generated string was too long for the buffer.
105200         Test here whether the string length is > INT_MAX.
105202 2006-08-28  Bruno Haible  <bruno@clisp.org>
105204         * lib/inttypes_.h (SCNX*): Remove definitions.
105205         Reported by Eric Blake.
105207 2006-08-28  Bruno Haible  <bruno@clisp.org>
105209         * lib/c-strstr.h: New file, from GNU gettext.
105210         * lib/c-strstr.c: New file, from GNU gettext.
105212 2006-08-28  Bruno Haible  <bruno@clisp.org>
105214         * gnulib-tool: Reorder some statements.
105216 2006-08-28  Bruno Haible  <bruno@clisp.org>
105218         * gnulib-tool: New option --makefile-name.
105219         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
105220         $makefile_name.
105221         (func_import): Write $makefile_name to the cache file, and read it from
105222         there unless explicitly specified. Use $makefile_name as file name
105223         instead of Makefile.am. Adjust the recommendations accordingly.
105225 2006-08-28  Bruno Haible  <bruno@clisp.org>
105227         * gnulib-tool (func_verify_module): Check against misapplying patch.
105229 2006-08-28  Bruno Haible  <bruno@clisp.org>
105231         * gnulib-tool (func_relativize, func_relconcat): New functions.
105232         Give an error if --local-dir is given with --update.
105233         Remove trailing slashes from $local_gnulib_dir.
105234         (func_import): Store the relativized $local_gnulib_dir in
105235         gnulib-cache.m4, and read it from there if not specified explicitly.
105237 2006-08-28  Bruno Haible  <bruno@clisp.org>
105239         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
105240         is the current directory. Respect also $local_gnulib_dir.
105242 2006-08-28  Bruno Haible  <bruno@clisp.org>
105243             Simon Josefsson  <jas@extundo.com>
105245         BeOS portability.
105246         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
105248 2006-08-27  Jim Meyering  <jim@meyering.net>
105250         * doc/visibility.texi: Remove duplicate word: "pointer".
105252 2006-08-26  Bruno Haible  <bruno@clisp.org>
105254         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
105255         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
105256         (Makefile.am): Create inttypes.h from inttypes_.h.
105257         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
105259         * modules/imaxabs: New file.
105261         * modules/imaxdiv: New file.
105263 2006-08-26  Bruno Haible  <bruno@clisp.org>
105265         * m4/inttypes.m4: New file.
105266         * m4/_inttypes_h.m4: Remove file.
105267         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
105268         PRI_MACROS_BROKEN.
105269         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
105271         * m4/imaxabs.m4: New file.
105273         * m4/imaxdiv.m4: New file.
105275 2006-08-26  Bruno Haible  <bruno@clisp.org>
105277         * lib/inttypes_.h: New file.
105278         * lib/inttypes.h: Remove file.
105279         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
105281         * lib/imaxabs.c: New file.
105283         * lib/imaxdiv.c: New file.
105285 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105287         New config-h module, so that "make" output needn't be cluttered
105288         by -DHAVE_CONFIG_H.
105289         * MODULES.html.sh (Support for building libraries and executables):
105290         Add config-h.
105291         * modules/config-h: New file.
105292         * gnulib-tool (nl, sed_transform_lib_file): New vars.
105293         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
105294         the config-h module is used.
105296         New configmake module, so that "make" output needn't be cluttered
105297         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
105298         * MODULES.html.sh (Support for building libraries and executables):
105299         Add configmake.
105300         * modules/configmake: New file.
105302 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
105304         * m4/config-h.m4: New file.
105306 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105308         * config/srclist.txt: Add elisp-comp.
105310 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105312         * MODULES.html.sh (Support for building libraries and executables):
105313         Add elisp-comp.
105314         * build-aux/elisp-comp: New file.
105315         * modules/elisp-comp: New file.
105317 2006-08-24  Bruno Haible  <bruno@clisp.org>
105319         * gnulib-tool (func_create_testdir): Use non-default values of
105320         sourcebase and m4base.
105322 2006-08-24  Bruno Haible  <bruno@clisp.org>
105324         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
105325         HTML structure.
105327 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105329         * modules/openat (Depends-on): Add lchown.
105331 2006-08-23  Bruno Haible  <bruno@clisp.org>
105333         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
105334         of gl_LOCK_EARLY instead of gl_LOCK.
105336 2006-08-23  Bruno Haible  <bruno@clisp.org>
105338         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
105339         on OSF/1 to no.
105340         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
105342 2006-08-23  Bruno Haible  <bruno@clisp.org>
105344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
105345         as unusable.
105347         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
105348         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
105349         (gl_LOCK): New macro.
105351 2006-08-22  Simon Josefsson  <jas@extundo.com>
105353         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
105354         to md5 module.
105356 2006-08-22  Simon Josefsson  <jas@extundo.com>
105358         * MODULES.html.sh: Add "Support for maintaining and release
105359         projects".
105361         * build-aux/gnupload: New file, from coreutils.
105363 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105365         Avoid the need for AC_LIBSOURCES in m4 macros.
105366         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
105367         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
105368         * modules/check-version (EXTRA_DIST): Add check-version.h.
105369         * modules/crc (EXTRA_DIST): Add crc.h.
105370         * modules/des (EXTRA_DIST): Add des.h.
105371         * modules/gc (EXTRA_DIST): Add gc.h.
105372         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
105373         * modules/getline (EXTRA_DIST): Add getline.h.
105374         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
105375         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
105376         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
105377         * modules/md2 (EXTRA_DIST): Add md2.h.
105378         * modules/md4 (EXTRA_DIST): Add md4.h.
105379         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
105380         * modules/read-file (EXTRA_DIST): Add read-file.h.
105381         * modules/readline (EXTRA_DIST): Add readline.h.
105382         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
105383         rijndael-api-fst.h.
105385 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105387         * m4/rijndael.m4 (gl_ARCFOUR):
105388         * m4/arctwo.m4 (gl_ARCTWO):
105389         * m4/check-version.m4 (gl_CHECK_VERSION):
105390         * m4/crc.m4 (gl_CRC):
105391         * m4/des.m4 (gl_DES):
105392         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
105393         * m4/gc.m4 (gl_GC):
105394         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
105395         * m4/getline.m4 (gl_FUNC_GETLINE):
105396         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
105397         * m4/hmac-md5.m4 (gl_HMAC_MD5):
105398         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
105399         * m4/md2.m4 (gl_MD2):
105400         * m4/md4.m4 (gl_MD4):
105401         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
105402         * m4/read-file.m4 (gl_FUNC_READ_FILE):
105403         * m4/readline.m4 (gl_FUNC_READLINE):
105404         * m4/rijndael.m4 (gl_RIJNDAEL):
105405         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
105406         to get the necessary .h files and whatnot.
105408 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
105410         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
105411         gnulib rather than the other way around.
105412         * config/srclistvars.sh (COREUTILS): Remove.
105414 2006-08-22  Jim Meyering  <jim@meyering.net>
105416         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
105418         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
105420 2006-08-22  Eric Blake  <ebb9@byu.net>
105422         * modules/regexprops-generic: New file.
105423         * MODULES.html.sh (Support for building documentation): List it.
105425 2006-08-22  Eric Blake  <ebb9@byu.net>
105427         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
105428         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
105429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
105430         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
105432 2006-08-22  Bruno Haible  <bruno@clisp.org>
105434         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
105435         and lib_LTLIBRARIES like the other lib_* variables.
105437 2006-08-22  Bruno Haible  <bruno@clisp.org>
105439         * build-aux/x-to-1.in: New file, from GNU gettext.
105441 2006-08-22  Bruno Haible  <bruno@clisp.org>
105443         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
105444         <utmpx.h> exists.
105446 2006-08-22  Bruno Haible  <bruno@clisp.org>
105448         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
105449         <utmpx.h> exists.
105451 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105453         BeOS portability.
105454         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
105455         exist.
105456         Problem reported by Bruno Haible.
105458 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105460         Avoid the need for AC_LIBSOURCES in m4 macros.
105461         * modules/acl (EXTRA_DIST): Add acl.h.
105462         * modules/argmatch (Files): Add m4/argmatch.m4.
105463         (configure.ac): Add gl_ARGMATCH.
105464         (EXTRA_DIST): Renamed from lib_SOURCES, for
105465         consistency with the other modules.  Remove argmatch.c.
105466         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
105467         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
105468         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
105469         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
105470         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
105471         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
105472         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
105473         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
105474         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
105475         * modules/closeout (EXTRA_DIST): Add closeout.h.
105476         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
105477         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
105478         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
105479         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
105480         dirname.h; remove basename.c and stripslash.c.
105481         * modules/exclude (EXTRA_DIST): Add exclude.h.
105482         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
105483         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
105484         * modules/file-type (EXTRA_DIST): Add file-type.h.
105485         * modules/filemode (EXTRA_DIST): Add filemode.h.
105486         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
105487         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
105488         * modules/fpending (EXTRA_DIST): Add __fpending.h.
105489         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
105490         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
105491         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
105492         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
105493         * modules/getdate (EXTRA_DIST): Add getdate.c.
105494         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
105495         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
105496         * modules/getpass (EXTRA_DIST): Add getpass.h.
105497         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
105498         * modules/group-member (EXTRA_DIST): Add group-member.h.
105499         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
105500         * modules/hash (EXTRA_DIST): Add hash.h.
105501         * modules/human (EXTRA_DIST): Add human.h.
105502         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
105503         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
105504         * modules/lchown (EXTRA_DIST): Add lchown.h.
105505         * modules/long-options (EXTRA_DIST): Add long-options.h.
105506         * modules/lstat (EXTRA_DIST): Add lstat.h.
105507         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
105508         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
105509         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
105510         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
105511         * modules/memxor (EXTRA_DIST): Add memxor.h.
105512         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
105513         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
105514         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
105515         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
105516         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
105517         * modules/physmem (EXTRA_DIST): Add physmem.h.
105518         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
105519         * modules/posixver (EXTRA_DIST): Add posixver.h.
105520         * modules/quote (EXTRA_DIST): Add quote.h.
105521         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
105522         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
105523         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
105524         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
105525         regex_internal.h regexec.c.
105526         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
105527         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
105528         * modules/same (EXTRA_DIST): Add same.h.
105529         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
105530         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
105531         * modules/savedir (EXTRA_DIST): Add savedir.h.
105532         * modules/sha1 (EXTRA_DIST): Add sha1.h.
105533         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
105534         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
105535         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
105536         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
105537         * modules/strdup (EXTRA_DIST): Add strdup.h.
105538         * modules/strftime (EXTRA_DIST): Add strftime.h.
105539         * modules/strndup (EXTRA_DIST): Add strndup.h.
105540         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
105541         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
105542         * modules/time_r (EXTRA_DIST): Add time_r.h.
105543         * modules/timespec (EXTRA_DIST): Add timespec.h.
105544         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
105545         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
105546         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
105547         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
105548         * modules/userspec (EXTRA_DIST): Add userspec.h.
105549         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
105550         * modules/utimens (EXTRA_DIST): Add utimens.h.
105551         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
105552         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
105553         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
105554         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
105555         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
105556         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
105557         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
105558         * modules/yesno (EXTRA_DIST): Add yesno.h.
105560 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
105562         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
105564         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
105565         * m4/dev-ino.m4, same-inode.m4: Remove.
105567         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
105568         * m4/acl.m4 (AC_FUNC_ACL):
105569         * m4/backupfile.m4 (gl_BACKUPFILE):
105570         * m4/c-strtod.m4 (gl_C99_STRTOLD):
105571         * m4/canon-host.m4 (gl_CANON_HOST):
105572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
105573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
105574         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
105575         * m4/cloexec.m4 (gl_CLOEXEC):
105576         * m4/close-stream.m4 (gl_CLOSE_STREAM):
105577         * m4/closeout.m4 (gl_CLOSEOUT):
105578         * m4/dirfd.m4 (gl_FUNC_DIRFD):
105579         * m4/dirname.m4 (gl_DIRNAME):
105580         * m4/exclude.m4 (gl_EXCLUDE):
105581         * m4/exitfail.m4 (gl_EXITFAIL):
105582         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
105583         * m4/file-type.m4 (gl_FILE_TYPE):
105584         * m4/filemode.m4 (gl_FILEMODE):
105585         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
105586         * m4/fpending.m4 (gl_FUNC_FPENDING):
105587         * m4/fprintftime.m4 (gl_FPRINTFTIME):
105588         * m4/fts.m4 (gl_FUNC_FTS):
105589         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
105590         * m4/getdate.m4 (gl_GETDATE):
105591         * m4/gethrxtime.m4 (gl_GETHRXTIME):
105592         * m4/getpagesize.m4 (gl_GETPAGESIZE):
105593         * m4/getpass.m4 (gl_FUNC_GETPASS):
105594         * m4/gettime.m4 (gl_GETTIME):
105595         * m4/getugroups.m4 (gl_GETUGROUPS):
105596         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
105597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
105598         * m4/hard-locale.m4 (gl_HARD_LOCALE):
105599         * m4/hash.m4 (gl_HASH):
105600         * m4/idcache.m4 (gl_IDCACHE):
105601         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
105602         * m4/lchown.m4 (gl_FUNC_LCHOWN):
105603         * m4/long-options.m4 (gl_LONG_OPTIONS):
105604         * m4/lstat.m4 (gl_FUNC_LSTAT):
105605         * m4/md5.m4 (gl_MD5):
105606         * m4/memcasecmp.m4 (gl_MEMCASECMP):
105607         * m4/memcoll.m4 (gl_MEMCOLL):
105608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
105609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
105610         * m4/memxor.m4 (gl_MEMXOR):
105611         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
105612         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
105613         * m4/modechange.m4 (gl_MODECHANGE):
105614         * m4/mountlist.m4 (gl_MOUNTLIST):
105615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105616         * m4/openat.m4 (gl_FUNC_OPENAT):
105617         * m4/pathmax.m4 (gl_PATHMAX):
105618         * m4/physmem.m4 (gl_PHYSMEM):
105619         * m4/posixtm.m4 (gl_POSIXTM):
105620         * m4/posixver.m4 (gl_POSIXVER):
105621         * m4/quote.m4 (gl_QUOTE):
105622         * m4/quotearg.m4 (gl_QUOTEARG):
105623         * m4/readtokens.m4 (gl_READTOKENS):
105624         * m4/readutmp.m4 (gl_READUTMP):
105625         * m4/regex.m4 (gl_REGEX):
105626         * m4/safe-read.m4 (gl_SAFE_READ):
105627         * m4/safe-write.m4 (gl_SAFE_WRITE):
105628         * m4/same.m4 (gl_SAME):
105629         * m4/save-cwd.m4 (gl_SAVE_CWD):
105630         * m4/savedir.m4 (gl_SAVEDIR):
105631         * m4/settime.m4 (gl_SETTIME):
105632         * m4/sha1.m4 (gl_SHA1):
105633         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
105634         * m4/stat-macros.m4 (gl_STAT_MACROS):
105635         * m4/stat-time.m4 (gl_STAT_TIME):
105636         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
105637         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
105638         * m4/strdup.m4 (gl_FUNC_STRDUP):
105639         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
105640         * m4/strndup.m4 (gl_FUNC_STRNDUP):
105641         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
105642         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
105643         * m4/time_r.m4 (gl_TIME_R):
105644         * m4/timespec.m4 (gl_TIMESPEC):
105645         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
105646         * m4/unlinkdir.m4 (gl_UNLINKDIR):
105647         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
105648         * m4/userspec.m4 (gl_USERSPEC):
105649         * m4/utimecmp.m4 (gl_UTIMECMP):
105650         * m4/utimens.m4 (gl_UTIMENS):
105651         * m4/xalloc.m4 (gl_XALLOC):
105652         * m4/xgetcwd.m4 (gl_XGETCWD):
105653         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
105654         * m4/xreadlink.m4 (gl_XREADLINK):
105655         * m4/xstrtod.m4 (gl_XSTRTOD):
105656         * m4/yesno.m4 (gl_YESNO):
105657         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
105658         to get the necessary .h files and whatnot.
105660 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
105661             Bruno Haible  <bruno@clisp.org>
105663         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
105664         /bin/sh understanding of '!' conditional negation.
105666 2006-08-21  Jim Meyering  <jim@meyering.net>
105668         * modules/openat (Depends-on): Really alphabetize.
105670         * modules/acl (Depends-on): Add error and quote.
105672         * check-module (find_included_lib_files): Add at-func.c to the
105673         ok-to-include-more-than-once white list.
105675         * modules/openat (Depends-on): Add lstat.  Alphabetize.
105677 2006-08-21  Bruno Haible  <bruno@clisp.org>
105679         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
105680         Emit a pkgdata_DATA variable only if some snippets add contents to it.
105681         Reported by Martin Lambers <marlam@marlam.de>.
105683 2006-08-21  Bruno Haible  <bruno@clisp.org>
105685         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
105686         specify an installation location, don't emit a noinst_LIBRARIES or
105687         noinst_LTLIBRARIES assignment.
105689 2006-08-21  Bruno Haible  <bruno@clisp.org>
105691         BeOS portability.
105692         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
105693         BeOS has mbrtowc() but no <wctype.h>.
105695 2006-08-21  Bruno Haible  <bruno@clisp.org>
105697         BeOS portability.
105698         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
105699         exist.
105701 2006-08-21  Bruno Haible  <bruno@clisp.org>
105703         BeOS portability.
105704         * lib/mbchar.h: Include <wctype.h> only if it exists.
105706 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105708         Remove files that are no longer needed by their respective modules.
105709         * m4/obstack.m4: Remove.
105710         * m4/strerror_r.m4: Remove.
105711         * m4/uint32_t.m4: Remove.
105712         * m4/uintptr_t.m4: Remove.
105713         * m4/ullong_max.m4: Remove.
105714         * m4/xstrtoimax.m4: Remove.
105715         * m4/xstrtoumax.m4: Remove.
105717         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
105718         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
105719         dependencies now capture this.
105721         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
105722         Do not use AC_LIBSOURCES, since gnulib modules now do this.
105723         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
105724         * m4/human.m4 (gl_HUMAN): Likewise.
105725         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
105726         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
105728         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
105730         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
105731         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
105732         stdint.
105733         * m4/human.m4 (gl_HUMAN): Likewise.
105734         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
105735         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
105736         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
105737         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
105738         * m4/xstrtol (gl_XSTRTOL): Likewise.
105740         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
105741         AC_TYPE_LONG_LONG_INT.
105742         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
105743         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
105744         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
105745         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
105747         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
105748         on stdbool.
105750         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
105751         (gl_PREREQ_XSTRTOUL): Remove.
105753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
105755         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
105756         mode.
105758 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105760         Add and change modules to make it easier for coreutils to use
105761         gnulib-tool.
105762         * modules/backupfile (Files): Remove m4/d-ino.m4.
105763         (Depends-on): Add d-ino.
105764         * modules/cycle-check (Depends-on): Add stdint.
105765         (lib_SOURCES): Add cycle-check.h.
105766         * modules/d-ino: New module.
105767         * modules/d-type: New module.
105768         * modules/error (Files): Remove m4/strerror_r.m4.
105769         * modules/filemode (Files): Add m4/st_dm_mode.m4.
105770         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
105771         m4/inttypes_h.m4, m4/uintmax_t.m4.
105772         (Depends-on): Add stdint.
105773         (lib_SOURCES): Add fsusage.h.
105774         * modules/getcwd (Files): Remove d-ino.m4.
105775         (Depends-on): Add d-ino.
105776         * modules/getndelim2 (Depends-on): Add stdint.
105777         * modules/glob (Files): Remove m4/d-type.m4.
105778         (Depends-on): Add d-type.
105779         * modules/host-os: New module.
105780         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
105781         m4/inttypes_h.m4, m4/uintmax_t.m4.
105782         * Depends-on: Add stdint.
105783         (lib_SOURCES): Add human.h.
105784         * modules/inttostr (Files): Remove m4/intmax_t.m4,
105785         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
105786         m4/uintmax_t.m4, m4/ulonglong.m4.
105787         (Depends-on): Add stdint.
105788         (EXTRA_DIST): Add inttostr.h.
105789         * modules/lchmod: New module.
105790         * modules/link-follow: New module.
105791         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
105792         (Depends-on): Add lchmod.
105793         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
105794         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
105795         (Depends-on): Add stdint.
105796         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
105797         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
105798         (Depends-on): Add stdint.
105799         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
105800         * modules/perl: New module.
105801         * modules/regex (Depends-on): Add stdint.
105802         * modules/rmdir-errno: New module.
105803         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
105804         m4/intmax_t.m4.
105805         (Depends-on): Add stdint.
105806         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
105807         m4/uintmax_t.m4.
105808         (Depends-on): Add stdint.
105809         * modules/unlink-busy: New module.
105810         * modules/utimecmp (Depends-on): Add stdint.
105811         * modules/uptime: New module.
105812         * modules/winsz-ioctl: New module.
105813         * modules/winsz-termios: New module.
105814         * modules/xnanosleep (Depends-on): Add nanosleep.
105815         * modules/ullong_max: Remove.
105816         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
105817         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
105818         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
105819         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
105820         (Depends-on): Add inttypes.
105821         (lib_SOURCES): Add xstrtol.h.
105822         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
105823         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
105824         * MODULES.html.sh: Move 'assert' into the assert section.
105825         Move 'dummy' into the linking section.
105826         Remove ullong_max.
105827         Add section for compatibility checks for POSIX:2001 functions,
105828         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
105829         winsz-ioctl, and winsz-termios into it.
105830         Add lchmod.
105831         Add top-level Misc section and put host-os, perl, and uptime
105832         into it.
105834 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105836         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
105837         now assume the stdint module.  Do not include inttypes.h.
105838         * lib/fsusage.h: Likewise.
105839         * lib/getndelim2.c: Likewise.
105840         * lib/human.h: Likewise.
105841         * lib/inttostr.h: Likewise.
105842         * lib/obstack.c: Likewise.
105843         * lib/regex_internal.h: Likewise.
105844         * lib/tempname.c: Likewise.
105845         * lib/utimecmp.c: Likewise.
105846         * lib/xstrtol.h: Likewise.
105848         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
105850         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
105851         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
105852         * lib/xtime.h: Likewise.
105854 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105856         * modules/openat (Files): Add lib/fchmodat.c.
105857         Fixes problem reported by Jay Youngman.
105859 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105861         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
105862         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
105864 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
105865             Bruno Haible  <bruno@clisp.org>
105867         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
105868         and is a script that invokes bison. Tighten the code. Add comments.
105870 2006-08-18  Jim Meyering  <jim@meyering.net>
105872         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
105873         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
105874         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
105875         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
105877 2006-08-18  Bruno Haible  <bruno@clisp.org>
105879         * modules/bison-i18n: New file.
105880         * MODULES.html.sh (Internationalization functions): Add it.
105882 2006-08-18  Bruno Haible  <bruno@clisp.org>
105884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
105885         sys/statvfs.h. When getmntinfo was found, check its declaration and
105886         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
105888 2006-08-18  Bruno Haible  <bruno@clisp.org>
105890         * m4/bison-i18n.m4: New file, from bison.
105892 2006-08-18  Bruno Haible  <bruno@clisp.org>
105894         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
105895         (ME_DUMMY): Treat "kernfs" as a dummy.
105896         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
105898 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105900         Update from coreutils.
105902         2006-08-15  Jim Meyering  <jim@meyering.net>
105904         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
105906         2006-01-17  Jim Meyering  <jim@meyering.net>
105908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
105910         2006-01-11  Jim Meyering  <jim@meyering.net>
105912         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
105913         Check for the lchmod function.
105915 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105917         Update from coreutils.
105919         * lib/__fpending.h: Add copyright notice.
105920         * lib/fprintftime.h: Likewise.
105921         * lib/savedir.c: Use (C) in copyright notice.
105922         * lib/savedir.h: Likewise.
105924         2006-08-15  Jim Meyering  <jim@meyering.net>
105926         * lib/at-func.c: New file, with the logic of all emulated at-functions.
105927         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
105928         in support of the EXPECTED_ERRNO macro.
105929         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
105930         definitions.  Instead, define the appropriate symbols and include
105931         "at-func.c".
105932         * lib/mkdirat.c (mkdirat): Likewise.
105933         * lib/fchmodat.c (fchmodat): Likewise.
105934         (ENOSYS): Remove definition.
105935         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
105936         it.  Don't include "unistd--.h" -- it wasn't ever used.
105938         2006-01-17  Jim Meyering  <jim@meyering.net>
105940         Rewrite fts.c not to change the current working directory,
105941         by using openat, fstatat, fdopendir, etc..
105943         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
105944         (HAVE_OPENAT_SUPPORT): Define.
105945         [_LIBC] (fchdir): Don't undef or define; no longer used.
105946         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
105947         Now, this `function' always succeeds, and consumes its file descriptor
105948         parameter -- so callers must not close such FDs.  Update callers.
105949         (diropen_fd, opendirat, cwd_advance_fd): New functions.
105950         (diropen): Add parameter, SP.  Adjust all callers.
105951         Implement using diropen_fd, rather than open.
105952         (fts_open): Initialize new member, fts_cwd_fd.
105953         Remove fts_rft-setting code.
105954         (fts_close): Close fts_cwd_fd, if necessary.
105955         (__opendir2): Define in terms of opendir or opendirat,
105956         depending on whether the FST_NOCHDIR flag is set.
105957         (fts_build): Since fts_safe_changedir consumes its FD, and since
105958         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
105959         and close the dup'd file descriptor upon failure.
105960         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
105961         (fts_safe_changedir): Tweak semantics to reflect that this function
105962         now calls cwd_advance_fd and hence consumes its FD argument.
105963         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
105964         [struct FTS] (fts_rft): Remove now-unused member.
105965         [struct FTS] (fts_cycle.state): Improve comment.
105967         * lib/openat.c (openat_needs_fchdir): New function.
105968         * lib/openat.h (openat_needs_fchdir): Declare it.
105970 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105972         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
105973         Problem and fix reported by Pádraig Brady in
105974         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
105976 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105978         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
105980 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105982         * lib/memcoll.c (memcoll): Optimize for the common case where the
105983         arguments are bytewise equal.
105985 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105987         * doc/regexprops-generic.texi: Add a copyright notice.
105989 2006-08-15  Bruno Haible  <bruno@clisp.org>
105991         * modules/tmpdir (License): Change to LGPL.
105993 2006-08-15  Bruno Haible  <bruno@clisp.org>
105995         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
105996         module.
105998 2006-08-14  Simon Josefsson  <jas@extundo.com>
106000         * config/srclist.txt: Add gnupload.
106002 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106004         Change copyright notice from LGPL 2 to GPL 2, since that's the
106005         standard form used in the gnulib repository.
106006         * tests/test-lock.c: Likewise.
106007         * tests/test-stdint.c: Likewise.
106008         * tests/test-tls.c: Likewise.
106010         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
106011         prelude-manager.  User shorter URLs for GNU projects, without '?'.
106012         Add copyright notice.
106014         * check-module: Add copyright notice.  Output a copyright
106015         notice if "--version" is specified.
106016         * modules/COPYING: New file.
106017         * tests/test-getaddrinfo.c: Add copyright notice.
106018         * tests/test-verify.c: Likewise.
106020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106022         Change copyright notice from LGPL 2 to GPL 2, since that's the
106023         standard form used in the gnulib repository.
106024         * lib/lock.c: LGPL -> GPL.
106025         * lib/lock.h: Likewise.
106026         * lib/strnlen1.c: Likewise.
106027         * lib/strnlen1.h: Likewise.
106028         * lib/tls.c: Likewise.
106029         * lib/tls.h: Likewise.
106030         * lib/tmpdir.c: Likewise.
106032         * lib/TODO: Remove; this belongs only in coreutils.
106034 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106036         Add copyright notices to long-enough files that lack them, since
106037         otherwise the files aren't clearly free.  Use the same notice that
106038         getdate.texi already uses.
106039         * doc/alloca-opt.texi: Add copyright notice.
106040         * doc/alloca.texi: Likewise.
106041         * doc/ctime.texi: Likewise.
106042         * doc/functions.texi: Likewise.
106043         * doc/gcd.texi: Likewise.
106044         * doc/gnulib-tool.texi: Likewise.
106045         * doc/inet_ntoa.texi: Likewise.
106046         * doc/visibility.texi: Likewise.
106048         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
106049         * doc/quote.texi: Add copyright notice.
106051         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
106052         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
106053         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
106054         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
106055         is now obsolete, and give a pointer to the Sun list.
106056         Add copyright notice.
106058 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
106060         * config/srclistvars.sh: Add copyright notice.
106062 2006-08-14  Eric Blake  <ebb9@byu.net>
106064         Import the following change from libc:
106066         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
106068         Upstream bug 2997.
106069         * lib/misc/error.c: Add space between program name and message if file
106070         name is missing.
106072 2006-08-12  Karl Berry  <karl@gnu.org>
106074         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
106075         remove, these originate in gnulib now.
106077 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106079         * doc/Makefile (standards.info standards.html standards.dvi):
106080         Also depend on make-stds.texi.
106082 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106084         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
106085         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
106087         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
106088         in wchar_t.  Problem reported by Eric Blake.
106090         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
106091         LEN is smaller than SIZE.  Suggested by Bruno Haible.
106092         Also, help the compiler to keep LEN in a register.
106094 2006-08-11  Eric Blake  <ebb9@byu.net>
106096         * users.txt: Sort.  Add tar.
106098 2006-08-11  Bruno Haible  <bruno@clisp.org>
106100         * users.txt: New file.
106102 2006-08-11  Bruno Haible  <bruno@clisp.org>
106104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
106105         before <wchar.h>. Needed for OSF/1 and BSD/OS.
106107 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106109         * modules/snprintf (Depends-on): Remove minmax.
106110         (Maintainer): Add self and Bruno.
106112 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
106114         * lib/.cppi-disable: Add snprintf.h, socket_.h.
106115         * lib/snprintf.c: Include <errno.h> and <limits.h>.
106116         (EOVERFLOW): Define if the system does not.
106117         Do not include "minmax.h"; it wasn't used.
106118         (snprintf): Don't assume size_t promotes to an unsigned type.
106119         Fix bug when generated string was too long for the buffer: the
106120         buffer's contents are supposed to be the initial prefix of the
106121         output.  Don't assume vasnprintf returns EOVERFLOW if the size
106122         exceeds INT_MAX; do the check ourselves.
106124         Import the following changes from libc:
106126         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
106128         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
106129         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
106130         set wc to the byte which couldn't be converted.
106131         (re_string_reconstruct): Don't clear valid_raw_len before calling
106132         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
106133         tip_context using re_string_context_at.
106135         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
106137         * lib/posix/regex.h: g++ still cannot handled [restrict].
106139         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
106141         * lib/posix/regex.h: Remove special handling for VMS.
106143 2006-08-10  Jim Meyering  <jim@meyering.net>
106145         * modules/same-inode: New module.
106146         * modules/dev-ino: New module.
106147         * modules/cycle-check: Depend on these modules, rather than simply
106148         including their .h files.
106149         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
106150         required via m4/cycle-check.m4.
106151         * modules/same: Depend on new same-inode module, rather than
106152         including same-inode.h.
106153         * modules/chdir-safer: New file.
106155         * modules/chown (Depends-on): Add stat-macros.
106157 2006-08-10  Jim Meyering  <jim@meyering.net>
106159         * m4/cycle-check.m4: New file.
106160         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
106161         * m4/dev-ino.m4, m4/same-inode.m4: New files.
106163 2006-08-10  Eric Blake  <ebb9@byu.net>
106165         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
106166         in from original proposal.
106168 2006-08-10  Eric Blake  <ebb9@byu.net>
106169         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
106171         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
106172         namespace.
106174 2006-08-10  Bruno Haible  <bruno@clisp.org>
106176         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
106177         as well.
106179 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106181         Sync from coreutils.
106183         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
106185         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
106186         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
106188 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106190         * modules/restrict: Remove; no longer needed now that we assume
106191         Autoconf 2.59 or later.
106192         * MODULES.html.sh: Remove 'restrict'.
106193         * modules/argp (Depends-on): Remove 'restrict'.
106194         * modules/base64 (Depends-on): Likewise.
106195         * modules/gc (Depends-on): Likewise.
106196         * modules/getaddrinfo (Depends-on): Likewise.
106197         * modules/glob (Depends-on): Likewise.
106198         * modules/inet_ntop (Depends-on): Likewise.
106199         * modules/inet_pton (Depends-on): Likewise.
106200         * modules/memxor (Depends-on): Likewise.
106201         * modules/regex (Depends-on): Likewise.
106202         * modules/strtok_r (Depends-on): Likewise.
106203         * modules/time_r (Depends-on): Likewise.
106205 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106207         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
106208         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
106209         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
106210         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
106211         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
106212         * m4/memxor.m4 (gl_MEMXOR): Likewise.
106213         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
106214         gl_C_RESTRICT replaced by AC_C_RESTRICT.
106216         Merge from coreutils.
106217         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
106218         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
106219         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
106220         * m4/time_r.m4 (gl_TIME_R): Likewise.
106222 2006-08-09  Karl Berry  <karl@gnu.org>
106224         * config/srclist.txt: no more gettext-tools, per Bruno.
106226 2006-08-08  Eric Blake  <ebb9@byu.net>
106228         * modules/verror: New module.
106229         * MODULES.html.sh: Document it.
106231 2006-08-08  Eric Blake  <ebb9@byu.net>
106233         * lib/verror.h, lib/verror.c: New files.
106235 2006-08-08  Eric Blake  <ebb9@byu.net>
106237         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
106238         verror_at_line output complies with GNU Coding Standards even when
106239         file is NULL.
106241 2006-08-07  Bruno Haible  <bruno@clisp.org>
106243         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
106244         versions of AIX.
106245         Reported by Ralf Wildenhues.
106247 2006-08-07  Bruno Haible  <bruno@clisp.org>
106249         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
106250         in an AC_DEFUN. Needed so that the autoconf snippets can use
106251         AC_REQUIRE.
106253 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106256         Initialize pkgdata_DATA.
106257         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
106258         overriding it.
106260 2006-08-06  Eric Blake  <ebb9@byu.net>
106262         * lib/error.h: Fold in some upstream changes from glibc.
106263         * lib/error.c: Likewise.
106265 2006-08-04  Bruno Haible  <bruno@clisp.org>
106267         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106268         Make the mostlyclean-local rule depend on mostlyclean-generic.
106269         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
106271 2006-07-31  Bruno Haible  <bruno@clisp.org>
106273         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
106274         <stdlib.h>, <string.h>.
106276 2006-07-30  Bruno Haible  <bruno@clisp.org>
106278         * modules/readlink (License): Change to LGPL.
106280 2006-07-30  Bruno Haible  <bruno@clisp.org>
106282         * modules/javaversion (Makefile.am): Distribute javaversion.java and
106283         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
106284         set PKGDATADIR to point to it.
106286 2006-07-30  Bruno Haible  <bruno@clisp.org>
106288         * modules/csharpexec (configure.ac): Comment out macro invocation.
106289         * modules/javaexec (configure.ac): Likewise.
106290         * modules/javacomp-script (configure.ac): Likewise.
106292         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
106294 2006-07-30  Bruno Haible  <bruno@clisp.org>
106296         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
106297         linked-list.
106299 2006-07-30  Bruno Haible  <bruno@clisp.org>
106301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
106303 2006-07-30  Bruno Haible  <bruno@clisp.org>
106305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106306         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
106307         get removed.
106309 2006-07-29  Bruno Haible  <bruno@clisp.org>
106311         Make it possible for gnulib-tool to work with locally modified or
106312         augmented gnulib repositories.
106313         * gnulib-tool (func_usage): Document --local-dir option.
106314         (local_gnulib_dir): New variable.
106315         Handle --local-dir option.
106316         (func_lookup_file): New function.
106317         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
106318         (func_get_description, func_get_filelist, func_get_description,
106319         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
106320         func_get_automake_snippet, func_get_include_directive,
106321         func_get_license, func_get_maintainer): Use func_lookup_file.
106322         (func_import, func_create_testdir): Use func_lookup_file.
106324 2006-07-29  Bruno Haible  <bruno@clisp.org>
106326         * modules/setenv (Depends-on): Add unistd.
106328 2006-07-29  Bruno Haible  <bruno@clisp.org>
106330         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
106332 2006-07-29  Bruno Haible  <bruno@clisp.org>
106334         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
106336 2006-07-29  Bruno Haible  <bruno@clisp.org>
106338         * gnulib-tool (import, update): If there is no Makefile.am, look at
106339         aclocal.m4, instead of bailing out.
106341 2006-07-29  Bruno Haible  <bruno@clisp.org>
106343         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
106344         Categorize the options by when they are useful.
106346 2006-07-29  Bruno Haible  <bruno@clisp.org>
106348         * gnulib-tool (func_usage): Document option --no-libtool.
106349         Handle option --no-libtool.
106350         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
106351         for changed semantics of $libtool variable.
106352         (func_import): Likewise. If libtool is not used, show this through
106353         an option --no-libtool.
106354         (func_create_testdir): Update.
106356 2006-07-29  Bruno Haible  <bruno@clisp.org>
106358         * gnulib-tool (func_import): Extend error message about missing
106359         --doc-base.
106361 2006-07-29  Bruno Haible  <bruno@clisp.org>
106363         * gnulib-tool (func_import): Don't create the $docbase directory if
106364         there is no file to store there.
106366 2006-07-29  Bruno Haible  <bruno@clisp.org>
106368         * gnulib-tool (autoconf_minversion): If a --dir option is given and
106369         relevant, look for configure.ac there, not in the current directory.
106370         Also use a simple search for AC_PREREQ, not "autoconf --trace".
106372 2006-07-29  Bruno Haible  <bruno@clisp.org>
106374         * gnulib-tool (SORT): New variable.
106375         (func_usage): Undocument --assume-autoconf option.
106376         Remove --assume-autoconf option handling.
106377         (autoconf_minversion): Determine from the contents of configure.ac.
106378         (func_import): Remove autoconf_minversion handling.
106379         Suggested by Eric Blake.
106381 2006-07-29  Bruno Haible  <bruno@clisp.org>
106383         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
106385 2006-07-29  Bruno Haible  <bruno@clisp.org>
106387         * config/srclist.txt (*setenv.[ch]): Remove rules.
106389 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106391         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
106393 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106395         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
106396         arpa/inet.h.
106398 2006-07-28  Simon Josefsson  <jas@extundo.com>
106400         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
106401         * modules/inet_pton (Depends-on): Likewise.
106403 2006-07-28  Simon Josefsson  <jas@extundo.com>
106405         * m4/netinet_in_h.m4: New file.
106407 2006-07-28  Simon Josefsson  <jas@extundo.com>
106409         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
106410         #include's.
106412 2006-07-28  Simon Josefsson  <jas@extundo.com>
106414         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
106415         #include's.
106417 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
106419         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
106420         setgid on directories only if they set these bits.
106421         * lib/modechange.h: Remove obsolete comment about masks.
106423 2006-07-28  Eric Blake  <ebb9@byu.net>
106425         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
106426         macro expansion.
106428 2006-07-28  Bruno Haible  <bruno@clisp.org>
106430         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
106432 2006-07-28  Bruno Haible  <bruno@clisp.org>
106434         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
106436 2006-07-28  Bruno Haible  <bruno@clisp.org>
106438         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
106439         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
106440         Define fallbacks.
106441         Avoids link error on FreeBSD 4.x.
106442         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106444         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
106445         encoding.
106446         * lib/mbswidth.c (iswcntrl): Likewise.
106448 2006-07-27  Bruno Haible  <bruno@clisp.org>
106450         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
106451         test.
106453 2006-07-27  Bruno Haible  <bruno@clisp.org>
106455         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
106456         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
106457         defined.
106459 2006-07-26  Eric Blake  <ebb9@byu.net>
106461         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
106463 2006-07-26  Eric Blake  <ebb9@byu.net>
106465         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
106466         like mingw that lack mkstemp.
106467         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
106468         avoid compilation warning on mingw.
106470 2006-07-26  Bruno Haible  <bruno@clisp.org>
106472         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
106473         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
106474         INT_FAST*_MIN, INTPTR_MIN.
106476 2006-07-25  Bruno Haible  <bruno@clisp.org>
106478         * modules/version-etc (Depends-on): Add stdarg.
106480 2006-07-25  Bruno Haible  <bruno@clisp.org>
106482         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
106483         complex commands.
106485 2006-07-25  Bruno Haible  <bruno@clisp.org>
106487         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
106488         defined in <stdarg.h> or config.h.
106490 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
106492         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
106493         (gl_STDIO_SAFER): Remove.
106495 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
106497         * MODULES.html.sh (File stream based Input/Output):
106498         Add fopen-safer, tmpfile-safer; remove stdio-safer.
106499         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
106500         * modules/fopen-safer, modules/tmpfile-safer: New files.
106501         * modules/stdio-safer: Remove.
106503 2006-07-24  Bruno Haible  <bruno@clisp.org>
106505         * modules/tmpdir: New file.
106506         * MODULES.html.sh (File system functions): Add it.
106508 2006-07-24  Bruno Haible  <bruno@clisp.org>
106510         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
106511         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
106513 2006-07-24  Bruno Haible  <bruno@clisp.org>
106515         * modules/clean-temp: New file.
106517 2006-07-24  Bruno Haible  <bruno@clisp.org>
106519         * m4/tmpdir.m4: New file, from GNU gettext.
106521 2006-07-24  Bruno Haible  <bruno@clisp.org>
106523         * lib/tmpdir.h: New file, from GNU gettext.
106524         * lib/tmpdir.c: New file, from GNU gettext.
106526 2006-07-24  Bruno Haible  <bruno@clisp.org>
106528         * lib/clean-temp.h: New file, from GNU gettext.
106529         * lib/clean-temp.c: New file, from GNU gettext.
106531 2006-07-23  Eric Blake  <ebb9@byu.net>
106533         * modules/stdio-safer (Files): Add tmpfile-safer.c.
106534         (Depends-on): Add binary-io.
106536 2006-07-23  Eric Blake  <ebb9@byu.net>
106538         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
106540 2006-07-23  Eric Blake  <ebb9@byu.net>
106542         * lib/tmpfile-safer.c: New file.
106543         * lib/stdio-safer.h (fopen_safer): Add prototype.
106544         * lib/stdio--.h (tmpfile): Make safer.
106546 2006-07-23  Bruno Haible  <bruno@clisp.org>
106548         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
106549         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
106550         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
106551         gl_linked_remove_at): Use it.
106553 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106554         and Simon Josefsson <jas@extundo.com>
106556         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
106558         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
106560 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
106562         * modules/close-stream: New file.
106563         * modules/closeout (Description): Make it clear that it exits
106564         with a diagnostic on error.
106565         (Depends-on): Add close-stream.  Remove fpending, stdbool.
106566         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
106568 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
106570         * m4/close-stream.m4: New file.
106572 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
106574         * lib/close-stream.c, lib/close-stream.h: New files.
106576 2006-07-22  Bruno Haible  <bruno@clisp.org>
106578         Merge from GNU gettext 0.15.
106580         2006-05-01  Bruno Haible  <bruno@clisp.org>
106582                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
106584         2006-07-22  Bruno Haible  <bruno@clisp.org>
106586                 * modules/javaversion: New file.
106587                 * MODULES.html.sh (Java): Add javaversion.
106589         2006-03-12  Bruno Haible  <bruno@clisp.org>
106591                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
106593         2005-12-04  Bruno Haible  <bruno@clisp.org>
106595                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
106596                 (untested).
106598         2006-06-21  Bruno Haible  <bruno@clisp.org>
106600                 Avoid warnings from recent versions of mcs.
106601                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
106602                 -o, -L, -r any more. Use options documented since mcs-1.0
106603                 instead. Similarly for -g.
106605         2005-12-04  Bruno Haible  <bruno@clisp.org>
106607                 * build-aux/csharpcomp.sh.in: Suffix for resources is
106608                 .resources, not .resource.
106610         2005-07-09  Bruno Haible  <bruno@clisp.org>
106612                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
106613                 add a .dll suffix.
106614                 Reported by Mark Junker <mjscod@gmx.de>.
106616         2006-07-22  Bruno Haible  <bruno@clisp.org>
106618                 * modules/gettext: Upgrade to gettext-0.15.
106619                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
106620                 m4/visibility.m4.
106621                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
106623 2006-07-22  Bruno Haible  <bruno@clisp.org>
106625         Merge from GNU gettext 0.15.
106627         2006-03-25  Bruno Haible  <bruno@clisp.org>
106629                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
106631         2006-07-21  Bruno Haible  <bruno@clisp.org>
106633                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
106634                 "1.1".
106636         2006-05-09  Bruno Haible  <bruno@clisp.org>
106638                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
106639                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
106640                 for the conftestver execution.
106642         2006-05-01  Bruno Haible  <bruno@clisp.org>
106644                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
106645                 optional target-version argument. Verify that the compiler
106646                 groks source of the specified source-version, or add -source
106647                 option as necessary. Verify that the compiler produces
106648                 bytecode in the specified target-version, or add -target and
106649                 -source options as necessary. Make the result of the test
106650                 available as variable CONF_JAVAC. Also log error output in
106651                 config.log.
106653         2006-03-11  Bruno Haible  <bruno@clisp.org>
106655                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
106657         2006-05-09  Bruno Haible  <bruno@clisp.org>
106659                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
106660                 CLASSPATH_SEPARATOR to a semicolon.
106662         2006-03-12  Bruno Haible  <bruno@clisp.org>
106664                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
106665                 available as variable CONF_JAVA, for subsequent autoconf
106666                 tests. Also log error output in config.log.
106668         2006-07-19  Bruno Haible  <bruno@clisp.org>
106670                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
106671                 that getline works on glibc2 systems. Needed to avoid trouble
106672                 in relocatable.c.
106673                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
106675         2005-12-04  Bruno Haible  <bruno@clisp.org>
106677                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
106678                 launcher (untested).
106680         2005-12-04  Bruno Haible  <bruno@clisp.org>
106682                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
106684         2006-07-22  Bruno Haible  <bruno@clisp.org>
106686                 * gettext.m4: Update from GNU gettext-0.15.
106687                 * nls.m4: Likewise.
106688                 * po.m4: Likewise.
106689                 * inttypes-pri.m4: Likewise.
106690                 * inttypes-h.m4: Renamed from inttypes.m4.
106691                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
106693 2006-07-22  Bruno Haible  <bruno@clisp.org>
106695         Merge from GNU gettext 0.15.
106697         2005-07-05  Bruno Haible  <bruno@clisp.org>
106699                 * printf-args.c (printf_fetchargs): Work around broken
106700                 definition of wint_t on mingw.
106702         2005-02-12  Bruno Haible  <bruno@clisp.org>
106704                 * xallocsa.h: Add extern "C" for C++.
106706         2006-05-17  Bruno Haible  <bruno@clisp.org>
106708                 Cygwin portability.
106709                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
106711         2006-04-30  Bruno Haible  <bruno@clisp.org>
106713                 * progreloc.c: Include <mach-o/dyld.h> if available.
106714                 (find_executable): Use _NSGetExecutablePath when possible.
106716         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
106718                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
106719                 function.
106721         2005-12-29  Bruno Haible  <bruno@clisp.org>
106723                 * progreloc.c (set_program_name_and_installdir): Fix
106724                 compilation error.
106726         2005-12-04  Bruno Haible  <bruno@clisp.org>
106728                 Cygwin portability.
106729                 * progreloc.c: Include <windows.h> also on Cygwin.
106730                 (find_executable): Add support for Cygwin.
106731                 (set_program_name_and_installdir): Handle also platforms with
106732                 nonempty EXEEXT.
106734         2006-07-11  Bruno Haible  <bruno@clisp.org>
106736                 * javacomp.c: Fix a comment.
106737                 Reported by Jim Meyering.
106739         2006-04-30  Bruno Haible  <bruno@clisp.org>
106741                 * javacomp.h (compile_java_class): Add source_version,
106742                 target_version arguments.
106743                 * javacomp.c: Rewritten to choose only a compiler that
106744                 respects the specified source_version and target_version.
106746         2006-06-27  Bruno Haible  <bruno@clisp.org>
106748                 Assume correct S_ISDIR macro.
106749                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
106751         2006-07-22  Bruno Haible  <bruno@clisp.org>
106753                 * javaversion.h: New file, from GNU gettext.
106754                 * javaversion.c: New file, from GNU gettext.
106755                 * javaversion.java: New file, from GNU gettext.
106756                 * javaversion.class: New file, from GNU gettext.
106758         2006-05-17  Bruno Haible  <bruno@clisp.org>
106760                 Cygwin portability.
106761                 * javaexec.c (execute_java_class): Test for jview program
106762                 also on Cygwin.
106764         2006-04-09  Bruno Haible  <bruno@clisp.org>
106766                 * fatal-signal.c: Don't include string.h.
106767                 (at_fatal_signal): Use a copying loop instead of memcpy.
106769         2005-12-04  Bruno Haible  <bruno@clisp.org>
106771                 * csharpexec.c: Add support for 'clix' launcher (untested).
106772                 (execute_csharp_using_sscli): New function.
106773                 (execute_csharp_program): Call it.
106775         2006-06-21  Bruno Haible  <bruno@clisp.org>
106777                 Avoid warnings from recent versions of mcs.
106778                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
106779                 -o, -L, -r any more. Use options documented since mcs-1.0
106780                 instead. Similarly for -g.
106782         2005-07-09  Bruno Haible  <bruno@clisp.org>
106784                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
106785                 add a .dll suffix.
106786                 Reported by Mark Junker <mjscod@gmx.de>.
106788         2006-06-17  Bruno Haible  <bruno@clisp.org>
106790                 * config.charset: Update for NetBSD 3.0.
106792         2006-05-17  Bruno Haible  <bruno@clisp.org>
106794                 Cygwin portability.
106795                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
106797         2006-05-16  Bruno Haible  <bruno@clisp.org>
106799                 * localcharset.c [CYGWIN]: Include <windows.h>.
106800                 (get_charset_aliases): For Cygwin, return the same CPxxx
106801                 aliases list as under WIN32.
106802                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
106803                 the environment variables. Fall back to GetACP().
106805         2006-04-05  Bruno Haible  <bruno@clisp.org>
106807                 * config.charset: Update Juan Manuel Guerrero's address.
106809         2005-02-12  Bruno Haible  <bruno@clisp.org>
106811                 * allocsa.h: Add extern "C" for C++.
106813         2005-02-10  Bruno Haible  <bruno@clisp.org>
106815                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
106816                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
106818         2006-07-22  Bruno Haible  <bruno@clisp.org>
106820                 * gettext.h: Update to GNU gettext-0.15.
106822 2006-07-22  Bruno Haible  <bruno@clisp.org>
106824         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
106825         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
106826         lib-prefix.m4, longdouble.m4, ssize_t.m4.
106828 2006-07-21  Eric Blake  <ebb9@byu.net>
106830         * modules/stdlib-safer: New file.
106831         * MODULES.html.sh (File stream based Input/Output): Add
106832         stdlib-safer.
106834 2006-07-21  Eric Blake  <ebb9@byu.net>
106836         * lib/stdlib-safer.h: New file from coreutils, required by
106837         stdlib--.h.
106839 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
106841         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
106843 2006-07-20  Bruno Haible  <bruno@clisp.org>
106845         * gnulib-tool: Recognize new option --assume-autoconf.
106846         (autoconf_minversion): New variable.
106847         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
106849 2006-07-20  Bruno Haible  <bruno@clisp.org>
106851         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
106853 2006-07-19  Derek R. Price  <derek@ximbiot.com>
106855         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
106856         Reindent and repaginate.
106858 2006-07-19  Derek Price  <derek@ximbiot.com>
106860         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
106861         Correct grammar.
106863 2006-07-17  Bruno Haible  <bruno@clisp.org>
106865         * modules/list: New file.
106866         * modules/array-list: New file.
106867         * modules/carray-list, modules/carray-list-tests: New files.
106868         * modules/linked-list, modules/linked-list-tests: New files.
106869         * modules/avltree-list, modules/avltree-list-tests: New files.
106870         * modules/rbtree-list, modules/rbtree-list-tests: New files.
106871         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
106872         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
106873         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
106874         * modules/oset: New file.
106875         * modules/array-oset: New file.
106876         * modules/avltree-oset, modules/avltree-oset-tests: New files.
106877         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
106878         * tests/test-carray_list.c: New file.
106879         * tests/test-linked_list.c: New file.
106880         * tests/test-avltree_list.c: New file.
106881         * tests/test-rbtree_list.c: New file.
106882         * tests/test-linkedhash_list.c: New file.
106883         * tests/test-avltreehash_list.c: New file.
106884         * tests/test-rbtreehash_list.c: New file.
106885         * tests/test-avltree_oset.c: New file.
106886         * tests/test-rbtree_oset.c: New file.
106887         * MODULES.html.sh (Container data structures): New section.
106889 2006-07-17  Bruno Haible  <bruno@clisp.org>
106891         * m4/gl_list.m4: New file.
106893 2006-07-17  Bruno Haible  <bruno@clisp.org>
106895         * lib/gl_list.h: New file.
106896         * lib/gl_list.c: New file.
106897         * lib/gl_array_list.h: New file.
106898         * lib/gl_array_list.c: New file.
106899         * lib/gl_carray_list.h: New file.
106900         * lib/gl_carray_list.c: New file.
106901         * lib/gl_linked_list.h: New file.
106902         * lib/gl_linked_list.c: New file.
106903         * lib/gl_anylinked_list1.h: New file.
106904         * lib/gl_anylinked_list2.h: New file.
106905         * lib/gl_avltree_list.h: New file.
106906         * lib/gl_avltree_list.c: New file.
106907         * lib/gl_anyavltree_list1.h: New file.
106908         * lib/gl_anyavltree_list2.h: New file.
106909         * lib/gl_rbtree_list.h: New file.
106910         * lib/gl_rbtree_list.c: New file.
106911         * lib/gl_anyrbtree_list1.h: New file.
106912         * lib/gl_anyrbtree_list2.h: New file.
106913         * lib/gl_anytree_list1.h: New file.
106914         * lib/gl_anytree_list2.h: New file.
106915         * lib/gl_linkedhash_list.h: New file.
106916         * lib/gl_linkedhash_list.c: New file.
106917         * lib/gl_anyhash_list1.h: New file.
106918         * lib/gl_anyhash_list2.h: New file.
106919         * lib/gl_avltreehash_list.h: New file.
106920         * lib/gl_avltreehash_list.c: New file.
106921         * lib/gl_rbtreehash_list.h: New file.
106922         * lib/gl_rbtreehash_list.c: New file.
106923         * lib/gl_anytreehash_list1.h: New file.
106924         * lib/gl_anytreehash_list2.h: New file.
106926         * lib/gl_oset.h: New file.
106927         * lib/gl_oset.c: New file.
106928         * lib/gl_array_oset.h: New file.
106929         * lib/gl_array_oset.c: New file.
106930         * lib/gl_avltree_oset.h: New file.
106931         * lib/gl_avltree_oset.c: New file.
106932         * lib/gl_rbtree_oset.h: New file.
106933         * lib/gl_rbtree_oset.c: New file.
106934         * lib/gl_anytree_oset.h: New file.
106936 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
106938         * m4/mkancesdirs.m4: New file.
106939         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
106940         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
106941         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
106942         it.
106944 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
106946         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
106947         * lib/mkancesdirs.h: New files.
106948         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
106949         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
106950         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
106951         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
106952         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
106953         callers changed.  Revamp internals significantly, by not
106954         attempting to create directories that are temporarily more
106955         permissive than the final results.  Do not attempt to use
106956         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
106957         This removes some race conditions, fixes some bugs, and simplifies
106958         things.  Use new dirchownmod function to do owner and mode changes.
106959         * lib/mkdir-p.h: Likewise.
106960         * lib/modechange.c (octal_to_mode): New function.
106961         (struct mode_change): New member mentioned.
106962         (make_node_op_equals): New arg mentioned.  All callers changed.
106963         (mode_compile): Keep track of which mode bits the user has explicitly
106964         mentioned.
106965         (mode_adjust): New arg DIR, so that we implement the X op correctly.
106966         New arg PMODE_BITS, to keep track of which mode bits the user
106967         mentioned; it treats S_ISUID and S_ISGID speciall.
106968         All callers changed.
106969         * lib/modechange.h: Likewise.
106971 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
106973         * MODULES.html.sh: Add mkancestors.
106974         * modules/mkancesdirs: New module.
106975         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
106976         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
106977         The chdir-safer and afs files are now orphans; I'll remove them
106978         unless someone speaks up.
106979         Add lib/dirchownmod.c, lib/dirchownmod.h.
106980         (Depends-on): Remove alloca, chown, save-cwd, dirname.
106981         Add lchown, mkancesdirs.
106982         (Maintainer): Add self.
106984 2006-07-15  Karl Berry  <karl@gnu.org>
106986         * gnulib-tool: help message wording/arrangement.
106988 2006-07-14  Simon Josefsson  <jas@extundo.com>
106990         * doc/gnulib.texi (Libtool and Windows): New section.
106992 2006-07-12  Simon Josefsson  <jas@extundo.com>
106994         * modules/gendocs (License): Fix license, approved by Karl.
106996 2006-07-12  Eric Blake  <ebb9@byu.net>
106998         * MODULES.html.sh: Add gendocs.
107000 2006-07-11  Eric Blake  <ebb9@byu.net>
107002         * modules/fdl: New module, to install doc/fdl.texi.
107003         * MODULES.html.sh: Add new section for documentation modules.
107004         * gnulib-tool: Avoid space-tab.
107005         (--doc-base): New option, to manage files from doc.
107007 2006-07-11  Eric Blake  <ebb9@byu.net>
107009         * m4/absolute-header.m4: Fix comments to match recent change.
107011 2006-07-11  Eric Blake  <ebb9@byu.net>
107013         * gnulib-tool: List --doc-base before --tests-base.
107015 2006-07-11  Derek R. Price  <derek@ximbiot.com>
107017         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
107019 2006-07-11  Bruno Haible  <bruno@clisp.org>
107021         * README: Mention where to put documentation.
107023 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107025         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
107027 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
107030         to stdint.m4.
107032 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
107034         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
107035         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
107036         "no/such/file/stdint.h" when there is no such file, so that
107037         the resulting C code can be parsed by dodgy compilers.
107038         Problems reported by Bob Proulx.
107040 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107042         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
107043         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107044         macros into the GNU _D_EXACT_NAMLEN.
107045         * lib/savedir.c:  Likewise.
107046         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
107048 2006-07-10  Derek R. Price  <derek@ximbiot.com>
107049         and Paul Eggert  <eggert@cs.ucla.edu>
107051         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
107052         * m4/savedir.m4:
107053         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
107054         macros into the GNU _D_EXACT_NAMLEN.
107056 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
107059         around the absolute name, to work around a problem with the HP-UX
107060         11.23 native C compiler, reported by Bob Proulx.
107062 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107064         * doc/maintain.texi, make-stds.texi: Sync from
107065         <http://savannah.gnu.org/projects/gnustandards>.
107067 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
107069         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
107071 2006-07-09  Jim Meyering  <jim@meyering.net>
107073         * m4/glob.m4: Remove a doubled word in a comment.
107075 2006-07-09  Jim Meyering  <jim@meyering.net>
107077         * lib/argp-pv.c: Remove a doubled word in a comment.
107078         * lib/check-version.c (check_version): Likewise.
107079         * lib/javacomp.c (compile_java_class): Likewise.
107081 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
107083         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
107084         for the benefit of people using Autoconf 2.60.  If you want to
107085         support older Autoconf versions you can copy m4/onceonly_2_57.m4
107086         (or m4/onceonly.m4, if pre-2.57) manually.
107088 2006-07-08  Jim Meyering  <jim@meyering.net>
107090         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
107091         comment.
107092         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
107093         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
107094         comment.
107096 2006-07-08  Jim Meyering  <jim@meyering.net>
107098         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
107100 2006-07-07  Simon Josefsson  <jas@extundo.com>
107102         * tests/test-crc.c: Change expected crc value, the test vector
107103         were probably computed using the old broken crc.c?
107105 2006-07-06  Simon Josefsson  <jas@extundo.com>
107107         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
107108         now the canonical place for the M4 file).
107110         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
107111         from the sys_socket dependency now.
107113         * modules/inet_pton (Files): Ditto.
107115         * modules/inet_ntop (Files): Ditto.
107117 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
107119         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
107120         not gl_PREREQ_GETUSERSHELL.
107122 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107124         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
107125         with only one argument, for Autoconf 2.60.
107126         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
107127         expand to nothing, so add a shell command to avoid syntax error.
107128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
107130 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107132         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
107134 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
107137         no longer needed.  Check for isblank decl.
107138         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
107139         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
107140         of existence.
107142 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107144         * lib/getloadavg.c: Use __VMS, not VMS.
107145         * lib/getopt.c: Likewise.
107146         * lib/getpagesize.h: Likewise.
107147         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
107148         and probably does not work.
107150 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
107152         * lib/.cppi-disable: Add wcwidth.
107153         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
107154         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
107155         (ISGRAPH): Remove.  All uses changed to isgraph.
107156         (FOLD) [!defined _LIBC]: Remove special case.
107157         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
107158         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
107159         HAVE_ISBLANK.
107160         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
107161         case.
107163 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
107165         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
107166         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
107167         brackets.  Other minor changes to suppress some compiler
107168         warnings.
107170 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107171         and Paul Eggert  <eggert@cs.ucla.edu>
107173         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
107174         of invoking obsolescent AC_HEADER_DIRENT macro.
107175         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
107176         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
107177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
107178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
107179         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
107180         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
107181         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
107182         * m4/readdir.m4: Remove; no longer needed.
107184 2006-07-06  Derek R. Price  <derek@ximbiot.com>
107185         and Paul Eggert  <eggert@cs.ucla.edu>
107187         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
107188         Don't worry about this obsolete case any more.
107189         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
107190         directories.
107191         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
107192         worry about this obsolete case any more.
107193         * lib/fts.c: Likewise.
107194         * lib/getcwd.c: Likewise.
107195         * lib/glob.h: Likewise.
107196         * lib/savedir.c: Likewise.
107198 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
107201         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
107202         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
107203         needed.
107204         All uses removed.
107205         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107206         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107207         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
107208         needed.
107209         * m4/getdate.m4 (gl_GETDATE): Likewise.
107210         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107211         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107212         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107213         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107214         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
107215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107216         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
107217         needed.
107219 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
107221         * lib/memcasecmp.c: Include <limits.h>.
107222         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
107223         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
107224         Don't assume isdigit succeeds only on '0' through '9'.
107226 2006-07-05  Eric Blake  <ebb9@byu.net>
107228         * modules/getaddrinfo (Depends-on): Add snprintf.
107230 2006-07-05  Eric Blake  <ebb9@byu.net>
107232         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
107233         to avoid 'header present but could not be compiled' on cygwin.
107235 2006-07-05  Eric Blake  <ebb9@byu.net>
107237         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
107238         missing from netdb.h.
107239         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
107241 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107243         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
107244         no longer needed.
107245         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
107246         * m4/getdate.m4 (gl_GETDATE): Likewise.
107247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
107248         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
107249         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
107250         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
107251         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107253 2006-07-05  Derek R. Price  <derek@ximbiot.com>
107255         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
107256         All uses of is_space replaced by isspace.
107257         * lib/exit.h: Don't talk about STDC_HEADERS.
107258         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
107259         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
107260         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
107261         replaced by isprint etc.
107262         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
107263         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107264         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
107265         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
107266         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
107267         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
107269 2006-07-05  Bruno Haible  <bruno@clisp.org>
107271         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
107272         the function exists, before testing against AIX.
107273         Reported by Martin Lambers <marlam@marlam.de>.
107275 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107277         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
107278         From Mark D. Baushke.
107280 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
107282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
107283         to the absolute name, not just one, to bypass Sun C 5.8's
107284         "warning: #include of /usr/include/... may be non-portable".
107286 2006-07-04  Eric Blake  <ebb9@byu.net>
107288         * modules/dirname-tests: New test module.
107289         * tests/test-dirname.c: New file, replacing dirname.c
107290         TEST_DIRNAME section that was recently deleted.
107292 2006-07-04  Bruno Haible  <bruno@clisp.org>
107294         Assume ANSI C header files and <ctype.h> functions.
107295         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
107296         (mbsnwidth): Use isprint, iscntrl instead.
107298 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107300         Merge from coreutils.
107301         * MODULES.html.sh: Add xstrtold.
107302         * modules/xstrtold: New file.
107303         * modules/cycle-check (Files): Add lib/same-inode.h.
107304         * modules/dirname (Files): Add m4/double-slash-root.m4.
107305         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
107306         * modules/mkdir-p (Files): Add lib/same-inode.h.
107307         * modules/same (Files): Add lib/same-inode.h.
107309 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107311         * m4/absolute-header.m4: Renamed from full-header-path.m4.
107312         This is to keep the terminology clean; POSIX talks about
107313         "absolute pathnames", not "full pathnames", but the GNU
107314         Coding Standards say to use "path" for something else;
107315         so use "absolute" to keep both sides happy.
107316         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
107317         Set gl_absolute_header, not gl_full_header_path.
107318         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
107319         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
107320         All uses changed.
107322         Merge from coreutils.
107324         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107326         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
107327         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
107328         want to require the building of c-strtod.o.
107329         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
107330         needs -lm directly.
107331         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
107333         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
107335         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
107336         --as-needed option if available.  Problem reported by Albert Chin in
107337         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
107338         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
107339         cc merely issues a bunch of annoying warnings for --as-needed
107340         (this problem was reported by Bob Proulx).  Also, try linking with
107341         -lm to detect a bug in binutils 2.16 (this problem was reported
107342         by Ralf Wildenhues).
107344         2006-06-18  Jim Meyering  <jim@meyering.net>
107346         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
107347         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
107348         macro.
107349         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
107350         also check for glibc-2.4's abort-inducing bug.
107352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
107353         Low-probability clean-up should be to use rmdir to get rid of
107354         the just-created directory, not unlink.
107356         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
107357         configure fail, and request a bug report to inform us about it.
107358         Add a comment that, barring reports to the contrary, in 2007 we'll
107359         assume ftruncate is universally available.
107361         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107363         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
107365         2006-03-12  Jim Meyering  <jim@meyering.net>
107367         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
107368         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
107369         * m4/same.m4 (gl_SAME): Likewise.
107370         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
107372         2006-03-11  Eric Blake  <ebb9@byu.net>
107374         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
107375         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
107376         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
107377         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
107379 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
107381         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
107382         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
107383         reported by Mark D. Baushke, one in
107384         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
107386         Merge from coreutils.
107388         * lib/.cppi-disable: Add stdint_.h.
107389         * lib/.cvsignore: Add stdint.h.
107391         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
107393         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
107394         both double and long double versions.
107395         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
107396         * lib/xstrtold.c: New file.
107397         * lib/xstrtod.h (xstrtold): New decl.
107399         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
107401         * lib/filemode.c (setst): Remove.
107402         (strmode): Rewrite to avoid setst.  This makes the code shorter,
107403         (arguably) clearer, and the generated code is a bit smaller on my
107404         Debian GNU/Linux stable x86 host.
107406         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
107408         * lib/filemode.c: Include "filemode.h" first, to test the interface.
107409         Assume that filemode.h includes sys/types.h and sys/stat.h.
107410         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
107411         (ftypelet): Reorder to put common cases first, for efficiency.
107412         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
107413         to do 'M'.
107414         (strmode): Renamed from mode_string, and now stores 12 bytes instead
107415         of 10, for compatibility with FreeBSD.  All callers changed.
107416         (filemodestring): Now stores 12 bytes instead of 10, and sets file
107417         types that can't be deduced solely from st_mode.  First arg is now a
107418         const pointer.
107419         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
107420         (strmode): Renamed from mode_string.
107421         (filemodestring): New decl.
107422         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
107423         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
107424         needed.
107425         (S_ISPORT, S_ISWHT): New macros, if not already defined.
107427         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
107429         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
107430         fsusage.h now does that.  Include fsusage.h first, to test interface.
107431         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
107432         at most one method (the old code could have generated decls that
107433         didn't conform to C89, not that this was ever exercised).
107434         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
107436         2006-03-19  Jim Meyering  <jim@meyering.net>
107438         Work even in a chroot where d_ino values for entries in "/"
107439         don't match the stat.st_ino values for the same names.
107440         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
107441         number, iterate through all entries again, using lstat instead.
107442         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
107443         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
107445         * lib/getcwd.c (__getcwd): Clarify a comment.
107446         Use memcpy in place of a call to strcpy.
107448         2006-03-12  Jim Meyering  <jim@meyering.net>
107450         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
107451         matches that of the current directory (which we're about to chdir ".."
107452         out of), then save the dev-ino of the parent, instead.
107454         * lib/same-inode.h (SAME_INODE): New file/macro.
107455         * lib/chdir-safer.c (SAME_INODE): Remove definition.
107456         Include "same-inode.h", instead.
107457         * lib/same.c: Likewise.
107458         * lib/cycle-check.h: Include "same-inode.h".
107459         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
107460         * lib/cycle-check.c (SAME_INODE): Remove definition.
107461         * lib/root-dev-ino.h: Include "same-inode.h".
107463         2006-03-11  Eric Blake  <ebb9@byu.net>
107465         * lib/same.c (same_name): s/base_name/last_component/
107466         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
107467         * lib/filenamecat.c (file_name_concat): Likewise.
107469         2006-03-11  Eric Blake  <ebb9@byu.net>,
107470                     Paul Eggert  <eggert@cs.ucla.edu>
107472         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
107473         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
107474         drive prefix.
107475         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
107476         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
107477         (last_component): New method.
107478         * lib/dirname.c (dir_len): Determine when drive letters need a
107479         subsequent slash.  Preserve // when it is special.
107480         (dir_name): Don't append dot when drive letter is absolute.
107481         [TEST_DIRNAME]: Move into a full-blown gnulib test.
107482         * lib/basename.c (base_name): New semantics - malloc the result.
107483         Preserve // when it is special.  Preserve relative files that look
107484         like drive letters.
107485         (base_len): Preserve // when it is special.
107486         (last_component): New method, similar to old base_name semantics.
107487         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
107488         base_name.  Strip redundant slashes from ///.
107490 2006-07-03  Jim Meyering  <jim@meyering.net>
107492         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
107493         macro is used before the first cycle_check call.
107495 2006-07-03  Eric Blake  <ebb9@byu.net>
107497         * modules/dirname (Depends-on): Add xstrndup.
107499 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
107501         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
107502         test cases, so that config.log is a bit easier to follow.
107504 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
107506         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
107507         both are 64 bits, since this seems to be the tradition, and this
107508         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
107509         we ever run into a host that prefers long long to long in this
107510         case, we'll need another configure-time test.  Problem reported by
107511         Jim Meyering.
107513 2006-07-02  Eric Blake  <ebb9@byu.net>
107515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
107517 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
107519         * modules/inttypes (Depends-on): No longer depends on stdint.
107520         * modules/stdint (Description): Say more about assumptions.
107521         Say that the fast types might differ.  Say macros are used.
107522         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
107523         (Makefile.am): Revise list of substituted symbols to match
107524         new stdint.m4.
107525         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
107526         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
107527         * tests/test-stdint.c (verify_same_types)
107528         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
107529         the code conforms to C99/C89.
107530         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
107531         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
107533 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
107535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
107536         but fix a bug, by requiring at least 64 bits.
107537         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
107538         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
107539         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
107540         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
107542         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
107543         changes.  Make 2.59 a prerequisite.  Check and substitute for
107544         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
107545         inttypes.h.  Do not use special include files; just use the
107546         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
107547         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
107548         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
107549         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
107550         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
107551         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
107552         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
107553         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
107554         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
107555         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
107556         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
107557         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
107558         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
107559         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
107560         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
107561         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
107562         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
107563         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
107564         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
107565         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
107566         WINT_MAX.  Check for C99 conformance more strictly, by detecting
107567         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
107568         not check for things that C99 does not require, e.g., int8_t.  If
107569         a test isn't needed unless <stdint.h> isn't working, and is
107570         unlikely to be needed for any other reason, then don't do it
107571         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
107572         size_t, since we assume C89 freestanding at least.  Do not check
107573         for sig_atomic_t, wchar_t, or wint_t, since the code now does
107574         the right thing even if the types are not defined.  Instead use:
107575         (gl_STDINT_TYPE_PROPERTIES): New macro.
107576         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
107577         testing whether <sys/types.h> clashes, as Autoconf does this for
107578         us now.  All uses removed.
107579         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
107580         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
107581         (gl_CHECK_TYPE_SAME):
107582         Remove; no longer needed.
107583         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
107584         exists, since we'll return 0 anyway in that case.
107585         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
107587 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
107589         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
107590         possible collision with system files.
107591         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
107592         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
107593         WCHAR_MIN and WCHAR_MAX in this case.
107594         (<stddef.h>): Do not include; no longer needed.
107595         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
107596         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
107597         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
107598         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
107599         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
107600         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
107601         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
107602         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
107603         !defined(__c99))]: Include in this case too, since it's harmless
107604         now.
107605         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
107606         dangerous to do so.
107607         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
107608         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
107609         (_STDINT_MIN, _STDINT_MAX): New macros.
107610         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
107611         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
107612         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
107613         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
107614         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
107615         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
107616         macros, not typedefs; this simplifies things quite a bit.
107617         Use long int for all types narrower than int64_t.
107618         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
107619         Define in terms of long long int or int64_t or long int,
107620         not int64_t or int32_t.  This saves some compile-time testing.
107621         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
107622         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
107623         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
107624         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
107625         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
107626         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
107627         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
107628         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
107629         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
107630         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
107631         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
107632         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
107633         undef any previous version and define our own version, for
107634         simplicity and consistency with the new macros for types.
107635         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
107636         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
107637         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
107638         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
107639         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
107640         @WINT_T_SUFFIX@ to keep things simple here.
107641         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
107642         Simplify by assuming typical 8/16/32/64 host, since we're
107643         already doing that elsewhere anyway.
107644         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
107645         and assume long long int is 64 bits if available.  This
107646         speeds up 'configure'.
107648 2006-07-01  Eric Blake  <ebb9@byu.net>
107650         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
107651         Reported by Andreas Buening.
107653 2006-07-01  Eric Blake  <ebb9@byu.net>
107655         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
107657 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
107659         * lib/getaddrinfo.c: fixed typo
107661 2006-06-29  Jim Meyering  <jim@meyering.net>
107663         * modules/strftime (Maintainer): Add my name, since with the
107664         FPRINTFTIME changes strftime.c has forked from glibc.
107666 2006-06-29  Eric Blake  <ebb9@byu.net>
107668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
107670 2006-06-29  Eric Blake  <ebb9@byu.net>
107672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
107674 2006-06-29  Eric Blake  <ebb9@byu.net>
107676         * lib/stat_.h: New file.
107678 2006-06-29  Eric Blake  <ebb9@byu.net>
107680         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
107681         unused static function.
107683 2006-06-29  Eric Blake  <ebb9@byu.net>
107685         * doc/functions.texi (Function Portability): Document missing lstat
107686         on mingw.
107688 2006-06-29  Eric Blake  <ebb9@byu.net>
107690         * MODULES.html.sh: Add sys_stat.
107691         * modules/sys_stat: New module.
107692         * modules/mkstemp (Depends-on): Add sys_stat.
107694 2006-06-29  Derek R. Price  <derek@ximbiot.com>
107696         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
107698 2006-06-29  Derek R. Price  <derek@ximbiot.com>
107700         * m4/c-bs-a.m4: Removed.
107702 2006-06-29  Derek R. Price  <derek@ximbiot.com>
107704         * lib/strftime.c: Assume strftime() exists.
107706 2006-06-29  Derek Price  <derek@ximbiot.com>
107708         * modules/c-bs-a: Removed - \a is C89.
107709         * MODULES.html.sh: Remove c-bs-a.
107711 2006-06-29  Bruno Haible  <bruno@clisp.org>
107713         * modules/wcwidth (License): Change to LGPL.
107715 2006-06-28  Simon Josefsson  <jas@extundo.com>
107717         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
107718         on _WIN32.
107720         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
107721         getnameinfo.
107723 2006-06-28  Simon Josefsson  <jas@extundo.com>
107725         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
107727 2006-06-28  Simon Josefsson  <jas@extundo.com>
107729         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
107730         functions there.  It will succeed on Windows XP, but on Windows
107731         2000 and (presumably) earlier, it will fail, and use the internal
107732         re-implementation.
107733         (use_win32_p): New function.
107734         (getaddrinfo): Use strtoul on servname, to support numeric ports.
107735         Support AI_NUMERICSERV to disable getservbyname.
107736         (getnameinfo): New function, only supports
107737         NI_NUMERICHOST|NI_NUMERICSERV for now.
107739         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
107740         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
107741         getnameinfo.
107743 2006-06-28  Eric Blake  <ebb9@byu.net>
107745         * modules/wcwidth: New file.
107746         * modules/mbchar (Depends-on): Add wcwidth.
107747         * modules/mbswidth (Depends-on): Add wcwidth.
107748         * MODULES.html.sh: Add wcwidth.
107750 2006-06-28  Eric Blake  <ebb9@byu.net>
107752         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
107753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
107755 2006-06-28  Eric Blake  <ebb9@byu.net>
107757         * lib/xvasprintf.h: Fix comments.
107759 2006-06-28  Eric Blake  <ebb9@byu.net>
107761         * lib/mbchar.h (wcwidth): Include wcwidth.h.
107762         * lib/mbswidth.c (wcwidth): Move from here...
107763         * lib/wcwidth.h: ...to this new file.
107765 2006-06-28  Derek R. Price  <derek@ximbiot.com>
107767         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
107769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
107770         it's obsolete.
107771         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
107773 2006-06-28  Derek R. Price  <derek@ximbiot.com>
107775         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
107776         Autoconf 2.60 says this stuff was obsolete.
107778 2006-06-28  Bruno Haible  <bruno@clisp.org>
107780         * modules/wcwidth (Files): Add m4/wchar_t.m4.
107782 2006-06-28  Bruno Haible  <bruno@clisp.org>
107784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
107785         gt_TYPE_WCHAR_T.
107787 2006-06-28  Bruno Haible  <bruno@clisp.org>
107789         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
107790         declaration for wcwidth.
107791         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
107793 2006-06-28  Bruno Haible  <bruno@clisp.org>
107795         * lib/mkdtemp.c [MINGW]: Include <io.h>.
107796         (mkdir): Define using _mkdir.
107798 2006-06-28  Bruno Haible  <bruno@clisp.org>
107800         * lib/getaddrinfo.h: Fix POSIX URL.
107801         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
107802         _WIN32.
107803         (use_win32_p): Make static.
107804         (getaddrinfo): Reject service name if it is empty or does not consist
107805         solely of decimal digits, or if its value is > 65535.
107806         (getnameinfo): Remove useless casts.
107808 2006-06-27  Simon Josefsson  <jas@extundo.com>
107810         * modules/sys_select: New file, suggested by Bruno Haible, Paul
107811         Eggert and Martin Lambers.
107813 2006-06-27  Simon Josefsson  <jas@extundo.com>
107815         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
107816         Eggert and Martin Lambers.
107818 2006-06-27  Bruno Haible  <bruno@clisp.org>
107820         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
107821         result to 0, not to empty.
107822         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
107824 2006-06-27  Bruno Haible  <bruno@clisp.org>
107826         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
107828 2006-06-26  Simon Josefsson  <jas@extundo.com>
107830         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
107831         present.
107833 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
107835         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
107836         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
107837         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
107839 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
107841         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
107843 2006-06-26  Bruno Haible  <bruno@clisp.org>
107845         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
107847 2006-06-26  Bruno Haible  <bruno@clisp.org>
107849         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
107851 2006-06-26  Bruno Haible  <bruno@clisp.org>
107853         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
107854         SGI C compiler in pre-C99 mode.
107855         Suggested by Mark D. Baushke and Larry Jones.
107857 2006-06-26  Bruno Haible  <bruno@clisp.org>
107859         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
107860         WCHAR_MAX.
107861         Reported by Mark D. Baushke and Larry Jones.
107863 2006-06-26  Bruno Haible  <bruno@clisp.org>
107865         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
107866         in pre-C99 mode.
107867         Suggested by Mark D. Baushke and Larry Jones.
107869 2006-06-23  Simon Josefsson  <jas@extundo.com>
107870             Bruno Haible  <bruno@clisp.org>
107872         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
107873         Emit mostlyclean-local rule.
107874         (func_emit_tests_Makefile_am): Likewise.
107875         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
107877 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
107879         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
107881 2006-06-23  Bruno Haible  <bruno@clisp.org>
107883         * tests/test-stdint.c: Update to match ISO C 99 Technical
107884         Corrigendum 1.
107886 2006-06-23  Bruno Haible  <bruno@clisp.org>
107888         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
107890 2006-06-23  Bruno Haible  <bruno@clisp.org>
107892         * lib/stdint_.h: Treat IRIX like OpenBSD.
107894 2006-06-23  Bruno Haible  <bruno@clisp.org>
107896         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
107897         ISO C 99 Technical Corrigendum 1.
107899 2006-06-22  Simon Josefsson  <jas@extundo.com>
107901         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
107902         MinGW.
107904 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
107906         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
107907         needed.  Some compiler complained about some of them.  Problem reported
107908         by Larry Jones in
107909         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
107911 2006-06-21  Simon Josefsson  <jas@extundo.com>
107913         * tests/test-getaddrinfo.c: New file.
107915         * modules/getaddrinfo-tests: New file.
107917         * MODULES.html.sh: Add inet_pton.
107919         * modules/inet_pton: New file.
107921 2006-06-21  Simon Josefsson  <jas@extundo.com>
107923         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
107924         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
107925         of using the (limited) gnulib implementation on Windows XP.
107927         * m4/inet_pton.m4: New file.
107929 2006-06-21  Simon Josefsson  <jas@extundo.com>
107931         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
107932         variable.
107934         * lib/socket_.h: Don't define WINVER.
107936         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
107937         slightly modified to work in gnulib.
107939 2006-06-21  Simon Josefsson  <jas@extundo.com>
107941         * doc/gnulib.texi (Windows sockets): Add.
107943 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
107945         * lib/read-file.c (fread_file): Start with buffer allocation of
107946         0 bytes rather than 1 byte; this simplifies the code.
107947         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
107948         code to free buffer and save/restore errno.
107949         (internal_read_file): Remove unused local.
107951 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
107953         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
107954         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
107955         Problem reported by Denis Excoffier in
107956         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
107958 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107960         * modules/sys_socket, modules/socklen: Include sys/types since
107961         FreeBSD 4.x's sys/socket.h needs it.
107963 2006-06-19  Simon Josefsson  <jas@extundo.com>
107965         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
107967 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
107969         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
107971 2006-06-19  Bruno Haible  <bruno@clisp.org>
107973         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
107974         and FULL_PATH_INTTYPES_H in angle brackets.
107975         Reported by Mark D. Baushke <mdb@gnu.org>.
107977 2006-06-17  Eric Blake  <ebb9@byu.net>
107979         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
107980         errno.
107982 2006-06-17  Bruno Haible  <bruno@clisp.org>
107984         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
107985         <sys/inttypes.h>.
107987 2006-06-17  Bruno Haible  <bruno@clisp.org>
107989         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
107990         whether errno is declared. Assume <errno.h> declares errno.
107992 2006-06-17  Bruno Haible  <bruno@clisp.org>
107994         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
107996 2006-06-17  Bruno Haible  <bruno@clisp.org>
107998         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
107999         problem on Solaris 2.5.1.
108001 2006-06-16  Eric Blake  <ebb9@byu.net>
108003         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
108004         * lib/unicodeio.c [!defined errno]: Likewise.
108005         * lib/strtol.c [!defined errno]: Likewise.
108006         * lib/strtod.c [!defined errno]: Likewise.
108008 2006-06-15  Eric Blake  <ebb9@byu.net>
108010         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
108012 2006-06-15  Eric Blake  <ebb9@byu.net>
108014         * config/srclist.txt (ssize_t.m4): Lose sync.
108016 2006-06-15  Bruno Haible  <bruno@clisp.org>
108018         * modules/stdint (Files): Include m4/full-header-path.m4,
108019         m4/size_max.m4, m4/wchar_t.m4.
108020         (Makefile.am): Many more substitutions.
108021         * modules/stdint-tests: New file.
108022         * tests/test-stdint.c: New file.
108024 2006-06-15  Bruno Haible  <bruno@clisp.org>
108026         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
108027         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
108028         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
108029         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
108030         gl_CHECK_TYPE_SAME): New macros.
108032 2006-06-15  Bruno Haible  <bruno@clisp.org>
108034         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
108036 2006-06-15  Bruno Haible  <bruno@clisp.org>
108038         * lib/stdint_.h: Rewritten to be fully auto-configured.
108039         Fixes bug on HP-UX/IA64.
108041 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
108043         * lib/getdate.y (__attribute__): Don't define if already defined.
108044         Problem reported by Larry Jones.
108045         * lib/utimens.c (__attribute__): Likewise.
108047 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
108049         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
108050         reported by Andreas Schwab.
108052 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108053             Bruno Haible  <bruno@clisp.org>
108055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
108056         check for the declaration of strnlen and a run test that exposes the
108057         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
108058         rpl_strndup.
108060 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108061             Bruno Haible  <bruno@clisp.org>
108063         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
108065 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108067         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
108068         compile test, for Tru64 4.0D.
108070 2006-05-28  Karl Berry  <karl@gnu.org>
108072         * config/srclist.txt (printf-args.c): lose sync.
108074 2006-05-26  Martin Lambers  <marlam@marlam.de>
108076         * lib/getpass.c: Updates the test for the native W32 API, and adds
108077         missing includes, thus fixing compilation warnings.
108079 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
108081         * lib/exclude.c (exclude_fnmatch): New function.
108082         (excluded_file_name): Call exclude_fnmatch.
108083         * lib/exclude.h (excluded_file_name): New prototype
108085 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
108087         * lib/tempname.c (small_open, large_open): New macros.
108088         (__open, __open64) [!_LIBC]: Remove.
108089         (__gen_tempname): Use small_open and large_open instead of __open
108090         and __open64.  This fixes a portability bug on HP-UX 11.11i
108091         reported by Simon Wing-Tang in
108092         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
108094 2006-05-24  Bruno Haible  <bruno@clisp.org>
108096         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
108097         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
108098         Reported by Thorsten Maerz <torte@netztorte.de> via
108099         Aaron Stone <aaron@serendipity.cx>.
108101 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
108104         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
108105         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
108106         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
108107         not really conditional on the cache.
108108         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
108110 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108112         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
108113         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
108114         (my_usleep): Don't mishandle maximum value.
108116 2006-05-19  Jim Meyering  <jim@meyering.net>
108118         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
108120 2006-05-17  Bruno Haible  <bruno@clisp.org>
108122         Cygwin portability.
108123         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
108125 2006-05-17  Bruno Haible  <bruno@clisp.org>
108127         * lib/stdint_.h: Fix recognition of Cygwin.
108129 2006-05-15  Bruno Haible  <bruno@clisp.org>
108131         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
108132         on libtool patch by Ralf Wildenhues.
108134 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
108136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
108137         test for C99 conformance; (bool) 0.5 is an integer constant
108138         expression, but (bool) -0.5 is not.  Problem reported by Fedor
108139         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
108141 2006-05-11  Simon Josefsson  <jas@extundo.com>
108143         * m4/xvasprintf.m4: Fix obvious typo.
108145 2006-05-11  Jim Meyering  <jim@meyering.net>
108147         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
108148         James Lemley.
108150 2006-05-10  Simon Josefsson  <jas@extundo.com>
108152         * lib/md4.c: Typo fix, update copyright years.
108153         (K1, K2): Don't use L because it turn computations into 64-bit on
108154         64-bit platforms.
108156 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
108158         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
108159         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
108160         unwanted sign propagation, e.g., on hosts with 64-bit int.
108161         There still are some problems with reeelly weird theoretical hosts
108162         (e.g., 33-bit int) but it's not worth worrying about now.
108163         * lib/sha1.c (rol): Likewise.
108164         (K1, K2, K3, K4): Remove unnecessary L suffix.
108166 2006-05-10  Bruno Haible  <bruno@clisp.org>
108168         * lib/des.c: Cast to avoid warnings.
108170 2006-05-09  Bruno Haible  <bruno@clisp.org>
108172         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
108173         (Depends-on): Depend also on xsize, stdarg.
108174         (configure.ac): Add gl_XVASPRINTF.
108176 2006-05-09  Bruno Haible  <bruno@clisp.org>
108178         * m4/xvasprintf.m4: New file.
108180 2006-05-09  Bruno Haible  <bruno@clisp.org>
108182         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
108183         (EOVERFLOW): Define fallback value.
108184         (xstrcat): New function.
108185         (xvasprintf): Recognize the special case of a string concatenation.
108187 2006-05-08  Eric Blake  <ebb9@byu.net>
108189         * gnulib-tool (func_version): Base copyright year on CVS date.
108190         (func_emit_copyright_notice): New function.
108191         (func_emit_lib_Makefile_am): Use it.
108192         (func_emit_tests_Makefile_am): Likewise.
108193         (func_import): Likewise.
108195 2006-05-08  Bruno Haible  <bruno@clisp.org>
108197         * modules/stdarg: New file.
108198         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
108200 2006-05-08  Bruno Haible  <bruno@clisp.org>
108202         * m4/stdarg.m4: New file, from GNU gettext.
108204 2006-05-08  Bruno Haible  <bruno@clisp.org>
108206         * config/srclist.txt (build-aux/config.rpath): different from latest
108207         release.
108209 2006-05-08  Bruno Haible  <bruno@clisp.org>
108211         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
108213 2006-05-05  Jim Meyering  <jim@meyering.net>
108215         * m4/warning.m4: New file, derived from bison's file by the same name.
108217 2006-05-03  Bruno Haible  <bruno@clisp.org>
108219         * lib/stdint_.h: Shorter URL.
108220         * lib/inttypes.h: Likewise.
108222 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108224         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
108226 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108228         * lib/verify.h: Document the internals better.  Most of this change
108229         was written by Bruno Haible.
108231 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
108233         * doc/verify.texi: New file, partly based on a proposal by
108234         Bruno Haible.
108236 2006-05-02  Bruno Haible  <bruno@clisp.org>
108238         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
108239         test from here...
108240         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
108242 2006-04-29  Bruno Haible  <bruno@clisp.org>
108244         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
108245         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
108247 2006-04-29  Bruno Haible  <bruno@clisp.org>
108249         * gnulib-tool: Make --update option actually work.
108251 2006-04-29  Bruno Haible  <bruno@clisp.org>
108253         * doc/gcd.texi: New file.
108254         * doc/gnulib.texi: Include it.
108256 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
108258         * lib/getdate.y (get_date): When adding relative date, start with the
108259         initial time, not with the result of the first mktime call.
108261 2006-04-25  Bruno Haible  <bruno@clisp.org>
108263         * gnulib-tool (func_import): Output the include directives in three
108264         blocks, sorted separately.
108265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108267 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108269         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
108270         to define main with arguments, for C++.  Reported by Eric Blake.
108271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
108272         Prefer 'int main ()' to 'int main (void)', for C++.
108273         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
108274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
108275         for 'main', for C99 and C++.
108277 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
108279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
108280         Don't assume that exit status -1 is valid.
108281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108282         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
108283         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
108284         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
108285         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
108286         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
108287         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
108288         functions can be used without declaring them, or that you can
108289         exit with status -1.
108290         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
108292 2006-04-24  Karl Berry  <karl@gnu.org>
108294         * config/srclist.txt (longdouble.m4): sync lost.
108296 2006-04-24  Eric Blake  <ebb9@byu.net>
108298         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
108300 2006-04-24  Bruno Haible  <bruno@clisp.org>
108302         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
108303         poll() implementation in AIX.
108304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108306 2006-04-24  Bruno Haible  <bruno@clisp.org>
108308         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
108309         assigned exactly once.
108311 2006-04-23  Claudio Fontana  <claudio@gnu.org>
108312             Bruno Haible  <bruno@clisp.org>
108314         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
108315         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
108316         for AM_CPPFLAGS.
108318 2006-04-23  Bruno Haible  <bruno@clisp.org>
108320         * modules/copy-file: Depend on unistd.
108321         * modules/execute: Likewise.
108322         * modules/fatal-signal: Likewise.
108323         * modules/findprog: Likewise.
108324         * modules/mkdtemp : Likewise.
108325         * modules/pipe: Likewise.
108326         * modules/wait-process: Likewise.
108328 2006-04-23  Bruno Haible  <bruno@clisp.org>
108330         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
108331         condition was already detected.
108332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108334 2006-04-23  Bruno Haible  <bruno@clisp.org>
108336         * lib/copy-file.c: Include <unistd.h> unconditionally.
108337         * lib/execute.c: Likewise.
108338         * lib/fatal-signal.c: Likewise.
108339         * lib/findprog.c: Likewise.
108340         * lib/mkdtemp.c: Likewise.
108341         * lib/pipe.h: Likewise.
108342         * lib/pipe.c: Likewise.
108343         * lib/wait-process.h: Likewise.
108345 2006-04-23  Bruno Haible  <bruno@clisp.org>
108347         * gnulib-tool (func_usage): Fix --import description. Document
108348         --update.
108349         (func_import): Create temporary file in a temporary directory, if
108350         --dry-run is specified. Silence errors from 'grep' when there are no
108351         m4 files in $m4dir.
108352         (func_create_testdir): Silence errors from 'grep' when there are no
108353         m4 files in $m4dir.
108354         Reported by Karl Berry <karl@freefriends.org>.
108356 2006-04-20  Bruno Haible  <bruno@clisp.org>
108358         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
108359         one argument, so that the code will be portable to Autoconf 2.60.
108360         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
108361         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
108362         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
108364 2006-04-19  Derek Price  <derek@ximbiot.com>
108365             Eric Blake  <ebb9@byu.net>
108367         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
108368         rather than "/full/path.h".  Update comment to match.  Shorten &
108369         generalize m4_translit call via AS_TR_CPP.
108371 2006-04-19  Derek Price  <derek@ximbiot.com>
108372             Eric Blake  <ebb9@byu.net>
108374         * lib/inttypes.h: Correct grammar in comment.
108376 2006-04-18  Derek Price  <derek@ximbiot.com>
108377             Paul Eggert  <eggert@cs.ucla.edu>
108379         * modules/inttypes: New file.
108380         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
108382 2006-04-18  Derek Price  <derek@ximbiot.com>
108383             Paul Eggert  <eggert@cs.ucla.edu>
108385         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
108386         New files.
108388 2006-04-18  Derek Price  <derek@ximbiot.com>
108389             Paul Eggert  <eggert@cs.ucla.edu>
108391         * lib/inttypes.h: New file.
108392         * lib/strtoimax.c: Assume <inttypes.h>.
108394 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
108396         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
108397         isn't mounted.  Problem reported by Kir Kolyshkin.
108399 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
108401         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
108402         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
108403         Derek R. Price.
108404         * lib/regex.h (RE_DUP_MAX): Update comment to match current
108405         implementation.
108407 2006-04-12  Eric Blake  <ebb9@byu.net>
108409         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
108410         is now done automatically by the corresponding Autoconf macro.
108412 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
108414         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
108415         time_r.h.
108417 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108419         Merge regex changes from libc, removing some of our
108420         POSIX-conformance changes that were rejected and redoing them in a
108421         less-intrusive way.
108423         * lib/regcomp.c (re_compile_internal, init_dfa):
108424         Length arg is now size_t, not Idx.  All uses changed.
108425         (peek_token): Forward decl now says internal_function.
108426         (__re_error_msgid, __re_error_msgid_idx):
108427         Now static rather than extern with attribute_hidden.
108428         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
108429         For some reason libc prefers K&R style defns for external functions.
108430         (regerror) [!defined _LIBC]: Likewise.
108431         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
108432         (seek_collating_symbol_entry, lookup_collation_sequence_value):
108433         (build_range_exp, build_collating_symbol):
108434         Use K&R-style defn.
108435         (re_compile_fastmap): Use '\0' to memset, not 0.
108436         (utf8_sb_map): Make the calculations more obvious.
108437         (init_dfa, parse_bracket_exp, build_charclass_op):
108438         Call calloc and cast result, as glibc does.
108439         (init_word_char, fetch_token, peek_token, peek_token_bracket):
108440         (build_range_exp, build_collating_symbol):
108441         Now internal functions.
108443         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
108445         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
108446         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
108447         Don't depend on VMS; depend on __VMS instead, for POSIX
108448         namespace cleanness.
108449         (regoff_t): Define to ssize_t, not long int.
108451         Remove the REG_ macros named below.  Instead, make the old names
108452         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
108453         __USE_GNU_REGEX.
108454         (REG_BACKSLASH_ESCAPE_IN_LISTS):
108455         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
108456         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
108457         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
108458         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
108459         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
108460         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
108461         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
108462         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
108463         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
108464         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
108465         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
108466         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
108467         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
108468         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
108469         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
108470         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
108471         (REG_NREGS):
108472         Remove.  All uses replaced by the old RE_* names.
108473         (RE_BACKSLASH_ESCAPE_IN_LISTS):
108474         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
108475         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
108476         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
108477         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
108478         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
108479         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
108480         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
108481         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
108482         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
108483         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
108484         Don't bother having these macros be independent of each others'
108485         values, since they no longer exist in the POSIX name space.
108487         Rename the following member names back to their old names,
108488         unless !__USE_GNU_REGEX.  All uses changed back.
108489         (buffer): Renamed from re_buffer.
108490         (allocated): Renamed from re_allocated.
108491         (used): Renamed from re_used.
108492         (syntax): Renamed from re_syntax.
108493         (fastmap): Renamed from re_fastmap.
108494         (translate): Renamed from re_translate.
108495         (can_be_null): Renamed from re_can_be_null.
108496         (regs_allocated): Renamed from re_regs_allocated.
108497         (fastmap_accurate): Renamed from re_fastmap_accurate.
108498         (no_sub): Renamed from re_no_sub.
108499         (not_bol): Renamed from re_not_bol.
108500         (not_eol): Renamed from re_not_eol.
108501         (newline_anchor): Renamed from re_newline_anchor.
108502         (num_regs): Renamed from rm_num_regs.
108503         (start): Renamed from rm_start.
108504         (end): Renamed from rm_end.
108506         (free_state): Move up a bit.
108508         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
108509         #define to be empty.
108510         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
108511         when that is what is intended.
108512         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
108513         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
108514         (MAX): New macro.
108515         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
108516         All uses changed back to re_malloc, etc.  It's now the caller's
108517         responsibility to check for overflow; all callers changed.
108518         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
108519         (re_x2nrealloc): Remove.
108520         (free_state): Remove decl.
108522         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
108523         (re_set_registers, re_exec):
108524         Use K&R-style defn.
108526         2006-01-31  Roland McGrath  <roland@redhat.com>
108528         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
108529         Reported by Mike Frysinger <vapier@gentoo.org>.
108531         2006-01-15  Andreas Jaeger  <aj@suse.de>
108533         [BZ #1950]
108534         * lib/regex_internal.c (re_string_reconstruct): Adjust for
108535         build_wcs_upper_buffer change.
108536         (build_wcs_upper_buffer): Change return type.
108538         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
108540         * lib/regex_internal.h: Include <stdint.h> if available.
108542         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
108544         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
108546         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108548         * lib/regcomp.c: Adjust for changed secondary hash function.
108550         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
108552         * lib/regex.h: Pretty printing.
108553         Clean up namespace a bit.
108555         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
108557         * lib/regexec.c (update_cur_sifted_state, check_arrival,
108558         check_arrival_add_next_nodes): Avoid using uninitialized variable.
108560         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
108561                     Ulrich Drepper  <drepper@redhat.com>
108563         [BZ #1302]
108564         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
108565         changed.
108566         (bitset_word_t): Renamed from bitset_word.  All uses changed.
108568         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
108570         [BZ #281]
108571         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
108572         * lib/regcomp.c: Remove unnecessary uses of
108573         unsigned RE_TRANSLATE_TYPE.
108574         * lib/regex_internal.h: Likewise.
108575         * lib/regex_internal.c: Likewise.
108576         * lib/regexec.c: Likewise.
108577         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
108579         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
108581         * lib/regexec.c (find_recover_state): Remove unnecessary
108582         initialization.
108583         (transit_state_bkref): Make DFA a const pointer.
108584         (get_subexp): Likewise.
108585         (check_arrival): Likewise.
108586         (update_cur_sifted_state): Likewise.
108587         (re_search_internal): Likewise.
108588         (prune_impossible_nodes): Likewise.
108589         (acquire_init_state_context): Likewise.
108590         (proceed_next_node): Likewise.
108591         (set_regs): Likewise.
108592         (free_fail_stack_return): Likewise.
108593         (check_arrival_expand_ecl): Mark DFA parameter as const.
108594         (check_arrival_expand_ecl_sub): Likewise.
108595         (check_subexp_limits): Likewise.
108596         (sub_epsilon_src_nodes):  Likewise.
108597         (add_epsilon_src_nodes):  Likewise.
108598         (merge_state_array): Likewise.
108599         (update_regs): Likewise.
108600         (build_trtable): Likewise.
108601         (sift_states_backward): Mark MCTX parameter as const.
108602         (build_sifted_states): Likewise.
108603         (update_cur_sifted_state): Likewise.
108604         (sift_states_mkref): Likewise.
108605         (check_arrival_expand_ecl): Mark eclosure as const.
108606         (check_dst_limits_calc_pos_1): Likewise.
108607         * lib/regex_internal.h (re_match_context_t): Make dfa a const
108608         pointer.
108610         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
108612         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
108613         (transit_state_sb): Likewise.
108614         (transit_state_mb): Likewise.
108615         (sift_states_iter_mb): Likewise.
108616         (check_arrival_add_next_nodes): Likewise.
108617         (check_node_accept_bytes): Change first parameter to pointer-to-const.
108618         [_LIBC] (re_search_2_stub): Use mempcpy.
108620         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
108621         mbrtowc for very simple UTF-8 case.
108623         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
108624         a pointer-to-const.
108625         (re_acquire_state_context): Likewise.
108626         * lib/regex_internal.h: Adjust prototypes.
108628         * lib/regex.c: Prevent using C++ compilers.
108630         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
108631         (re_acquire_state_context): Likewise.
108633 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108635         * modules/regex (Depends-on): Add ssize_t.
108637 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108639         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
108640         translation table.
108642 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
108644         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
108646 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
108647             Bruno Haible  <bruno@clisp.org>
108649         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
108650         <sys/types.h> and <inttypes.h>.
108652 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108654         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
108655         `__error_t_defined', so argp.h will not typedef the former.
108657 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
108659         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
108660         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
108661         glibc names.  Even if glibc is changed to conform to POSIX, the
108662         traditional names will be available anyway, since regex depends on
108663         the extensions module.  Also, fix a longstanding typo in the
108664         implementation of Spencer ERE test #75 from grep 2.3.  Problems
108665         reported by Emanuele Giaquinta.  Also, change sense of cached
108666         variable, so that the message makes sense.
108668 2006-03-24  Simon Josefsson  <jas@extundo.com>
108670         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
108671         including some doc fixes.
108672         (base64_encode_alloc): Fix +1 bug on allocation failures.
108674 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108676         * lib/base64.c (base64_encode): Do not read past end of array with
108677         unsanitized input on systems with CHAR_BIT > 8.
108679 2006-03-24  Eric Blake  <ebb9@byu.net>
108681         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
108683 2006-03-22  Karl Berry  <karl@gnu.org>
108685         * config/srclist.txt (*setenv.[ch]): get from coreutils.
108686         * config/srclistvars.sh (COREUTILS): new var.
108688 2006-03-17  Jim Meyering  <jim@meyering.net>
108690         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
108691         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
108693 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
108695         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
108696         no longer needs it.  Instead, check that regoff_t is as least
108697         as wide as ptrdiff_t.
108699         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
108700         so that our regex.h stays compatible with the installed regex.
108701         This is helpful for installers who configure --without-included-regex.
108702         Problem reported by Emanuele Giaquinta.
108704 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
108706         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
108707         Typedef to long int, not to off_, as POSIX will likely change
108708         in that direction.
108710 2006-03-15  Eric Blake  <ebb9@byu.net>
108712         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
108714 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
108716         * lib/argp-help.c (validate_uparams): Fix typo
108717         * lib/argp-parse.c (argp_default_options): Consistently begin help
108718         messages with a lowercase letter.
108720 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
108722         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
108723         overrun buffers and shouldn't be used (much as gets shouldn't be
108724         used).
108725         * lib/time_r.c (asctime_r, ctime_r): Likewise.
108727 2006-03-08  Simon Josefsson  <jas@extundo.com>
108729         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
108730         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108732 2006-03-08  Simon Josefsson  <jas@extundo.com>
108734         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
108735         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108737 2006-03-08  Simon Josefsson  <jas@extundo.com>
108739         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
108740         signal that configure disabled the device.
108742 2006-03-08  Simon Josefsson  <jas@extundo.com>
108744         * build-aux/maint.mk: Fix refresh-po, to handle no translated
108745         languages.
108747 2006-03-07  Simon Josefsson  <jas@extundo.com>
108749         * modules/getopt (Depends-on): Add unistd.
108751         * modules/unistd: New file.
108753 2006-03-07  Simon Josefsson  <jas@extundo.com>
108755         * modules/gc-random: New file.
108757 2006-03-07  Simon Josefsson  <jas@extundo.com>
108759         * m4/unistd_h.m4: New file.
108761 2006-03-07  Simon Josefsson  <jas@extundo.com>
108763         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
108764         test to be side-effect free by storing the result in the cache
108765         variable gl_cv_lib_readline, and moving the assignment of
108766         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
108767         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108769 2006-03-07  Simon Josefsson  <jas@extundo.com>
108771         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
108772         error on missing devices (the functions will return an error).
108774         * m4/gc.m4: Move random stuff to gc-random.m4
108776 2006-03-07  Simon Josefsson  <jas@extundo.com>
108778         * lib/unistd_.h: New file.
108780 2006-03-07  Simon Josefsson  <jas@extundo.com>
108782         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
108784 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
108786         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
108787         Problem reported by Juan Manuel Guerrero.
108789 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
108791         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
108792         the unistd module.
108793         * lib/getlogin_r.c: Likewise.
108794         * lib/getlogin_r.h: Likewise.
108795         * lib/glob.c: Likewise.
108796         * lib/pagealign_alloc.c: Likewise.
108797         * lib/unistd_.h: Remove; no longer needed.
108799 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
108801         * MODULES.html.sh (Support for systems lacking POSIX:2001):
108802         Add unistd.
108803         * modules/c-stack (Depends-on): Add unistd.
108804         * modules/getlogin_r: Likewise.
108805         * modules/glob: Likewise.
108806         * modules/pagealign_alloc: Likewise.
108807         * modules/unistd (Files): Remove lib/unistd_.h.
108808         (EXTRA_DIST): Remove.
108809         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
108810         need unistd_.h.
108811         (MOSTLYCLEANFILES): Remove unistd.h-t.
108813 2006-03-03  Simon Josefsson  <jas@extundo.com>
108815         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
108817 2006-03-03  Simon Josefsson  <jas@extundo.com>
108819         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
108820         libidn and bison.
108822 2006-03-03  Simon Josefsson  <jas@extundo.com>
108824         * build-aux/maint.mk: Add indent target.
108826 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
108828         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
108829         our replacement poll.h in any case, to avoid a differing
108830         declaration from a system header.  Seen on AIX.
108832 2006-03-01  Simon Josefsson  <jas@extundo.com>
108834         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
108835         <kasal@ucw.cz>.
108837 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108839         * modules/gettime (Depends-on): Add extensions module.
108840         * modules/nanosleep (Depends-on): Likewise.
108841         * modules/settime (Depends-on): Likewise.
108843 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108845         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
108846         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
108847         pedantically.
108848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108849         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
108851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
108852         not "==".  Reported by Ralf Wildenhues.
108854 2006-03-01  Karl Berry  <karl@gnu.org>
108856         * doc/Copyright/request-*: new files, synced from gnuorg.
108858 2006-03-01  Karl Berry  <karl@gnu.org>
108860         * config/srclist.txt (Copyright/*): new entries.
108862 2006-02-28  Simon Josefsson  <jas@extundo.com>
108864         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
108866 2006-02-27  Simon Josefsson  <jas@extundo.com>
108868         * lib/base64.h: Indent #define's.  From Jim Meyering
108869         <jim@meyering.net>.
108871 2006-02-27  Jim Meyering  <jim@meyering.net>
108873         Revert the change of 2006-02-24, so these files can continue
108874         to be sync'd from gettext.
108875         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
108876         of `config.h'.
108878 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
108880         * modules/intprops: New file.
108881         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108882         Add intprops.
108883         * modules/getloadavg (Files): Remove lib/intprops.h.
108884         (Depends-on): Add intprops.
108885         * modules/human: Likewise.
108886         * modules/inttostr: Likewise.
108887         * modules/openat: Likewise.
108888         * modules/sig2str: Likewise.
108889         * modules/userspec: Likewise.
108890         * modules/utimecmp: Likewise.
108891         * modules/xnanosleep: Likewise.
108892         * modules/xstrtol: Likewise.
108894 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
108896         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
108897         * modules/lock-tests (TESTS): Use $(EXEEXT).
108898         * modules/tls-tests: Likewise.
108899         * modules/argp-tests: Likewise.
108900         (check_PROGRAMS): New var, replacing...
108901         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
108903 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108905         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
108906         `config.h'.
108908 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108910         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
108912 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108914         Sync from coreutils.
108915         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
108916         gl_CHDIR_SAFER.
108918 2006-02-22  Jim Meyering  <jim@meyering.net>
108920         Sync from coreutils.
108921         * m4/chdir-safer.m4: New file.
108923 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108925         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
108926         AT_FDCWD exceeds INT_MAX.
108927         * lib/openat.h (AT_FDCWD): Likewise.
108929 2006-02-17  Eric Blake  <address@hidden>
108931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
108933 2006-02-16  Simon Josefsson  <jas@extundo.com>
108935         * modules/getaddrinfo (Depends-on): Add sys_socket.
108937 2006-02-15  Simon Josefsson  <jas@extundo.com>
108939         * build-aux/maint.mk: Add dsyntax-check rule.
108941 2006-02-15  Eric Blake  <ebb9@byu.net>
108943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
108944         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
108945         'present but cannot compile' warnings on cygwin.
108946         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
108947         use ws2tcpip.h if sys/socket.h works.
108948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
108949         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
108951 2006-02-14  Simon Josefsson  <jas@extundo.com>
108953         * modules/maintainer-makefile (Files): Rename.
108955         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
108956         and (the local) Makefile.cfg to maint-cfg.mk.
108958         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
108959         to the latter.
108961         * modules/maintainer-makefile: New module.
108963         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
108964         severaly stripped to make it possible to build it up from scratch
108965         with reliable tests.
108967         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
108968         fixes to permit overriding the default actions when configure and
108969         makefile are not available.
108971 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108973         Sync from coreutils.
108974         * modules/lstat (Depends-on): Don't depend on xalloc.
108975         (License): Change from GPL to LGPL, since this is now simply a
108976         replacement for a libc function.
108978 2006-02-14  Jim Meyering  <jim@meyering.net>
108980         Sync from coreutils.
108982         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
108983         failure on deficient systems, and simplify gnulib lgpl dependencies.
108984         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
108985         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
108987         * lib/xalloc-die.c: Remove unused definition of N_.
108989 2006-02-14  Jim Meyering  <jim@meyering.net>
108991         Sync from coreutils.
108992         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
108993         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
108994         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
108995         double-quote uses of that variable, to accommodate the rare case in
108996         which getmntent is available in none of the libraries checked.  This
108997         happens at least on FreeBSD 5.0.
108999 2006-02-13  Simon Josefsson  <jas@extundo.com>
109001         * gnulib-tool (Usage): Fix --import, from
109002         karl@freefriends.org (Karl Berry).
109004 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
109006         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
109008 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
109010         * lib/argp-namefrob.h: Restore changes accidentally lost during the
109011         "autoupdate" on 2005-12-12.
109013 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109015         * modules/closeout (Depends-on): Remove atexit.
109017 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
109019         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
109020         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
109022 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
109025         __EXTENSIONS__ if this causes compilation to fail.  Problem
109026         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
109027         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
109029 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
109031         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
109032         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
109033         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
109034         All uses changed.
109036 2006-01-26  Simon Josefsson  <jas@extundo.com>
109038         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
109039         prototype is visible on mingw32.
109041         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
109042         for mingw32.
109044         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
109045         mingw32).
109047 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109049         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
109050         attempt to open for write; this always fails, at least on POSIX
109051         hosts.  This reinstates the 2006-01-09 change, which was
109052         inadvertently removed.
109054 2006-01-26  Bruno Haible  <bruno@clisp.org>
109056         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
109057         Reported by Paul Eggert.
109059 2006-01-26  Bruno Haible  <bruno@clisp.org>
109060             Paul Eggert  <eggert@cs.ucla.edu>
109062         * lib/stdbool_.h (_Bool)
109063         [(! (defined __cplusplus || defined __BEOS__)
109064           && !defined __GNUC__
109065           && !(defined __HP_cc || defined __xlc__
109066                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
109067                || defined __sgi))]:
109068         #define to signed char in these cases too; this simplifies
109069         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
109070         etc., separately) and makes it more conservative.
109072 2006-01-25  Simon Josefsson  <jas@extundo.com>
109074         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
109075         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
109076         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
109078 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
109080         * lib/argp-namefrob.h: Bugfix. Remove stray #
109082 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
109084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
109085         so that we test the test.
109086         Check for yet another HP-UX cc bug involving *bool |= bool.
109088 2006-01-25  Karl Berry  <karl@gnu.org>
109090         * config/srclist.txt (vasnprintf.c): sync lost.
109092 2006-01-25  Jim Meyering  <jim@meyering.net>
109094         Sync from the stable (b5) branch of coreutils:
109096         * lib/fts.c (fts_children): Don't let close() clobber errno from
109097         failed fchdir().
109099         * lib/fts.c (fts_stat): When following a symlink-to-directory,
109100         don't necessarily interpret stat-fails+lstat-succeeds as indicating
109101         a dangling symlink.  That can also happen at least for ELOOP.
109102         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
109103         FYI, this bug predates the inclusion of fts.c in coreutils.
109105         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
109106         in their own block, so pre-c99 compilers don't object.
109108         Avoid the double-free (first in fts_read, second in fts_close) that
109109         would occur when an `active' directory is made inaccessible (e.g.,
109110         via chmod a-x) during a traversal.
109111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109112         before returning.  Reproduce this failure by
109113         mkdir -p a/b; cd a; chmod a-x . b
109114         Reported by Stavros Passas.
109116 2006-01-25  Jim Meyering  <jim@meyering.net>
109118         * lib/fileblocks.c: Remove more useless parentheses.
109119         * lib/readutmp.h: Likewise.
109121 2006-01-25  Bruno Haible  <bruno@clisp.org>
109123         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
109124         warnings.
109125         Reported by Paul Eggert.
109127 2006-01-25  Bruno Haible  <bruno@clisp.org>
109129         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
109130         rid of a trap command. For Solaris sh.
109131         Reported by Mark D. Baushke <mdb@gnu.org>.
109133 2006-01-24  Simon Josefsson  <jas@extundo.com>
109135         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
109136         Bruno.
109138 2006-01-24  Karl Berry  <karl@gnu.org>
109140         * config/srclist.txt (argp-namefrob.h): sync lost.
109142 2006-01-24  Jim Meyering  <jim@meyering.net>
109144         * modules/openat (Files): Add lib/intprops.h.
109145         From Mark D. Baushke.
109147 2006-01-24  Jim Meyering  <jim@meyering.net>
109149         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
109150         Reported by Mark D. Baushke.
109152 2006-01-24  Jim Meyering  <jim@meyering.net>
109154         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
109156 2006-01-24  Bruno Haible  <bruno@clisp.org>
109158         * modules/strnlen (Maintainer): Change from glibc to all.
109160 2006-01-24  Bruno Haible  <bruno@clisp.org>
109162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
109163         Patch by Paul Eggert.
109165 2006-01-24  Bruno Haible  <bruno@clisp.org>
109167         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
109168         already has it.
109169         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
109170         2005-11-26.
109172         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
109173         'signed char' to avoid problems with the built-in _Bool type.
109174         Reported by Paul Eggert on 2005-11-26.
109176 2006-01-24  Bruno Haible  <bruno@clisp.org>
109178         * gnulib-tool (func_import): Avoid constructing complicated sed
109179         expressions inside backquote.
109180         Report and solution by Mark D. Baushke <mdb@gnu.org>.
109182 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
109184         These changes imported from libc.
109185         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
109186         test and two separate function calls.
109187         * lib/strndup.c (__strndup): Add libc_hidden_def.
109189 2006-01-23  Simon Josefsson  <jas@extundo.com>
109191         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
109192         Remove the test_*_SOURCES variable: automake infers it by default.
109193         * modules/tls-tests: Likewise.
109195 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109197         Work around porting bugs reported by Dieter in
109198         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
109199         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
109200         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
109201         Include "getopt.h" first, to check interface.
109202         (getenv): Declare only if defined HAVE_DECL_GETENV &&
109203         !HAVE_DECL_GETENV.
109204         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
109205         (__strndup): Revert to K&R-style function dfns, the glibc style.
109206         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
109207         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
109208         Include strnlen.h first, to get prototype properly.
109209         (strnlen): Renamed from __strnlen.
109210         Remove weak alias.
109212 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109214         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
109216 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109218         * config/srclist.txt: Adjust to reflect glibc reorganization.
109219         This affects only comments.
109221 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109223          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
109224          Reported by Bruce Korb <bkorb@gnu.org>.
109226 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109228         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
109229         to pacify gcc -Wswitch-default.
109231 2006-01-22  Bruno Haible  <bruno@clisp.org>
109233         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
109234         temporary buffer for sprintf, take into account the precision also
109235         for 'd', 'i', 'u', 'o', 'x', 'X'.
109237 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109239         * modules/argp-tests: New module
109240         * tests/test-argp.c: New file
109241         * tests/test-argp-2.sh: New file
109243 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
109245         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
109246         (__argp_base_name): Removed
109247         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
109248         typo.
109249         (__argp_base_name): Provide macro definition or extern declaration
109250         depending on the configuration
109252 2006-01-20  Simon Josefsson  <jas@extundo.com>
109254         * modules/inet_ntop (Depends-on): Depend on sys_socket.
109256 2006-01-20  Simon Josefsson  <jas@extundo.com>
109258         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
109260 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
109262         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
109263         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
109264         Suggested by Bruno Haible.
109266 2006-01-20  Karl Berry  <karl@gnu.org>
109268         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
109269         until changes propagate, I guess.
109271 2006-01-19  Simon Josefsson  <jas@extundo.com>
109273         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
109275 2006-01-19  Simon Josefsson  <jas@extundo.com>
109277         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
109279 2006-01-19  Simon Josefsson  <jas@extundo.com>
109281         * gnulib-tool: Set check_PROGRAMS.
109283         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109284         modules/des-tests, modules/gc-arcfour-tests,
109285         modules/gc-arctwo-tests, modules/gc-des-tests,
109286         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109287         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109288         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109289         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109290         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109291         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
109292         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
109293         test_*_SOURCES.
109295 2006-01-18  Simon Josefsson  <jas@extundo.com>
109297         * modules/socklen (Depends-on): Depend on sys_socket.
109299 2006-01-18  Simon Josefsson  <jas@extundo.com>
109301         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
109302         modules/des-tests, modules/gc-arcfour-tests,
109303         modules/gc-arctwo-tests, modules/gc-des-tests,
109304         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
109305         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
109306         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
109307         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
109308         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
109309         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
109310         $(EXEEXT) to automake TESTS variable, for mingw32.
109312 2006-01-17  Simon Josefsson  <jas@extundo.com>
109314         * modules/socklen (Include): Need sys/socket.h.
109316 2006-01-17  Bruno Haible  <bruno@clisp.org>
109318         * modules/ssize_t (Include): Add <sys/types.h>.
109320 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
109322         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
109323         it's not portable and it doesn't work with cross-compiles.
109324         Problem reported by Bruno Haible.  Fix missing-$ typo in
109325         'test "gl_cv_ignore_unused_libraries" ...' that prevented
109326         -zignore from being used with Sun's C compiler.
109328 2006-01-12  Simon Josefsson  <jas@extundo.com>
109330         * lib/base64.c: Fix warning, reported by Bruno Haible
109331         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
109333 2006-01-12  Bruno Haible  <bruno@clisp.org>
109335         * modules/ldd: New file.
109336         * build-aux/ldd.sh.in: New file.
109337         * MODULES.html.sh (Support for building libraries and executables): Add
109338         ldd.
109340 2006-01-12  Bruno Haible  <bruno@clisp.org>
109342         * m4/ldd.m4: New file.
109344 2006-01-12  Bruno Haible  <bruno@clisp.org>
109346         * gnulib-tool (func_import, func_create_testdir): Don't go into an
109347         endless loop while replacing $auxdir with build-aux.
109349 2006-01-11  Simon Josefsson  <jas@extundo.com>
109351         * lib/stdint_.h (SIZE_MAX): Add missing (.
109353 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
109355         Sync from coreutils.
109356         * lib/md5.c: Fix commentary typos.
109357         (alignof, UNALIGNED_P): No need for a GCC-specific version.
109358         * lib/md5.h (__attribute__): Remove; unused.
109359         * lib/sha1.c: Fix commentary to match md5 better.
109360         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
109361         so that we don't need to worry about alignment.  All uses changed.
109362         This merges the 2005-10-28 md5 change into sha1.
109364 2006-01-11  Jim Meyering  <jim@meyering.net>
109366         Sync from coreutils.
109367         * lib/md5.c (OP): Fix spacing.
109369 2006-01-11  Bruno Haible  <bruno@clisp.org>
109371         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109372         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
109373         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
109375 2006-01-11  Bruno Haible  <bruno@clisp.org>
109377         Ensure automatic ordering between gl_LOCK and gl_ARGP.
109378         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
109379         the "early" section as well.
109381 2006-01-11  Bruno Haible  <bruno@clisp.org>
109383         Avoid "ar: no archive members specified" error on MacOS X.
109384         * gnulib-tool (func_modules_add_dummy): New function.
109385         (func_import, func_create_testdir): Invoke it.
109387 2006-01-11  Bruno Haible  <bruno@clisp.org>
109389         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
109390         with $auxdir in AC_CONFIG_FILES statements.
109392 2006-01-11  Bruno Haible  <bruno@clisp.org>
109394         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109395         Initialize also noinst_HEADERS to empty.
109397 2006-01-11  Bruno Haible  <bruno@clisp.org>
109399         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
109400         variables.
109401         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
109402         autoreconf.
109404 2006-01-11  Bruno Haible  <bruno@clisp.org>
109406         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
109407         overridable by the user.
109408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109410 2006-01-10  Simon Josefsson  <jas@extundo.com>
109412         * modules/sys_socket: New file.
109414 2006-01-10  Simon Josefsson  <jas@extundo.com>
109416         * m4/sys_socket_h.m4: New file.
109418 2006-01-10  Simon Josefsson  <jas@extundo.com>
109420         * lib/socket_.h: New file.
109422 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109424         * modules/readutmp (Maintainer): Add myself.
109426 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109428         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
109429         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
109430         People who are still concerned with buggy memcmp implementations
109431         can invoke gl_FUNC_MEMCMP themselves.
109433 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109435         * lib/regex_internal.h (BITSET_WORD_BITS):
109436         Work around a bug in 64-bit PGC (before version 6.1-2), where the
109437         preprocessor mishandles large unsigned values as if they were signed.
109438         Problem reported by Claudio Fontana in
109439         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
109441 2006-01-10  Jim Meyering  <jim@meyering.net>
109443         Avoid the double-free (first in fts_read, second in fts_close) that
109444         would occur when an `active' directory is made inaccessible (e.g.,
109445         via chmod a-x) during a traversal.
109446         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
109447         before returning.  Reproduce this failure by
109448         mkdir -p a/b; cd a; chmod a-x . b
109449         Reported by Stavros Passas.
109451         Sync from coreutils.
109452         * lib/sha1.c: Tweak grammar in a comment.
109454 2006-01-10  Jim Meyering  <jim@meyering.net>
109456         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
109457         Patch by Joerg Sonnenberger.
109459 2006-01-10  Bruno Haible  <bruno@clisp.org>
109461         * modules/readutmp: Depend on module free.
109462         * modules/strtok_r: Depend on module restrict.
109464 2006-01-10  Bruno Haible  <bruno@clisp.org>
109466         * modules/gettext (configure.ac): Add an invocation of
109467         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
109469 2006-01-10  Bruno Haible  <bruno@clisp.org>
109471         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
109472         Reported by Werner Lemberg <wl@gnu.org>.
109474 2006-01-10  Bruno Haible  <bruno@clisp.org>
109476         * lib/localcharset.c: Update from GNU gettext.
109478 2006-01-10  Bruno Haible  <bruno@clisp.org>
109480         * lib/argp.h (__const): Remove macro. Use const instead.
109481         * lib/argp-fmtstream.h (__const): Likewise.
109482         * lib/glob_.h (__const): Remove macro.
109483         * lib/glob-libc.h: Use const instead of __const.
109485 2006-01-10  Bruno Haible  <bruno@clisp.org>
109487         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
109488         variable.
109489         Needed to avoid an automake error regarding the 'gettext' module.
109491 2006-01-09  Simon Josefsson  <jas@extundo.com>
109493         * modules/inet_ntop (Depends-on): Add restrict.
109495 2006-01-09  Simon Josefsson  <jas@extundo.com>
109497         * modules/gc-rijndael-tests (License): Put under LGPL.
109499         * modules/gc-des-tests (License): Likewise.
109501         * modules/gc-arcfour-tests (License): Likewise.
109503         * modules/gc-arctwo-tests (License): Likewise.
109505         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
109507         * modules/gc-hmac-sha1-tests (Files): Likewise.
109509         * modules/gc-hmac-md5-tests (License): Likewise.
109511         * modules/gc-sha1-tests (License): Likewise.
109513         * modules/gc-md5-tests (License): Likewise.
109515         * modules/gc-md4-tests (License): Likewise.
109517         * modules/gc-md2-tests (License): Likewise.
109519         * modules/gc-tests (License): Likewise.
109521         * modules/des-tests (License): Likewise.
109523         * modules/md4-tests (License): Likewise.
109525         * modules/md2-tests (License): Likewise.
109527 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
109529         Sync from coreutils:
109531         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
109532         * modules/lib-ignore: New file.
109533         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
109534         chdir-safer.m4, lchmod.m4.
109535         * modules/openat: Add mkdirat.c, openat-priv.h.
109537 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
109539         Sync from coreutils.
109540         * m4/lib-ignore.m4: New file.
109541         * m4/lchmod.m4: New file.
109543 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
109545         Sync from coreutils.
109546         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
109547         for write access: POSIX says that must fail.
109548         * lib/fts.c (diropen): Likewise.
109549         * lib/save-cwd.c (save_cwd): Likewise.
109550         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
109551         well, for minor improvements on hosts that lack O_DIRECTORY.
109552         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
109553         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
109554         Fall back on chown if open failed with EACCES.
109556         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
109557         Report an error at compile-time if only a 1-second nominal clock
109558         resolution is found.
109560         * lib/lchmod.h: New file.
109561         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
109562         (make_dir_parents): Use lchown rather than chown, and
109563         lchmod rather than chmod.
109565         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
109566         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
109567         "proc" reported by n0dalus.
109569         * lib/mountlist.c: Include <limits.h>.
109570         (dev_from_mount_options)
109571         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
109572         New function.  It no longer assumes "dev=" has the System V meaning
109573         on Linux (since it doesn't).  It also parses "dev=" more carefully.
109574         (read_file_system_list)
109575         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
109576         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
109577         dev= in that case.
109579         * lib/posixtm.h (PDS_PRE_2000): New macro.
109580         * lib/posixtm.c (year): Arg is now syntax_bits rather than
109581         allow_century.  All usages changed.  Reject dates outside the range
109582         1969-1999 if PDS_PRE_2000 is used.
109584 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
109586         Sync from coreutils.
109587         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
109588         (Time of day items): Mention the possibility of leap seconds.
109589         Problem reported by Dr. David Alan Gilbert.
109591 2006-01-09  Jim Meyering  <jim@meyering.net>
109593         Sync from coreutils.
109595         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
109597         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
109599         * lib/modechange.c (mode_compile): Reject an invalid mode string
109600         that starts with an octal digit.  From Andreas Gruenbacher.
109602         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
109603         and dup to open_safer and dup_safer, respectively.
109604         (openat_permissive): Fix typo in comment.
109606         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
109607         "gettext.h"; either no longer needed or are guaranteed by openat.h.
109608         (_): Remove; no longer needed.
109609         (openat): Renamed from rpl_openat; no need for rpl_openat
109610         since openat.h renames openat for us.
109611         Replace most of the body with a call to openat_permissive,
109612         to avoid duplicate code.
109613         Port to (probably hypothetical) environments were mode_t is
109614         wider than int.
109615         (openat_permissive): Require mode arg, so that we can check
109616         types better.  Put it just after flags.  Change cwd failure
109617         indicator from pointer-to-bool to pointer-to-errno-value.
109618         All callers changed.
109619         Invoke openat_save_fail and/or openat_restore_fail if
109620         cwd_errno is null, so that openat can call us.
109621         (openat_permissive, fdopendir, fstatat, unlinkat):
109622         Simplify errno handling to avoid some duplicate code,
109623         as it's OK to set errno on success.
109624         * lib/openat.h: Revamp code so that function macros depend on
109625         __OPENAT_PREFIX only, not also on AT_FDCWD.
109626         (openat_ro): Remove.  Caller changed to use openat_permissive.
109627         (openat_permissive): Now a macro, if not a function.
109628         (openat_restore_fail, openat_save_fail): Now always functions,
109629         since mkdirat needs them even if __OPENAT_PREFIX is defined.
109631         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
109632         and openat.c.
109633         * lib/mkdirat.c: Include openat-priv.h.
109634         Remove definitions of macros defined therein.
109635         * lib/openat.c: Likewise.
109637         * lib/mkdirat.c (mkdirat): New file and function.
109638         * lib/openat.h (mkdirat): Declare.
109640         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
109642         * lib/openat.h (openat_permissive): Declare.
109643         (openat_ro): Define.
109645         * lib/openat.c (EXPECTED_ERRNO): New macro.
109646         (openat_permissive): New function -- used in remove.c rewrite.
109647         (all functions): Set errno just before returning, only if there
109648         was an actual failure.
109649         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
109651         Emulate openat-family functions using Linux's procfs, if possible.
109652         Idea and some code based on Ulrich Drepper's glibc changes.
109654         * lib/openat.c: (BUILD_PROC_NAME): New macro.
109655         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
109656         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
109657         before falling back on save_cwd and restore_cwd.
109658         (fdopendir, fstatat, unlinkat): Likewise.
109660         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
109661         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
109663         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
109664         as second argument to va_arg.  Otherwise, some versions of gcc
109665         warn that `if this code is reached, the program will abort'.
109667 2006-01-09  Jim Meyering  <jim@meyering.net>
109669         Sync from coreutils.
109670         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
109671         Require openat-priv.h.
109673 2006-01-09  Bruno Haible  <bruno@clisp.org>
109675         * modules/strnlen (Include): Use strnlen.h.
109677 2006-01-09  Bruno Haible  <bruno@clisp.org>
109679         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
109681 2006-01-09  Bruno Haible  <bruno@clisp.org>
109683         * lib/sysexit_.h (EX_OK): New macro.
109684         Suggested by Martin Lambers <marlam@marlam.de>.
109686 2006-01-09  Bruno Haible  <bruno@clisp.org>
109688         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
109689         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
109691 2006-01-09  Bruno Haible  <bruno@clisp.org>
109693         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
109694         numbers.
109696 2006-01-09  Bruno Haible  <bruno@clisp.org>
109698         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
109699         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
109700         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
109701         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
109703 2006-01-09  Bruno Haible  <bruno@clisp.org>
109705         * build-aux/javacomp.sh.in: New file, moved from lib/.
109706         * modules/javacomp-script (Files): Update.
109707         (configure.ac): Add AC_CONFIG_FILES invocation.
109708         (EXTRA_DIST): Remove variable.
109710         * build-aux/javaexec.sh.in: New file, moved from lib/.
109711         * modules/javaexec (Files): Update.
109712         (configure.ac): Add AC_CONFIG_FILES invocation.
109713         (EXTRA_DIST): Remove javaexec.sh.in.
109715         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
109716         * modules/csharpcomp-script (Files): Update.
109717         (configure.ac): Add AC_CONFIG_FILES invocation.
109718         (EXTRA_DIST): Remove variable.
109720         * build-aux/csharpexec.sh.in: New file, moved from lib/.
109721         * modules/csharpexec (Files): Update.
109722         (configure.ac): Add AC_CONFIG_FILES invocation.
109723         (EXTRA_DIST): Remove csharpexec.sh.in.
109725 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
109727         Sync from coreutils.
109729         Add POSIX ACL support
109730         * lib/acl.h (copy_acl, set_acl): Add declarations.
109731         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
109732         systems other than Linux.
109733         (chmod_or_fchmod): New function: use fchmod when possible,
109734         and chmod otherwise.
109735         (file_has_acl): Add a POSIX ACL implementation, with a
109736         Linux-specific subcase.
109737         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
109738         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
109739         acls are unsupported.
109740         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
109741         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
109742         are unsupported.
109744 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
109746         Sync from coreutils.
109747         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
109749 2006-01-07  Bruno Haible  <bruno@clisp.org>
109751         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
109752         gl_EARLY.
109754 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109756         * lib/strftime.c (tzname): Don't declare if it is already #defined.
109757         Problem reported for Mingw by Mark Junker.
109759 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109761         * README: Gnulib normally doesn't generate a tarball.
109763 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
109765         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
109766         long int, not int, for nanosecond counts, so that people who are
109767         used to POSIX struct timespec won't be surprised.  Reported by Jim
109768         Meyering.
109770 2005-12-28  Bruno Haible  <bruno@clisp.org>
109772         * build-aux/config.rpath: Update from GNU gettext.
109774 2005-12-16  Jim Meyering  <jim@meyering.net>
109776         * modules/fprintftime: New module.
109777         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
109779 2005-12-16  Jim Meyering  <jim@meyering.net>
109781         * m4/fprintftime.m4: New file.
109783 2005-12-16  Jim Meyering  <jim@meyering.net>
109785         * lib/fprintftime.c, lib/fprintftime.h: New files.
109787 2005-12-15  Simon Josefsson  <jas@extundo.com>
109789         * modules/socklen (configure.ac): Fix M4 macro name, to align with
109790         new m4/socklen.m4.
109792 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109794         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
109795         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
109797 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109799         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
109800         * lib/argp-help.c (fill_in_uparams): Check if the constructed
109801         struct uparams is valid. Fall back to the default values if it is
109802         not.
109804 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109806         * modules/argp (Files): Add argp-pin.c
109807         (Depends-on): dirname
109808         (lib_SOURCES): Add argp-pin.c
109810 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109812         * m4/argp.m4:  Check if program_invocation_name and
109813         program_invocation_short_name are declared and define appropriate
109814         macros if they are not.
109816 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109818         * lib/argp-help.c (__argp_base_name): New function
109819         (__argp_short_program_name): Rewrite using __argp_base_name
109820         * lib/argp-namefrob.h: Define program_invocation_name and
109821         program_invocation_short_name if requested
109822         (__argp_base_name): Add prototype
109823         * lib/argp-parse.c (argp_def): Use gettext wrappers
109824         (argp_default_parser): Use __argp_base_name
109825         * lib/argp-pin.c: New file. Defines program_invocation_name and
109826         program_invocation_short_name on systems that lack them.
109828 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
109830         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
109831         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
109832         porting problem reported by Georg Schwarz in
109833         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
109835 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
109837         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
109838         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
109839         porting problem reported by Georg Schwarz in
109840         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
109842 2005-12-05  Bruno Haible  <bruno@clisp.org>
109844         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
109845         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
109846         Reported by Mark Junker <mjscod@gmx.de>.
109848 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
109850         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
109851         Use implementation from Albert Chin, with some
109852         comments/corrections by Stepan Kasal and myself.
109854 2005-12-02  Bruno Haible  <bruno@clisp.org>
109856         * gnulib-tool (func_import): Accept GPLed build tool modules when
109857         --lgpl is given.
109858         * modules/csharpcomp-script: New file.
109859         * modules/csharpcomp: Depend on it.
109860         * modules/javacomp-script: New file.
109861         * modules/javacomp: Depend on it.
109862         Suggested by Simon Josefsson.
109864 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
109866         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
109867         statement, to work around an HP-UX 10.20 compiler bug reported by
109868         Peter O'Gorman.
109870 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
109872         * modules/savedir (Depends-on): Add openat.
109874 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
109876         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
109877         (uintmax_t) [defined uintmax_t]: Do not declare.
109878         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
109879         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
109880         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
109881         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
109882         sake of portability to weird hosts that C allows (though we don't
109883         know of any practical examples).
109885         * lib/savedir.h (fdsavedir): New decl.
109886         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
109887         contains most of the former guts of savedir.
109888         (savedir): Use savedirstream.
109889         Include "openat.h".
109891 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
109893         * modules/obstack (Files): Add m4/ulonglong.m4.
109894         Problem reported by Davide Angelocola.
109896 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
109898         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
109899         coreutils no longer futzes with rounding modes.
109901 2005-11-14  Jim Meyering  <jim@meyering.net>
109903         * lib/mkstemp-safer.c: Include <config.h>, required for possible
109904         replacement of mkstemp.
109906 2005-11-10  Simon Josefsson  <jas@extundo.com>
109908         * lib/readline.c: Remove EOL.
109910 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
109912         * modules/gethrxtime (Depends-on): Add gettime.
109914 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
109916         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
109917         or gettimeofday; no longer needed.
109919 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
109921         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
109922         time business.
109923         (gethrxtime) [! (HAVE_NANOUPTIME
109924         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
109925         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
109926         our own approximation.
109928 2005-11-08  Eric Blake  <ebb9@byu.net>
109930         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
109932 2005-11-08  Eric Blake  <ebb9@byu.net>
109934         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
109936 2005-11-04  Bruno Haible  <bruno@clisp.org>
109938         * gnulib-tool: Implement --update mode.
109940 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109942         Fix porting problem reported by Theodoros V. Kalamatianos.
109943         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
109944         Don't assume that futimes failing means we must fail.
109946 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
109949         variables to suggest the intended function of the PATH_MAX check.
109951 2005-10-30  Kean Johnston  <jkj@sco.com>
109953         Trivial changes to support SCO systems.
109954         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
109955         as PATH_MAX.
109956         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
109957         where __ptr is null when no I/O is pending.
109959 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
109961         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
109962         leave errno alone.  Problem reported by Dmitry V. Levin.
109964 2005-10-28  Simon Josefsson  <jas@extundo.com>
109966         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
109967         Test more.
109969         * tests/test-gc-md2.c, tests/test-md2.c: New files.
109971         * modules/md2, modules/md2-tests: New files.
109973 2005-10-28  Simon Josefsson  <jas@extundo.com>
109975         * m4/inet_ntop.m4: More tests.
109977         * m4/gc-md2.m4, md2.m4: New file.
109979 2005-10-28  Simon Josefsson  <jas@extundo.com>
109981         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
109982         "restrict" keywords, as per POSIX.  Protect the function
109983         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
109984         Don't use K&R prototypes.  Check the sprintf return values.
109985         Re-define EAFNOSUPPORT if not present.  Indent.
109987         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
109988         suggested by Bruno Haible <bruno@clisp.org>.
109990         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
109992         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
109994         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
109995         libgcrypt).
109997         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
109999         * lib/md2.h, lib/md2.c: New files.
110001 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
110003         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
110004         errno alone.  Problem reported by Frederic Jolliton.
110006 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110008         * modules/verify (License): Change from GPL to LGPL.  This is a
110009         tiny module and there are apparently near-equivalents that are
110010         under the BSD license.
110012 2005-10-24  Simon Josefsson  <jas@extundo.com>
110014         * modules/sha1: Relicense to LGPL.
110016 2005-10-24  Simon Josefsson  <jas@extundo.com>
110018         * lib/md4.h: Shrink buffer size, now that we changed the type.
110020 2005-10-23  Simon Josefsson  <jas@extundo.com>
110022         * gnulib-tool (func_import): Fix --tests-base.
110024 2005-10-22  Simon Josefsson  <jas@extundo.com>
110026         * modules/arcfour (Depends-on): Need stdint.
110028 2005-10-22  Simon Josefsson  <jas@extundo.com>
110030         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
110031         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
110033 2005-10-22  Simon Josefsson  <jas@extundo.com>
110035         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
110036         suggested by Bruno Haible <bruno@clisp.org>.
110038 2005-10-22  Simon Josefsson  <jas@extundo.com>
110040         * lib/crc.h: Include stddef.h, for size_t.
110042 2005-10-22  Simon Josefsson  <jas@extundo.com>
110044         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
110045         arcfour_context struct (simplify test vector testing in GNU
110046         Shishi).
110048 2005-10-21  Simon Josefsson  <jas@extundo.com>
110050         * modules/des, modules/des-tests: New files.
110052         * modules/gc-des, modules/gc-des-tests: New files.
110054         * tests/test-des.c, tests/test-gc-des.c: New file.
110056 2005-10-21  Simon Josefsson  <jas@extundo.com>
110058         * modules/arctwo, modules/arctwo-tests: New files.
110060         * tests/test-arctwo.c: New file.
110062         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
110064         * tests/test-gc-arctwo.c: New file.
110066 2005-10-21  Simon Josefsson  <jas@extundo.com>
110068         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
110069         Bruno Haible <bruno@clisp.org>.
110071         * m4/gc-des.m4: New file.
110073 2005-10-21  Simon Josefsson  <jas@extundo.com>
110075         * m4/arctwo.m4: New file.
110077         * m4/gc-arctwo.m4: New file.
110079 2005-10-21  Simon Josefsson  <jas@extundo.com>
110081         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
110082         block.
110084 2005-10-21  Simon Josefsson  <jas@extundo.com>
110086         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
110087         <bruno@clisp.org>.
110089         * lib/hmac-sha1.c (hmac_sha1): Likewise.
110091         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
110092         Bruno Haible <bruno@clisp.org>.
110094         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
110095         <bruno@clisp.org>.
110097 2005-10-21  Simon Josefsson  <jas@extundo.com>
110099         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
110101 2005-10-21  Simon Josefsson  <jas@extundo.com>
110103         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
110105 2005-10-21  Simon Josefsson  <jas@extundo.com>
110107         * lib/des.h, lib/des.c: New files.
110109         * lib/gc-gnulib.c: Support DES.c
110111 2005-10-21  Simon Josefsson  <jas@extundo.com>
110113         * lib/arctwo.h, lib/arctwo.c: New files.
110115         * lib/gc-gnulib.c: Support ARCTWO.
110117 2005-10-21  Simon Josefsson  <jas@extundo.com>
110119         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
110120         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110122 2005-10-21  Simon Josefsson  <jas@extundo.com>
110124         * gnulib-tool (func_import, func_create_testdir): Define automake
110125         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
110126         Makefile.am snippet),
110127         suggested by Bruno Haible <bruno@clisp.org>.
110129         * modules/gc (Makefile.am): Use it.
110131 2005-10-21  Bruno Haible  <bruno@clisp.org>
110133         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
110134         patch.
110136 2005-10-19  Simon Josefsson  <jas@extundo.com>
110138         * tests/test-gc-rijndael.c: New file.
110140         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
110142 2005-10-19  Simon Josefsson  <jas@extundo.com>
110144         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
110145         interface too.
110147 2005-10-19  Simon Josefsson  <jas@extundo.com>
110149         * tests/test-gc-arcfour.c: New file.
110151         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
110153 2005-10-19  Simon Josefsson  <jas@extundo.com>
110155         * modules/gc-md4, modules/gc-md4-tests: New file.
110157         * tests/test-gc-md4.c: New file.
110159 2005-10-19  Simon Josefsson  <jas@extundo.com>
110161         * m4/gc-md4.m4: New file.
110163 2005-10-19  Simon Josefsson  <jas@extundo.com>
110165         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
110166         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
110167         <kasal@ucw.cz>.
110169 2005-10-19  Simon Josefsson  <jas@extundo.com>
110171         * m4/gc-arcfour.m4: New file.
110173         * m4/gc-rijndael.m4: New file.
110175 2005-10-19  Simon Josefsson  <jas@extundo.com>
110177         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
110179 2005-10-19  Simon Josefsson  <jas@extundo.com>
110181         * lib/gc-gnulib.c: Support ARCFOUR.
110183 2005-10-19  Simon Josefsson  <jas@extundo.com>
110185         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
110186         support.
110188         * lib/gc.h: Add ECB enum type.
110190         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
110192 2005-10-18  Simon Josefsson  <jas@extundo.com>
110194         * tests/test-md5.c: New file.
110196         * modules/md5-tests: New file.
110198 2005-10-18  Simon Josefsson  <jas@extundo.com>
110200         * tests/test-md4.c: New file.
110202         * modules/md4, modules/md4-tests: New files.
110204 2005-10-18  Simon Josefsson  <jas@extundo.com>
110206         * m4/md4.m4: New file.
110208 2005-10-18  Simon Josefsson  <jas@extundo.com>
110210         * lib/md4.h, lib/md4.c: New files, based on md5.?.
110212 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
110214         * gnulib-tool (func_create_testdir): Omit the second check whether
110215         BUILT_SOURCES in nonempty.
110217 2005-10-17  Simon Josefsson  <jas@extundo.com>
110219         * tests/test-rijndael.c: New file.
110221 2005-10-17  Simon Josefsson  <jas@extundo.com>
110223         * modules/sha1: Depend on stdint instead of md5.
110225         * modules/md5: Depend on stdint, remove uint32_t.
110227 2005-10-17  Simon Josefsson  <jas@extundo.com>
110229         * modules/gc-sha1-tests: New file.
110231         * tests/test-gc-sha1.c: New file.
110233 2005-10-17  Simon Josefsson  <jas@extundo.com>
110235         * m4/md5.m4: Remove call to uint32_t.m4.
110237 2005-10-17  Simon Josefsson  <jas@extundo.com>
110239         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
110241         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
110242         md5.h.
110244         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
110246         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
110248 2005-10-17  Simon Josefsson  <jas@extundo.com>
110250         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
110252 2005-10-17  Simon Josefsson  <jas@extundo.com>
110254         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
110256 2005-10-17  Simon Josefsson  <jas@extundo.com>
110258         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
110260         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
110262 2005-10-17  Bruno Haible  <bruno@clisp.org>
110264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
110265         that it can also be used in a test.
110267 2005-10-16  Bruno Haible  <bruno@clisp.org>
110269         * gnulib-tool (func_emit_tests_Makefile_am): Also define
110270         TESTS_ENVIRONMENT, so that individual tests can augment it.
110272         * gnulib-tool (func_create_testdir): Use an intermediate target for
110273         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
110274         macros, like $(ALLOCA_H), which cannot be passed through the command
110275         line.
110277 2005-10-15  Simon Josefsson  <jas@extundo.com>
110279         * modules/rijndael-tests: New file.
110281         * modules/rijndael: New file.
110283 2005-10-15  Simon Josefsson  <jas@extundo.com>
110285         * m4/rijndael.m4: New file.
110287 2005-10-15  Simon Josefsson  <jas@extundo.com>
110289         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
110291         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
110293 2005-10-14  Simon Josefsson  <jas@extundo.com>
110295         * tests/test-arcfour.c: New file.
110297         * modules/arcfour, modules/arcfour-tests: New files.
110299 2005-10-14  Simon Josefsson  <jas@extundo.com>
110301         * m4/arcfour.m4: New file.
110303 2005-10-14  Simon Josefsson  <jas@extundo.com>
110305         * lib/arcfour.h, lib/arcfour.c: New files.
110307 2005-10-14  Roland McGrath  <roland@redhat.com>
110309         Import from libc.  [BZ #1331]
110310         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
110311         macro argument.
110312         Reported by Matej Vela <vela@debian.org>.
110314 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110316         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
110317         include <wchar.h>; no longer needed.
110319 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110321         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
110323 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
110324         and  Ulrich Drepper  <drepper@redhat.com>
110326         Import from libc.
110327         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
110328         instead of inline stream orientation test and two separate
110329         function calls.  Pay no attention to USE_IN_LIBIO.
110331 2005-10-13  Simon Josefsson  <jas@extundo.com>
110333         * modules/gc-hmac-md5-tests: New file.
110335         * tests/test-gc-hmac-sha1.c: New file.
110337         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
110339         * modules/gc-hmac-md5-tests: New file.
110341         * tests/test-gc-md5.c: New file.
110343         * modules/gc-md5-tests: New file.
110345 2005-10-13  Simon Josefsson  <jas@extundo.com>
110347         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
110348         Move memory allocation outside of loop.
110350 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
110352         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
110353         intermediate directory is in a read-only file system.  Problem
110354         reported by Eric Blake.
110356 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
110358         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
110360 2005-10-12  Simon Josefsson  <jas@extundo.com>
110362         * tests/test-hmac-sha1.c: New file.
110364         * modules/hmac-sha1-tests: New file.
110366         * modules/hmac-sha1: New file.
110368 2005-10-12  Simon Josefsson  <jas@extundo.com>
110370         * modules/gc-sha1: New file.
110372 2005-10-12  Simon Josefsson  <jas@extundo.com>
110374         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
110376         * tests/test-gc-pbkdf2-sha1.c: New file.
110378 2005-10-12  Simon Josefsson  <jas@extundo.com>
110380         * modules/gc-md5, modules/gc-hmac-md5: New files.
110382         * modules/gc (Files): Remove md5, memxor and hmac files.
110384 2005-10-12  Simon Josefsson  <jas@extundo.com>
110386         * m4/gc-pbkdf2-sha1.m4: New file.
110388         * m4/gc-hmac-sha1.m4: New file.
110390         * m4/gc-sha1: New file.
110392         * m4/hmac-sha1.m4: New file.
110394 2005-10-12  Simon Josefsson  <jas@extundo.com>
110396         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
110398         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
110400 2005-10-12  Simon Josefsson  <jas@extundo.com>
110402         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
110403         suggested by Bruno Haible <bruno@clisp.org>.
110405 2005-10-12  Simon Josefsson  <jas@extundo.com>
110407         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
110409 2005-10-12  Simon Josefsson  <jas@extundo.com>
110411         * lib/gc-pbkdf2-sha1.c: New file.
110413         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
110415 2005-10-12  Simon Josefsson  <jas@extundo.com>
110417         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
110419         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
110421 2005-10-12  Simon Josefsson  <jas@extundo.com>
110423         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
110424         GC_USE_HMAC_MD5, respectively.
110426         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
110427         (gc_md5): Fix typo.
110429         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
110431         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
110433         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
110435 2005-10-12  Bruno Haible  <bruno@clisp.org>
110437         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
110438         Reported by Stepan Kasal <kasal@ucw.cz>.
110440 2005-10-11  Simon Josefsson  <jas@extundo.com>
110442         * tests/test-crc.c: New file.
110444         * modules/crc, modules/crc-tests: New files.
110446 2005-10-11  Simon Josefsson  <jas@extundo.com>
110448         * m4/crc.m4: New file.
110450 2005-10-11  Simon Josefsson  <jas@extundo.com>
110452         * lib/gc.h: Add gc_hash and gc_hash_buffer.
110454         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
110456         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
110458 2005-10-11  Simon Josefsson  <jas@extundo.com>
110460         * lib/crc.h, lib/crc.c: New files.
110462         * lib/gc.h (gc_hash_buffer): Add doc.
110464 2005-10-11  Bruno Haible  <bruno@clisp.org>
110466         * modules/c-strcasestr: New file.
110467         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
110469 2005-10-11  Bruno Haible  <bruno@clisp.org>
110471         * modules/c-strcase: New file.
110472         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
110474 2005-10-11  Bruno Haible  <bruno@clisp.org>
110476         * lib/strcasecmp.c: Include limits.h.
110477         (strcasecmp): Avoid integer overflow on exotic platforms.
110478         * lib/strncasecmp.c: Include limits.h.
110479         (strncasecmp): Avoid integer overflow on exotic platforms.
110480         Reported by Paul Eggert.
110482 2005-10-11  Bruno Haible  <bruno@clisp.org>
110484         * lib/c-strcasestr.h: New file, from GNU gettext.
110485         * lib/c-strcasestr.c: New file, from GNU gettext.
110487 2005-10-11  Bruno Haible  <bruno@clisp.org>
110489         * lib/c-strcase.h: New file, from GNU gettext.
110490         * lib/c-strcasecmp.c: New file, from GNU gettext.
110491         * lib/c-strncasecmp.c: New file, from GNU gettext.
110493 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
110495         * modules/mempcpy (License): GPL -> LGPL.
110496         * modules/strchrnul (License): Likewise.
110497         * modules/sysexits (License): Likewise.
110499 2005-10-08  Simon Josefsson  <jas@extundo.com>
110501         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
110503 2005-10-07  Simon Josefsson  <jas@extundo.com>
110505         * m4/memxor.m4: Remove gl_C_RESTRICT call.
110507 2005-10-06  Simon Josefsson  <jas@extundo.com>
110509         * tests/test-hmac-md5.c: New file.
110511         * modules/hmac-md5-tests: New file.
110513         * modules/hmac-md5: New file.
110515 2005-10-06  Simon Josefsson  <jas@extundo.com>
110517         * m4/hmac-md5.m4: New file.
110519         * m4/memxor.m4: Require gl_C_RESTRICT.
110521 2005-10-06  Simon Josefsson  <jas@extundo.com>
110523         * lib/memxor.c (memxor): Avoid casts and warnings.
110525 2005-10-06  Simon Josefsson  <jas@extundo.com>
110527         * lib/hmac-md5.c: New file.
110529         * lib/hmac.h: New file.
110531 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
110533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
110534         promotes to int, not unsigned int, to catch the AIX 5.3
110535         compiler bug.
110537 2005-10-05  Simon Josefsson  <jas@extundo.com>
110539         * modules/memxor: New file.
110541         * modules/iconv (Files): Move config.rpath to havelib, it is used
110542         there.
110544         * modules/havelib (Files): Add config.rpath.
110546 2005-10-05  Simon Josefsson  <jas@extundo.com>
110548         * m4/memxor.m4: New file.
110550 2005-10-05  Simon Josefsson  <jas@extundo.com>
110552         * lib/memxor.c (memxor): Fix compiler error.
110554         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
110555         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
110557         * lib/memxor.h, lib/memxor.c: New files.
110559         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
110560         we assume all systems have it, suggested by Jim Meyering
110561         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
110562         any systems lack sys/socket.h; mingw32 is known to lack it, but we
110563         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
110564         same reasons.
110566 2005-10-05  Simon Josefsson  <jas@extundo.com>
110568         * config/srclist.txt: Add glibc bug 1423 for md5.h.
110570 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
110572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
110573         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
110574         needed, since the source code now assumes these .h files.
110576 2005-10-05  Derek Price  <derek@ximbiot.com>
110578         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
110580 2005-10-05  Bruno Haible  <bruno@clisp.org>
110582         * modules/stdint (License): Change to LGPL.
110584 2005-10-04  Simon Josefsson  <jas@extundo.com>
110586         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
110587         D. Baushke" <mdb@gnu.org>.
110589 2005-10-04  Bruno Haible  <bruno@clisp.org>
110591         * lib/verify.h (verify_true): Provide alternative definition for C++.
110593 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
110595         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
110596         (SSIZE_MAX): New macro, if not already defined.
110597         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
110598         than 2 GiB.
110600 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
110602         Sync from coreutils.
110603         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
110604         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
110605         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
110606         ULLONG_MAX doesn't work with 2.7.2.1.
110608 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
110610         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
110611         From Ben Pfaff.
110613         * modules/exclude (Depends-on): Depend on verify.
110614         * modules/strtoimax (Depends-on): Likewise.
110615         * modules/utimecmp (Depends-on): Likewise.
110617 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
110619         * lib/exclude.c: Include verify.h.
110620         (verify): Remove.  All callers changed to use verify.h's version.
110621         * lib/strtoimax.c: Likewise.
110622         * lib/utimecmp.c: Likewis.e
110624         Sync from coreutils.
110625         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
110626         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
110627         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
110628         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
110629         bother returning ENOSYS if settimeofday or stime fails; just let
110630         them return whatever errno they want to return.
110631         * lib/utimens.c: Include unistd.h, for dup2.
110632         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
110633         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
110635 2005-10-02  Jim Meyering  <jim@meyering.net>
110637         Sync from coreutils.
110638         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
110639         from glibc-2.2.5 that fails for read-only files.
110641 2005-10-02  Jim Meyering  <jim@meyering.net>
110643         Sync from coreutils.
110644         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
110645         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
110646         `#if HAVE_CONFIG_H'.
110647         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
110648         Remove AT_FDCWD test.
110649         Do not consume the fd unless successful.
110650         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
110651         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
110652         block, so that we don't even try to compile it if settimeofday is
110653         available.  This works around a compilation failure on OSF1 V5.1,
110654         due to stime requiring a `long int*' while tv_sec is `int'.
110656 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
110658         Sync from coreutils.
110659         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
110660         against `yes', rather than just testing for nonempty.
110662 2005-10-01  Simon Josefsson  <jas@extundo.com>
110664         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
110665         and Darwin.
110667         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
110668         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
110669         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
110670         freeaddrinfo and gai_strerror are declared by the POSIX headers.
110671         Check if struct addrinfo is declared.
110673 2005-10-01  Simon Josefsson  <jas@extundo.com>
110675         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
110676         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
110677         AI_* and EAI_* definitions.  Protect function declarations.
110679 2005-10-01  Jim Meyering  <jim@meyering.net>
110681         Sync from coreutils.
110683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
110684         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
110685         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
110686         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
110687         in the inet and nsl libraries.  Required on Solaris 5.7.
110689 2005-10-01  Jim Meyering  <jim@meyering.net>
110691         Sync from coreutils.
110692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
110693         in the inet and nsl libraries.  Required on Solaris 5.7.
110695 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
110697         * lib/getdelim.c (getdelim): Remove unused variables.
110699 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
110701         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
110702         so that the code works even with ancient cpp.  Portability problem
110703         with GCC 2.7.2.1 reported by Thomas M.Ott.
110705 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
110707         * modules/regex (Depends-on): Add strcase.
110709         * modules/gethostname (Licence): Change from GPL to LGPL, since
110710         gethostname.c is a trivial implementation of a standard library
110711         function.
110712         * modules/poll (License): Change from GPL to LGPL, since it's
110713         derived from LGPL code.
110715 2005-09-27  Jim Meyering  <jim@meyering.net>
110717         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
110718         HAVE_CONFIG_H.
110720         * lib/intprops.h (signed_type_or_expr__): Define.
110721         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
110722         for unsigned types.
110724 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
110726         * lib/verify.h (verify_expr): Remove, replacing with:
110727         (verify_true): New macro that returns true instead of void.
110728         (verify_type__): Remove.
110729         (verify): Use verify_true rather than verify_type__.
110731 2005-09-26  Bruno Haible  <bruno@clisp.org>
110733         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
110734         is necessary.
110735         (lib_SOURCES): Remove mbchar.c.
110736         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
110737         (Files): Add m4/mbrtowc.m4.
110738         * modules/mbiter: Likewise.
110739         * modules/mbuiter: Likewise.
110741 2005-09-26  Bruno Haible  <bruno@clisp.org>
110743         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
110744         compile mbchar.c if they are not both present.
110745         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
110746         * m4/mbiter.m4 (gl_MBITER): Likewise.
110747         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
110748         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
110749         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
110751 2005-09-25  Jim Meyering  <jim@meyering.net>
110753         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
110754         also uses socklen_t.
110756 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
110758         * lib/utimens.c (ENOSYS): Define if not already defined.
110759         (futimens): Support having a null PATH if the file descriptor
110760         is nonnegative.
110762         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
110763         Remove.
110764         (__attribute): Define to empty unless GCC 3.1 or later.
110765         This works around a core dump on OpenBSD 3.4, which has GCC
110766         2.95.3, which dumps core when given __attribute__(()).  It also
110767         simplifies other tests, since we really don't want to bother with
110768         worrying about which ancient version of GCC supported what.
110769         Original problem reported by Yoann Vandoorselaere, with part of
110770         the fix suggested by Derek Price.
110772 2005-09-24  Jim Meyering  <jim@meyering.net>
110774         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
110775         so we can once again use a positive bitfield width of 1 -- now we
110776         don't have to explain why we were using a bitfield width of 2.
110778 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
110780         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
110781         and similarly for the other external symbols.  Problem reported
110782         by James Gallager.
110784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
110785         bug reported by Jim Meyering.
110787         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
110788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
110789         not needed, since socklen is a prerequisite module.
110791 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
110793         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
110794         Problem reported by Eric Blake.
110795         (getaddrinfo): Initialize se so that it's not garbage.
110796         Redo internal storage allocation so that it doesn't make unportable
110797         assumptions about alignment.
110798         Fix a memory leak.
110800         * lib/utimens.c (futimens): Use futimesat if available.
110801         Prefer it to futimes since it doesn't have the futimes bug.
110803         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
110804         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
110805         Instead, declare a function that returns a pointer to an array,
110806         and use verify_type__ to declare the size of the array.
110807         Problem and germ of a solution reported by Bruno Haible.
110808         (verify_type__): Use 2, not 1, for bitfield size, to avoid
110809         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
110811 2005-09-23  Jim Meyering  <jim@meyering.net>
110813         Sync from coreutils.
110814         Correct build failure (socklen_t not defined) on at least
110815         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
110816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
110818 2005-09-23  Jim Meyering  <jim@meyering.net>
110820         * modules/getaddrinfo (Depends-on): Add socklen.
110822 2005-09-23  Bruno Haible  <bruno@clisp.org>
110824         * tests/test-verify.c: New file.
110826 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
110828         Sync from coreutils.
110830         * modules/argmatch (Depends-on): Add verify.
110831         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
110832         unistd-safer.
110833         * modules/save-cwd (Depends-on): Likewise.
110835         * modules/openat (Files): Add lib/openat-die.c.
110836         (Depends-on): Remove error, exitfail.
110837         Add dirname.
110839         * modules/verify: New file.
110840         * MODULES.html.sh (Diagnostics <assert.h>): New section,
110841         with "verify" module.
110843 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
110845         Sync from coreutils.
110847         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
110848         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
110849         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
110850         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
110851         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
110852         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
110853         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
110854         Don't bother checking for string.h, stdlib.h, unistd.h.
110855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
110856         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
110857         module's job.
110858         * m4/jm-macros.m4 (gl_MACROS): Likewise.
110859         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
110861         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
110862         (gl_GETDATE): Use it.
110864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
110866 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
110868         Sync from coreutils.
110870         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
110871         stat-time.h.
110872         * lib/argmatch.h: Include verify.h
110873         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
110874         (ARGMATCH_ASSERT): Remove; unused.
110875         * lib/canonicalize.c: Assume STDC_HEADERS.
110876         * lib/exclude.c: Include "strcase.h".
110877         * lib/regex_internal.h [!defined _LIBC]: Likewise.
110878         * lib/getusershell.c: Include stdio--.h rather than stdio.h
110879         and stdio-safer.h.
110880         (getusershell): Call fopen, not fopen_safer.
110881         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
110882         Do not include unistd-safer.h.
110883         (save_cwd): Don't call fd_safer; no longer needed
110884         now that we include fcntl--.h.
110886         * lib/getdate.y (relative_time): New type.
110887         (RELATIVE_TIME_0): New constant.
110888         (parser_control): Use relative_time instead of doing it ourselves.
110889         (%union): Add new relative_time rel member.
110890         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
110891         Now typeless.
110892         (relunit, relunit_snumber): Now of type rel.
110893         (zone, rel, relunit, get_date): Adjust to above changes.
110895         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
110896         Do not include unistd-safer.h.
110897         (getloadavg): Don't call fd_safer; no longer needed
110898         now that we include fcntl--.h.
110900         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
110901         (make_dir_parents): Treat ENOSYS like EEXIST.
110903         Improve quality of diagnostics on restore_cwd failure.
110904         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
110905         (make_dir_parents): Last arg is now int * (for errno), not bool *.
110906         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
110907         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
110908         each time through the loop.  Do not diagnose restore_cwd failure;
110909         that is the caller's job (and perhaps the caller does not care).
110911         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
110912         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
110913         If the file already exists but is not a directory, don't bother
110914         to try to make its parents.
110915         Close potential file descriptor leak if we can't chdir("/") (!).
110916         Don't always return true if chdir($PWD) fails; return true only
110917         if the requested action was done successfully (except for the
110918         chdir($PWD)).
110919         Don't log final directory unless we actually made it.
110920         Refactor to avoid duplicate code to fix up permissions.
110921         Don't attempt to fix up parent permissions if chdir($PWD) fails.
110923         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
110924         to make it a bit faster and (I hope) clearer.
110925         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
110926         Fix bug in formats like %2N.
110928         * lib/verify.h: New file.
110930 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
110932         Sync from coreutils.
110933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
110935 2005-09-22  Jim Meyering  <jim@meyering.net>
110937         Sync from coreutils.
110939         * m4/lstat.m4 (gl_FUNC_LSTAT):
110940         Use AC_LIBSOURCES to require lstat.c and lstat.h.
110941         Remove obsolete comment.
110942         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
110943         * m4/xstrtod.m4: Likewise.
110945         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
110947 2005-09-22  Jim Meyering  <jim@meyering.net>
110949         Sync from coreutils.
110951         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
110953         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
110954         the .tm_year member, since otherwise gcc-4.0 would now warn about
110955         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
110957         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
110958         order to avoid an unsuppressible warning from gcc on 64-bit systems.
110960         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
110961         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
110962         when run in a time zone for which daylight savings time is in effect
110963         for the starting date.
110965         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
110966         stop us from restricting permissions of just-created absolute-named
110967         directories.
110968         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
110969         to restore initial working directory.
110970         * lib/mkdir-p.c (make_dir_parents): New parameter:
110971         different_working_dir, to tell caller if/when we change the working
110972         directory and are unable to return to the initial one.
110973         * lib/mkdir-p.h (make_dir_parents): Update prototype.
110974         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
110975         `return false'.  This fixes a bug introduced on 2004-07-30.
110977         * lib/openat.c (fdopendir): Be sure to close the supplied
110978         file descriptor before returning.  This makes our replacement
110979         implementation a little closer to Solaris's, where fdopendir
110980         ties the file descriptor to the returned DIR* pointer.
110981         * lib/openat.c (unlinkat): New function.
110982         * lib/openat.h (unlinkat): Add prototype.
110983         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
110984         (openat_restore_fail): Rename from openat_restore_die.
110985         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
110987         Provide an alternative to exiting immediately upon save_cwd or
110988         restore_cwd failure.  Now, an application can arrange e.g.,
110989         to perform a longjump in that case.
110990         * lib/openat.c: Include dirname.h.
110991         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
110992         (rpl_openat, fdopendir, fstatat): Call openat_save_die
110993         and openat_restore_die rather than calling error directly.
110994         Don't include "error.h" or "exitfail.h"; they're no longer needed.
110996         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
110997         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
110998         define.
111000         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
111001         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
111002                             int utc, int nanoseconds);
111003         Background:
111004         date should not have to allocate a megabyte of virtual memory to
111005         handle a format argument like +%1048575T.  When implemented with
111006         strftime, it must allocate such a buffer, use strftime to fill it
111007         in, print it, then free it.
111008         With fprintftime, it simply prints everything and exits.
111009         With no need for memory allocation, that's one fewer way to fail.
111010         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
111011         optional field width, not before, so we accept %9:z, not %:9z.
111012         (my_strftime): Be sure to use L_('x') for literals.
111014         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
111015         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
111016         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
111017         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
111018         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
111019         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
111020         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
111021         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
111022         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
111023         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
111024         * lib/xgethostname.c, lib/xreadlink.c:
111025         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
111027         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
111028         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
111029         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
111030         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
111031         and don't include <sys/file.h>).
111033 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
111035         Sync from coreutils.
111037         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
111038         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
111039         [!LDAV_DONE]: Avoid unused variable warning.
111041 2005-09-21  Bruno Haible  <bruno@clisp.org>
111043         * lib/unicodeio.h (unicode_to_mb): New declaration.
111045 2005-09-20  Derek Price  <derek@ximbiot.com>
111047         * lib/getaddrinfo.c: Don't include <netdb.h> included from
111048         getaddrinfo.h.
111050 2005-09-20  Bruno Haible  <bruno@clisp.org>
111052         * gnulib-tool: Remove trailing slashes from the values specified for
111053         --source-base, --m4-base, --tests-base, --aux-dir.
111054         Suggested by Simon Josefsson <jas@extundo.com>.
111056 2005-09-20  Bruno Haible  <bruno@clisp.org>
111058         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
111059         func_modules_to_filelist, func_import, func_create_testdir): Make all
111060         sorting results locale-independent, so that gnulib-cache.m4 doesn't
111061         change when gnulib-tool is invoked in a different locale.
111063 2005-09-19  Simon Josefsson  <jas@extundo.com>
111065         * m4/socklen.m4: Fix typo.
111067 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111069         Use a consistent style for including <config.h>.
111070         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
111071         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
111072         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
111073         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
111074         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
111075         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
111076         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
111077         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
111078         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
111079         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
111080         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
111081         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
111082         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
111083         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
111084         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
111085         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
111086         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
111087         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
111088         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
111089         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
111090         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
111091         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
111092         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
111093         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
111094         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
111095         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
111096         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
111097         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
111098         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
111099         lib/xstrtoumax.c, lib/yesno.c:
111100         Standardize inclusion of config.h.
111101         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
111102         lib/inttostr.h:  Removed inclusion of config.h from header files.
111103         * lib/inttostr.c:  Adjusted in-tree users.
111104         * lib/timespec.h: Remove superfluous warning to include config.h.
111105         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
111106         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
111107         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
111108         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
111109         config.h with HAVE_CONFIG_H.
111111 2005-09-19  Jim Meyering  <jim@meyering.net>
111113         * modules/pathmax (License): Change to LGPL.
111115 2005-09-19  Derek Price  <derek@ximbiot.com>
111117         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
111119 2005-09-19  Bruno Haible  <bruno@clisp.org>
111121         * gnulib-tool (import): Provide default for --tests-base.
111123 2005-09-19  Bruno Haible  <bruno@clisp.org>
111125         * doc/quote.texi: New file, extracted from gnulib.texi.
111126         * doc/ctime.texi: New file, extracted from gnulib.texi.
111127         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
111128         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
111129         * doc/gnulib.texi: Include them.
111131 2005-09-18  Bruno Haible  <bruno@clisp.org>
111133         Portability fix.
111134         * gnulib-tool (func_readlink): New function.
111135         (func_ln_if_changed): Use it.
111137 2005-09-18  Bruno Haible  <bruno@clisp.org>
111139         * gnulib-tool: Support --with-tests also with --import.
111140         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
111141         (func_import): Use variables $testsbase and $inctests. Emit a
111142         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
111143         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
111144         SUBDIRS += $testsdir.
111145         (func_create_testdir): Update.
111147 2005-09-18  Bruno Haible  <bruno@clisp.org>
111149         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
111150         instead of $dry_run.
111151         (func_cp_if_changed, func_mv_if_changed): Remove functions.
111152         (func_ln_if_changed): Don't handle dry-run here.
111153         (func_import): In dry-run mode, detect more precisely which actions
111154         would be performed, and don't use "...ing" verbs.
111156 2005-09-18  Bruno Haible  <bruno@clisp.org>
111158         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
111159         (func_import): Use join on two temporary files instead of three nested
111160         loops, in order to determine which files are new or old.
111162 2005-09-18  Bruno Haible  <bruno@clisp.org>
111164         * gnulib-tool (func_import): Comment out code that spits out the
111165         new files with --dry-run.
111167 2005-09-18  Bruno Haible  <bruno@clisp.org>
111169         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
111171 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111173         * lib/stat-time.h: New file.
111174         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
111175         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
111176         in a different way.
111177         (timespec_cmp): New function.
111178         * lib/utimecmp.c: Include stat-time.h.
111179         (SYSCALL_RESOLUTION): Depend on whether various struct stat
111180         members exist, not on the obsolescent ST_MTIM_NSEC.
111181         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
111183 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111185         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
111187 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
111189         * MODULES.html.sh (File system functions): Add stat-time.
111190         * modules/stat-time: New file.
111191         * modules/timespec (Files): Remove m4/st_mtim.m4; this
111192         is now done in a different way, by the stat-time module.
111193         * modules/utimecmp (Depends-on): Add stat-time.
111195 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
111197         * m4/st_mtim.m4: Remove.  Superseded by...
111198         * m4/stat-time.m4: New file.
111199         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
111200         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
111202 2005-09-15  Derek Price  <derek@ximbiot.com>
111204         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
111206 2005-09-15  Derek Price  <derek@ximbiot.com>
111208         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
111209         * lib/regex_internal.c: Ditto, using this...
111210         (__GNUC_PREREQ): ...new macro.
111211         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
111212         using...
111213         (__GNUC_PREREQ): ...this new macro.
111215         * lib/strstr.h: Include string.h. Define strstr as a macro here.
111217 2005-09-15  Derek Price  <derek@ximbiot.com>
111218             Paul Eggert  <eggert@cs.ucla.edu>
111220         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
111221         changes, consolidating in...
111222         * lib/regex_internal.h: ...this file.
111224 2005-09-13  Jim Meyering  <jim@meyering.net>
111226         * lib/canon-host.c: Filter through gnu indent and reword comments
111227         slightly.
111228         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
111230 2005-09-13  Derek Price  <derek@ximbiot.com>
111232         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
111233         failure.
111234         Reported by Jim Meyering  <jim@meyering.net>.
111236 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111238         * lib/base64.c: Typo.
111239         (base64_encode): Put b64str in initialized data section.
111241 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
111243         Merge glibc and coreutils changes into gnulib, plus a few
111244         extra fixes.
111245         * lib/md5.c: Use #error rather than a string.
111246         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
111247         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
111248         (__attribute__): Define to empty for non recent-GCC.
111249         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
111250         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
111251         Renamed from their non-__ counterparts, with new macros replacing
111252         them if not _LIBC.  Add __THROW attribute.
111253         (rol): Remove.
111254         (struct md5_ctx): Align buffer if using GCC.
111255         * lib/sha1.h (struct sha1_ctx): Likewise.
111256         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
111257         The old name was backwards.
111258         (NOTSWAP): Remove; not used.
111259         (rol): New macro, moved here from md5.h.
111260         (sha1_process_block): Remove a FIXME that doesn't make sense.
111262 2005-09-12  Derek Price  <derek@ximbiot.com>
111264         Return usable errors from canon-host.
111265         * lib/canon-host.h: New file.
111266         * lib/canon-host.c (canon_host): Wrap...
111267         (canon_host_r): ...this new function, which now relies exclusively on
111268         getaddrinfo.
111269         (ch_strerror): New function.
111270         (last_cherror): New global.
111271         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
111272         interface.
111273         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
111274         void *.
111275         (freeaddrinfo): Free ai->ai_canonname when set.
111277 2005-09-12  Derek Price  <derek@ximbiot.com>
111279         Make canon-host require getaddrinfo.
111280         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
111281         AC_LIBSOURCE canon-host.h.  Call...
111282         (gl_PREREQ_CANON_HOST): ...this new function, which requires
111283         gl_GETADDRINFO.
111284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
111286 2005-09-12  Derek Price  <derek@ximbiot.com>
111288         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
111289         LGPL.
111290         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
111292 2005-09-12  Derek Price  <derek@ximbiot.com>
111294         * lib/gai_strerror.c: Include config.h when available.  Include
111295         getaddrinfo.h before other headers to test interface.
111296         Reported by Larry Jones <lawrence.jones@ugs.com>.
111298 2005-09-12  Derek Price  <derek@ximbiot.com>
111299             Paul Eggert  <eggert@cs.ucla.edu>
111301         * modules/glob (Files): Add glob-libc.h.
111303 2005-09-12  Derek Price  <derek@ximbiot.com>
111304             Paul Eggert  <eggert@cs.ucla.edu>
111306         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
111307         glob_.h, glob-libc.h.
111308         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
111310 2005-09-12  Derek Price  <derek@ximbiot.com>
111311             Paul Eggert  <eggert@cs.ucla.edu>
111313         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
111314         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
111315         protecting things that should be done only in gnulib contexts.
111316         * lib/glob_.h: New file, containing only the glob things needed for
111317         gnulib.
111318         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
111319         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
111320         (glob, globfree, glob_pattern_p): Now defined simply in terms of
111321         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
111322         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
111323         and to respect the namespace rules better.
111325 2005-09-08  Simon Josefsson  <jas@extundo.com>
111327         * modules/socklen: New file.
111329 2005-09-08  Simon Josefsson  <jas@extundo.com>
111331         * m4/socklen.m4: New file.
111333 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111335         * modules/utimens (Files): Add m4/utimbuf.m4, since
111336         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
111337         Reported by Sergey Poznyakoff.
111339 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111341         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
111342         definitions, since that's the preferred style in glibc.
111343         Fix a minor spacing issue, and update copyright notice to match
111344         glibc's.
111346 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
111348         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
111350 2005-09-06  Simon Josefsson  <jas@extundo.com>
111352         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
111353         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
111355 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111357         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
111358         warning.
111360 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111362         * config/srclist.txt: Add glibc bug 1302.
111364 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
111366         Change bitset word type from unsigned int to unsigned long int,
111367         as this has better performance on typical 64-bit hosts.
111368         Port bitset code to hosts with unusual word sizes.
111369         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
111370         (build_collating_symbol):
111371         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
111372         argument is a bitset.  This is merely a style issue, but it makes
111373         it clearer that an entire array is expected.
111374         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
111375         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
111376         Port to the case where bitset_word is not the same as unsigned int.
111377         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
111378         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
111379         Likewise.
111380         * lib/regexec.c (check_dst_limits_calc_pos_1,
111381         check_subexp_matching_top):
111382         (build_trtable, group_nodes_into_DFAstates):
111383         Likewise.
111384         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
111385         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
111386         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
111387         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
111388         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
111389         * lib/regcomp.c (optimize_subexps, lower_subexp):
111390         Work even if bitset_word has holes in its bitwise representation.
111391         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
111392         * lib/regexec.c (check_dst_limits_calc_pos_1,
111393         check_subexp_matching_top):
111394         Likewise.
111395         * lib/regex_internal.c (re_string_reconstruct):
111396         Don't assume UCHAR_MAX == 255.
111397         * lib/regex_internal.h (bitset_set_all): Likewise.
111398         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
111399         All uses changed.
111400         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
111401         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
111402         All uses changed.
111403         (BITSET_WORD_MAX): New macro.
111404         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
111405         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
111406         (bitset_empty, bitset_copy):
111407         Prefer sizeof (bitset) to multiplying it out ourselves.
111408         (bitset_not_merge): Remove; unused.
111409         (bitset_contain): Return bool, not unsigned int with one bit on.
111410         All callers changed.
111411         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
111412         alignment than re_node_set; do this by defining a new internal
111413         type struct dests_alloc and using it to allocate memory.
111415 2005-09-05  Bruno Haible  <bruno@clisp.org>
111417         * gnulib-tool (func_import): Fix comparison in handling of symbolic
111418         links.
111420 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
111422         * modules/size_max (Makefile.am): Add size_max.h
111424 2005-09-04  Derek Price  <derek@ximbiot.com>
111426         * gnulib-tool (func_import): Fix reversed $symbolic logic.
111428 2005-09-03  Simon Josefsson  <jas@extundo.com>
111430         * gnulib-tool: Fix typo.
111432 2005-09-03  Simon Josefsson  <jas@extundo.com>
111434         * config/srclist.txt: Add glibc bug 1293.
111436 2005-09-03  Derek Price  <derek@ximbiot.com>
111438         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
111439         From Larry Jones <lawrence.jones@ugs.com>.
111441 2005-09-02  Simon Josefsson  <jas@extundo.com>
111443         * modules/socklen: New file.
111445 2005-09-02  Simon Josefsson  <jas@extundo.com>
111447         * modules/havelib: New module.
111449         * modules/gettext, modules/iconv, modules/lock, modules/readline:
111450         Use havelib.
111452 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
111454         Check for arithmetic overflow when calculating sizes, to prevent
111455         some buffer-overflow issues.  These patches are conservative, in the
111456         sense that when I couldn't determine whether an overflow was possible,
111457         I inserted a run-time check.
111458         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
111459         macros.
111460         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
111461         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
111462         (re_xnrealloc, re_x2nrealloc): New inline functions.
111463         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
111464         parse_bracket_exp):
111465         (build_equiv_class, build_charclass): Check for arithmetic overflow
111466         in size expression calculations.
111467         * lib/regex_internal.c (re_string_realloc_buffers):
111468         (build_wcs_upper_buffer, re_node_set_add_intersect):
111469         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
111470         (re_dfa_add_node, register_state): Likewise.
111471         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
111472         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
111473         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
111474         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
111476 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
111478         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
111479         m4/ulonglong.m4.  Problem reported by Martin Lambers.
111481 2005-09-02  Bruno Haible  <bruno@clisp.org>
111483         Support for lib vs. lib64 distinction on biarch platforms.
111484         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
111485         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
111486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
111488 2005-09-02  Bruno Haible  <bruno@clisp.org>
111490         * gnulib-tool (import): In the other first-use case, provide defaults
111491         as well.
111493 2005-09-02  Bruno Haible  <bruno@clisp.org>
111495         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
111496         patches not yet found in the latest gettext release.
111498 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111500         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
111501         to avoid a collision with bits/local_lim.h in glibc.
111502         All uses changed.  Problem reported by Dmitry V. Levin in
111503         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
111505         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
111506         bugs in int versus size_t comparisons.
111507         (re_string_context_at): Fix bug where the code assumed that
111508         Idx is signed.
111510         Use bool where appropriate.
111511         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
111512         All callers changed.
111513         (calc_eclosure_iter): Likewise, for ROOT arg.
111514         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
111515         (build_charclass_op): Likewise, for NON_MATCH arg.
111516         * lib/regex_internal.c (re_string_allocate, re_string_construct):
111517         (re_string_construct_common): Likewise, for ICASE arg.
111518         * lib/regexec.c (re_search_2_stub, re_search_stub):
111519         Likewise, for RET_LEN arg.
111520         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
111521         (set_regs): Likewise, for FL_BACKTRACK arg.
111522         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
111523         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
111524         (calc_eclosure_iter, parse_bracket_exp):
111525         Use bool for internal variables that are booleans.
111526         * lib/regexec.c (re_search_internal, check_matching,
111527         proceed_next_node):
111528         (set_regs, build_sifted_states, sift_states_bkref):
111529         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
111530         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
111531         (find_collation_sequence_value):
111532         Likewise.
111533         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
111534         (re_node_set_compare):
111535         Return bool, not int. All callers changed.
111536         * lib/regexec.c (check_halt_node_context, check_dst_limits):
111537         (build_trtable, check_node_accept): Likewise.
111538         * lib/regex_internal.h: Include stdbool.h.
111540         Fix bugs uncovered when converting to bool.
111541         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
111542         failure instead of charging ahead blindly.
111543         * lib/regex_internal.c (register_state): Likewise.
111544         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
111545         for freeing internal storage.
111546         (group_nodes_into_DFA_states): Use unsigned int, not int, for
111547         bitset pieces used as boolean, to avoid undefined behavior
111548         on hosts that do int overflow checking.
111550 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
111552         * config/srclist.txt: Add glibc bugs 1285-1287.
111554 2005-09-01  Jim Meyering  <jim@meyering.net>
111556         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
111557         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
111558         Require gl_STAT_MACROS, too.
111560 2005-09-01  Bruno Haible  <bruno@clisp.org>
111562         * gnulib-tool (import): In the first-use case, provide defaults.
111564 2005-09-01  Bruno Haible  <bruno@clisp.org>
111566         * gnulib-tool (func_import): Remove the .tmp files.
111568 2005-09-01  Bruno Haible  <bruno@clisp.org>
111570         * gnulib-tool (func_import): Fix handling of symbolic links.
111572 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111574         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
111575         old glibc regex code mishandles strings longer than 2**31 bytes.
111576         This patch fixes this when the regex code is used in gnulib
111577         (i.e., outside glibc).
111579         This patch should not affect the use of the regex code inside
111580         glibc.  No doubt this problem also needs to be handled for glibc
111581         as well, but the result will be an incompatible change to the
111582         glibc ABI, and the old ABI will have to be supported too.  That
111583         can be the subject for another patch.
111585         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
111586         governing whether the rest of this patch is active.  By default,
111587         the macro is disabled and the patch has no effect.
111588         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
111589         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
111590         (struct re_pattern_buffer, re_search, re_search_2, re_match):
111591         (re_match_2, re_set_registers): Use the new types.
111592         * lib/regex_internal.h (Idx, re_hashval_t): New types.
111593         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
111594         New macros.
111595         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
111596         (re_string_context_at, bin_tree_t, re_dfastate_t):
111597         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
111598         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
111599         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
111600         (re_string_char_size_at, re_string_wchar_at):
111601         (re_string_elem_size_at):
111602         Use the new types and macros to port to 64-bit hosts.
111603         Use unsigned types for internal values, so that the code
111604         mostly works even for arrays larger than SSIZE_MAX.
111605         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
111606         (search_duplicated_node, calc_eclosure_iter, fetch_number):
111607         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
111608         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
111609         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
111610         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
111611         (calc_inveclosure, parse_dup_op, build_range_exp):
111612         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
111613         (fetch_number, create_token_tree, mark_opt_subexp):
111614         Likewise.
111615         * lib/regex_internal.c (re_string_construct_common,
111616         create_ci_newstate):
111617         (create_cd_newstate, re_string_allocate, re_string_construct):
111618         (re_string_realloc_buffers, build_wcs_upper_buffer):
111619         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
111620         (re_string_reconstruct, re_string_peek_byte_case):
111621         (re_string_fetch_byte_case, re_string_context_at):
111622         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
111623         (re_node_set_init_copy, re_node_set_add_intersect):
111624         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
111625         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
111626         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
111627         (re_acquire_state, re_acquire_state_context, register_state):
111628         Likewise.
111629         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
111630         search_cur_bkref_entry):
111631         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
111632         (re_search_internal, re_search_2_stub, re_search_stub)
111633         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
111634         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
111635         (update_cur_sifted_state, check_dst_limits):
111636         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
111637         (check_subexp_limits, sift_states_bkref, merge_state_array):
111638         (check_subexp_matching_top, get_subexp, get_subexp_sub):
111639         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
111640         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
111641         (expand_bkref_cache, check_node_accept_bytes):
111642         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
111643         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
111644         (acquire_init_state_context, check_halt_node_context):
111645         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
111646         (sift_states_backward, clean_state_log_if_needed):
111647         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
111648         (find_recover_state, transit_state_sb, transit_state_mb):
111649         (transit_state_bkref, build_trtable, match_ctx_clean):
111650         Likewise.
111651         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
111652         to work around an assumption that REG_MISSING is negative.
111654         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
111655         (seek_collating_symbol_entry) [defined _LIBC]:
111656         (lookup_collation_sequence_value) [defined _LIBC]:
111657         (build_range_exp, build_collating_symbol) [defined _LIBC]:
111658         Use prototypes rather than old-style function definitions.
111659         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
111660         (transit_state_sb) [0]:
111661         (find_collation_sequence_value) [defined _LIBC]: Likewise.
111663         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
111664         rm_eo.
111666         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
111667         (optimize_subexps, lower_subexp):
111668         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
111669         since the signed shift might overflow.  Use 1u<<31 instead.
111670         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
111671         Likewise.
111672         * lib/regexec.c (check_dst_limits_calc_pos_1,
111673         check_subexp_matching_top): Likewise.
111675         * lib/regcomp.c (optimize_subexps, lower_subexp):
111676         Use CHAR_BIT rather than 8, for clarity.
111677         * lib/regexec.c (check_dst_limits_calc_pos_1):
111678         (check_subexp_matching_top): Likewise.
111679         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
111680         have to worry about portability issues when shifting it left.
111681         Remove no-longer-needed test for table_size > 0.
111682         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
111683         in a word, as the resulting behavior is undefined.
111684         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
111685         in one case, a <= should have been an <, and in another case the
111686         whole test was missing.
111687         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
111688         the standard name CHAR_BIT.
111689         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
111690         this is not true on one's complement and signed-magnitude hosts.
111692         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
111693         next_last_offset.
111694         (struct re_dfa_t): Remove unused member states_alloc.
111695         * lib/regcomp.c (init_dfa): Don't initialize unused members.
111697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111699         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
111700         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
111701         and large-file glibc and in 32-bit large-file Solaris.
111703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111705         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
111706         lengths fit in regoff_t; this isn't true if regoff_t is the same
111707         width as size_t.
111708         * lib/regex.c (re_search_internal): 5th arg is LAST_START
111709         (= START + RANGE) instead of RANGE.  This avoids overflow
111710         problems when regoff_t is the same width as size_t.
111711         All callers changed.
111712         (re_search_2_stub): Check for overflow when adding the
111713         sizes of the two strings.
111714         (re_search_stub): Check for overflow when adding START
111715         to RANGE; if it occurs, substitute the extreme value.
111717 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
111719         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
111721 2005-08-31  Jim Meyering  <jim@meyering.net>
111723         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
111724         a pointer-to-const.
111725         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
111726         (register_state): Likewise.
111727         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
111728         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
111729         (group_nodes_into_DFAstates): Likewise.
111731 2005-08-31  Jim Meyering  <jim@meyering.net>
111733         * check-module: Add a FIXME comment.
111735 2005-08-31  Eric Blake  <ebb9@byu.net>
111737         * modules/unistd-safer (Files): Add unistd--.h.
111738         * modules/stdio-safer (Files): Add stdio--.h.
111740 2005-08-31  Derek Price  <derek@ximbiot.com>
111742         * lib/getdelim.c (getdelim): Return EOF on EOF.
111743         Reported by Larry Jones <lawrence.jones@ugs.com>.
111745 2005-08-31  Bruno Haible  <bruno@clisp.org>
111747         Avoid unnecessary diffs in the generated lib/Makefile.am.
111748         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
111749         the generated files.
111750         (func_import): Don't set cmd.
111752 2005-08-31  Bruno Haible  <bruno@clisp.org>
111754         * lib/strstr.c: Include <stddef.h>, for NULL.
111755         * lib/strcasestr.c: Likewise.
111756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111758 2005-08-31  Bruno Haible  <bruno@clisp.org>
111760         * gnulib-tool: New option --macro-prefix.
111761         (func_import): Use macro_prefix.
111762         (import): Handle option --macro-prefix.
111764 2005-08-31  Bruno Haible  <bruno@clisp.org>
111766         * gnulib-tool (import): Rename most ac_* variables to cached_*.
111767         Also use new variables cached_lgpl, cached_libtool.
111769 2005-08-31  Bruno Haible  <bruno@clisp.org>
111771         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
111772         always instantiating them.
111774 2005-08-31  Bruno Haible  <bruno@clisp.org>
111776         * gnulib-tool (func_import): Read the previous cached settings
111777         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
111778         earlier added by gnulib but are now dropped. Warn when a gnulib file
111779         overwrites a non-gnulib file.
111781 2005-08-31  Bruno Haible  <bruno@clisp.org>
111783         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
111784         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
111785         projects that don't keep autogenerated files in CVS. Put into
111786         actioncmd only the specified modules, not the transitive closure.
111788 2005-08-31  Bruno Haible  <bruno@clisp.org>
111790         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
111791         Create directories that shall be filled.
111792         (import): Don't look for gl_* macros in configure.ac. Recurse across
111793         all directories containing a gnulib-cache.m4 files, if meaningful.
111795 2005-08-31  Bruno Haible  <bruno@clisp.org>
111797         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
111798         (import): Set seen_libtool when we see gl_LIBTOOL.
111800 2005-08-31  Bruno Haible  <bruno@clisp.org>
111802         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
111803         declaration macro definitions from generated gnulib.m4.
111805 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
111807         * lib/iconvme.h: Add prototype for iconv_alloc.
111809 2005-08-29  Simon Josefsson  <jas@extundo.com>
111811         * lib/iconvme.c: Fix errno.
111813 2005-08-29  Bruno Haible  <bruno@clisp.org>
111815         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
111816         that it works when the directory contains spaces.
111818 2005-08-29  Bruno Haible  <bruno@clisp.org>
111820         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
111822 2005-08-29  Bruno Haible  <bruno@clisp.org>
111824         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
111825         Emit more advice.
111827 2005-08-29  Bruno Haible  <bruno@clisp.org>
111828         and Stepan Kasal  <kasal@ucw.cz>
111830         * check-module: If more parameters are given, check each of them
111831         separately; add more exceptions, as noted by Jim Meyering.
111832         (check_module): New procedure.
111833         (%exempt_header): Now contains all exceptions.
111835 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
111837         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
111839 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
111841         * lib/iconvme.c: Split iconv_string into iconv_alloc.
111843 2005-08-28  Bruno Haible  <bruno@clisp.org>
111845         * m4/gnulib-tool.m4: New file.
111847 2005-08-27  Jim Meyering  <jim@meyering.net>
111849         * modules/unistd-safer (Files): Add pipe-safer.c.
111850         * modules/fcntl-safer (Files): Add creat-safer.c.
111852 2005-08-27  Jim Meyering  <jim@meyering.net>
111854         * m4/stdlib-safer.m4: New file.  From coreutils.
111855         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
111856         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
111857         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
111858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
111859         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
111861 2005-08-27  Jim Meyering  <jim@meyering.net>
111863         * lib/fopen-safer.c: Merge minor changes from coreutils.
111864         * lib/dup-safer.c: Likewise.
111865         * lib/fd-safer.c: Likewise.
111867         Merge from coreutils.
111868         * lib/stdio--.h: New file.
111869         * lib/stdlib--.h: New file.
111870         * lib/mkstemp-safer.c: New file.
111872         GNU tar needs these.
111873         * lib/pipe-safer.c: New file.
111874         * lib/creat-safer.c: New file.
111875         * lib/fcntl--.h (creat): Define to creat_safer.
111876         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
111877         * lib/unistd--.h (pipe): Define to pipe_safer.
111878         * lib/unistd-safer.h: Declare pipe_safer.
111880 2005-08-26  Simon Josefsson  <jas@extundo.com>
111882         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
111883         Haible <bruno@clisp.org>.
111885 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
111887         * lib/regex_internal.h: Remove all references to
111888         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
111889         or better.
111890         (bitset_not, bitset_merge, bitset_not_merge):
111891         (bitset_mask, re_string_allocate, re_string_construct):
111892         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
111893         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
111894         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
111895         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
111896         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
111897         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
111898         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
111899         (re_acquire_state_context):
111900         Remove unnecessary forward decls.
111901         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
111902         Put __attribute at function definition,
111903         now that the function decl has been removed.
111904         * lib/regex_internal.c (re_string_peek_byte_case):
111905         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
111906         Likewise.
111908 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
111910         * m4/regex.m4: Add AC_PREREQ(2.50).
111911         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
111913 2005-08-25  Simon Josefsson  <jas@extundo.com>
111915         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
111916         __fsetlocking.
111918 2005-08-25  Simon Josefsson  <jas@extundo.com>
111920         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
111921         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
111922         GLIBC specific code.
111924 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111926         Make regex safe for g++.  This fixes one real bug (an "err"
111927         that should have been "*err").  g++ problem reported by
111928         Sam Steingold.
111929         * lib/regex_internal.h (re_calloc): New macro, consistent with
111930         re_malloc etc.  All callers of calloc changed to use re_calloc.
111931         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
111932         not int.  All callers changed.
111933         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
111934         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
111935         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
111936         (find_recover_state): Change "err" to "*err"; this fixes what
111937         appears to be a real bug.
111938         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
111939         versus int.
111941 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111943         * modules/regex (Depends-on): Add malloc, since the code
111944         assumes that !malloc(0) means failure.
111946 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111948         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
111950         alloca modernization/simplification for regex.
111951         * lib/regex.c: Remove portability cruft for alloca.  This no longer
111952         needs to be at the start of the file, and can be moved into
111953         regex_internal.h and simplified.
111954         * lib/regex_internal.h: Include <alloca.h>.
111955         (__libc_use_alloca) [!defined _LIBC]: New macro.
111956         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
111957         now works outside glibc.
111959 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
111961         * config/srclist.txt: Add glibc bugs 1241, 1245.
111963 2005-08-25  Jim Meyering  <jim@meyering.net>
111965         * lib/open-safer.c: Include <config.h>.
111966         Otherwise, we'd lose LARGEFILE support in any file using
111967         e.g. "fcntl--.h"
111969 2005-08-25  Bruno Haible  <bruno@clisp.org>
111971         * m4/minmax.m4: Require autoconf 2.52.
111972         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
111973         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
111974         alternatives of translit over the alphabet.
111975         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
111977 2005-08-24  Simon Josefsson  <jas@extundo.com>
111979         * tests/test-getpass.c: New file.
111981 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
111983         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
111984         for GNU regex features.
111986 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
111988         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
111989         * lib/regex.h (regerror): Likewise.
111991         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
111992         requires this.  (The code never needed it.)
111994         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
111995         All uses of recently-renamed identifiers changed to use the new,
111996         POSIX-compliant names.  The code will build and run just fine
111997         without these changes, but it's better to eat our own dog food
111998         and use the standard-conforming names.
112000         * lib/regex.h: Fix a multitude of POSIX name space violations.
112001         These changes have an effect only for programs that define
112002         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
112003         do not change anything for programs compiled in the normal way.
112004         Also, there is no effect on the ABI.
112006         (_REGEX_SOURCE): New macro.
112007         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
112008         defined and _GNU_SOURCE is not; this fixes a name space violation.
112010         Rename the following macros to obey POSIX requirements.
112011         The old names are still visible as macros if _REGEX_SOURCE is defined.
112012         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
112013         RE_BACKSLASH_ESCAPE_IN_LISTS.
112014         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
112015         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
112016         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
112017         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
112018         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
112019         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
112020         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
112021         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
112022         (REG_INTERVALS): renamed from RE_INTERVALS.
112023         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
112024         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
112025         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
112026         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
112027         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
112028         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
112029         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
112030         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
112031         RE_UNMATCHED_RIGHT_PAREN_ORD.
112032         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
112033         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
112034         (REG_DEBUG): renamed from RE_DEBUG.
112035         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
112036         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
112037         unusual, since we can't clash with the POSIX REG_ICASE.
112038         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
112039         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
112040         (REG_NO_SUB): renamed from RE_NO_SUB.
112041         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
112042         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
112043         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
112044         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
112045         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
112046         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
112047         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
112048         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
112049         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
112050         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
112051         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
112052         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
112053         RE_SYNTAX_POSIX_MINIMAL_BASIC.
112054         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
112055         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
112056         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
112057         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
112058         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
112059         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
112060         (REG_FIXED): Renamed from REGS_FIXED.
112061         (REG_NREGS): Renamed from RE_NREGS.
112063         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
112064         of other REG_* macros, since POSIX says the user is allowed to
112065         #undef these macros selectively.
112067         (reg_errcode_t): Update comment stating what other tables need
112068         to be consistent.
112070         Rename the following enum values to obey POSIX requirements.
112071         The old names are still visible as macros.
112072         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
112073         is not defined, since GNU is supposed to be a superset of POSIX as
112074         much as possible, and since we want reg_errcode_t to be a signed
112075         type for implementation consistency.
112076         (_REG_NOERROR): Renamed from REG_NOERROR.
112077         (_REG_NOMATCH): Renamed from REG_NOMATCH.
112078         (_REG_BADPAT): Renamed from REG_BADPAT.
112079         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
112080         (_REG_ECTYPE): Renamed from REG_ECTYPE.
112081         (_REG_EESCAPE): Renamed from REG_EESCAPE.
112082         (_REG_ESUBREG): Renamed from REG_ESUBREG.
112083         (_REG_EBRACK): Renamed from REG_EBRACK.
112084         (_REG_EPAREN): Renamed from REG_EPAREN.
112085         (_REG_EBRACE): Renamed from REG_EBRACE.
112086         (_REG_BADBR): Renamed from REG_BADBR.
112087         (_REG_ERANGE): Renamed from REG_ERANGE.
112088         (_REG_ESPACE): Renamed from REG_ESPACE.
112089         (_REG_BADRPT): Renamed from REG_BADRPT.
112090         (_REG_EEND): Renamed from REG_EEND.
112091         (_REG_ESIZE): Renamed from REG_ESIZE.
112092         (_REG_ERPAREN): Renamed from REG_ERPAREN.
112093         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
112094         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
112095         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
112096         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
112098         (_REG_RE_NAME, _REG_RM_NAME): New macros.
112099         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
112100         changed.  But support the old name if the new one is not defined
112101         and if _REGEX_SOURCE.
112103         Change the following member names in struct re_pattern_buffer.
112104         The old names are still supported if !_REGEX_SOURCE.
112105         The new names are always supported, regardless of _REGEX_SOURCE.
112106         (re_buffer): Renamed from buffer.
112107         (re_allocated): Renamed from allocated.
112108         (re_used): Renamed from used.
112109         (re_syntax): Renamed from syntax.
112110         (re_fastmap): Renamed from fastmap.
112111         (re_translate): Renamed from translate.
112112         (re_can_be_null): Renamed from can_be_null.
112113         (re_regs_allocated): Renamed from regs_allocated.
112114         (re_fastmap_accurate): Renamed from fastmap_accurate.
112115         (re_no_sub): Renamed from no_sub.
112116         (re_not_bol): Renamed from not_bol.
112117         (re_not_eol): Renamed from not_eol.
112118         (re_newline_anchor): Renamed from newline_anchor.
112120         Change the following member names in struct re_registers.
112121         The old names are still supported if !_REGEX_SOURCE.
112122         The new names are always supported, regardless of _REGEX_SOURCE.
112123         (rm_num_regs): Renamed from num_regs.
112124         (rm_start): Renamed from start.
112125         (rm_end): Renamed from end.
112127         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
112128         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
112129         Prepend __ to parameter names.
112131         Undo yesterday's changes.
112133 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112135         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
112136         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
112137         lib/regex.c.
112139 2005-08-24  Jim Meyering  <jim@meyering.net>
112141         Sync from coreutils.
112142         * m4/fcntl-safer.m4: New file.
112144         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
112145         and object files for this module.
112147 2005-08-24  Jim Meyering  <jim@meyering.net>
112149         Sync from coreutils.
112150         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
112152 2005-08-24  Jim Meyering  <jim@meyering.net>
112154         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
112155         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
112157 2005-08-24  Jim Meyering  <jim@meyering.net>
112159         * modules/fcntl-safer: New module.
112160         * modules/fts (Depends-on): Add fcntl-safer.
112161         * MODULES.html.sh (File descriptor based Input/Output):
112162         Add fcntl-safer.
112164 2005-08-24  Bruno Haible  <bruno@clisp.org>
112166         Support for unit test modules.
112167         * modules/README: Mention tests modules.
112168         * modules/TEMPLATE-TESTS: New file.
112169         * gnulib-tool: New options --extract-tests-module, --with-tests and
112170         --tests-base (unused for the moment).
112171         (testsbase, inctests): New variables.
112172         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
112173         (func_verify_module): Exclude TEMPLATE-TESTS.
112174         (func_verify_nontests_module, func_verify_tests_module): New functions.
112175         (func_get_dependencies): Add implicit dependency for tests modules.
112176         (func_get_tests_module): New function.
112177         (func_modules_transitive_closure): When --with-tests was specified,
112178         include the unit tests as well, unless explicitly avoided.
112179         (func_emit_lib_Makefile_am): Ignore the tests modules here.
112180         (func_emit_tests_Makefile_am): New function.
112181         (func_create_testdir): When --with-tests was specified, emit a
112182         tests/ directory.
112183         * MODULES.html.sh (Future developments): Update.
112185 2005-08-24  Bruno Haible  <bruno@clisp.org>
112187         * modules/tls-tests: New file.
112188         * tests/test-tls.c: New file, from GNU gettext.
112190 2005-08-24  Bruno Haible  <bruno@clisp.org>
112192         * modules/lock-tests: New file.
112193         * tests/test-lock.c: New file, from GNU gettext.
112195 2005-08-24  Bruno Haible  <bruno@clisp.org>
112197         * lib/lock.h: Add multiple inclusion guard.
112198         * lib/tls.h: Add multiple inclusion guard.
112200 2005-08-24  Bruno Haible  <bruno@clisp.org>
112202         * gnulib-tool: Add support for the --aux-dir option to
112203         --create-testdir, --create-megatestdir, --test, --megatest.
112204         (func_create_testdir, func_create_megatestdir): Optionally emit a
112205         AC_CONFIG_AUX_DIR directive.
112206         (create-testdir, create-megatestdir, test, megatest): Provide a
112207         default value for $auxdir.
112209 2005-08-24  Bruno Haible  <bruno@clisp.org>
112211         * gnulib-tool (import): Use compound statement instead of subshell
112212         where possible.
112214 2005-08-24  Bruno Haible  <bruno@clisp.org>
112216         * gnulib-tool (import): Change --aux-dir default to "build-aux".
112218 2005-08-24  Bruno Haible  <bruno@clisp.org>
112220         * gnulib-tool (func_version): Update.
112222 2005-08-24  Bruno Haible  <bruno@clisp.org>
112224         * gnulib-tool (func_import, func_create_testdir,
112225         func_create_megatestdir): Quote all autoconf macro arguments.
112227 2005-08-24  Bruno Haible  <bruno@clisp.org>
112229         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
112230         option --force, because --force causes the aclocal.m4 of each
112231         subdirectory to be newer than the corresponding config.h.in.
112233 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112235         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
112236         All contents moved to gl_REGEX.
112237         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
112238         assume that it does.
112240 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112242         * lib/regex.h (REG_NOSYS)
112243         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
112244         Define, since POSIX requires it as of 2001.
112245         (_REG_ENOSYS)
112246         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
112247         New private symbol, used to keep the enum signed in all cases.
112248         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
112249         Youngman in
112250         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
112252         * lib/regex_internal.c (re_string_skip_chars, register_state):
112253         (calc_state_hash):
112254         Remove forward decls; no longer needed now that we use prototypes.
112255         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
112256         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
112257         (clean_state_log_if_needed): Likewise.
112259 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112261         * config/srclist.txt: Add glibc bugs 1231-1233.
112263 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112265         Fix problems reported by Sam Steingold in
112266         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
112267         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
112268         assumed that reg_errcode_t is a signed type, which is not
112269         necessarily true if _XOPEN_SOURCE is not defined.
112270         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
112271         since some compilers warn about it otherwise.
112273 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112275         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
112276         (init_word_char, create_initial_state, duplicate_node_closure):
112277         (fetch_token, peek_token_bracket, build_range_exp):
112278         (build_collating_symbol): Remove forward decls; no longer needed
112279         now that we use prototypes.
112281         * lib/regcomp.c:
112282         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
112283         (re_compile_fastmap_iter, regcomp, regerror, regfree):
112284         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
112285         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
112286         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
112287         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
112288         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
112289         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
112290         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
112291         (build_range_exp, build_collating_symbol, parse_bracket_exp):
112292         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
112293         (build_charclass, build_charclass_op, fetch_number, create_tree):
112294         (create_token_tree, mark_opt_subexp, duplicate_tree):
112295         Use prototypes rather than old-style definitions.
112297         * lib/regex_internal.c:
112298         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
112299         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
112300         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
112301         (re_string_reconstruct, re_string_peek_byte_case):
112302         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
112303         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
112304         (re_node_set_init_copy, re_node_set_add_intersect):
112305         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
112306         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
112307         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
112308         (re_acquire_state, re_acquire_state_context, register_state):
112309         (create_ci_newstate, create_cd_newstate, free_state):
112310         Likewise.
112311         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
112312         re_search_2):
112313         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
112314         (re_search_internal, prune_impossible_nodes):
112315         (acquire_init_state_context, check_matching, static):
112316         (check_halt_node_context, check_halt_state_context, proceed_next_node):
112317         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
112318         (update_regs, sift_states_backward, build_sifted_states):
112319         (clean_state_log_if_needed, merge_state_array):
112320         (update_cur_sifted_state, add_epsilon_src_nodes):
112321         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
112322         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
112323         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
112324         (find_recover_state, check_subexp_matching_top, transit_state_mb):
112325         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
112326         (check_arrival, check_arrival_add_next_nodes):
112327         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
112328         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
112329         (check_node_accept_bytes, check_node_accept, extend_buffers):
112330         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
112331         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
112332         (sift_ctx_init):
112333         Likewise.
112335         * lib/regex_internal.h:
112336         (re_string_allocate, re_string_construct, re_string_reconstruct):
112337         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
112338         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
112339         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
112340         (re_string_context_at, re_string_peek_byte_case):
112341         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
112342         is defined, since we now use prototypes always.
112344         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
112345         C89 or better.  All uses removed.
112347 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
112349         * config/srclist.txt: Add glibc bugs 1220-1227.
112351 2005-08-20  Jim Meyering  <jim@meyering.net>
112353         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
112354         of unused local, dfa.
112356 2005-08-20  Bruno Haible  <bruno@clisp.org>
112358         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
112360 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112362         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
112363         (re_node_set_insert_last, re_dfa_add_node):
112364         Rename local variables to avoid GCC shadowing warnings.
112366 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112368         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
112369         [defined lint]: Suppress bogus uninitialized-variable warnings.
112371         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
112372         and let the caller return REG_ESPACE if out of space.  This
112373         removes an uninitialied-variable warning with GCC 4.0.1, and also
112374         avoids taking the address of a local variable.  All callers
112375         changed.
112377 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
112379         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
112380         $LIBCSRC/posix/regexec.c.
112381         Add glibc bug 1217 for regcomp.c.
112383 2005-08-19  Jim Meyering  <jim@meyering.net>
112385         * lib/regexec.c (proceed_next_node): Redo local variables to
112386         avoid GCC shadowing warnings.
112388 2005-08-18  Bruno Haible  <bruno@clisp.org>
112390         * lib/strstr.c (strstr): Fix return value in multibyte case.
112391         * lib/strcasestr.c (strcasestr): Likewise.
112393 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
112395         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
112397 2005-08-17  Jim Meyering  <jim@meyering.net>
112399         Make the %s format (seconds since the epoch) work for a negative
112400         number and when used with a zero-padded field width, e.g. %015s.
112402         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
112403         label so that it precedes the code to set `digits'.  Otherwise,
112404         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
112405         print `00-22'.  Now, it prints `-0022', as it should.
112407 2005-08-17  Bruno Haible  <bruno@clisp.org>
112409         * modules/strstr (Files): Add m4/mbrtowc.m4.
112410         (Depends-on): Add mbuiter.
112412 2005-08-17  Bruno Haible  <bruno@clisp.org>
112414         * modules/strcasestr: New file.
112415         * MODULES.html.sh (String handling, based on ANSI C 89): Add
112416         strcasestr.
112418 2005-08-17  Bruno Haible  <bruno@clisp.org>
112420         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
112422 2005-08-17  Bruno Haible  <bruno@clisp.org>
112424         * modules/mbuiter: New file.
112425         * MODULES.html.sh (Extended multibyte and wide character utilities):
112426         Add mbuiter.
112428 2005-08-17  Bruno Haible  <bruno@clisp.org>
112430         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
112431         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
112433 2005-08-17  Bruno Haible  <bruno@clisp.org>
112435         * m4/strcasestr.m4: New file.
112437 2005-08-17  Bruno Haible  <bruno@clisp.org>
112439         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
112440         * lib/strstr.c: Completely rewritten, with multibyte locale support.
112442 2005-08-17  Bruno Haible  <bruno@clisp.org>
112444         * lib/strcasestr.h: New file.
112445         * lib/strcasestr.c: New file.
112447 2005-08-17  Bruno Haible  <bruno@clisp.org>
112449         * lib/strcasecmp.c: Use mbuiter.h.
112451 2005-08-17  Bruno Haible  <bruno@clisp.org>
112453         * lib/mbuiter.h: New file.
112455 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
112457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
112458         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
112459         and gl_GETOPT are both invoked via different paths (as happens
112460         with GNU tar CVS because it uses both argp and getopt), the former
112461         wins.
112463 2005-08-16  Bruno Haible  <bruno@clisp.org>
112465         * modules/tls: New file.
112466         * MODULES.html.sh (Multithreading): Add tls.
112468 2005-08-16  Bruno Haible  <bruno@clisp.org>
112470         * modules/strnlen1: New file.
112471         * MODULES.html.sh (String handling): Add strnlen1.
112473 2005-08-16  Bruno Haible  <bruno@clisp.org>
112475         * modules/strcase (Files): Add m4/mbrtowc.m4.
112476         (Depends-on): Add strnlen1, mbchar.
112478 2005-08-16  Bruno Haible  <bruno@clisp.org>
112480         * modules/mbiter: New file.
112481         * MODULES.html.sh (Extended multibyte and wide character utilities):
112482         Add mbiter.
112484 2005-08-16  Bruno Haible  <bruno@clisp.org>
112486         * modules/mbfile: New file.
112487         * MODULES.html.sh (Extended multibyte and wide character utilities):
112488         Add mbfile.
112490 2005-08-16  Bruno Haible  <bruno@clisp.org>
112492         * modules/mbchar: New file.
112493         * MODULES.html.sh (Extended multibyte and wide character utilities):
112494         New section.
112496 2005-08-16  Bruno Haible  <bruno@clisp.org>
112498         * m4/tls.m4: New file, from GNU gettext.
112500 2005-08-16  Bruno Haible  <bruno@clisp.org>
112502         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
112503         always.
112504         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
112506 2005-08-16  Bruno Haible  <bruno@clisp.org>
112508         * m4/mbiter.m4: New file.
112510 2005-08-16  Bruno Haible  <bruno@clisp.org>
112512         * m4/mbfile.m4: New file.
112514 2005-08-16  Bruno Haible  <bruno@clisp.org>
112516         * m4/mbchar.m4: New file.
112518 2005-08-16  Bruno Haible  <bruno@clisp.org>
112520         * lib/tls.h: New file, from GNU gettext.
112521         * lib/tls.c: New file, from GNU gettext.
112523 2005-08-16  Bruno Haible  <bruno@clisp.org>
112525         * lib/strnlen1.h: New file.
112526         * lib/strnlen1.c: New file.
112528 2005-08-16  Bruno Haible  <bruno@clisp.org>
112530         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
112531         (mbi_init): Update.
112532         (mbi_avail, mbi_advance): Let the iteration end before the terminating
112533         NUL byte, not after it.
112535 2005-08-16  Bruno Haible  <bruno@clisp.org>
112537         * lib/strcase.h (strcasecmp): Add note in comments.
112538         * lib/strncasecmp.c: Use code from strcasecmp.c.
112539         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
112540         (strcasecmp): Work correctly in multibyte locales.
112542 2005-08-16  Bruno Haible  <bruno@clisp.org>
112544         * lib/mbiter.h: New file.
112546 2005-08-16  Bruno Haible  <bruno@clisp.org>
112548         * lib/mbfile.h: New file.
112550 2005-08-16  Bruno Haible  <bruno@clisp.org>
112552         * lib/mbchar.h: New file.
112553         * lib/mbchar.c: New file.
112555 2005-08-16  Bruno Haible  <bruno@clisp.org>
112557         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
112558         the valid ones. Makes the comparison operations transitive:
112559         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
112560         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
112562 2005-08-15  Simon Josefsson  <jas@extundo.com>
112564         * modules/ssize_t (License): Change to 'unlimited'.
112566         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
112568 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112570         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
112571         Add comments for each pending glibc patch.
112573 2005-08-15  Bruno Haible  <bruno@clisp.org>
112575         * lib/regex.h (__restrict_arr): Don't define to __restrict if
112576         __cplusplus is defined.
112578 2005-08-14  Jim Meyering  <jim@meyering.net>
112580         Sync from coreutils.
112582         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
112583         Use the hash-table-based cycle-detection code not just when
112584         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
112585         Reported by James Youngman in
112586         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
112587         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
112588         FTS_TIGHT_CYCLE_CHECK.
112589         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
112590         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
112591         once again.
112592         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
112593         * lib/fts.c (fd_safer): Remove decl.
112594         Include fcntl--.h rather than unistd-safer.h
112595         (fts_safe_changedir): Don't call fd_safer; no longer needed
112596         now that we include fcntl--.h.
112598 2005-08-12  Simon Josefsson  <jas@extundo.com>
112600         * modules/getndelim2: Use ssize_t module.
112601         * modules/getnline: Likewise.
112602         * modules/safe-read: Likewise.
112603         * modules/xreadlink: Likewise.
112605         * modules/ssize_t: New file.
112607 2005-08-12  Simon Josefsson  <jas@extundo.com>
112609         * m4/readline.m4: Look for termcap, curses or ncurses if required.
112611 2005-08-12  Simon Josefsson  <jas@extundo.com>
112613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112614         ssize_t.
112616 2005-08-12  Simon Josefsson  <jas@extundo.com>
112618         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
112619         readline, getdelim and check_version.
112620         (Support for systems lacking ISO C 99: Sizes of integer types):
112621         Add size_max.
112623 2005-08-12  Bruno Haible  <bruno@clisp.org>
112625         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
112627 2005-08-11  Simon Josefsson  <jas@extundo.com>
112629         * modules/readline: New file.
112631         * modules/strnlen (Files): Add strnlen.h.
112633 2005-08-11  Simon Josefsson  <jas@extundo.com>
112635         * m4/readline.m4: New file.
112637 2005-08-11  Simon Josefsson  <jas@extundo.com>
112639         * lib/readline.h, readline.c: New file.
112641 2005-08-11  Simon Josefsson  <jas@extundo.com>
112643         * doc/gnulib.texi (Initial import, Finishing touches): Mention
112644         gl_AVOID.
112646 2005-08-11  Bruno Haible  <bruno@clisp.org>
112648         * lib/strnlen.h (strnlen): Change parameter name to match comment.
112650 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
112652         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
112654 2005-08-10  Simon Josefsson  <jas@extundo.com>
112656         * tests/test-iconvme.c: New file.
112658 2005-08-10  Simon Josefsson  <jas@extundo.com>
112660         * m4/strnlen.m4: New file.
112662         * m4/strndup.m4: Don't check for strnlen declaration, done in
112663         strnlen.m4.
112665 2005-08-10  Simon Josefsson  <jas@extundo.com>
112667         * lib/strndup.c: Use strnlen.h.
112669         * lib/strnlen.h: New file.
112671 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112673         * README: Typos.
112675 2005-08-02  Simon Josefsson  <jas@extundo.com>
112677         * modules/readline: New file.
112679 2005-08-02  Simon Josefsson  <jas@extundo.com>
112681         * modules/getdelim: New file.
112683         * modules/getline: Rewrite, don't use getndelim2.
112685 2005-08-02  Simon Josefsson  <jas@extundo.com>
112687         * m4/getline.m4: Separate out getdelim stuff into separate module.
112689         * m4/getdelim.m4: New file.
112691 2005-08-02  Simon Josefsson  <jas@extundo.com>
112693         * lib/getline.h, getline.c: Rewrite.
112695         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
112697 2005-07-31  Bruno Haible  <bruno@clisp.org>
112699         * lib/lock.h (gl_lock_initializer): New macro.
112700         (gl_lock_define_initialized): Use it.
112701         (gl_rwlock_initializer): New macro.
112702         (gl_rwlock_define_initialized): Use it.
112703         (gl_recursive_lock_initializer): New macro.
112704         (gl_recursive_lock_define_initialized): Use it.
112706 2005-07-30  Karl Berry  <karl@gnu.org>
112708         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
112709         Report from Ben Pfaff, regarding getopt.
112711 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
112713         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
112714         normal way.
112715         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
112716         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
112717         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
112718         (gl_GETOPT): Use the new macros.  Most of the implementation
112719         is moved to the new macros.  This is for programs like Emacs
112720         that don't want all the functionality of gl_GETOPT.
112722 2005-07-26  Bruno Haible  <bruno@clisp.org>
112724         * m4/lock.m4: Update from GNU gettext.
112726 2005-07-26  Bruno Haible  <bruno@clisp.org>
112728         * lib/lock.h: Update from GNU gettext.
112729         * lib/lock.c: Update from GNU gettext.
112731 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
112733         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
112734         obsolescent AC_TRY_RUN.  Include the default includes files, for
112735         'exit'.
112737 2005-07-24  Bruno Haible  <bruno@clisp.org>
112739         * modules/visibility: New file.
112740         * MODULES.html.sh (Misc): Add visibility.
112742 2005-07-24  Bruno Haible  <bruno@clisp.org>
112744         * m4/visibility.m4: New file.
112746 2005-07-24  Bruno Haible  <bruno@clisp.org>
112748         * doc/visibility.texi: New file.
112750 2005-07-22  Bruno Haible  <bruno@clisp.org>
112752         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
112753         $(ALLOCA_H), redundant through BUILT_SOURCES.
112754         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
112755         redundant through BUILT_SOURCES.
112756         * modules/byteswap (Makefile.am): Remove explicit dependency on
112757         $(BYTESWAP_H), redundant through BUILT_SOURCES.
112758         * modules/fnmatch (Makefile.am): Remove explicit dependency on
112759         $(FNMATCH_H), redundant through BUILT_SOURCES.
112760         * modules/getopt (Makefile.am): Remove explicit dependency on
112761         $(GETOPT_H), redundant through BUILT_SOURCES.
112762         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
112763         redundant through BUILT_SOURCES.
112764         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
112765         redundant through BUILT_SOURCES.
112766         * modules/stdbool (Makefile.am): Remove explicit dependency on
112767         $(STDBOOL_H), redundant through BUILT_SOURCES.
112768         * modules/stdint (Makefile.am): Remove explicit dependency on
112769         $(STDINT_H), redundant through BUILT_SOURCES.
112770         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
112771         Remove explicit dependency on $(SYSEXITS_H).
112772         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
112774 2005-07-18  Simon Josefsson  <jas@extundo.com>
112776         * lib/check-version.c (check_version): Accept identical versions too.
112778 2005-07-18  Bruno Haible  <bruno@clisp.org>
112780         * modules/lock: New file.
112781         * MODULES.html.sh (Multithreading): New section.
112783 2005-07-18  Bruno Haible  <bruno@clisp.org>
112785         * m4/lock.m4: New file, from GNU gettext.
112787 2005-07-18  Bruno Haible  <bruno@clisp.org>
112789         * lib/lock.h: New file, from GNU gettext.
112790         * lib/lock.c: New file, from GNU gettext.
112792 2005-07-18  Bruno Haible  <bruno@clisp.org>
112794         * lib/lock.h (gl_once_t): New type.
112795         (gl_once_define, gl_once): New macros.
112796         * lib/lock.c (fresh_once): New variable.
112797         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
112798         functions.
112800 2005-07-16  Simon Josefsson  <jas@extundo.com>
112802         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
112803         workaround, suggested by Bruno.
112805 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
112807         * modules/xalloc (Depends-on): Add xalloc-die.
112808         * modules/xvasprintf (Depends-on): Add xalloc-die.
112810 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
112812         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
112813         with a minor change.
112815 2005-07-15  Bruno Haible  <bruno@clisp.org>
112817         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
112818         When using lib/poll.c, define poll as rpl_poll.
112820 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
112822         * modules/argp (Depends-on): Remove unlocked-io.
112824 2005-07-14  Derek Price  <derek@ximbiot.com>
112826         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
112827         for glob symlink bug.
112829 2005-07-14  Bruno Haible  <bruno@clisp.org>
112831         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
112832         Instead, test for *_unlocked function declarations directly.
112834 2005-07-11  Simon Josefsson  <jas@extundo.com>
112836         * modules/size_max: New file.
112838         * modules/xsize: Depend on size_max module for size_max.m4.
112840 2005-07-11  Simon Josefsson  <jas@extundo.com>
112842         * lib/size_max.h: New file.
112844 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
112846         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
112847         copyright symbol and the year.
112848         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
112849         (version_etc_va): Use parameterized copyright notice.
112850         Reword to conform to the current GNU coding standards.
112852 2005-07-11  Karl Berry  <karl@gnu.org>
112854         * doc/gnulib.texi (Quoting): new node.
112855         (Initial import): more info, from Patrice.
112857 2005-07-11  Bruno Haible  <bruno@clisp.org>
112859         * gnulib-tool (func_usage): Document option --avoid.
112860         (Command line options): Handle --avoid.
112861         (func_acceptable): New function.
112862         (func_modules_transitive_closure): Use it.
112864 2005-07-11  Bruno Haible  <bruno@clisp.org>
112866         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
112867         Reported by Jim Meyering.
112869 2005-07-10  Bruno Haible  <bruno@clisp.org>
112871         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
112872         Needed when size_t is smaller than 'unsigned int'.
112873         Reported by Paul Eggert.
112875 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112877         * modules/argp (Depends-on): Add unlocked-io
112879 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112881         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
112882         block of defines.
112884 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112886         * config/srclist.txt: Comment out regcomp.c, since we have a porting
112887         fix now.
112889 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
112890         and Paul Eggert  <eggert@cs.ucla.edu>
112892         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
112893         in wint_t, not wchar_t.  Remove now-unnecessary cast.
112895 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
112897         * modules/regex (Files): Add lib/regex_internal.c,
112898         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
112899         (Depends-on): Add extensions.
112900         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
112902 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
112904         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
112905         pathconf.
112906         * m4/same.m4 (gl_SAME): Likewise.
112907         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
112909         * m4/regex.m4: Adjust to new libc regex implementation.
112910         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
112911         all the .c and .h parts of (the new) regex.
112912         Quote the m4 stuff better.
112913         Check for RE_ICASE bug of old gnulib.
112914         Check for REG_STARTEND of recent libc.
112915         Rename local variables from jm_* to gl_*.
112916         Quote operand of "test -f".
112917         Say "recent enough" version of libc, not "version 2".
112918         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
112919         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
112920         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
112921         Remove check for btowc, isascii.
112922         Require AM_LANGINFO_CODESET.
112924 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
112926         * lib/regex.c, regex.h: Sync from libc.
112927         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
112928         * lib/regexec.c:
112929         New files, synced from libc, except that regex_internal.h
112930         currently has a small porting fix.
112932 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
112934         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
112935         regex_internal.c, regexec.c.
112936         Add regex_internal.h too, but as a comment, since the libc version
112937         is currently broken in gnulib mode.
112939 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112941         Support programs like Emacs that use gnulib but not gettext.
112942         * MODULES.html.sh (Internationalization functions): Add gettext-h.
112943         * modules/gettext-h: New file.
112944         * modules/gettext (Files): Remove lib/gettext.h.
112945         (Depends-on): Add gettext-h.
112946         (Makefile.am): Remove lib_SOURCES.
112947         * modules/argmatch, modules/c-stack, modules/closeout:
112948         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
112949         * modules/execute, modules/file-type, modules/getaddrinfo:
112950         * modules/getopt, modules/human, modules/javacomp:
112951         * modules/javaexec, modules/mkdir-p, modules/obstack:
112952         * modules/openat, modules/pagealign_alloc, modules/pipe:
112953         * modules/quotearg, modules/regex, modules/rpmatch:
112954         * modules/unicodeio, modules/userspec, modules/version-etc:
112955         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
112956         * modules/xsetenv:
112957         Depend on gettext-h, not gettext.
112959 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112961         * gnulib-tool (func_import): Add support for 'public domain' license.
112962         * modules/alloca, modules/atexit, modules/memmove:
112963         Now public domain, not GPL.
112964         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
112965         * modules/realloc, modules/strerror, modules/strtod:
112966         Now LGPL, not GPL.
112968 2005-07-05  Bruno Haible  <bruno@clisp.org>
112970         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
112971         autoconf CVS. Needed for mingw.
112973 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112975         Remove the dependency of the strftime module on the tzset module.
112976         * modules/strftime (Depends-on): Remove dependency on tzset.
112978 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112980         Remove the dependency of the strftime module on the tzset module.
112981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
112982         gl_FUNC_TZSET_CLOBBER.
112984 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112986         Remove the dependency of the strftime module on the tzset module.
112987         * lib/strftime.c (my_strftime)
112988         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
112989         Copy the input structure, to work around some of the bug with
112990         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
112991         Solaris releases, you should also use the tzset module, but we won't
112992         require it as a dependency any more since we don't want LGPLed code
112993         to depend on GPLed code.
112995 2005-07-02  Jim Meyering  <jim@meyering.net>
112997         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
112998         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
112999         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
113000         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
113002 2005-07-02  Jim Meyering  <jim@meyering.net>
113004         * lib/backupfile.c (backup_args): Change a `0' to NULL.
113006 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113008         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
113009         declares only 'struct timespec;' (!).
113011 2005-07-01  Jim Meyering  <jim@meyering.net>
113013         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
113014         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
113015         * lib/save-cwd.c, tempname.c:
113016         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
113017         and don't include <sys/file.h>).
113019 2005-06-29  Jim Meyering  <jim@meyering.net>
113021         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
113022         type name.  Use the variable name instead.
113023         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
113024         Likewise.
113026 2005-06-28  Simon Josefsson  <jas@extundo.com>
113028         * modules/check-version (Files): Add check-version.m4.
113030 2005-06-28  Simon Josefsson  <jas@extundo.com>
113032         * m4/check-version.m4: New file, suggested by Jim Meyering
113033         <jim@meyering.net>.
113035 2005-06-28  Simon Josefsson  <jas@extundo.com>
113037         * lib/check-version.h, lib/check-version.c: New files.
113039 2005-06-28  Simon Josefsson  <jas@extundo.com>
113041         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
113042         collision with global variable.  Better indentation.  Don't
113043         increment buffer pointer beyond buffer end.  Based on comments
113044         from Paul Eggert <eggert@cs.ucla.edu>.
113046         * lib/base64.h: Indent.
113048 2005-06-28  Simon Josefsson  <jas@extundo.com>
113050         * doc/gnulib.texi (Library version handling): New section.
113052 2005-06-28  Jim Meyering  <jim@meyering.net>
113054         * check-module (find_included_lib_files): Hard-code another
113055         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
113056         but modules/fts-lgpl (correctly) does not list those files.
113058         * modules/canonicalize (Files): Add lib/pathmax.h.
113060 2005-06-25  Simon Josefsson  <jas@extundo.com>
113062         * modules/check-version: New file.
113064 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
113066         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
113067         initializer of struct addrinfo, as an indication that we don't
113068         care how many members the structure has.
113070 2005-06-24  Derek Price  <derek@ximbiot.com>
113071         and Bruno Haible  <bruno@clisp.org>
113073         Remove stat module & update lstat.
113074         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
113075         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113076         * m4/stat.m4: Remove this file.
113078 2005-06-24  Derek Price  <derek@ximbiot.com>
113079         and Bruno Haible  <bruno@clisp.org>
113081         Remove stat module & update lstat.
113082         * lib/stat.c: Remove this file...
113083         (slash_aware_lstat): ...moving this content and its support...
113084         * lib/lstat.c (rpl_lstat): ...into here.
113085         * lib/lstat.h: New file.
113087 2005-06-24  Derek Price  <derek@ximbiot.com>
113088         and Bruno Haible  <bruno@clisp.org>
113090         Remove stat module & update lstat.
113091         * config/srclist.txt (libc sources): Remove stat.
113093 2005-06-24  Derek Price  <derek@ximbiot.com>
113094         and Bruno Haible  <bruno@clisp.org>
113096         Remove stat module & update lstat.
113097         * MODULES.html.sh (stat): Remove.
113098         * MODULES.html: Regenerated.
113099         * modules/lstat (Description): Correct function name.
113100         (Files): Add "lstat.h".
113101         (Depends-on): Remove stat, add xalloc, stat-macros.
113102         * modules/stat: Remove this file.
113103         (Include): Add "lstat.h", remove <sys/stat.h>.
113105 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
113107         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
113108         (ranged_convert): Don't save conversion in a temporary struct.
113109         This causes a warning with GCC 4.0.0, and anyway in the typical
113110         case it's not worth the extra 100 bytes or so of code.
113111         (ranged_convert, __mktime_internal): When calling a function via a
113112         pointer P, use P () rather than (*P) (), as we now assume C89 or
113113         better.
113115 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113117         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
113118         "who -r" failed to give output.  Problem reported by Tim Waugh.
113120         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
113121         (xcalloc): Use it to avoid needless tests.
113122         Problem reported by Jim Meyering.
113124 2005-06-20  Derek Price  <derek@ximbiot.com>
113126         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
113127         unnecessary for Autoconfs > 2.59c.
113129 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113131         * lib/argp.h (__option_is_short): Check upper limit of
113132         __key. Isprint() requires its argument to have the value
113133         of an unsigned char or EOF.
113135 2005-06-16  Jim Meyering  <jim@meyering.net>
113137         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
113138         when either N or S is zero.
113140 2005-06-16  Derek Price  <derek@ximbiot.com>
113142         * m4/bison.m4: Declare YACC & YFLAGS precious.
113144 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
113146         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
113147         multibyte string or pattern, fall back on unibyte matching.
113148         Problem reported by James Youngman.
113150 2005-06-08  Bruno Haible  <bruno@clisp.org>
113152         * modules/csharpcomp: New file.
113153         * MODULES.html.sh (C#): Add csharpcomp.
113155 2005-06-08  Bruno Haible  <bruno@clisp.org>
113157         * m4/csharpcomp.m4: New file, from GNU gettext.
113159 2005-06-08  Bruno Haible  <bruno@clisp.org>
113161         * lib/csharpcomp.h: New file, from GNU gettext.
113162         * lib/csharpcomp.c: New file, from GNU gettext.
113163         * lib/csharpcomp.sh.in: New file, from GNU gettext.
113165 2005-06-08  Bruno Haible  <bruno@clisp.org>
113167         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
113168         warning on mingw.
113170 2005-06-07  Derek Price  <derek@ximbiot.com>
113172         Sync from CVS.
113173         * lib/glob_.h: Indent nested #ifdef.
113175 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113177         Sync from coreutils.
113178         Use "file name" when talking about file names, instead of "filename"
113179         or "path", as per the GNU coding standards.
113180         * lib/mkdir-p.c: Renamed from makepath.c.
113181         (make_dir_parents): Renamed from make_path.  All callers changed.
113182         * lib/mkdir-p.h: Likewise.  All includers changed.
113183         * lib/filenamecat.c: Renamed from path-concat.c.
113184         (file_name_concat): Renamed from path_concat.  All callers changed.
113185         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
113186         * lib/filenamecat.h: Likewise.  All includers changed.
113187         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
113188         in comments or local variable names.
113189         * lib/basename.c: Likewise.
113190         * lib/canonicalize.c, canonicalize.h: Likewise.
113191         * lib/dirname.c, dirname.h: Likewise.
113192         * lib/euidaccess.c: Likewise.
113193         * lib/exclude.c: Likewise
113194         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
113195         * lib/fsusage.c, fsuage.h: Likewise.
113196         * lib/fts.c, fts_.h: Likewise.
113197         * lib/getcwd.c: Likewise.
113198         * lib/getloadavg.c: Likewise.
113199         * lib/mkstemp.c: Likewise.
113200         * lib/mountlist.c, mountlist.h: Likewise.
113201         * lib/openat.c, openat.h: Likewise.
113202         * lib/readlink-stub.c: Likewise.
113203         * lib/readutmp.c, readutmp.h: Likewise.
113204         * lib/rename.c: Likewise.
113205         * lib/rmdir.c: Likewise.
113206         * lib/same.c: Likewise.
113207         * lib/savedir.c: Likewise.
113208         * lib/stripslash.c: Likewise.
113209         * lib/tempname.c: Likewise.
113210         * lib/xreadlink.c: Likewise.
113211         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
113212         All uses changed.
113213         * lib/exclude.h: Likewise.
113215         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
113216         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113217         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
113218         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113219         * lib/pathmax.h: Include <limits.h> unconditionally, since other
113220         files have been getting away with it for years (MORE/BSD 4.3
113221         is extinct now).
113222         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
113223         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
113225         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
113226         Define to 256, not 255, as per modern POSIX.
113228 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113230         Sync from coreutils.
113231         Use "file name" when talking about file names, instead of "filename"
113232         or "path", as per the GNU coding standards.
113233         * MODULES.html.sh: mkdir-p renamed from makepath.
113234         filenamecat renamed from path-concat.
113235         * modules/filenamecat: Renamed from modules/path-concat.
113236         (Files): filenamecat.h and filenamecat.c renamed from
113237         path-concat.h and path-concat.c.
113238         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
113239         (Include): filenamecat.h, not path-concat.h.
113240         * modules/mkdir-p: Renamed from modules/makepath.
113241         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
113242         makepath.c.
113243         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
113244         (Include): mkdir-p.h, not makepath.h.
113246 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
113248         Sync from coreutils.
113249         * m4/mkdir-p.m4: Renamed from makepath.m4.
113250         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
113251         Rename files from makepath.c to mkdir-p.c, and from
113252         makepath.h to mkdir-p.h.
113253         * m4/filenamecat.m4: Renamed from path-concat.m4.
113254         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
113255         Rename files from path-concat.c to filenamecat.c,
113256         and from path-concat.h to filenamecat.h.
113257         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
113258         "file name" in local variables or comments.
113259         * m4/rename.m4: Likewise.
113261 2005-06-01  Bruno Haible  <bruno@clisp.org>
113263         * modules/csharpexec: New file.
113264         * MODULES.html.sh (C#): New section.
113266 2005-06-01  Bruno Haible  <bruno@clisp.org>
113268         * m4/csharp.m4: New file, from GNU gettext.
113269         * m4/csharpexec.m4: New file, from GNU gettext.
113271 2005-06-01  Bruno Haible  <bruno@clisp.org>
113273         * lib/csharpexec.h: New file, from GNU gettext.
113274         * lib/csharpexec.c: New file, from GNU gettext.
113275         * lib/csharpexec.sh.in: New file, from GNU gettext.
113277 2005-05-31  Derek Price  <derek@ximbiot.com>
113278             Paul Eggert  <eggert@cs.ucla.edu>
113280         Sync from cvs.
113281         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113283 2005-05-31  Derek Price  <derek@ximbiot.com>
113284             Paul Eggert  <eggert@cs.ucla.edu>
113286         Sync from cvs.
113287         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
113289 2005-05-29  Derek Price  <derek@ximbiot.com>
113291         * config/srclist.txt (glob_.h, glob.c): Add these files.
113293 2005-05-29  Derek Price  <derek@ximbiot.com>
113295         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
113296         * modules/glob: New file.
113297         * modules/getlogin_r: Add link to POSIX spec in description.
113299 2005-05-29  Derek Price  <derek@ximbiot.com>
113300             Paul Eggert  <eggert@cs.ucla.edu>
113302         * m4/glob.m4: New file.
113304 2005-05-29  Derek Price  <derek@ximbiot.com>
113305             Paul Eggert  <eggert@cs.ucla.edu>
113307         * lib/glob_.h, lib/glob.c: New files.
113309 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113311         * modules/fts (Files): Remove m4/inttypes-pri.m4.
113312         * modules/fts-lgpl (Depends-on): Remove gettext.
113314 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
113317         and don't require gt_INTTYPES_PRI.
113319 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
113321         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
113323         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
113324         the configuration hassle isn't worth it.
113325         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
113326         (LONGEST_MODIFIER, PRIuMAX): Remove.
113328 2005-05-27  Bruno Haible  <bruno@clisp.org>
113330         * lib/getlogin_r.h: Remove second include of <stddef.h>.
113332 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
113334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
113335         _POSIX_PTHREAD_SEMANTICS for Solaris.
113337 2005-05-25  Derek Price  <derek@ximbiot.com>
113339         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
113341 2005-05-25  Derek Price  <derek@ximbiot.com>
113342             Paul Eggert  <eggert@cs.ucla.edu>
113344         * modules/getlogin_r, m4/getlogin_r.m4: New files.
113345         * lib/getlogin_r.c, getlogin_r.h: New files.
113347 2005-05-25  Bruno Haible  <bruno@clisp.org>
113348             Derek Price  <derek@ximbiot.com>
113350         * lib/getlogin_r.h: Simplify API documentation.
113352 2005-05-23  Derek Price  <derek@ximbiot.com>
113354         * modules/minmax (Files): Add m4/minmax.m4.
113355         (configure.ac): Add gl_MINMAX.
113357 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
113359         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
113360         so that unistd-safer.h (GPL'ed code) need not be included.
113362 2005-05-22  Bruno Haible  <bruno@clisp.org>
113364         * m4/minmax.m4: New file.
113365         Based on a patch by Derek Price <derek@ximbiot.com>.
113367 2005-05-22  Bruno Haible  <bruno@clisp.org>
113369         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
113370         (INT64_MIN): Fix definition.
113371         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
113373         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
113374         NEED_SIGNED_INT_TYPES.
113376         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
113377         HAVE_SYSTEM_INTTYPES.
113379 2005-05-22  Bruno Haible  <bruno@clisp.org>
113381         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
113382         Also include <sys/param.h> if it defines MIN, MAX.
113383         Based on a patch by Derek Price <derek@ximbiot.com>.
113385 2005-05-21  Jim Meyering  <jim@meyering.net>
113387         * modules/fts (Files): Add m4/inttypes-pri.m4.
113388         (Depends-on): Add lstat and remove gettext.  Alphabetize.
113390 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113392         New fts module.
113393         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
113394         (setup_dir, free_dir): New functions.
113395         (enter_dir, leave_dir): Define trivial
113396         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
113397         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
113398         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
113399         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
113400         Move to fts-cycle.c.
113401         (fts_open): Use setup_dir.
113402         (fts_close): Use free_dir.
113403         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
113404         This adds a label and some gotos, but the alternatives were messier.
113405         Check for memory allocation failure when entering a dir.
113406         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
113407         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
113408         (FTS): New member fts_cycle, that is a union that contains the
113409         old active_dir_ht and cycle_state.  All uses changed to mention
113410         fts_cycle.ht and fts_cycle.state.
113411         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
113412         fts.c, with the following changes:
113413         (setup_dir, free_dir): New functions.
113414         (enter_dir): Now returns bool.  Return true if successful, false
113415         if memory exhausted.  All callers changed.
113416         Do not bother partly cleaning up on
113417         memory allocation failure; that is free_dir's job.
113418         However, free ad if hash_insert fails, to avoid memory leak.
113419         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
113420         fts->fts_options to see which union member to use.
113422 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
113425         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
113427 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
113429         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
113431 2005-05-20  Jim Meyering  <jim@meyering.net>
113433         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
113434         Now a macro, to pacify GCC.
113436 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113438         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
113439         of -1.
113441 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
113443         * lib/chown.c (rpl_chown): Return -1 on failure.
113445 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
113448         Don't check for stddef.h.
113449         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
113450         don't use its results.
113451         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
113452         since we include them unconditionally.  Don't require
113453         AM_STDBOOL_H, since stdbool is a prerequisite.
113454         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
113455         since we assume C89 or better.
113456         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
113457         as we don't use their results.
113458         Don't check for fchdir, memmove, memset, strrchr, as we use
113459         them unconditionally.
113460         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
113461         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
113463 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
113465         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
113466         Include <stddef.h> unconditionally, since we assume C89 now.
113467         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
113468         * lib/fts.c: Include fts_.h first, to check interface.
113469         Do not include intprops.h; no longer needed.
113470         Include cycle-check.h and hash.h, since fts_.h no longer does.
113471         Remove unnecessary casts of closedir to void.
113472         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
113473         decide whether to decrement nlinks.
113474         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
113475         (FTS): Use struct hash_table * instead of Hash_table, so that
113476         we no longer need to include hash.h here.
113478 2005-05-18  Jim Meyering  <jim@meyering.net>
113480         * modules/dirfd (License): Change to LGPL.  Most of the code
113481         is already in the public domain.
113483 2005-05-18  Jim Meyering  <jim@meyering.net>
113485         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
113486         Reported by Yoann Vandoorselaere.
113488 2005-05-17  Jim Meyering  <jim@meyering.net>
113490         * m4/fts.m4: New file, from coreutils.
113492 2005-05-17  Jim Meyering  <jim@meyering.net>
113494         * lib/fts.c, lib/fts_.h: New files, from coreutils.
113496 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113498         Sync from coreutils.
113499         * m4/unlinkdir.m4: New file.
113501 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113503         Sync from coreutils.
113504         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
113505         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
113506         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
113507         White space changes only.
113508         * lib/makepath.c (make_path): Port to hosts where leading "//" is
113509         special.
113510         * lib/yesno.c: Include getline.h, not ctype.h.
113511         (yesno): Don't remove leading white space; POSIX doesn't allow it.
113512         Use getline to remove arbitrary restriction on response length.
113514 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113516         * config/srclist-update: Spell out "Street" in FSF postal
113517         mail address; this is the style the FSF seems to prefer.
113519         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
113520         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
113521         this updates FSF postal mail address.
113523         Sync from coreutils.
113524         * modules/unlinkdir: New file.
113525         * modules/yesno (Depends-on): Add getline.
113526         * MODULES.html.sh (File system functions): Add unlinkdir.
113528 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
113530         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
113531         lib/strsep.h:
113532         Change the initial comment to refer to GPL, not LGPL.
113533         gnulib-tool will change it to LGPL as needed.
113535         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
113536         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
113537         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
113538         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
113539         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
113540         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
113541         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
113542         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
113543         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
113544         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
113545         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
113546         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
113547         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
113548         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
113549         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
113550         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
113551         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
113552         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
113553         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
113554         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
113555         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
113556         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
113557         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
113558         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
113559         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
113560         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
113561         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
113562         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
113563         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
113564         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
113565         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
113566         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
113567         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
113568         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
113569         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
113570         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
113571         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
113572         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
113573         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
113574         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
113575         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
113576         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
113577         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
113578         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
113579         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
113580         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
113581         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
113582         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
113583         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
113584         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
113585         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
113586         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
113587         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
113588         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
113589         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
113590         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
113591         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
113592         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
113593         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
113594         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
113595         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
113596         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
113597         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
113598         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
113599         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
113600         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
113601         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
113602         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
113603         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
113604         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
113605         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
113606         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
113607         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
113608         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
113609         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
113610         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
113611         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
113612         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
113613         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
113614         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
113615         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
113616         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
113617         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
113618         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
113619         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
113620         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
113621         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
113622         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
113623         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
113624         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
113625         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
113626         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
113627         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
113628         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
113629         lib/yesno.c, lib/yesno.h:
113630         Update FSF postal mail address.
113632 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
113634         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
113635         tests/test-memmem.c, tests/test-stpncpy.c:
113636         Update FSF postal mail address.
113638 2005-05-13  Bruno Haible  <bruno@clisp.org>
113640         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
113641         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
113642         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
113643         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
113644         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
113645         Add support for 64-bit integers in the MSVC compiler.
113647 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113649         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
113651 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
113653         * gnulib-tool (func_import): Sort and uniquify recommended includes.
113655 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
113657         * doc/getdate.texi (General date syntax): Don't say that date
113658         date --iso-8601=ns generates acceptable dates; it doesn't yet.
113659         Problem reported by Nic Ferrier.
113661 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113663         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
113664         specified in ai_socktype. Fix invalid ai_protocol
113665         check. ai_protocol is usually set to 0 or depending on
113666         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
113667         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
113668         ai_socktype / ai_protocol in the returned addrinfo structure.
113670 2005-05-10  Simon Josefsson  <jas@extundo.com>
113672         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
113673         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
113675 2005-05-10  Karl Berry  <karl@gnu.org>
113677         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
113678         (from http://www.gnu.org/licenses).
113679         * doc/COPYING.LIB: also rename to COPYING.LESSER.
113680         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
113681         fdl.texi suffices.
113683 2005-05-10  Karl Berry  <karl@gnu.org>
113685         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
113686         (COPYING.DOC): remove.
113688         * config/srclist-update: new FSF address.
113690 2005-05-10  Derek Price  <derek@ximbiot.com>
113692         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
113693         possible.
113695 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113696             Bruno Haible  <bruno@clisp.org>
113698         * modules/inet_ntop: New file.
113699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113700         inet_ntop.
113702 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113703             Bruno Haible  <bruno@clisp.org>
113705         * m4/inet_ntop.m4: New file.
113707 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113708             Bruno Haible  <bruno@clisp.org>
113710         * lib/inet_ntop.h: New file.
113711         * lib/inet_ntop.c: New file, from glibc with modifications.
113713 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
113715         * modules/time_r (License): Change to LGPL.
113716         * modules/extensions (License): Change to LGPL.  Actually,
113717         the license is more permissive than that, but currently gnulib-tool
113718         doesn't know how to handle more-permissive licenses.
113720         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
113721         Problem reported by Dave Love.
113723 2005-05-08  Jim Meyering  <jim@meyering.net>
113725         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
113726         blank.
113728 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
113730         * modules/argmatch (Depends-on): Add stdbool.
113731         * modules/backupfile (Depends-on): Likewise.
113732         * modules/chdir-long (Depends-on): Likewise.
113733         * modules/closeout (Depends-on): Likewise.
113734         * modules/cycle-check (Depends-on): Likewise.
113735         * modules/dirname (Depends-on): Likewise.
113736         * modules/fnmatch (Depends-on): Likewise.
113737         * modules/fsusage (Depends-on): Likewise.
113738         * modules/fwriteerror (Depends-on): Likewise.
113739         * modules/getcwd (Depends-on): Likewise.
113740         * modules/getloadavg (Depends-on): Likewise.
113741         * modules/hard-locale (Depends-on): Likewise.
113742         * modules/makepath (Depends-on): Likewise.
113743         * modules/mountlist (Depends-on): Likewise.
113744         * modules/nanosleep (Depends-on): Likewise.
113745         * modules/posixtm (Depends-on): Likewise.
113746         * modules/quotearg (Depends-on): Likewise.
113747         * modules/readtokens (Depends-on): Likewise.
113748         * modules/readtokens0 (Depends-on): Likewise.
113749         * modules/readutmp (Depends-on): Likewise.
113750         * modules/save-cwd (Depends-on): Likewise.
113751         * modules/strftime (Depends-on): Likewise.
113752         * modules/userspec (Depends-on): Likewise.
113753         * modules/utimecmp (Depends-on): Likewise.
113754         * modules/xgetcwd (Depends-on): Likewise.
113755         * modules/xnanosleep (Depends-on): Likewise.
113756         * modules/xstrtod (Depends-on): Likewise.
113757         * modules/yesno (Depends-on): Likewise.
113759 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
113761         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
113762         needless checks.
113764 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
113766         Merge from coreutils.  Among other things,
113767         add bulletproofing for cases where stdin, stdout, or stderr are closed.
113768         * lib/fd-safer.c: New file.
113769         * lib/fcntl-safer.h, open-safer.c: Remove.
113770         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
113771         * lib/dup-safer.c: Include unistd-safer.h first.
113772         Don't include errno.h.
113773         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
113774         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
113775         * lib/file-type.c: Rely on file-type.h change.
113776         * lib/getloadavg.c: Include unistd-safer.h.
113777         (getloadavg): Use safer open.
113778         * lib/getusershell.c: Include "stdio-safer.h".
113779         (getusershell): Use safer fopen.
113780         * lib/long-options.c (long_options): Use NULL rather than 0.
113781         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
113782         'free'.
113783         * lib/modechange.c: Likewise.
113784         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
113785         (MODE_DONE): New constant.
113786         (struct mode_change): Remove 'next' member.
113787         (make_node_op_equals): New function; like the old one of the
113788         same name, except it allocates an array.
113789         (mode_compile, mode_create_from_ref): Use it.
113790         (mode_compile): Allocate result as an array, not a linked list.
113791         Parse octal string ourself, so that we catch mistakes like "+0".
113792         (mode_adjust): Arg is an array, not a linked list.
113793         * lib/modechange.c: Include stat-macros.h, xalloc.h.
113794         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
113795         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
113796         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
113797         Remove.  This is now stat-macros.h's job.
113798         (talloc): Remove.  All callers replaced by xalloc, so that
113799         our invokers don't have to worry about reporting memory failures.
113800         (make_node_op_equals): Remove.
113801         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
113802         New constants.
113803         (struct mode_change): Moved here from modechange.h.
113804         (mode_append_entry): Remove.
113805         (mode_compile): Remove MASKED_OPS arg, since it encouraged
113806         apps to have incorrect behavior.  Use simpler algorithm for head
113807         and tail.  Don't futz with umask; that's now the job of mode_adjust.
113808         Detect more invalid usages rather than having somewhat-random behavior.
113809         Don't insert an "a=" action, as that leads to incorrect behavior.
113810         (mode_compile, mode_create_from_ref): Return NULL on error instead
113811         of an enum, since now there's only one way to have an error.  All
113812         callers changed.
113813         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
113814         at the correct time.  Simplify calculation of "+u" and its ilk.
113815         Don't mishandle "+X".
113816         (mode_free): Remove "register" and localize decls.
113817         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
113818         (struct mode_change): Move to modechange.c; callers don't
113819         need to see this stuff.
113820         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
113821         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
113822         (mode_change, mode_adjust): Reflect the new signatures noted above.
113823         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
113824         that might redefine system include files.
113825         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
113826         (my_usleep): Use NULL rather than (void *) 0.
113827         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
113828         Use siginterrupt to specify that system calls should be interrupted.
113829         (rpl_nanosleep): Move initialization of suspended closer to call of
113830         my_usleep.
113831         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
113832         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
113833         (desirable_utmp_entry): New function.
113834         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
113835         using x2nrealloc, to simplify logic.
113836         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
113837         size calculation.  Do not assume utmp file is a regular file.
113838         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
113839         (READ_UTMP_CHECK_PIDS): New constant.
113840         * lib/save-cwd.c: Include unistd-safer.h.
113841         (save_cwd): Use fd_safer.
113842         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
113843         [!_LIBC] Include "stat-macros.h" instead.
113844         * lib/unistd-safer.h (fd_safer): New decl.
113846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
113848         * modules/getloadavg (Depends-on): Add unistd-safer.
113849         * modules/getusershell (Depends-on): Add stdio-safer.
113850         * modules/lstat (Depends-on): Remove xalloc.
113851         * modules/mkstemp (Depends-on): Add stat-macros.
113852         * modules/modechange (Depends-on): Remove xstrtol.
113853         Add stat-macros, xalloc.
113854         * modules/save-cwd (Depends-on): Add unistd-safer.
113855         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
113856         * modules/unistd-safer (Files): Add lib/fd-safer.c
113857         (Makefile.am): Remove lib_SOURCES.
113859         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
113860         Remove fcntl-safer; unistd-safer supersedes it.
113862 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
113864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
113865         AC_HEADER_STAT.
113866         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
113867         (gl_PREREQ_CHOWN): Remove.
113868         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
113869         it.  Don't require AC_HEADER_STAT.
113870         (gl_PREREQ_LSTAT): Remove.
113871         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
113872         Don't require AC_HEADER_STAT.
113873         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
113874         (gl_PREREQ_RMDIR): Remove.
113875         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
113876         mention stat-macros.h or AC_HEADER_STAT, since we'll make
113877         the stat-macros module a prerequisite.
113878         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
113879         * m4/filemode.m4 (gl_FILEMODE): Likewise.
113880         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
113881         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
113882         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
113883         variable names.
113884         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
113885         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
113886         variable prefixes.
113887         * m4/fcntl-safer.m4: Remove.
113888         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
113889         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
113890         Invoke gl_PREREQ_FD_SAFER.
113891         (gl_PREREQ_FD_SAFER): New macro.
113892         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
113893         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
113894         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
113895         Remove duplicate call to AC_LIBOBJ(readutmp).
113896         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
113898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
113899         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
113901 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
113903         * MODULES.html.sh (Misc): Add byteswap.
113905 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
113907         * modules/getcwd (Depends-on): Add extensions.
113908         * modules/openat (Depends-on): Likewise.
113910 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
113912         * modules/byteswap: New file.
113914 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
113916         * m4/byteswap.m4: New file.
113918 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
113920         * lib/byteswap_.h: New file.
113922 2005-04-25  Karl Berry  <karl@gnu.org>
113924         * m4/gettext.m4: Update from GNU gettext 0.14.4.
113926 2005-04-25  Albert Chin  <china@thewrittenword.com>
113928         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
113929         Toolkit C bug.
113931 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
113933         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
113934         (func_ln_if_changed): Remove forcibly for no error message
113935         in case file does not exist.
113937 2005-04-19  Simon Josefsson  <jas@extundo.com>
113939         * gnulib-tool (Options): Make --symlink mean --symbolic.
113941 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
113943         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
113945 2005-04-16  Simon Josefsson  <jas@extundo.com>
113947         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
113949 2005-04-15  Simon Josefsson  <jas@extundo.com>
113951         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
113953 2005-04-15  Simon Josefsson  <jas@extundo.com>
113955         * gnulib-tool: Rename --symlink to --symbolic.
113957 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
113959         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
113960         symbolic links to files instead of copying/moving.  Add --aux-dir,
113961         specifying directory relative --dir where auxiliary build tools
113962         are placed.
113964 2005-04-14  Bruno Haible  <bruno@clisp.org>
113966         * modules/allocsa (License): Change to LGPL.
113967         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
113969 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113971         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
113972         that "UTC +1 second" continues to work.  Problem reported
113973         by Dmitry V. Levin.
113974         (relunit_snumber): New rule.
113975         (relunit): Use it.
113977 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
113979         * lib/getdate.y (universal_time_zone_table): New constant.
113980         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
113981         universal_time_zone_table.
113982         (lookup_zone): Prefer universal_time_zone_table to
113983         local_time_zone_table, so that "GMT" time stamps are allowed in
113984         London during the summer.  Problem reported by Ian Abbott.
113986 2005-04-12  Jim Meyering  <jim@meyering.net>
113988         * lib/human.c (humblock): Set *options even when returning due to
113989         xstrtoumax conversion failure.  Thanks to a used-uninitialized
113990         warning from gcc-4.
113992 2005-04-09  Jim Meyering  <jim@meyering.net>
113994         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
113995         -Wuninitialized: initialize tm0.tm_year.
113997 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
113999         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
114000         count, since there's no maximum.  All uses changed.
114001         Add member dsts_seen.
114002         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
114003         not being INT_MAX.
114004         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
114005         Use pc_rels_seen to decide whether a date is absolute.
114007         * lib/getdate.y (number): Don't overwrite year.
114008         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
114009         check.
114011 2005-04-02  Simon Josefsson  <jas@extundo.com>
114013         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
114014         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
114016 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
114018         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
114019         where no absolute path name can be longer than PATH_MAX.
114021 2005-03-27  Jim Meyering  <jim@meyering.net>
114023         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
114025 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
114027         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
114028         "one's complement" -> "ones' complement" in comment, as per Knuth.
114029         "value of type" -> "type or expression" in comment.
114030         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
114032 2005-03-26  Jim Meyering  <jim@meyering.net>
114034         Comment nits.
114035         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
114036         Correct typos: s/or/of/.
114038 2005-03-26  Jim Meyering  <jim@meyering.net>
114040         * modules/check-include-files: Move to ../ and rename to...
114041         * check-module: ...this.
114043 2005-03-25  Jim Meyering  <jim@meyering.net>
114045         * modules/xvasprintf (Files): Add xalloc.h.
114047 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
114049         * modules/gettext (Files): config/config.rpath ->
114050         build-aux/config.rpath
114051         * modules/iconv (Files): Likewise.
114052         Problem reported by Oskar Liljeblad.
114054 2005-03-23  Jim Meyering  <jim@meyering.net>
114056         * modules/check-include-files: New script to check for
114057         missing dependencies, multiple includes, etc.
114059         * modules/c-strtold (Depends-on): Add xalloc.
114060         * modules/c-strtod (Depends-on): Add xalloc.
114061         * modules/hash (Depends-on): Add xalloc.
114062         (Files): Remove lib/xalloc.h.
114064         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
114065         * modules/userspec (Files): Add lib/inttostr.h.
114067 2005-03-23  Jim Meyering  <jim@meyering.net>
114069         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
114071 2005-03-22  Jim Meyering  <jim@meyering.net>
114073         * modules/stat-macros: New module.
114074         * modules/canonicalize, modules/euidaccess, modules/file-type,
114075         * modules/filemode, modules/lchown, modules/makepath,
114076         * modules/rmdir, modules/stat: Depend on new stat-macros module
114077         rather than listing lib/stat-macros.h manually.
114078         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
114080 2005-03-22  Jim Meyering  <jim@meyering.net>
114082         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
114084 2005-03-22  Bruno Haible  <bruno@clisp.org>
114086         * config/srclist.txt: Replace target directory 'config' with
114087         'build-aux'.
114088         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
114089         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
114090         ../build-aux/.
114092 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
114094         * modules/chdir-long (Depends-on): Add mempcpy.
114096         * modules/acl, modules/backupfile, modules/c-strtod,
114097         modules/c-strtold, modules/canon-host, modules/canonicalize,
114098         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
114099         modules/exclude, modules/exitfail, modules/file-type,
114100         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
114101         modules/getdate, modules/getline, modules/getpagesize,
114102         modules/getpass, modules/getugroups, modules/group-member,
114103         modules/hard-locale, modules/hash, modules/human, modules/idcache,
114104         modules/inttostr, modules/long-options, modules/makepath,
114105         modules/md5, modules/memcasecmp, modules/memcoll,
114106         modules/modechange, modules/mountlist, modules/path-concat,
114107         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
114108         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
114109         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
114110         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
114111         modules/strftime, modules/strndup, modules/strverscmp,
114112         modules/timespec, modules/unlocked-io, modules/userspec,
114113         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
114114         modules/yesno:
114115         Remove lib_SOURCES line from Makefile.am section, as this is now
114116         done automatically by the corresponding Autoconf macro.
114118 2005-03-21  Jim Meyering  <jim@meyering.net>
114120         Changes imported from coreutils.
114122         * lib/cycle-check.c: Don't include xalloc.h.
114124         * lib/path-concat.c: Don't include assert.h.
114125         (path_concat): Remove assertion that would have triggered
114126         for ABASE starting with more than one slash.
114127         Reported by Andreas Schwab.
114129         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
114130         properly when ABASE is an absolute file name.
114131         Correct the description of this function.
114132         Include <assert.h>.
114133         Add an assertion and a test driver.
114134         This fixes a bug introduced on 2004-07-02.
114135         Andreas Schwab reported the resulting failure of cp --parents:
114136         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
114138 2005-03-21  Jim Meyering  <jim@meyering.net>
114140         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
114141         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
114143 2005-03-21  Jim Meyering  <jim@meyering.net>
114144         and  Paul Eggert  <eggert@cs.ucla.edu>
114146         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
114147         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
114148         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
114149         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
114150         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
114151         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
114152         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
114153         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
114154         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
114155         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
114156         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
114157         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
114158         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
114159         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
114160         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
114161         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
114162         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
114163         for these modules.
114165 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
114167         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
114168         (which shouldn't happen), generate nothing instead of returning 0
114169         immediately, so that nstrftime (NULL, ...) doesn't return 0.
114171 2005-03-16  Bruno Haible  <bruno@clisp.org>
114173         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
114174         HAVE_LONGLONG_64BIT.
114176 2005-03-16  Bruno Haible  <bruno@clisp.org>
114178         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
114179         HAVE_LONGLONG_64BIT.
114181 2005-03-16  Bruno Haible  <bruno@clisp.org>
114183         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
114184         HAVE_LONGLONG_64BIT.
114186 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114188         * lib/strftime.c (my_strftime): Prepend space to format so that we can
114189         reliably distinguish strftime failure from empty output on POSIX
114190         hosts.
114192 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
114194         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
114195         (iconv_string): Don't guess a size-zero buffer, as that might cause
114196         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
114197         result would be 'too large', where 'too large' is (heuristically)
114198         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
114199         overflow concerns.  This will prevent some unwanted malloc failures
114200         when the inputs are very large.
114202 2005-03-15  Karl Berry  <karl@gnu.org>
114204         * config/srclist.txt (config.rpath): from gettext.
114205         * config/config.rpath: update.
114207 2005-03-15  Bruno Haible  <bruno@clisp.org>
114209         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
114210         to 'negate'.
114212         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
114213         variable.
114215         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
114216         results.
114218 2005-03-14  Simon Josefsson  <jas@extundo.com>
114220         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
114221         <fx@gnu.org>.
114223 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
114225         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
114226         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
114227         intprops.h.
114228         * lib/strtol.c: Likewise.
114230 2005-03-14  Jim Meyering  <jim@meyering.net>
114232         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
114233         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
114234         to be nonzero so that we (and caller) can detect the difference
114235         between a valid zero-length expansion and an error return, even
114236         when the underlying strftime fails before writing anything into
114237         that location.
114239 2005-03-14  Bruno Haible  <bruno@clisp.org>
114241         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
114242         Update from GNU gettext 0.14.3.
114244 2005-03-10  Jim Meyering  <jim@meyering.net>
114246         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
114248 2005-03-10  Jim Meyering  <jim@meyering.net>
114250         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
114251         so that this module works on systems without fchdir.
114253 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
114255         Factor int-properties macros into a single file, except for
114256         glibc-related files.
114257         * lib/intprops.h: New file.
114258         * lib/getloadavg.c: Include it instead of limits.h.
114259         (INT_STRLEN_BOUND): Remove.
114260         * lib/human.c: Include intprops.h.
114261         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
114262         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
114263         302/1000.
114264         * lib/inttostr.h: Include intprops.h instead of limits.h.
114265         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
114266         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
114267         for consistency with intprops.h.
114268         (time_t_is_integer, twos_complement_arithmetic): Use them.
114269         * lib/sig2str.h: Include <signal.h>, intprops.h.
114270         (INT_STRLEN_BOUND): Remove.
114271         * lib/strftime.c (TYPE_SIGNED): Remove.
114272         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
114273         * lib/strtol.c: Adjust comments to match intprops.h.
114274         * lib/userspec.c: Include intprops.h.
114275         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
114276         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
114277         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
114278         instead of rolling our own expressions.
114279         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
114281         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
114282         instead of int.
114283         (my_strftime): Do not mishandle years close to INT_MAX, by doing
114284         the right thing even if adding 1900 would overflow.  Similarly
114285         for tm_mon + 1 and tm_yday + 1.
114286         Make %Y always equivalent to %C%y, and similarly for %G and %g.
114287         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
114288         (DO_SIGNED_NUMBER): New macro.
114289         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
114291 2005-03-07  Bruno Haible  <bruno@clisp.org>
114293         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
114295 2005-03-07  Bruno Haible  <bruno@clisp.org>
114297         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
114299 2005-03-04  Derek R. Price  <derek@ximbiot.com>
114301         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
114302         (func_import): Only replace files via --import when they have actually
114303         changed.
114305 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114307         * m4/mmap-anon.m4: New file.
114308         * m4/pagealign_alloc.m4: New file.
114310 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114311             Bruno Haible  <bruno@clisp.org>
114313         * modules/pagealign_alloc: New file.
114314         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
114316 2005-03-03  Derek R. Price  <derek@ximbiot.com>
114317             Bruno Haible  <bruno@clisp.org>
114319         * lib/pagealign_alloc.h: New file.
114320         * lib/pagealign_alloc.c: New file.
114322 2005-03-03  Bruno Haible  <bruno@clisp.org>
114324         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
114325         Use an all-permissive copyright notice, recommended by RMS.
114327 2005-03-02  Bruno Haible  <bruno@clisp.org>
114329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
114330         of AIX, the replacement has to be done only after <string.h> is
114331         included, therefore not in config.h. stpncpy.h does the replacement,
114332         and stpncpy.c uses it.
114334 2005-03-02  Bruno Haible  <bruno@clisp.org>
114336         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
114337         stpncpy.c uses it.
114339 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114341         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
114342         The workaround isn't strictly needed for POSIX conformance, and
114343         it's too much of a pain to configure and maintain.  We'll ask
114344         people to fix their kernels instead.
114345         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
114346         (NANOSLEEP_BUG_WORKAROUND): Remove.
114347         (xnanosleep): Remove the workaround.
114349 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114351         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
114352         Reported by Derek Price.
114353         (Include): Add "timespec.h".
114355         * modules/xnanosleep (Depends-on): Remove gethrxtime.
114357 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114359         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
114360         to detect nanosleep bug.
114362 2005-03-01  Bruno Haible  <bruno@clisp.org>
114364         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
114366 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114368         * modules/gethrxtime: New file.
114369         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
114370         (Depends-on): Add gethrxtime.
114371         (configure.ac): Add gl_XNANOSLEEP.
114372         (Makefile.am): Remove lib_SOURCES line.
114374 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114376         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
114377         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
114379 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
114381         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
114382         * lib/timespec.h (gettime): Return void, since it always
114383         succeeds now.  All uses changed.
114384         * lib/gettime.c (gettime): Likewise.
114385         [HAVE_NANOTIME]: Prefer nanotime.
114386         Assume gettimeofday succeeds, as POSIX requires.
114387         Assime time () succeeds, since other code already does.
114388         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
114389         (timespec_subtract): Remove.
114390         (NANOSLEEP_BUG_WORKAROUND): New constant.
114391         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
114392         things considerably.  Use it only on GNU/Linux hosts, since the
114393         workaround shouldn't be needed elsewhere.
114395 2005-02-24  Bruno Haible  <bruno@clisp.org>
114397         * modules/gettext (Files): Add m4/glibc2.m4.
114399 2005-02-24  Bruno Haible  <bruno@clisp.org>
114401         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
114402         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
114403         * m4/progtest.m4:
114404         Update from GNU gettext 0.14.2.
114405         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
114407 2005-02-24  Bruno Haible  <bruno@clisp.org>
114409         * lib/localcharset.c: Update from GNU gettext 0.14.2.
114410         * lib/config.charset: Update from GNU gettext 0.14.2.
114412 2005-02-24  Bruno Haible  <bruno@clisp.org>
114414         * lib/gettext.h: Update from GNU gettext 0.14.2.
114416 2005-02-23  Simon Josefsson  <jas@extundo.com>
114418         * m4/iconvme.m4: New file.
114420 2005-02-23  Jim Meyering  <jim@meyering.net>
114422         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
114423         change.
114424         Thanks to Bruno Haible for catching it.
114426 2005-02-22  Simon Josefsson  <jas@extundo.com>
114428         * modules/iconvme: New file.
114430         * MODULES.html.sh: Add iconvme.
114432 2005-02-22  Simon Josefsson  <jas@extundo.com>
114434         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
114436 2005-02-22  Simon Josefsson  <jas@extundo.com>
114438         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
114440 2005-02-22  Jim Meyering  <jim@meyering.net>
114442         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
114443         s/ifndef/ifdef/.
114445 2005-02-20  Neil Conway  <neilc@samurai.com>
114447         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
114448         returned by OSX/Darwin if the specified buffer is not large
114449         enough for the hostname.
114451 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114453         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
114454         pass it to _help, otherwise the latter coredumps trying to
114455         dereference state.root_argp.
114457 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114459         * modules/chdir-long (Depends-on): Add memrchr.
114460         * modules/memrchr (Files): Add lib/memrchr.h.
114461         (Include): "memrchr.h".
114463 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114465         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
114467 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
114469         * lib/memrchr.h: New file.
114470         * lib/chdir-long.c: Include it.
114471         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
114472         Don't bother including stddef.h.
114474 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
114476         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
114477         inclusion.
114478         Include <sys/types.h>, for dev_t.
114479         (ME_DUMMY, ME_REMOTE): Move from here....
114480         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
114481         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
114482         Dmitry V. Levin.
114483         Include mountlist.h first, to test the interface.
114485 2005-01-29  Bruno Haible  <bruno@clisp.org>
114487         * lib/progname.c (program_name): Initialize.
114488         Needed when linking statically on MacOS X.
114490 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
114492         Sync from coreutils.
114493         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
114494         (Depends-on): Add c-strtod.
114495         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
114497 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
114499         Sync from coreutils.
114500         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
114502         Remove files that are specific to coreutils.
114503         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
114505 2005-01-28  Bruno Haible  <bruno@clisp.org>
114507         * modules/javacomp: New file.
114508         * MODULES.html.sh (Java): Add javacomp.
114510 2005-01-28  Bruno Haible  <bruno@clisp.org>
114512         * m4/javacomp.m4: New file, from GNU gettext.
114514 2005-01-28  Bruno Haible  <bruno@clisp.org>
114516         * lib/javacomp.sh.in: New file, from GNU gettext.
114517         * lib/javacomp.h: New file, from GNU gettext.
114518         * lib/javacomp.c: New file, from GNU gettext.
114520 2005-01-26  Simon Josefsson  <jas@extundo.com>
114522         * lib/gai_strerror.c: Use GPL in header.
114524 2005-01-26  Bruno Haible  <bruno@clisp.org>
114526         * modules/javaexec: New file.
114527         * MODULES.html.sh (Java): Add javaexec.
114529 2005-01-26  Bruno Haible  <bruno@clisp.org>
114531         * m4/javaexec.m4: New file, from GNU gettext.
114533 2005-01-26  Bruno Haible  <bruno@clisp.org>
114535         * lib/javaexec.sh.in: New file, from GNU gettext.
114536         * lib/javaexec.h: New file, from GNU gettext.
114537         * lib/javaexec.c: New file, from GNU gettext.
114539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114541         * modules/lchown (Depends-on): Remove lchown.h
114543 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114545         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
114546         must be defined if the header file was not found, in order
114547         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
114549 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114551         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
114552         initializers for struct pentry_state.
114553         (__argp_error): Check return value of __asprintf
114554         (__argp_failure): Translate error message
114556         * lib/argp-parse.c: Removed braces around the expansion of N_()
114558 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114560         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
114561         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
114562         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
114563         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
114564         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
114565         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
114566         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
114567         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
114568         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
114569         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
114570         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
114571         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
114572         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
114573         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
114574         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
114575         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
114576         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
114577         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
114578         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
114579         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
114580         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
114581         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
114582         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
114583         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
114584         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
114585         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
114586         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
114587         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
114588         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
114589         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
114590         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
114591         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
114592         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
114593         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
114594         xstrtol.m4, xstrtoumax.m4, yesno.m4:
114595         Use an all-permissive copyright notice, recommended by RMS.
114597 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
114599         * modules/chdir-long (Depends-on): Remove mempcpy.
114601 2005-01-21  Jim Meyering  <jim@meyering.net>
114603         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
114604         same value as for Solaris 9.
114606         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
114607         component length.  This included changing the parameter to be
114608         of type `char *' rather than `char const *'.
114609         * lib/chdir-long.h (chdir_long): Update prototype.
114611         * lib/openat.c (fdopendir, fstatat): New functions.
114612         * lib/openat.h: Include headers required for use of DIR and struct
114613         stat.
114614         [AT_SYMLINK_NOFOLLOW]: Define.
114615         (fdopendir, fstatat): Add prototypes.
114617 2005-01-21  Bruno Haible  <bruno@clisp.org>
114619         * modules/classpath: New file.
114620         * MODULES.html.sh (Java): Add classpath.
114622 2005-01-21  Bruno Haible  <bruno@clisp.org>
114624         * lib/classpath.h: New file, from GNU gettext.
114625         * lib/classpath.c: New file, from GNU gettext.
114627 2005-01-20  Simon Josefsson  <jas@extundo.com>
114629         * modules/version-etc-fsf: New file.
114631 2005-01-20  Simon Josefsson  <jas@extundo.com>
114633         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
114634         * lib/version-etc.c: Remove version_etc_copyright.
114635         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
114636         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
114638 2005-01-20  Simon Josefsson  <jas@extundo.com>
114640         * lib/base64.h (isbase64): Add.
114642         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
114643         using a unsigned prototype, don't inline.
114644         (base64_decode): Use it.
114646 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114648         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
114649         it.
114651 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114653         * lib/save-cwd.c (save_cwd): Remove code to support the case
114654         where fchdir is missing or flaky.
114656 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114658         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
114660 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
114662         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
114663         AC_LIBSOURCES now does this.
114664         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
114665         with new ullong_max module.
114667 2005-01-19  Bruno Haible  <bruno@clisp.org>
114669         * modules/sh-quote: New file.
114670         * MODULES.html.sh (Executing programs): Add sh-quote.
114672 2005-01-19  Bruno Haible  <bruno@clisp.org>
114674         * lib/sh-quote.h: New file, from GNU gettext.
114675         * lib/sh-quote.c: New file, from GNU gettext.
114677 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
114679         Merge from coreutils.
114680         * m4/ullong_max.m4: New file.
114681         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
114682         (gl_MACROS): Assume localeconv exists.
114684 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
114686         Merge changes from coreutils, as described below in several
114687         changelogs dated today.
114689         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
114690         (O_DIRECTORY): Remove; not needed here, since "." must be
114691         a directory.  All uses removed.
114692         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
114693         universal on Suns, and we also need to test for IRIX.
114694         Revamp code to use 'if' rather than '#if'.
114695         Avoid unnecessary comparison of cwd->desc to 0.
114697         * lib/utimens.c (futimens): Robustify the previous patch, by checking
114698         for known valid error numbers rather than observed invalid ones.
114700 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
114702         * modules/ullong_max: New file.
114704         * modules/chdir-long, modules/openat: New files.
114705         * modules/save-cwd (Depends-on): Depend on chdir-long.
114706         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
114708 2005-01-18  Jim Meyering  <jim@meyering.net>
114710         Merge from coreutils.
114711         * m4/chdir-long.m4, m4/openat.m4: New files.
114712         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
114713         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
114714         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
114715         is sane and DOES follow symlinks.  Besides, testing 20 different
114716         systems found no broken chown implementations.
114717         Prompted by a change in rsync's copy of this macro.
114718         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
114720         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
114722         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
114723         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
114724         NULL-means-set-to-current-time semantics.
114725         Remove temporary file immediately, rather than waiting
114726         for configure's at-exit trap code to do it.
114728 2005-01-18  Jim Meyering  <jim@meyering.net>
114730         * lib/version-etc.c (version_etc_copyright): Update copyright date.
114732         * lib/utimens.c (futimens): Account for the fact that futimes
114733         can also fail with errno == ENOSYS or errno == ENOENT.
114734         Patch from Dmitry V. Levin.
114736         Change the name of the robust chdir function from chdir to chdir_long.
114737         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
114738         (restore_cwd): Use chdir_long, not chdir.
114739         * lib/chdir-long.c: Renamed from chdir.c.
114740         * lib/chdir-long.h: Renamed from chdir.h.
114741         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
114742         Hurd.
114744 2005-01-18  Bruno Haible  <bruno@clisp.org>
114746         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
114747         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
114748         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
114749         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
114750         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
114751         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
114752         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
114753         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
114754         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
114755         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
114756         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
114757         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
114758         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
114759         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
114760         Use an all-permissive copyright notice, recommended by RMS.
114762 2005-01-18  Bob Proulx  <bob@proulx.com>
114764         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
114765         simplify offsetof() macro construct to avoid compile failure with
114766         native HP-UX 11.0 ANSI C compiler.
114768 2005-01-17  Bruno Haible  <bruno@clisp.org>
114770         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
114771         redundant because stpncpy.m4 takes care of it.
114773 2005-01-17  Bruno Haible  <bruno@clisp.org>
114775         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
114777 2005-01-17  Bruno Haible  <bruno@clisp.org>
114779         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
114780         used.
114782 2005-01-17  Bruno Haible  <bruno@clisp.org>
114784         * lib/fwriteerror.h (fwriteerror): Change specification to include
114785         fclose.
114786         * lib/fwriteerror.c: Include <stdbool.h>.
114787         (fwriteerror): At the end, close the file stream. Record whether
114788         stdout was already closed.
114790 2005-01-17  Bruno Haible  <bruno@clisp.org>
114792         * lib/execute.c (environ): Declare if needed.
114793         * lib/pipe.c (environ): Likewise.
114794         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
114796 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114798         * modules/argp: Depend on vsnprintf
114800 2005-01-10  Jim Meyering  <jim@meyering.net>
114802         * modules/closeout (Depends-on): Add atexit.
114804 2005-01-06  Bruno Haible  <bruno@clisp.org>
114806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
114808 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114810         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
114811         definitions to be after all include files, to avoid collisions.
114812         Problem reported by Bob Proulx.
114814 2005-01-04  Jim Meyering  <jim@meyering.net>
114816         Changes imported from coreutils.
114817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
114818         as the mkstemp template, use a temporary directory and an
114819         8.3-friendly template to avoid trouble on systems like DJGPP.
114820         Reported by Juan M. Guerrero via Stepan Kasal.
114821         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
114822         close. Remove the temporary directory right away, rather than waiting
114823         for configure's at-exit trap code to do it.
114824         Suggestion from Stepan Kasal.
114826 2005-01-01  Simon Josefsson  <jas@extundo.com>
114828         * gnulib-tool: Print #include directives when --import'ing.
114830 2004-12-28  Simon Josefsson  <jas@extundo.com>
114832         * tests/test-base64.c: Include required header files.  Remove
114833         unused variables.
114835 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
114837         * modules/error (Depends-on): Remove gettext.
114839 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
114841         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
114842         not needed.  This removes a dependency on the gettext module.
114843         [defined _LIBC]: Do not include <libintl.h>; not needed.
114845 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
114847         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
114848         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
114850 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
114852         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
114853         HAVE_DECL_STRTOLD.
114855 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
114857         * modules/getdate (Depends-on): Remove alloca-opt.
114859 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
114861         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
114863 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
114865         * lib/argp-parse.c: Include <stddef.h>.
114866         (alignof, alignto): New macros.
114867         (parser_init): Don't assume that void * is aligned sufficiently
114868         for struct option.
114870         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
114871         need to extend the stack.
114872         (YYINITDEPTH): New macro, so that the initial stack isn't overly
114873         large.
114875 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114877         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
114879 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
114881         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
114882         (2004-10-24) change.  Apparently this was a false alarm.
114884         * modules/getdate: Depend on alloca-opt, not alloca.
114886 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
114888         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
114889         Remove now-obsolete comment about AIX.
114890         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
114891         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
114892         (YYMAXDEPTH): New macro.
114894 2004-12-18  Simon Josefsson  <jas@extundo.com>
114896         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
114898 2004-12-18  Bruno Haible  <bruno@clisp.org>
114900         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
114902 2004-12-18  Bruno Haible  <bruno@clisp.org>
114904         * lib/fatal-signal.c (fatal_signals): Make non-const.
114905         (init_fatal_signals): New function.
114906         (uninstall_handlers, install_handlers): Ignore signals that were set to
114907         SIG_IGN.
114908         (at_fatal_signal): Call init_fatal_signals.
114909         (init_fatal_signal_set): Likewise. Ignore signals that were set to
114910         SIG_IGN.
114911         Reported by Paul Eggert.
114913 2004-12-18  Bruno Haible  <bruno@clisp.org>
114915         * doc/alloca.texi: New file.
114916         * doc/alloca-opt.texi: New file.
114918 2004-12-17  Jim Meyering  <jim@meyering.net>
114920         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
114921         Otherwise, install-sh could exit with improper exit status when
114922         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
114924 2004-12-16  Simon Josefsson  <jas@extundo.com>
114926         * tests/test-base64.c: Add license.
114928 2004-12-15  Stepan Kasal  <address@hidden>
114930         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
114932 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
114934         * modules/getcwd (Files): Add m4/d-ino.m4.
114935         Suggested by Mark D. Baushke.
114937 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
114939         * lib/getdate.y (textint): New member "negative".
114940         (time_zone_hhmm): New function.
114941         Expect 14 shift-reduce conflicts, not 13.
114942         (o_colon_minutes): New rule.
114943         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
114944         (yylex): Set the "negative" member of signed numbers.
114946 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
114948         * doc/getdate.texi (Time of day items, Time zone items):
114949         Describe new formats +00:00, UTC+00:00.
114951 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114953         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
114954         spurious "-l"s.  Problem reported by Stepan Kasal.
114956 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
114958         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
114959         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
114961 2004-12-04  Simon Josefsson  <jas@extundo.com>
114963         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
114964         Vandoorselaere <yoann@prelude-ids.org>.
114966 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
114968         Changes imported from coreutils.
114969         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
114970         exist.
114971         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
114973 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
114975         Changes imported from coreutils.
114976         * lib/hard-locale.c: Assume <locale.h> exists.
114977         Include "strdup.h".
114978         (GLIBC_VERSION): New macro.
114979         (hard_locale): Assume setlocale exists.
114980         Rewrite to avoid #ifdef.
114981         Use strdup rather than malloc + strcpy.
114982         * lib/human.c: Assume <locale.h> exists.
114983         (human_readable): Assume localeconv exists.
114985 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
114987         * modules/hard-locale (Depends-on): Add strdup.
114989 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
114991         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
114992         convert T2, not T.  (Imported from libc.)
114994 2004-11-30  Simon Josefsson  <jas@extundo.com>
114996         * modules/restrict (License): Change to LGPL.
114998 2004-11-30  Simon Josefsson  <jas@extundo.com>
115000         * m4/restrict.m4: Add copyright and copying conditions.
115002 2004-11-30  Simon Josefsson  <jas@extundo.com>
115004         * m4/base64.m4: New file.
115006 2004-11-30  Simon Josefsson  <jas@extundo.com>
115008         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
115009         base64.
115011         * tests/test-base64.c: New file.
115013         * modules/base64: New file.
115015 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
115018         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
115020         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
115022 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
115024         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
115025         (__getcwd.c): Don't restore errno; glibc doesn't.
115026         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
115027         first, falling back to our code only if its results look suspicious.
115028         Ensure that the resulting buffer is only as large as necessary.
115030         * lib/readutmp.c: Include readutmp.h first.
115031         Include <errno.h>, since readutmp.h no longer does that.
115032         * lib/readutmp.h: Don't include <errno.h>,
115033         <sys/param.h>, <time.h>; not needed to establish interface.
115034         (errno): Remove decl.
115035         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
115036         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
115037         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
115039 2004-11-28  Simon Josefsson  <jas@extundo.com>
115041         * lib/base64.h, base64.c: New file.
115043 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
115045         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
115047 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
115049         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
115050         (Depends-on): Remove pathmax, same.  Add mempcpy.
115051         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
115052         (Makefile.am): Append getcwd.h to lib_SOURCES.
115053         (Include): Add getcwd.h.
115054         (Maintainer): Change from Jim Meyering to "all, glibc",
115055         since getdate now uses intended-for-glibc code.
115056         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
115057         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
115059 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115061         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
115062         HP's ANSI C compiler.
115063         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
115064         Declaring int functions causes warnings on some modern systems and
115065         shouldn't be needed to compile on ancient ones.
115066         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
115067         defined.
115069         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
115070         with the following changes.
115071         (__set_errno): Parenthesize properly.
115072         Include <stdbool.h>.
115073         (MIN, MAX, MATCHING_INO): New macros.
115074         (__getcwd): Define with prototype, not K&R form.
115075         Use heuristics to allocate default buffer on stack if possible.
115076         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
115077         behavior, and to avoid the PATH_MAX limit when computing
115078         ../../../../...
115079         Use MATCHING_INO to compare inode number to file.
115080         Check for arithmetic overflow in size calculations.
115081         Fix bug in reallocation of dot array that caused getcwd to fail
115082         on directories nested deeper than 75.
115083         Be more careful about saving errno on error.
115084         Do not use realloc; use only free+malloc, as this is a bit
115085         more flexible and avoids a needless copy operation.
115086         Do not inspect st_dev and st_ino for symbolic links; POSIX
115087         doesn't specify the latter.
115088         Check for closedir errors.
115089         Avoid needless casts.
115090         Use "#ifdef weak_alias" around weak_alias, to be like other
115091         glibc code.
115092         The following changes to getcwd.c have effect only when used in
115093         gnulib; they have no effect inside glibc proper.
115094         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
115095         as alloca isn't used.
115096         (alloca, __alloca): Likewise.
115097         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
115098         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
115099         unconditionally, as gnulib assumes C89 or better.
115100         Do not include <sys/param.h>.
115101         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
115102         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
115103         better.
115104         (NULL) [!defined NULL]: Remove; we assume C89 or better.
115105         Include <dirent.h> in a way that is compatible with modern Autoconf.
115106         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
115107         New macros, if not already defined.
115108         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
115109         Use "_LIBC", not "defined _LIBC", for consistency.
115110         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
115111         a mempcpy module.
115112         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
115113         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
115114         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
115115         credit only to Jim Meyering and adjust the copyright dates.
115116         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
115117         <stdlib.h>, <unistd.h>, "pathmax.h".
115118         Instead, include "xgetcwd.h" (first) and "getcwd.h".
115119         (INITIAL_BUFFER_SIZE): Remove.
115120         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
115122 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115124         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
115125         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
115126         Use the _ONCE methods, for efficiency.
115127         Check for fcntl.h.  In test program, include <errno.h>
115128         and <fcntl.h> if available.  Remove old K&R cruft from
115129         test program.  Check for common errors in GNU/Linux,
115130         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
115131         don't do AC_LIBOBJ, as that's getcwd.m4's job.
115132         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
115133         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
115134         name accordingly.
115135         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
115136         accommodate new getcwd.c.
115137         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
115138         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
115139         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
115140         that's all we need now.
115142 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115144         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
115145         argp-parse.c depends on getopt internals, that means we should
115146         always use our getopt, to be on the safe side.
115147         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
115148         order not to spoil the result of an eventual previous invocation
115149         of gl_GETOPT_SUBSTITUTE.
115151 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115153         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
115154         redefinition warnings. To avoid them, include the defines
115155         in `#if !defined __need_getopt ... #endif'. The only place
115156         where __getopt_argv_const is used is in definitions
115157         of getopt_long and getopt_long_only below, which are as well
115158         protected by `#ifndef __need_getopt'.
115159         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
115160         __need_getopt after including <stdio.h> and <unistd.h> These
115161         headers might have defined it.
115163 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115165         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
115167 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
115169         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
115170         (futimens): New function, which uses futimes if available.
115171         (futimens, utimens): Support timespec==NULL, with same semantics
115172         as utime and utimens.
115173         * lib/utimens.h (futimens): New decl.
115175 2004-11-23  Jim Meyering  <jim@meyering.net>
115177         * lib/getopt_.h: Remove trailing blanks.
115179 2004-11-23  Jim Meyering  <jim@meyering.net>
115181         * lib/__fpending.c: Add comment.
115183 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
115185         * modules/canonicalize (Depends-on): Add xreadlink.
115186         Problem reported by James Youngman.
115188 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
115190         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
115191         New macros.
115192         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
115193         optopt): Use them instead of invoking ## directly; otherwise, the
115194         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
115196 2004-11-19  Bruno Haible  <bruno@clisp.org>
115198         * lib/strtok_r.c: Move comments from here...
115199         * lib/strtok_r.h: ... to here.
115201 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115203         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
115204         implementations that mishandle size_t overflow.
115206 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
115208         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
115209         might fail.  Problem reported by Yoann Vandoorselaere.
115210         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
115211         implementations that mishandle size_t overflow.
115213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115215         * modules/canon-host (Depends-on): Add strdup.
115217 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115219         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
115221 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115223         * lib/canon-host.c: Include "strdup.h".
115224         (canon_host): Use getaddrinfo if available, so that IPv6 works.
115225         Use strdup instead of malloc/strcpy to duplicate strings.
115227         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
115228         (human_space_before_unit): New constant.
115229         * lib/human.c (human_readable): Support it.
115231         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
115232         (xgetcwd): Set errno correctly when failing.
115233         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
115234         the failure is actually due to a PATH_MAX problem.
115236         Further getopt changes to make it more likely that glibc will
115237         buy the changes back.
115238         * lib/getopt.c (POSIXLY_CORRECT): New constant.
115239         (getopt): Use it, so to preserve glibc semantic
115240         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
115241         when compiling for libc.
115242         * lib/getopt_.h (__getopt_argv_const): Bring it back.
115243         (getopt_long, getopt_long_only): Use it.
115245         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115246         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
115247         (getopt): Argv is now char * const *, as per standard.
115248         (_getopt_internal_r, _getopt_internal): Argv is now char **,
115249         not char *__getopt_argv_const *.
115250         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115251         _getopt_long_only_r): Likewise.
115252         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
115253         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115254         _getopt_long_r, _getopt_long_only_r): Likewise.
115255         * lib/getopt_.h (__getopt_argv_const): Remove.
115256         (getopt): Argv is now char * const *, as per standard.
115258         * lib/getdate.y (tORDINAL): New token.
115259         (day, relunit): Allow it for relative times.
115260         (relative_time_table): Use tORDINAL for ordinals.
115262 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
115264         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
115265         Document that "second" isn't allowed as an ordinal number.
115267 2004-11-16  Jim Meyering  <jim@meyering.net>
115269         * modules/closeout (Depends-on): Add fpending.
115271 2004-11-15  Jim Meyering  <jim@meyering.net>
115273         * lib/closeout.c: Include "__fpending.h" once again.
115274         Include <stdbool.h>.
115275         (close_stdout): Don't fail just because stdout was closed initially,
115276         since some programs don't write to stdout in the normal course of
115277         operation (other than --version and --help), and we don't want this
115278         function to make e.g. `touch file >&-' fail.
115279         But do fail if it was closed and someone has tried to write to it.
115280         E.g., `printf foo >&-' must fail.
115282 2004-11-13  Jim Meyering  <jim@meyering.net>
115284         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
115286 2004-11-12  Simon Josefsson  <jas@extundo.com>
115288         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
115289         small doc fix is still pending.
115291 2004-11-11  Simon Josefsson  <jas@extundo.com>
115293         * modules/strtok_r: New file.
115295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115296         strtok_r.
115298 2004-11-11  Simon Josefsson  <jas@extundo.com>
115300         * m4/strtok_r.m4: New file.
115302         * m4/getopt.m4: Replace opterr.
115304 2004-11-11  Simon Josefsson  <jas@extundo.com>
115306         * lib/strtok_r.h, strtok_r.c: New file.
115308 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115310         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
115311         of replacing opterr, getopt, etc.  This should handle the
115312         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
115314 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
115316         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
115317         we can stop lying to compilers about the constness of argv when we
115318         are compiled outside glibc.
115319         (getopt, getopt_long, getopt_long_only): Use it.
115320         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
115321         _getopt_internal, getopt): Likewise.
115322         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
115323         _getopt_long_only_r): Likewise.
115324         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
115325         _getopt_long_r, _getopt_long_only_r): Likewise.
115327         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
115328         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
115329         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
115330         the other external symbols.
115331         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
115332         declaration, since the above renaming now works around collisions.
115334 2004-11-11  Jim Meyering  <jim@meyering.net>
115336         * lib/linebreak.c: Remove trailing blanks.
115337         * lib/alloca_.h: Likewise.
115338         * lib/acosl.c: Likewise.
115339         * lib/euidaccess.c: Likewise.
115340         * lib/allocsa.h: Likewise.
115342 2004-11-10  Simon Josefsson  <jas@extundo.com>
115344         * m4/getaddrinfo.m4: New file.
115346 2004-11-10  Simon Josefsson  <jas@extundo.com>
115348         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
115350 2004-11-10  Simon Josefsson  <jas@extundo.com>
115352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115353         getaddrinfo.
115355         * modules/getaddrinfo: New file.
115357 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115359         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
115361 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115363         * lib/mktime.c (SHR): New macro, which is a portable
115364         substitute for >> that should work even on Crays.
115365         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
115366         Problem reported by Mark D. Baushke in
115367         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
115368         * lib/getdate.y (SHR): Likewise.
115369         (tm_diff): Use it.
115370         * lib/strftime.c (SHR): Likewise.
115371         (tm_diff): Use it.
115372         * lib/quotearg.c (struct quoting_options): Use unsigned int for
115373         quote_these_too, so that right shifts are well defined.  All uses
115374         changed.
115376 2004-11-10  Jim Meyering  <jim@meyering.net>
115378         Ensure that no close failure goes unreported.
115379         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
115380         return early when it seems there's nothing to flush.
115381         Don't include __fpending.h.
115383 2004-11-10  Jim Meyering  <jim@meyering.net>
115385         * modules/closeout (Depends-on): Remove fpending.
115387 2004-11-10  Jim Meyering  <jim@meyering.net>
115389         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
115391 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115393         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
115394         gl_FUNC_STRFTIME.
115395         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
115396         and AC_REQUIRE when possible, to avoid duplicate checks.
115397         Check for <wchar.h>.
115399 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
115401         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
115403 2004-11-09  Bruno Haible  <bruno@clisp.org>
115405         * m4/sockpfaf.m4: New file.
115407 2004-11-05  Bruno Haible  <bruno@clisp.org>
115409         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
115410         Reported by Mark D. Baushke <mdb@cvshome.org>.
115412 2004-11-04  Bruno Haible  <bruno@clisp.org>
115414         2004-09-11  Bruno Haible  <bruno@clisp.org>
115415                 * allocsa.valgrind: New file.
115416         2004-02-06  Bruno Haible  <bruno@clisp.org>
115417                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
115418                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
115419                 Reported by Christopher Seip <chris.seip@hp.com>.
115421 2004-11-04  Bruno Haible  <bruno@clisp.org>
115423         * modules/allocsa (Files): Add lib/allocsa.valgrind.
115424         (Makefile.am): Distribute it.
115426 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
115428         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
115429         with errno == ERANGE if the buffer is too small.
115430         Problem reported by Mark D. Baushke.
115432 2004-11-03  Albert Chin  <china@thewrittenword.com>
115433             Paul Eggert  <eggert@cs.ucla.edu>
115435         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
115436         equivalent, substitute $ac_type for equivalent type rather than
115437         blindly using uint32_t *always* which won't work if uint32_t is not
115438         available.  Define _UINT32_T to work around typedef of uint32_t if
115439         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
115440         2.5.1.
115442 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115444         * m4/jm-macros.m4: Sync from coreutils.
115445         (gl_MACROS): Check for mbrlen, for pathchk.
115446         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
115448 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115450         * lib/xreadlink.c (MAXSIZE): New macro.
115451         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
115452         size does not exceed MAXSIZE.  Avoid cast.
115453         As suggested by Mark D. Baushke in
115454         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
115455         if readlink fails with buffer size just under MAXSIZE, try again
115456         with MAXSIZE.
115458 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
115460         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
115462 2004-11-02  Derek R. Price  <derek@ximbiot.com>
115463         and  Paul Eggert  <eggert@cs.ucla.edu>
115465         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
115466         (get_date): Overparenthesize to avoid GCC warning.
115468 2004-11-02  Bruno Haible  <bruno@clisp.org>
115470         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
115471         returns void.
115473 2004-11-02  Bruno Haible  <bruno@clisp.org>
115475         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
115476         function returns void.
115478 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
115480         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
115481         fflush_unlocked, flockfile, funlockfile, funlockfile,
115482         fputs_unlocked, putc_unlocked.
115484 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
115486         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
115487         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
115488         already declared.
115490 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115492         * modules/getdate (Files): Add doc/getdate.texi.
115493         (Depends-on): Add setenv, xalloc.
115495 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115497         * lib/getdate.y: Add support for TZ="foo" within a date string.
115498         Fix some bugs near time_t boundaries.  Reject dates with
115499         out-of-range components, e.g., "Sept 31".
115500         Include <stdlib.h>, "setenv.h", "xalloc.h".
115501         (ISDIGIT_LOCALE): Remove; unused.
115502         Note that the TZ and time functions used here are not reentrant.
115503         (mktime_ok, get_tz): New functions.
115504         (TZBUFSIZE): New constant.
115505         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
115506         This requires that we sometimes generate our own TZ="XXX..." setting.
115508 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115510         * doc/getdate.texi: New file, from coreutils with modifications for
115511         the new TZ parsing.
115513 2004-10-27  Derek R. Price  <derek@ximbiot.com>
115515         * lib/mktime.c (not_equal_tm): Remove redundant check.
115517 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
115519         * modules/regex (lib_SOURCES): Add regex.c.
115520         Reported by James Youngman in
115521         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
115523 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
115525         * lib/getdate.y: Use Bison 1.875 features, and some minor
115526         code cleanups.  This change does not affect semantics.
115527         Don't include <stdlib.h>; no longer needed.
115528         Don't include unlocked-io.h; only the "#if TEST" code uses
115529         stdio, and performance isn't crucial there.
115530         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
115531         Bison 1.875 features as described below.
115532         All uses of "PC." replaced by "pc->".
115533         (YYSTYPE): Add a forward declaration.
115534         (yylex, yyerror): Use full prototypes in forward decls.
115535         Use "%pure-parser" rather than obsolescent "%pure_parser".
115536         Use %parse-param and %lex-param instead of obsolescent
115537         YYPARSE_PARAM and YYLEX_PARAM.
115538         (meridian_table, month_and_day_table, time_units_table,
115539         relative_time_table, time_zone_table, military_table,
115540         lookup_zone, lookup_word, get_date):
115541         Use NULL instead of 0 where appropriate.
115542         (to_hour): Avoid abort (), to avoid a dependency on
115543         stdlib.h.
115544         (yyerror, yylex): Now accepts parser_control * arg.
115545         (main) [TEST]: Use '\0' rather than 0 for char.
115547 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
115549         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
115551 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
115553         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
115554         It's now the caller's responsibility to handle the case where
115555         !HAVE_GETPAGESIZE && !defined getpagesize.
115557         * lib/mktime.c (leapyear): Arg is long int, not int.
115559 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
115561         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
115563 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
115565         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
115566         missing.  Problem reported by James Youngman.
115568 2004-10-16  Simon Josefsson  <jas@extundo.com>
115570         * gnulib-tool: Fix comments.  Fix parse problem.
115571         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
115573 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
115575         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
115576         implementation of getopt_long.  Problem reported by Alexander Taler in:
115577         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
115579 2004-10-15  Bruno Haible  <bruno@clisp.org>
115581         * gnulib-tool: Untabify. Initialize supplied_libname.
115582         (func_usage): More homogenous output.
115583         (func_modules_transitive_closure, func_modules_to_filelist,
115584         func_emit_lib_Makefile_am): New functions.
115585         (func_import): New function, extracted from big case statement. Use
115586         func_get_license, func_modules_transitive_closure,
115587         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
115588         opt_lgpl. Don't use test -a, as it's not portable.
115589         (func_create_testdir): Use func_modules_transitive_closure,
115590         func_modules_to_filelist, func_emit_lib_Makefile_am.
115592 2004-10-15  Bruno Haible  <bruno@clisp.org>
115594         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
115596 2004-10-15  Bruno Haible  <bruno@clisp.org>
115598         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
115599         the portions belonging to each module.
115600         Suggested by Derek Robert Price <derek@ximbiot.com>.
115602 2004-10-12  Simon Josefsson  <jas@extundo.com>
115604         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
115605         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
115606         to real functions.
115608 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115610         * modules/vsnprintf: New file.
115612 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115614         * m4/vsnprintf.m4: New file.
115616 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115618         * lib/vsnprintf.h: New file.
115619         * lib/vsnprintf.c: New file.
115621 2004-10-11  Bruno Haible  <bruno@clisp.org>
115623         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
115624         vsnprintf.
115626 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115628         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
115630 2004-10-07  Bruno Haible  <bruno@clisp.org>
115632         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
115633         fits into the provided buffer.
115635 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115637         * lib/diacrit.c, diacrit.h: Add GPL notice.
115639         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
115640         notice.
115641         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
115642         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
115643         This avoids a potential constant-folding bug.
115645 2004-10-05  Bruno Haible  <bruno@clisp.org>
115647         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
115648         for the declaration of strsep.
115650 2004-10-05  Bruno Haible  <bruno@clisp.org>
115652         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
115654 2004-10-04  Simon Josefsson  <jas@extundo.com>
115656         * modules/memmem: New file.
115657         * tests/test-memmem.c: New file.
115658         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
115660 2004-10-04  Simon Josefsson  <jas@extundo.com>
115662         * m4/memmem.m4: New file.
115664 2004-10-04  Simon Josefsson  <jas@extundo.com>
115666         * lib/memmem.h: New file.
115667         * lib/memmem.c: New file, taken from glibc.
115669 2004-10-04  Simon Josefsson  <jas@extundo.com>
115671         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
115672         '#ifdef USE_UNLOCKED_IO'.
115674 2004-10-04  Simon Josefsson  <jas@extundo.com>
115676         * config/srclist.txt: Add memmem from glibc.
115678 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
115680         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
115682         * modules/argmatch, modules/argp, modules/closeout, modules/error,
115683         modules/exclude, modules/getdate, modules/getline,
115684         modules/getndelim2, modules/getpass, modules/getpass-gnu,
115685         modules/getusershell, modules/linebuffer, modules/md5,
115686         modules/mountlist, modules/posixtm, modules/readtokens,
115687         modules/readutmp, modules/regex, modules/sha1,
115688         modules/version-etc, modules/yesno:
115689         Remove dependency on unlocked-io.
115691 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
115693         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
115695         * m4/unlocked-io.m4: Add copyright notice.
115696         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
115698 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
115700         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
115701         * lib/xmalloc.c (xmemdup): Likewise.
115702         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
115703         XFREE): Remove these long-obsolescent macros.
115704         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
115705         * lib/xstrdup.c: Remove.
115707         * lib/regex.c (re_comp): Cast gettext return value to char *,
115708         Problem reported by Martin Neitzel via Mark D. Baushke.
115710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
115712         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
115713         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
115714         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
115715         regex.c, sha1.c, version-etc.c, yesno.c:
115716         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
115717         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
115718         the includer's responsibility.
115720         Sync from coreutils.
115722         * lib/modechange.c (mode_compile): Don't decrement a pointer that
115723         points to the start of a string, as the C Standard says the
115724         resulting behavior is undefined.
115726         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
115727         simple -> simple_backups, numbered_existing ->
115728         numbered_existing_backups, numbered -> numbered_backups
115729         to avoid shadowing problems.  All uses changed.
115730         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
115731         * lib/backupfile.c (check_extension, numbered_backup):
115732         Rename locals to avoid shadowing 'basename'.
115733         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
115734         once.
115736         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
115737         * lib/.cvsignore: Add getopt.h.
115739 2004-10-04  Bruno Haible  <bruno@clisp.org>
115741         * modules/README: New file.
115742         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
115743         not a module.
115745 2004-10-02  Jim Meyering  <jim@meyering.net>
115747         * lib/dirfd.h, getpagesize.h: Add copyright notice.
115749 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115751         * modules/strsep: New file.
115753 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115755         * m4/strsep.m4: New file.
115757 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
115759         * lib/strsep.h: New file.
115760         * lib/strsep.c: New file.
115762 2004-10-01  Simon Josefsson  <jas@extundo.com>
115764         * lib/snprintf.c (snprintf): Handle size==0.
115766 2004-10-01  Simon Josefsson  <jas@extundo.com>
115767             Bruno Haible  <bruno@clisp.org>
115769         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
115770         (snprintf): Declare 'args'.
115772 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
115774         * lib/snprintf.c: Remove comments as to why each header is needed.
115776 2004-10-01  Bruno Haible  <bruno@clisp.org>
115778         * MODULES.html.sh: Add strsep.
115780 2004-09-30  Simon Josefsson  <jas@extundo.com>
115782         * modules/snprintf: New file.
115784 2004-09-30  Simon Josefsson  <jas@extundo.com>
115786         * m4/snprintf.m4: New file.
115788 2004-09-30  Simon Josefsson  <jas@extundo.com>
115790         * lib/snprintf.h, lib/snprintf.c: New files.
115792 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115794         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
115795         (hol_entry_help): Never translate an empty string.
115796         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
115797         * lib/argp.h (OPTION_NO_TRANS): New option.
115799 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
115801         * modules/argp (Maintainer): Replace Simon Josefsson
115802         by Sergey Poznyakoff.
115804 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
115806         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
115807         changes merged back into glibc.
115809 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
115811         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
115813 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
115815         * lib/xvasprintf.c: Include xalloc.h.
115816         (xvasprintf): Use xalloc_die, not xmalloc_die.
115818 2004-09-29  Bruno Haible  <bruno@clisp.org>
115820         * modules/alloca-opt: New file, derived from modules/alloca.
115821         * modules/allocsa: Depend on alloca-opt instead of alloca.
115822         * modules/setenv: Likewise.
115823         * modules/vasnprintf: Likewise.
115824         * MODULES.html.sh: Add alloca-opt.
115826 2004-09-28  Simon Josefsson  <jas@extundo.com>
115828         * gnulib-tool: New parameter --lgpl, to asseert that modules are
115829         LGPL, and to replace license template from GPL to LGPL.
115831 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
115833         * modules/dummy: Change license to LGPL.
115835 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
115837         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
115839 2004-09-24  Simon Josefsson  <jas@extundo.com>
115841         * modules/minmax (License): Change from GPL to LGPL.
115843 2004-09-23  Simon Josefsson  <jas@extundo.com>
115845         * gnulib-tool (--import): Typo.
115847 2004-09-23  Simon Josefsson  <jas@extundo.com>
115849         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
115851 2004-09-22  Bruno Haible  <bruno@clisp.org>
115853         * modules/*: Add 'License' field.
115854         * gnulib-tool: Accept --extract-license option.
115855         (func_get_license): New function.
115857 2004-09-21  Bruno Haible  <bruno@clisp.org>
115859         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
115860         Reported by Simon Josefsson.
115862 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
115864         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
115865         gl_AC_TYPE_LONG_LONG.
115867 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
115869         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
115871 2004-09-18  Simon Josefsson  <jas@extundo.com>
115872         and  Paul Eggert  <eggert@cs.ucla.edu>
115874         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
115875         calls with autoreconf.  Define GL_LIB.
115877 2004-09-14  Karl Berry  <karl@gnu.org>
115879         * config/srclist.txt: unsync setenv.c, sigh.
115881 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
115883         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
115884         Problem reported by Bruno Haible in:
115885         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
115887 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
115889         * config/srclist.txt: Comment out argp-pvh.c.
115891 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
115893         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
115894         in case some system header has #define'd it.  Problem reported by
115895         Soeren D. Schulze in
115896         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
115898 2004-09-09  Karl Berry  <karl@gnu.org>
115900         * regex.[ch]: delete from the root.  These were supposed to be
115901                 synced with emacs cvs, but this has not happened for about
115902                 a year, and anyway nothing else uses emacs regex.[ch].
115903                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
115904                 lib/regex[.ch] is untouched.
115906 2004-09-09  Bruno Haible  <bruno@clisp.org>
115908         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
115910 2004-09-09  Bruno Haible  <bruno@clisp.org>
115912         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
115913         modifications.
115914         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
115916 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
115918         * modules/xvasprintf: New file.
115919         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
115921 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
115923         * lib/xvasprintf.h: New file.
115924         * lib/xvasprintf.c: New file.
115925         * lib/xasprintf.c: New file.
115927 2004-09-08  Bruno Haible  <bruno@clisp.org>
115929         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
115931 2004-09-08  Bruno Haible  <bruno@clisp.org>
115933         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
115934         length is > INT_MAX.
115935         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
115936         more.
115938 2004-09-08  Bruno Haible  <bruno@clisp.org>
115940         * lib/stdint_.h: New file, taken from GNU clisp.
115942 2004-09-08  Bruno Haible  <bruno@clisp.org>
115943             Oskar Liljeblad  <oskar@osk.mine.nu>
115945         * modules/stdint: New file.
115946         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
115948 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115950         Import from coreutils.
115951         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
115952         strings on unbounded length.  alloca's performance benefits aren't
115953         that important here.
115954         (V_STRDUP): Remove.
115955         (parse_with_separator): New function, with most of the internals
115956         of the old parse_user_spec.  Allow user to omit both user and group,
115957         for compatibility with FreeBSD.
115958         Clone only the user name, not the entire spec.
115959         Do not set *uid, *gid unless entirely successful.
115960         Avoid memory leak in some failing cases.
115961         Fix regression for USER.GROUP reported by Dmitry V. Levin in
115962         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
115963         (parse_user_spec): Rewrite to use parse_with_separator.
115965 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115967         * modules/userspec: Don't depend on alloca.
115969 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115971         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
115973 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115975         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
115976         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
115977         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
115979 2004-08-16  Simon Josefsson  <jas@extundo.com>
115981         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
115982         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
115983         Add --dry-run for --import.
115984         Let user provided command line parameters override configure.ac
115985         settings.
115987 2004-08-12  Simon Josefsson  <jas@extundo.com>
115989         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
115990         as discussed with Paul Eggert in threads rooted at
115991         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
115992         and
115993         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
115994         Before, the test was empty, and relied on ELIDE_CODE in source
115995         code.)
115996         (gl_PREREQ_GETOPT): New macro.
115997         (gl_GETOPT): Use them.
115999 2004-08-12  Simon Josefsson  <jas@extundo.com>
116001         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
116002         * lib/getopt_.h: Renamed from getopt.h.
116004 2004-08-12  Simon Josefsson  <jas@extundo.com>
116006         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
116007         Change default library name from libfoo to libgnu.
116008         Now, if you have a configure.ac that says:
116009                 gl_SOURCE_BASE(gl)
116010                 gl_M4_BASE(gl/m4)
116011                 gl_MODULES(error getopt etcetera)
116012                 gl_INIT
116013         you can import all you need by running:
116014                 ../gnulib/gnulib-tool --import
116016         * modules/getopt (Files): Rename getopt.h to getopt_.h.
116017         (Makefile.am): Rewrite, use logic from argz.
116018         (Include): Use <getopt.h> instead of "getopt.h".
116020 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116022         * modules/argp (Files): Add m4/unlocked-io.m4.
116023         (Depends-on): Add extensions.
116025 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116027         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
116028         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
116029         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
116030         Check for program_invocation_name, program_invocation_short_name,
116031         flockfile, funlockfile, features.h, _getopt_long_only_r.
116033 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116035         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
116036         its complicated substitute.
116037         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
116038         and program_invocation_name.
116039         (__argp_basename) [!_LIBC]: Remove; the only use was
116040         replaced by its body.
116041         (__argp_short_program_name): Change condition from
116042         !defined __argp_short_program_name to
116043         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
116044         to match argp-namefrob.h.
116045         (__argp_failure): Don't assume strerror_r returns char *.
116046         * lib/argp-parse.c (N_): Define unconditionally.
116047         (argp_default_options): Fill out initializers with 0 to avoid
116048         gcc warnings.
116050 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
116052         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
116053         getopt1.c.
116055 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116057         Merge from coreutils.
116059         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
116061         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
116062         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
116064 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116066         Merge from coreutils.
116068         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
116069         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
116070         for Reliant Unix 5.43.
116072         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
116073         (union fooround): Use uintmax_t, not long int.
116074         The rest is a merge from libc:
116075         [defined _LIBC]: Include <shlib-compat.h>.
116076         (_obstack) [defined _LIBC]: Remove after 2.3.4.
116078         * lib/settime.c (settime): Recode to avoid warning with
116079         Sun Forte C 6U2.
116081         * lib/strverscmp.c: Convert to UTF-8.
116083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
116085         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
116086         m4/uintmax_t.m4.
116088 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116090         * modules/xalloc-die: New file.
116091         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
116093         * modules/md5 (Files): Add m4/uint32_t.m4.
116094         * modules/sha1: Renamed from modules/sha.
116095         (Files):
116096         Rename lib/sha.h to lib/sha1.h.
116097         Rename lib/sha.c to lib/sha1.c.
116098         Rename m4/sha.m4 to m4/sha1.m4.
116099         (lib_SOURCES): Likewise.
116100         (configure.ac): Rename gl_SHA to gl_SHA1.
116101         (Include): sha.h -> sha1.h.
116103 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116105         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
116106         * m4/sha1.m4: Renamed from sha.m4.
116107         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
116109 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
116111         * lib/obstack.h (obstack_empty_p):
116112         Don't assume that chunk->contents is suitably aligned.
116113         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
116114         Likewise. Problem reported by Benno in
116115         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
116117         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
116118         readable.  This could be improved further but it'd take some work.
116120 2004-08-08  Simon Josefsson  <jas@extundo.com>
116122         * modules/xgethostname (Depends-on): Remove exit and error (not
116123         used).
116125         * modules/getpass-gnu: Add getpass.h.
116126         (Depends-on): Add stdbool.
116127         * modules/getpass: Add getpass.h.
116129 2004-08-08  Simon Josefsson  <jas@extundo.com>
116131         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
116132         Check getpass declaration.
116134 2004-08-08  Simon Josefsson  <jas@extundo.com>
116136         * lib/xgethostname.c: Don't include error.h (not used).
116138         * lib/getpass.h: Add.
116139         * lib/getpass.c: Include getpass.h first.
116141 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
116143         * lib/xalloc-die.c: New file.
116144         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
116145         All uses removed.
116146         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
116147         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
116148         xalloc-die.c.
116149         (_, N_, xalloc_die): Move to xalloc-die.c.
116150         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
116151         so that we needn't mess with xalloc_msg_memory_exhausted.
116153         * lib/sha1.h: Renamed from sha.h.
116154         (SHA1_H): Renamed from _SHA_H.
116155         (sha1_ctx): Renamed from sha_ctx.
116156         (sha1_init_ctx): Renamed from sha_init_ctx.
116157         (sha1_process_block): Renamed from sha_process_block.
116158         (sha1_process_bytes): Renamed from sha_process_bytes.
116159         (sha1_finish_ctx): Renamed from sha_finish_ctx.
116160         (sha1_read_ctx): Renamed from sha_read_ctx.
116161         (sha1_stream): Renamed from sha_stream.
116162         (sha1_buffer): Renamed from sha_buffer.
116163         * lib/sha1.c: Likewise; renamed from sha.c.
116164         Do not include <sys/types.h>.
116165         Include <stddef.h> rather than <stdlib.h>.
116167 2004-08-08  Bruno Haible  <bruno@clisp.org>
116169         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
116170         FILESYSTEM_PREFIX_LEN.
116171         * lib/progreloc.c: Likewise.
116172         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
116174 2004-08-06  Simon Josefsson  <jas@extundo.com>
116176         * modules/progname (Depends-on): Don't depend on stdbool.
116178 2004-08-06  Simon Josefsson  <jas@extundo.com>
116180         * modules/getsubopt: New file.
116181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116182         getsubopt.
116184 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116186         More merge from coreutils.
116188         * m4/utimens.m4, m4/utimecmp.m4: New files.
116189         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
116190         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
116191         prereq.m4, sha.m4: Import changes from coreutils.
116193 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116195         More merge from coreutils.
116196         * modules/raise, modules/readtokens0, modules/utimens:
116197         * modules/utimecmp, module/xnanosleep: New files.
116198         * modules/strftime: Add lib/strftime.h.
116199         Change include from <time.h> to "strftime.h".
116200         * modules/yesno: Add lib/yesno.h.
116201         * modules/backupfile: Remove lib/addext.c.
116202         * modules/euidaccess: Add stat-macros.h.
116203         * modules/canonicalize, modules/euidaccess,
116204         modules/filemode, modules/lchown, modules/makepath,
116205         modules/rmdir, modules/stat: Likewise.
116207 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
116209         Merge from tar.
116210         * lib/argp-help.c (make_hol, hol_append): Don't assume that
116211         SIZE_MAX is a valid preprocessor constant.
116212         (__argp_basename): Change from "#ifndef _LIBC"
116213         to "#ifndef __argp_short_program_name", so that
116214         we don't compile these functions for tar.
116216         More merges from coreutils.
116217         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
116218         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
116219         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
116220         * lib/addext.c: Remove; no longer needed.
116221         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
116222         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
116223         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
116224         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
116225         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
116226         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
116227         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
116228         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
116229         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
116230         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
116231         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
116232         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
116233         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
116234         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
116235         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
116236         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
116237         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
116238         Import changes from coreutils.
116240 2004-08-05  Simon Josefsson  <jas@extundo.com>
116242         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
116244 2004-08-05  Simon Josefsson  <jas@extundo.com>
116246         * m4/getsubopt.m4: New file.
116248 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116250         Merge from coreutils.
116252         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
116253         * m4/getcwd-path-max.m4: New files.
116255         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
116256         FILESYSTEM_PREFIX_LEN ->
116257         FILE_SYSTEM_PREFIX_LEN.
116258         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
116259         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
116260         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
116261         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
116263         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
116264         prerequisite modules now handle the DOS stuff.
116265         Don't check for unistd.h.
116267 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116269         Merge from coreutils.
116271         * lib/.gdb-history: Remove; this doesn't belong here.
116273         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
116274         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
116275         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
116276         * lib/getcwd.c: New files.
116278         * lib/dirname.h: Include <stdbool.h>.
116279         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
116280         for consistency with POSIX terminology.  All uses changed.
116281         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
116282         (strip_trailing_slashes): Use bool for booleans.
116283         * lib/stripslash.c (strip_trailing_slashes): Likewise.
116285         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
116286         sometimes returns a positive errno value even when it succeeds.
116287         (print_errno_message) [!LIBC]: Fall back on strerror if
116288         __strerror_r fails.
116290         * lib/path-concat.c (mempcpy): Don't define if a system header defines
116291         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
116292         (longest_relative_suffix): New function.
116293         (path_concat): Use it.  Assume first argument is not NULL.
116294         Port to DOS.  Omit redundant separators.
116295         Report an error instead of returning NULL.
116296         Use mempcpy instead of memcpy.
116297         (xpath_concat): Remove: not declared or used.
116299         * lib/same.h: Include <stdbool.h>
116300         (same_name): Return bool, not int.
116301         * lib/same.c (same_name): Likewise.
116302         (errno): Don't declare; we assume C89 or better now.
116304         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
116305         if not already defined.
116307         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
116308         * lib/dup-safer.c (errno): Likewise.
116310 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
116312         Merge from coreutils.
116313         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
116314         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
116315         * modules/path-concat: Don't depend on strdup.
116317 2004-08-03  Simon Josefsson  <jas@extundo.com>
116319         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
116320         * lib/progname.h: Don't include stdbool.h.
116322 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116324         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
116325         * MODULES.html.sh (func_all_modules): Remove fatal.
116327 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116329         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
116331 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
116333         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
116334         working.
116336 2004-08-02  Simon Josefsson  <jas@extundo.com>
116338         * lib/getsubopt.h: New file, with comments from Bruno Haible.
116339         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
116340         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
116342 2004-08-01  Simon Josefsson  <jas@extundo.com>
116344         * lib/xgetdomainname.c: Include stdlib.h, for free().
116346 2004-07-19  Bruno Haible  <bruno@clisp.org>
116348         * MODULES.html.sh (func_all_modules): Add dummy.
116350 2004-07-16  Simon Josefsson  <jas@extundo.com>
116352         * modules/dummy: New file.
116354 2004-07-16  Simon Josefsson  <jas@extundo.com>
116356         * lib/dummy.c: New file.
116358 2004-07-16  Bruno Haible  <bruno@clisp.org>
116360         * lib/backupfile.h: Add extern "C" for C++.
116361         * lib/closeout.h: Likewise.
116362         * lib/copy-file.h: Likewise.
116363         * lib/findprog.h: Likewise.
116364         * lib/full-write.h: Likewise.
116365         * lib/pathname.h: Likewise.
116366         * lib/progname.h: Likewise.
116367         * lib/stpcpy.h: Likewise.
116368         * lib/stpncpy.h: Likewise.
116369         * lib/strcase.h: Likewise.
116370         * lib/strstr.h: Likewise.
116371         * lib/xalloc.h: Likewise.
116373         * lib/mbswidth.h: Add extern "C" for C++.
116374         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
116376 2004-07-13  Robert Millan  <robertmh@gnu.org>
116378         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
116380 2004-07-09  Simon Josefsson  <jas@extundo.com>
116382         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
116383         failed without this.)
116385 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116387         * modules/chown (Files): Add lib/fchown-stub.c, since
116388         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
116390 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116392         * lib/fchown-stub.c: New file.
116394 2004-06-24  Jim Meyering  <jim@meyering.net>
116396         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
116398 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116400         * modules/argz: Omit "#include".
116402         * MODULES.html.sh (func_all_modules): Add calloc, to match
116403         2004-06-01 addition of calloc module.
116405 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116407         * m4/argz.m4: New file, which is autoupdated from libtool.
116409 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116411         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
116412         libtool.
116414 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116416         * config/srclist-update: Don't insist on "USA." before the
116417         close-comment, as libtool omits the period and puts the */ on a
116418         separate line.
116419         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
116420         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
116422 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
116424         * modules/argz: New file.
116425         * MODULES.html.sh (func_all_modules): Add argz.
116427 2004-06-12  Jim Meyering  <jim@meyering.net>
116428         and  Paul Eggert  <eggert@cs.ucla.edu>
116430         * modules/hash (Files): Add lib/xalloc.h.
116431         * modules/pipe (Depends-on): Add wait-process.
116432         * modules/stat (Depends-on): Add xalloc.
116433         * modules/userspec (Files): Add lib/userspec.h.
116434         * modules/xstrto
116436         Upgrade from gettext-0.13.
116437         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
116438         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
116439         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
116441 2004-06-10  Jim Meyering  <jim@meyering.net>
116443         * lib/calloc.c: New file.
116445 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
116447         * lib/getdate.y (yylex): Allow space between sign and number.
116448         Problem reported by Dan Jacobson.
116450 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116452         Merge from coreutils CVS.
116454         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
116455         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
116456         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
116457         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
116458         xstrtol.m4: Fix copyright date and/or serial number.
116460         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
116461         See if we need an fchown replacement.
116462         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
116463         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
116464         and use the replacement function if we detect either defect.
116466         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
116467         gl_UTIMECMP.
116469 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
116470         and  Jim Meyering  <jim@meyering.net>
116472         Merge from coreutils CVS.
116474         * lib/stat-macros.h: New file, with contents from file-type.h
116475         and coreutils' system.h.
116476         * lib/file-type.c: Include "stat-macros.h".
116477         * lib/file-type.h (file_type): Move all macro definitions to new file,
116478         stat-macros.h.
116480         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
116481         Wrap old code with this conditional.
116482         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
116483         function that does not dereference symlinks.
116484         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
116486         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
116487         dependency problems.
116488         (xreadlink): Accept new arg SIZE, for efficiency.
116489         All decls and uses changed.
116490         * lib/xreadlink.h: Include <stddef.h>, for size_t.
116492         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
116493         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
116495         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
116496         sysexits.h.
116498 2004-06-01  Jim Meyering  <jim@meyering.net>
116500         * m4/calloc.m4: New file.
116502 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
116504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
116505         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
116506         Also, fix a typo in a diagnostic.
116508 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
116510         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
116511         or AC_FUNC_REALLOC.
116513 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
116515         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
116516         macros to be defined.
116517         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
116518         the allocator returns NULL because the requested size is zero.
116520 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116522         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
116523         var.  Add comment explaining why libc still defines it.  This
116524         merges the following patch from glibc:
116525         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
116527 2004-05-20  Andreas Schwab  <schwab@suse.de>
116529         * m4/free.m4: Replace free if it not known to work, not the other
116530         way round.
116532 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116534         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
116535         present in glibc since revision 1.1 of this file.
116536         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
116537         obstack_alignment_mask, obstack_alloc, obstack_base,
116538         obstack_blank, obstack_blank_fast, obstack_chunk_size,
116539         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
116540         obstack_grow0, obstack_init, obstack_int_grow,
116541         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
116542         obstack_next_free, obstack_object_size, obstack_ptr_grow,
116543         obstack_ptr_grow_fast, obstack_room): Remove declarations of
116544         nonexistent functions.
116546 2004-05-18  Karl Berry  <karl@gnu.org>
116548         * config/srclist.txt: break link for vasnprintf.c.
116550 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
116552         Port obstack to the AS/400, where pointers are 16 bytes wide and
116553         you cannot cast an integer to a valid pointer.  This patch is
116554         currently waiting to be integrated into glibc; see
116555         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
116557         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
116558         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
116559         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
116560         (struct obstack): temp member is now a union of a pointer and
116561         an integer, instead of an integer.  All integer uses changed.
116562         This does not affect the physical layout of struct obstack,
116563         except on hosts (like the AS/400) where the size or alignment of
116564         void * is greater than that of ptrdiff_t.
116565         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
116566         __STDC__)]: Store temporary in pointer member of union, not
116567         integer member.
116568         * lib/obstack.c: Include <stddef.h>, for offsetof.
116569         (struct fooalign): Remove; it doesn't need a name.
116570         (union fooround): Change double to long double, and add void *.
116571         (DEFAULT_ALIGNMENT): Use offsetof to compute.
116572         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
116573         not a macro.  Hence the values are always int; so remove all
116574         casts-to-int in uses.
116576 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
116578         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
116579         we can get this patch merged into glibc.
116581 2004-05-17  Derek R. Price  <derek@ximbiot.com>
116582             Paul Eggert  <eggert@cs.ucla.edu>
116584         * m4/argp: Depend on alloca.
116586 2004-05-17  Derek R. Price  <derek@ximbiot.com>
116587             Paul Eggert  <eggert@cs.ucla.edu>
116589         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
116590         freecoding.
116592 2004-05-17  Bruno Haible  <bruno@clisp.org>
116594         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
116595         precision that consists of a '.' followed by an empty digit string.
116596         Patch by Tor Lillqvist <tml@iki.fi>.
116598 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
116600         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
116601         for backward compatibility with older code.  We need our own
116602         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
116603         it under some other name, and our alloca.h will define it.
116605 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
116606             Derek Price  <derek@ximbiot.com>
116608         * lib/alloca.c: Include <alloca.h>, to get our interface.
116609         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
116610         include <alloca.h> first.  Use C89 prototype for alloca; this
116611         requires including <stddef.h> for size_t.  Use extern "C" if C++.
116612         Use #elif for simplicity, since we can assume C89 now.
116613         Don't try to source the system alloca.h since it will not be found
116614         and to prevent recursively including its replacement.
116615         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
116616         * lib/regex.c: Likewise.
116618 2004-05-16  Derek Price  <derek@ximbiot.com>
116619             Paul Eggert  <eggert@cs.ucla.edu>
116621         getline cleanup.  This changes the getndelim2 API: both order of
116622         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
116623         no delimiter).
116625         * lib/getline.c: Don't include stddef.h or stdio.h, since our
116626         interface does that.
116627         (getline): Always use getdelim, so that we don't have two
116628         copies of this code.
116629         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
116630         if available.
116631         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
116632         (GETNDELIM2_MAXIMUM): New macro.
116633         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
116634         instead of the old practice of delim2==0.  All callers changed.
116635         Return -1 on overflow, instead of returning junk.
116636         Do not set *linesize unless allocation succeeds.
116637         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
116638         that we include sys/types.h.
116639         * lib/getnline.h: Likewise.
116640         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
116641         (getndelim2): Reorder arguments.
116642         * lib/getnline.c (getnline, getndelim):
116643         Don't discard the NMAX argument.
116644         (getnline): Invoke getndelim, to avoid code duplication.
116645         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
116646         of (size_t) -1 by callers of the getnline family.
116648 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116650         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
116651         Check for gettimeofday.
116652         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
116653         Check for settimeofday, stime.
116655 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116657         * lib/nanosleep.c (suspended): Change its type from int to
116658         sig_atomic_t volatile.
116659         (first_call): Make it private to rpl_nanosleep, and have it
116660         be zero initially as that's a bit faster.
116661         (my_usleep): Round up fractional times instead of truncating them,
116662         as this is the usual meaning for 'sleep'.
116664         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
116665         doesn't work.
116666         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
116667         (ENOSYS): Define if not defined.
116668         (settime): Fall back on stime if it exists and settimeofday fails.
116669         But don't bother with fallbacks if a method fails with errno == EPERM.
116671 2004-05-11  Jim Meyering  <jim@meyering.net>
116673         Prior to this change, the save_cwd caller required read access to the
116674         current directory on most systems (ones with the fchdir function).
116676         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
116677         fails, try write-only, and finally, resort to using xgetcwd.
116679 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
116681         * lib/obstack.c, obstack.h: Import changes from libc.
116683 2004-04-28  Bruno Haible  <bruno@clisp.org>
116685         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
116686         also implicitly appends .exe to executables.
116687         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
116688         accepts Windows pathnames.
116689         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
116690         Treat Cygwin like Windows, since it now accepts Windows pathnames.
116691         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
116692         Treat Cygwin like Windows, since it now accepts Windows pathnames.
116693         Reported by Derek Robert Price <derek@ximbiot.com>.
116695 2004-04-21  Karl Berry  <karl@gnu.org>
116697         * config/srclist.txt (localcharset.c): break sync.
116699 2004-04-20  Paul Eggert  <eggert@twinsun.com>
116701         * m4/host-os.m4: Add a copyright notice.
116703 2004-04-20  Jim Meyering  <jim@meyering.net>
116705         Change UTILS_ to gl_ in AC_DEFINE'd names.
116706         Change utils_- and jm_-prefixed variables, too.
116707         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
116708         UTILS_FUNC_MKDIR_TRAILING_SLASH.
116709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
116711         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
116712         Don't emit trailing blanks.
116713         Also rename jm_-prefixed variables to have gl_ prefix.
116715         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
116716         Also rename jm_-prefixed variables to have gl_ prefix.
116718         * m4/jm-macros.m4: Reflect the renamings.
116719         * m4/prereq.m4: Likewise.
116721 2004-04-20  Jim Meyering  <jim@meyering.net>
116723         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
116724         memory.
116726 2004-04-20  Jim Meyering  <jim@meyering.net>
116727             Bruno Haible  <bruno@clisp.org>
116729         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
116730         memory when realloc fails.
116732 2004-04-19  Jim Meyering  <jim@meyering.net>
116734         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
116735         now that readutmp.c may call `free (0)'.
116737 2004-04-19  Bruno Haible  <bruno@clisp.org>
116739         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
116740         * m4/inttypes_h.m4: Likewise.
116741         * m4/stdint_h.m4: Likewise.
116742         * m4/intmax_t.m4: Likewise.
116743         * m4/uintmax_t.m4: Likewise.
116745 2004-04-18  Jim Meyering  <jim@meyering.net>
116747         * m4/prereq.m4: Don't forbid jm_ prefix.
116749         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
116750         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
116751         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
116752         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
116753         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
116754         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
116755         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
116756         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
116757         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
116758         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
116759         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
116760         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
116761         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
116762         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
116763         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
116764         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
116765         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
116766         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
116767         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
116769 2004-04-18  Jim Meyering  <jim@meyering.net>
116771         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
116772         failure, don't leak memory and do call END_UTMP_ENT.
116774 2004-04-16  Jim Meyering  <jim@meyering.net>
116776         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
116777         coreutils' stat program.
116778         (gl_PREREQ): Don't require jm_PREREQ_STAT.
116780 2004-04-11  Paul Eggert  <eggert@twinsun.com>
116782         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
116783         C89.
116784         (CHAR_BIT): Remove, since we assume C89.
116785         Include <stdint.h> if available, as per current Autoconf CVS advice.
116787 2004-03-31  Jim Meyering  <jim@meyering.net>
116789         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
116790         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
116791         * m4/xalloc.m4: Likewise.
116793 2004-03-30  Paul Eggert  <eggert@twinsun.com>
116795         Merge from coreutils.
116797         * m4/inttostr.m4: New file.
116798         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
116799         Require AM_STDBOOL_H and gl_TIMESPEC instead.
116800         Require gl_CLOCK_TIME.
116801         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
116803 2004-03-30  Paul Eggert  <eggert@twinsun.com>
116805         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
116806         not bool, to be more consistent with Unix conventions.
116807         Suggested by Bruno Haible.
116809         Merge from coreutils.
116811         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
116812         * lib/umaxtostr.c: New files.
116814         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
116815         the usual <time.h> dance.
116816         (get_date): Change signature to support fractional time stamps.
116817         All callers changed.
116818         * lib/getdate.y: Include "getdate.h" first, as we can now
116819         assume C89 and don't need to worry about 'const'.
116820         Similarly, include "unlocked-io.h" near start, not in middle.
116821         Include <limits.h>.
116822         (textint.value): Use long int rather than int.
116823         (textint.digits): Use size_t rather than int.
116824         (BILLION, LOG10_BILLION): New constants.
116825         (parser_control): New member rel_ns.  Members day_ordinal,
116826         time_zone, month, day, hour, minutes, rel_year, rel_month,
116827         rel_day, rel_hour, rel_minutes, rel_seconds
116828         are now long int, not int.  Member seconds is now struct timespec,
116829         not int.  New member timespec_seen.  Members dates_seen, days_seen,
116830         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
116831         not int.
116832         (%union.intval): Now long int, not int.
116833         New member timespec.
116834         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
116835         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
116836         (spec): Now is a timespec or an item list.
116837         (timespec, items): New nonterminals.
116838         (time, rel, relunit, number, get_date):
116839         Add support for fractional seconds.
116840         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
116841         (gmtime, localtime, mktime): Remove decls; not needed with C89.
116842         (to_hour): First arg is now long int, not int.
116843         (to_year): Returns long int, not int.
116844         Don't treat year -70 like 70.
116845         (tm_diff): Returns long int, not int.
116846         (lookup_word): Use bool instead of int when appropriate.
116847         (yylex): Use size_t for count, not int.
116848         Detect overflow when parsing large integer constants.
116849         Add support for fractions.
116850         (get_date): Make pointers 'const' if possible.
116851         Use more-portable code to detect integer overflow.
116852         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
116853         Don't use ctime; it's not reliable if the year has >4 digits.
116855         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
116856         This is for compatibility with BSD.
116858         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
116859         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
116860         From coreutils' system.h.
116862         * lib/userspec.c: Don't include "posixver.h".
116863         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
116864         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
116865         compatible extension.  Simplify code by removing a boolean int
116866         that was always nonzero if a string was nonnull.
116868 2004-03-30  Jim Meyering  <jim@meyering.net>
116870         Merge from coreutils.
116872         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
116873         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
116874         on some systems one must include <grp.h> before it.
116875         Reported by Christian Krackowizer.
116877 2004-03-30  Jim Meyering  <jim@meyering.net>
116879         Merge from coreutils.
116881         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
116883         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
116884         an empty input stream.
116886         * lib/readtokens.c: Include <stdbool.h>.
116887         (readtoken): Use `size_t' rather than int/long.
116888         All callers adjusted.
116889         Use `bool' rather than `int' where appropriate.
116890         Use memset rather than an explicit loop.
116891         Use x2nrealloc rather than xrealloc.
116892         Allow the use of `\0' as a delimiter.
116893         (readtokens): Likewise.
116894         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
116896 2004-03-30  Jim Meyering  <jim@meyering.net>
116898         * m4/realloc.m4: Remove file, since now it does no more than
116899         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
116900         the `configure.ac' section of module/realloc.
116901         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
116903 2004-03-30  Bruno Haible  <bruno@clisp.org>
116905         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
116906         nonnull.
116908 2004-03-29  Paul Eggert  <eggert@twinsun.com>
116910         Merge changes to getloadavg.c from coreutils and Emacs.
116912         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
116913         Define to an expression, not to the empty string.
116914         Include cloexec.h and xalloc.h.
116915         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
116916         Use set_cloexec_flag rather than rolling our own.
116917         * lib/cloexec.c, lib/cloexec.h: New files.
116919 2004-03-29  Paul Eggert  <eggert@twinsun.com>
116921         * m4/cloexec.m4: New file.
116923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
116925         * lib/getopt.h: Sync with libc CVS.
116927 2004-03-18  Paul Eggert  <eggert@twinsun.com>
116928             Bruno Haible  <bruno@clisp.org>
116930         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
116931         mbswidth.
116933 2004-03-18  Paul Eggert  <eggert@twinsun.com>
116934             Bruno Haible  <bruno@clisp.org>
116936         * lib/mbswidth.h: Include <wchar.h> only if
116937         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
116938         <wchar.h>.
116939         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
116941 2004-03-09  Paul Eggert  <eggert@twinsun.com>
116943         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
116944         Sync with libc CVS.
116945         * lib/getopt_int.h: New file, also synced from libc.
116947 2004-03-09  Paul Eggert  <eggert@twinsun.com>
116949         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
116950         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
116951         Bring back getopt.c, getopt.h, getopt1.c.
116953 2004-03-07  Paul Eggert  <eggert@twinsun.com>
116955         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
116956         All uses changed.  Check for sa_sigaction member; this fixes
116957         a bug first reported by Jason Andrade in
116958         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
116960 2004-03-07  Paul Eggert  <eggert@twinsun.com>
116962         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
116963         '#if' expressions.  Unlike the code it replaces, it does not
116964         depend on (defined _SC_PAGESIZE).  However, it does depend on
116965         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
116966         first reported by Jason Andrade in
116967         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
116969 2004-02-25  Simon Josefsson  <jas@extundo.com>
116971         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
116973 2004-02-25  Simon Josefsson  <jas@extundo.com>
116975         * lib/strdup.h: New file.
116976         * lib/strdup.c: Include it.
116977         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
116978         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
116980 2004-02-23  Karl Berry  <karl@gnu.org>
116982         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
116983         (from fencepost.gnu.org:/gd/gnuorg).
116985 2004-02-23  Karl Berry  <karl@gnu.org>
116987         * config/srclistvars.sh (GNUORG) [karl]: redefine.
116988         * config/srclist.txt: add maintain/standards documents.
116990 2004-02-18  Bruno Haible  <bruno@clisp.org>
116992         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
116993         Reported by Derek Robert Price <derek@ximbiot.com>.
116995 2004-02-16  Karl Berry  <karl@gnu.org>
116997         * config/mkinstalldirs, install-sh: update from automake.
116999 2004-02-06  Karl Berry  <karl@gnu.org>
117001         * m4/po.m4: update from gettext 0.14.1.
117003 2004-02-06  Karl Berry  <karl@gnu.org>
117005         * lib/config.charset: update from gettext 0.14.1.
117007 2004-02-05  Paul Eggert  <eggert@twinsun.com>
117009         Add comments and code, prompted by suggestions from Bruno Haible
117010         for sh-quote.
117011         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
117012         describing the enum quoting_style values.
117013         * lib/quotearg.c (quotearg_alloc): New function.
117014         (quotearg_buffer_restyled): Treat lone { and } as special.
117015         Treat = as special.  Work around bug with older shells
117016         that "see" a '\' that is really the 2nd byte of a multibyte char.
117017         Quote empty string with shell_quoting_style.
117019 2004-02-03  Bruno Haible  <bruno@clisp.org>
117021         * m4/pipe.m4: New file, from GNU gettext.
117023 2004-02-03  Bruno Haible  <bruno@clisp.org>
117025         * lib/pipe.h: New file, from GNU gettext.
117026         * lib/pipe.c: New file, from GNU gettext.
117028 2004-01-27  Bruno Haible  <bruno@clisp.org>
117030         * m4/execute.m4: New file, from GNU gettext.
117032 2004-01-27  Bruno Haible  <bruno@clisp.org>
117034         * lib/execute.h: New file, from GNU gettext.
117035         * lib/execute.c: New file, from GNU gettext.
117036         * lib/w32spawn.h: New file, from GNU gettext.
117038 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117040         Merge from diffutils.
117042         * lib/file-type.c (file_type): Add typed memory objects.
117043         * lib/file-type.h (S_TYPEISTMO): New macro.
117045         * lib/c-stack.h (c_stack_action): Remove argv argument.
117046         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
117047         (die): Don't calculate message unless segv_action returns.
117048         (get_stack_location, min_address_from_argv, max_address_from_argv,
117049         volatile stack_base, volatile_stack_size): Remove.
117050         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
117051         that every segmentation violation is a stack overflow.  (Ouch!)
117052         See Debian bug 136249 (still outstanding) for more info about why
117053         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
117055 2004-01-24  Paul Eggert  <eggert@twinsun.com>
117057         Exit-status fix from coreutils.
117059         Use exit_failure consistently in place of EXIT_FAILURE,
117060         so that program exit statuses are consistent on failure.
117062         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
117063         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
117064         * lib/argmatch.h: Comment fix to match the above.
117065         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
117066         Now a macro referring to exit_failure, instead of a separate
117067         variable.  Include "exitfail.h" to get it.
117068         * lib/xstrtol.h: Include "exitfail.h".
117069         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
117071         * lib/long-options.c (parse_long_options): Use prototype
117072         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
117073         for clarity.
117075 2004-01-21  Jim Meyering  <jim@meyering.net>
117077         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
117078         so as not to conflict with a different-sized __mktime_internal
117079         function in GNU libc.
117080         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
117081         Problem building statically-linked `ls' reported by Michael Brunnbauer.
117083 2004-01-20  Karl Berry  <karl@gnu.org>
117085         * config/config.guess: update from config.
117087         * config/srclistvars.sh: GNUWWWLICENSES for karl.
117089 2004-01-20  Bruno Haible  <bruno@clisp.org>
117091         Safer stack allocation.
117092         * lib/setenv.c: Include allocsa.h.
117093         (alloca): Remove fallback definition.
117094         (freea): Remove macro.
117095         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
117096         instead of freea.
117098 2004-01-20  Bruno Haible  <bruno@clisp.org>
117100         * m4/eealloc.m4: New file, from GNU gettext.
117102 2004-01-20  Bruno Haible  <bruno@clisp.org>
117104         * m4/allocsa.m4: New file, from GNU gettext.
117106 2004-01-20  Bruno Haible  <bruno@clisp.org>
117108         * lib/xallocsa.h: New file, from GNU gettext.
117109         * lib/xallocsa.c: New file, from GNU gettext.
117111 2004-01-20  Bruno Haible  <bruno@clisp.org>
117113         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
117115 2004-01-20  Bruno Haible  <bruno@clisp.org>
117117         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
117118         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
117119         specially.
117121 2004-01-20  Bruno Haible  <bruno@clisp.org>
117123         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
117124         patch.
117126 2004-01-20  Bruno Haible  <bruno@clisp.org>
117128         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
117130 2004-01-20  Bruno Haible  <bruno@clisp.org>
117132         * lib/eealloc.h: New file.
117134 2004-01-20  Bruno Haible  <bruno@clisp.org>
117136         * lib/binary-io.h: Avoid warnings on Cygwin.
117138 2004-01-20  Bruno Haible  <bruno@clisp.org>
117140         * lib/allocsa.h: New file, from GNU gettext.
117141         * lib/allocsa.c: New file, from GNU gettext.
117143 2004-01-18  Karl Berry  <karl@gnu.org>
117145         * doc/gpl.texi, doc/lgpl.texi: new files.
117147 2004-01-18  Karl Berry  <karl@gnu.org>
117149         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
117150         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
117152 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117154         Merge from coreutils.
117156         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
117157         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
117158         (gl_DEFAULT_POSIX2_VERSION): Move
117159         the documentation from 'configure' into 'config.hin',
117160         so that 'configure --help' isn't burdened by it and
117161         we don't have to worry about its formatting there.
117162         Reword the documentation so that it's more succinct
117163         and can be run together into a single paragraph.
117164         * m4/same.m4 (gl_SAME): Check for pathconf.
117166 2004-01-15  Paul Eggert  <eggert@twinsun.com>
117168         Merge from coreutils.
117170         * lib/posixver.c: Include posixver.h.
117172         * lib/same.c: Include <stdbool.h>, <limits.h>.
117173         (_POSIX_NAME_MAX): Define if not defined.
117174         (MIN): New macro.
117175         (same_name): If file names are silently truncated, report
117176         that the file names are the same if they are the same after
117177         the silent truncation.
117179         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
117180         conversion function.
117181         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
117182         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
117183         longer needed.
117185 2004-01-15  Jim Meyering  <jim@meyering.net>
117187         Merge from coreutils.
117189         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
117190         if no library is required.
117191         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
117192         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
117193         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
117194         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
117195         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
117196         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
117197         value, $ac_cv_search_crypt, if it's "none required".
117198         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
117199         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
117200         not gl_FUNC_GETLOADAVG.
117201         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
117202         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
117204 2004-01-15  Jim Meyering  <jim@meyering.net>
117206         Merge from coreutils.
117208         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
117209         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
117210         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
117212         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
117213         optional configure-time default.
117215         * lib/version-etc.c (version_etc_copyright): Update copyright date.
117217         * lib/xreadlink.c (xreadlink): Correct outdated comment.
117219 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
117221         Merge from coreutils.
117223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
117224         value, $ac_cv_search_nanosleep, if it's "none required".
117226 2004-01-14  Paul Eggert  <eggert@twinsun.com>
117228         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
117229         with like-named macro in fnmatch.c.
117230         (EXT): Use an internal constant instead.
117232         Merge fnmatch patches from glibc.
117233         * lib/fnmatch.c (mbsinit): Remove define.
117234         Add libc_hidden_ver (__fnmatch, fnmatch).
117235         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
117236         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
117238 2004-01-14  Karl Berry  <karl@gnu.org>
117240         * config/install-sh: update from automake.
117242 2004-01-13  Karl Berry  <karl@gnu.org>
117244         * config/install-sh: update from automake.
117246 2004-01-09  Karl Berry  <karl@gnu.org>
117248         * config/install-sh: update from automake.
117250 2004-01-05  Karl Berry  <karl@gnu.org>
117252         * config/config.{sub,guess}: update from config.
117254 2003-12-31  Karl Berry  <karl@gnu.org>
117256         * config/depcomp: update from automake.
117258 2003-12-14  Karl Berry  <karl@gnu.org>
117260         * lib/config.charset: update from gettext-runtime.
117262 2003-12-03  Paul Eggert  <eggert@twinsun.com>
117264         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
117265         Bug reported by Alfred M. Szmidt.
117267 2003-12-03  Bruno Haible  <bruno@clisp.org>
117269         * m4/gettext.m4: Upgrade from gettext-0.13.
117270         * m4/po.m4: Upgrade from gettext-0.13.
117271         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
117272         * m4/intmax.m4: New file, from gettext-0.13.
117273         * m4/printf-posix.m4: New file, from gettext-0.13.
117275 2003-11-29  Karl Berry  <karl@gnu.org>
117277         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
117279 2003-11-25  Paul Eggert  <eggert@twinsun.com>
117280             Bruno Haible  <bruno@clisp.org>
117282         * lib/printf-parse.h: Don't include sys/types.h.
117283         (ARG_NONE): New macro.
117284         (char_directive): Change type of *arg_index fields to size_t.
117285         * lib/printf-parse.c: Don't include sys/types.h.
117286         (SSIZE_MAX): Remove macro.
117287         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
117288         Remove unnecessary overflow check.
117289         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
117290         fields.
117292 2003-11-25  Bruno Haible  <bruno@clisp.org>
117294         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
117296 2003-11-25  Bruno Haible  <bruno@clisp.org>
117298         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
117299         gt_TYPE_SSIZE_T.
117301 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117303         * modules/alloca: Remove dependency on xalloc.
117305 2003-11-24  Paul Eggert  <eggert@twinsun.com>
117307         * lib/alloca.c: Remove dependency on xalloc module.
117308         (xalloc_die): Remove.
117309         (memory_full) [!defined emacs]: New macro.
117310         [!defined emacs]: Don't include xalloc.h.
117311         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
117312         address arithmetic overflows.  Change datatypes a bit to avoid
117313         unnecessary casts.
117315 2003-11-22  Jim Meyering  <jim@meyering.net>
117317         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
117318         s/size/size_t/.
117320 2003-11-21  Karl Berry  <karl@gnu.org>
117322         * config/config.{sub,guess}: update from config.
117324 2003-11-18  Karl Berry  <karl@gnu.org>
117326         * config/config.{sub,guess}: update from config.
117328         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
117330 2003-11-17  Paul Eggert  <eggert@twinsun.com>
117332         * README: Mention that S+T cannot overflow if S is the size of
117333         an existing object and T is sufficiently small.
117335 2003-11-17  Jim Meyering  <jim@meyering.net>
117337         On systems without utime and without a utimes function capable of
117338         dealing with a NULL struct utimbuf* argument, this utime replacement
117339         could -- in unusual circumstances -- leak a file descriptor.
117340         * lib/utime.c: Include <unistd.h> and <errno.h>.
117341         (utime_null): Be sure to close `fd' and to preserve errno.
117342         Reported by Geoff Collyer via Arnold Robbins.
117344 2003-11-17  Bruno Haible  <bruno@clisp.org>
117346         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
117347         (Depends-on): Add xsize.
117349 2003-11-17  Bruno Haible  <bruno@clisp.org>
117351         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
117353 2003-11-17  Bruno Haible  <bruno@clisp.org>
117355         * lib/vasnprintf.c (alloca): Remove fallback definition.
117356         (freea): Remove definition.
117357         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
117358         Reported by Paul Eggert.
117360 2003-11-16  Paul Eggert  <eggert@twinsun.com>
117361             Bruno Haible  <bruno@clisp.org>
117363         Protect against address arithmetic overflow.
117364         * lib/printf-args.h: Include stddef.h.
117365         (arguments): Change type of field 'count' to size_t.
117366         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
117367         'unsigned int' where appropriate.
117368         * lib/printf-parse.h: Include sys/types.h.
117369         (char_directive): Change type of *arg_index fields to ssize_t.
117370         (char_directives): Change type of fields 'count', max_*_length to
117371         size_t.
117372         * lib/printf-parse.c: Include sys/types.h and xsize.h.
117373         (SSIZE_MAX): Define fallback value.
117374         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
117375         instead of 'int' where appropriate. Check a_allocated, d_allocated
117376         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
117377         * lib/vasnprintf.c: Include xsize.h.
117378         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
117379         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
117380         overflow. Avoid wraparound when converting a width or precision from
117381         decimal to binary.
117383 2003-11-16  Bruno Haible  <bruno@clisp.org>
117385         Update from GNU gettext.
117386         * lib/printf-parse.c: Generalize to it can be compiled for wide
117387         strings.
117388         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
117389         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
117390         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
117391         SNPRINTF): New macros.
117392         Don't include <alloca.h> if the file is used inside libintl.
117393         (local_wcslen): New function, for Solaris 2.5.1.
117394         (VASNPRINTF): Use it instead of wcslen.
117396 2003-11-16  Bruno Haible  <bruno@clisp.org>
117398         * lib/xsize.h (xmax): New function.
117399         (xsum, xsum3, xsum4): Declare as "pure" functions.
117401 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117403         * modules/xalloc (Files): Undo latest change, since xalloc.h
117404         no longer needs SIZE_MAX or PTRDIFF_MAX.
117406 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117408         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
117409         gl_PTRDIFF_MAX.
117411 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117413         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
117414         "return", to pacify some unknown compiler.  Problem reported
117415         by Joerg Schilling.
117417 2003-11-12  Paul Eggert  <eggert@twinsun.com>
117419         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
117420         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
117421         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
117422         heuristic is just as accurate as far as we know, and it removes a
117423         dependency on size_max.m4 and ptrdiff_max.m4.
117425 2003-11-11  Bruno Haible  <bruno@clisp.org>
117427         * modules/xsize (Files): Add m4/size_max.m4.
117428         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
117430 2003-11-11  Bruno Haible  <bruno@clisp.org>
117432         * m4/size_max.m4: New file.
117433         * m4/ptrdiff_max.m4: New file.
117434         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
117435         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
117436         (gl_XALLOC): Invoke it.
117438 2003-11-11  Bruno Haible  <bruno@clisp.org>
117440         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
117441         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
117442         defined.
117444 2003-11-10  Paul Eggert  <eggert@twinsun.com>
117446         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
117447         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
117448         rejected some allocations of exactly SIZE_MAX - 2 bytes.
117449         From Bruno Haible.
117450         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
117451         not (size_t) -1, since it's defined here.
117453 2003-11-09  Karl Berry  <karl@gnu.org>
117455         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
117457 2003-11-06  Paul Eggert  <eggert@twinsun.com>
117459         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
117460         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
117461         Reject sizes of exactly SIZE_MAX bytes.
117462         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
117463         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
117465 2003-11-05  Bruno Haible  <bruno@clisp.org>
117467         * lib/xsize.h: Include limits.h, to avoid a possible collision with
117468         SIZE_MAX defined in <limits.h> on Solaris.
117470 2003-11-04  Jim Meyering  <jim@meyering.net>
117472         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
117473         variable names, rather than @VAR@.
117474         * modules/poll: Likewise.
117476 2003-11-04  Bruno Haible  <bruno@clisp.org>
117478         * modules/xsize: New file.
117479         * modules/linebreak: Depend on xsize.
117480         * MODULES.html.sh (func_all_modules): Add xsize.
117482 2003-11-04  Bruno Haible  <bruno@clisp.org>
117484         * m4/xsize.m4: New file.
117486 2003-11-04  Bruno Haible  <bruno@clisp.org>
117488         * lib/xsize.h: New file.
117489         * lib/linebreak.c: Include xsize.h.
117490         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
117491         argument for overflow.
117492         Suggested by Paul Eggert.
117494 2003-11-03  Karl Berry  <karl@gnu.org>
117496         * config/config.{guess,sub}: update from config.
117498 2003-11-03  Jim Meyering  <jim@meyering.net>
117500         * modules/userspec (lib_SOURCES): Add userspec.h.
117501         (Include): Add "userspec.h".
117502         Improve description.
117504 2003-11-03  Jim Meyering  <jim@meyering.net>
117506         * lib/userspec.c: Include "userspec.h".
117507         * lib/userspec.h: New file.
117509 2003-11-03  Bruno Haible  <bruno@clisp.org>
117511         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
117513 2003-11-03  Bruno Haible  <bruno@clisp.org>
117515         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
117516         available, to avoid (extremely rare) race condition.
117517         Suggested by Paul Eggert.
117519 2003-11-02  Karl Berry  <karl@gnu.org>
117521         * config/srclist.txt (vasprintf.c): sync broken, sigh.
117523 2003-10-31  Paul Eggert  <eggert@twinsun.com>
117525         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
117526         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
117527         (read_filesystem_list): Set and use me_type_malloced.
117528         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
117529         whatever the type happens to be), for brevity and consistency.
117530         Check for size calculation overflow on Alphas running OSF/1.
117532 2003-10-31  Jim Meyering  <jim@meyering.net>
117534         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
117536         * lib/linebuffer.c: Include <string.h> for declaration of memset.
117538 2003-10-30  Paul Eggert  <eggert@twinsun.com>
117539             Bruno Haible  <bruno@clisp.org>
117541         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
117542         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
117544 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117546         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
117547         netbsd*-gnu*.  Suggested by Robert Millan.
117549 2003-10-29  Paul Eggert  <eggert@twinsun.com>
117551         * modules/group-member: Depend on stdbool.
117553 2003-10-29  Paul Eggert  <eggert@twinsun.com>
117555         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
117557 2003-10-29  Paul Eggert  <eggert@twinsun.com>
117559         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
117560         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
117561         after the 'gnu' in these cases.  This fixes some bugs in the
117562         previous change, and is based on suggestions by Robert Millan.
117564 2003-10-29  Paul Eggert  <eggert@twinsun.com>
117566         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
117567         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
117568         no longer needed.
117569         * lib/quotearg.c (quotearg_n_options): Use it.
117570         * lib/group-member.c: Include <stdbool.h>.
117571         (free_group_info): Arg is now const *; don't free arg.
117572         (get_group_info): Now returns bool and accepts struct group_info *,
117573         rather than returning a malloc'ed struct group_info *.
117574         All uses changed.  Check for overflow in internal size calculation.
117576         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
117577         rather than xmalloc/xrealloc.
117578         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
117579         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
117580         conformance bug: the old code used a pointer after freeing the
117581         storage that it addressed.
117582         * lib/hash.c (hash_initialize): Simplify the code by using
117583         xalloc_oversized rather than doing it by hand.
117584         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
117585         the buffer preserved.  Use free and xmalloc instead.
117586         * lib/quotearg.c (quotearg_n_options): Likewise.
117587         Use a simpler test for size overflow.  Don't use xalloc_oversized
117588         because unsigned int might be wider than size_t (!); this suggests
117589         that we should switch from unsigned int to size_t for slot numbers.
117591 2003-10-28  Paul Eggert  <eggert@twinsun.com>
117593         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
117594         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
117595         NetBSD kernels.  Requested by Richard Stallman.
117597 2003-10-27  Paul Eggert  <eggert@twinsun.com>
117599         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
117600         to allocate the returned structure.  Do not allocate a subarray,
117601         as x2nrealloc will do that.
117602         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
117603         instead of xnrealloc.
117604         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
117606 2003-10-27  Bruno Haible  <bruno@clisp.org>
117608         * lib/stdbool_.h: Better support for BeOS.
117610 2003-10-26  Paul Eggert  <eggert@twinsun.com>
117612         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
117613         now uses inline.
117615 2003-10-26  Paul Eggert  <eggert@twinsun.com>
117617         * lib/xalloc.h (xalloc_oversized): New static inline function, for
117618         callers that want to do their own size-overflow checking.  Include
117619         <stdbool.h>, since xalloc_oversized returns bool.
117620         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
117621         to use xalloc_oversized.
117623         Add two functions x2realloc, x2nrealloc, for programs that grow
117624         arrays dynamically by doubling their sizes.
117625         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
117626         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
117627         New functions.
117629         Port to C99 semantics for 'inline' of external functions.
117630         Bug reported by Bruno Haible.
117631         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
117632         with the old contents of xnmalloc.
117633         (xnmalloc, xmalloc): Use it.
117634         (xnrealloc_inline): New static inline function,
117635         with the old contents of xnrealloc.
117636         (xnrealloc, xrealloc): Use it.
117638         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
117639         that.
117641 2003-10-26  Karl Berry  <karl@gnu.org>
117643         * config/srclist.txt (COPYING.DOC): no longer available from
117644         /gd/gnuorg; don't know where the ultimate source is.
117646 2003-10-25  Paul Eggert  <eggert@twinsun.com>
117648         Fix several address-calculation bugs in the hash modules,
117649         plus some minor code cleanup.
117651         * lib/hash.h: Include <stdbool.h>, for bool.
117652         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
117653         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
117654         hash_get_n_entries, hash_get_max_bucket_length,
117655         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
117656         hash_rehash): Use size_t rather than unsigned.
117657         * lib/hash.c (struct hash_table, hash_get_n_buckets,
117658         hash_get_n_buckets_used, hash_get_n_entries,
117659         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
117660         hash_get_entries, hash_do_for_each, hash_string, is_prime,
117661         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
117662         Likewise.
117663         (SIZE_MAX): Define if not defined.
117664         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
117665         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
117666         hash_print):
117667         Use const * when possible.
117668         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
117669         (check_tuning): Fix bug: if tuning parameters were very close to
117670         0 or 1, rounding errors could have caused subscript violations.
117671         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
117672         (hash_initialize): Add 'fail:' label
117673         to free table and return NULL, and use it to simplify code.
117674         Use calloc rather than clearing the storage ourself.
117675         (hash_initialize, hash_rehash): Check for arithmetic overflow in
117676         buffer size calculations.
117677         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
117678         Include <stddef.h>, for size_t.
117679         * lib/hash-pjw.c (hash_pjw): Likewise.
117680         Switch to method described by Bruno Haible.
117681         Include <limits.h>, for CHAR_BIT.
117682         (SIZE_BITS): New macro.
117684 2003-10-23  Paul Eggert  <eggert@twinsun.com>
117686         * m4/getline.m4 (AM_FUNC_GETLINE):
117687         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
117688         hosts.  Problem reported by Derek Robert Price in
117689         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
117690         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
117691         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
117693 2003-10-21  Paul Eggert  <eggert@twinsun.com>
117695         * lib/getndelim2.c (getndelim2): When size calculation overflows,
117696         ceiling the allocation at NMAX bytes rather than silently
117697         discarding input bytes before NMAX is reached.  This makes
117698         a difference only if NMAX exceeds SIZE_MAX / 2.
117700         * lib/obstack.c: Merge from glibc.
117701         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
117702         Add libc_hidden_def (_obstack_newchunk).
117703         (_obstack_free) [! defined _LIBC]: Remove.
117704         [defined _LIBC]: Make a strong alias from obstack_free, rather than
117705         a clone of the function body.
117706         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
117707         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
117709         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
117710         glibc.
117711         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
117712         arg to memcpy.
117714         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
117715         (obstack_ptr_grow_fast, obstack_int_grow_fast):
117716         Don't use lvalue casts, as GCC plans to remove support for them
117717         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
117718         was also present in the non-GCC version, indicating that this
117719         code had always been buggy and had never been widely used.
117720         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
117721         Use the fast variant of each macro, rather than copying the
117722         definiens of the fast variant; that way, we'll be more likely to
117723         catch future bugs in the fast variants.
117725 2003-10-20  Bruno Haible  <bruno@clisp.org>
117727         * modules/wait-process: New file.
117728         * MODULES.html.sh (func_all_modules): Add wait-process.
117730 2003-10-20  Bruno Haible  <bruno@clisp.org>
117732         * m4/wait-process.m4: New file.
117734 2003-10-20  Bruno Haible  <bruno@clisp.org>
117736         * lib/wait-process.h: New file, from GNU gettext.
117737         * lib/wait-process.c: New file, from GNU gettext.
117739 2003-10-19  Jim Meyering  <jim@meyering.net>
117741         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
117742         HPUX 10.20.
117744 2003-10-18  Karl Berry  <karl@gnu.org>
117746         * config/config.guess: update from config.
117748 2003-10-16  Paul Eggert  <eggert@twinsun.com>
117750         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
117751         (getgroups): First arg is int, not size_t.
117752         Don't let 'free' mangle errno.
117754 2003-10-16  Paul Eggert  <eggert@twinsun.com>
117756         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
117758 2003-10-16  Karl Berry  <karl@gnu.org>
117760         * config/config.{guess,sub}: update from config.
117762 2003-10-16  Jim Meyering  <jim@meyering.net>
117764         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
117765         memcpy.
117767 2003-10-15  Paul Eggert  <eggert@twinsun.com>
117769         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
117770         (SIZE_MAX): Remove.
117771         (new_exclude, add_exclude_file): Initial size no longer needs to
117772         be a power of 2.
117773         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
117774         our own address arithmetic overflow checking.
117776         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
117777         (fnmatch): Do not alloca more than 2000 wide characters;
117778         instead, use malloc for large buffers.
117779         Check for address arithmetic overflow, and return -1
117780         with errno set to ENOMEM in that case.
117781         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
117782         (NEW_PATTERN): Do not alloca more than 8000 bytes;
117783         instead, return -1.  Check for address arithmetic overflow.
117785 2003-10-14  Paul Eggert  <eggert@twinsun.com>
117787         Handle invalid suffixes and overflow independently, so that
117788         callers can treat them independently as needed.  Fix some bugs in
117789         suffix handling, e.g., "100k@" was not diagnosed as an invalid
117790         suffix for a human-readable blocksize.  The major caller-visible
117791         change is the addition of a new
117792         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
117793         that both overflow and suffix chars were found.
117795         * lib/human.c (humblock): Don't check separately for invalid suffix
117796         char; that is xstrtoumax's job (now that its bug is fixed).
117797         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
117798         INTMAX_MAX]: New macros.
117799         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
117800         TYPE_MAXIMUM): New macros.
117801         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
117802         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
117803         if overflow occurs, as it's what __strtol does and it's more useful
117804         in practice.
117805         (__xstrtol): If __strtol reports some error other than ERANGE,
117806         reflect it to the caller as LONGINT_INVALID.  If it reports
117807         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
117808         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
117809         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
117810         value.
117811         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
117812         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
117813         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
117814         [defined UINTMAX_MAX]: New macros.
117816 2003-10-14  Bruno Haible  <bruno@clisp.org>
117818         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
117820 2003-10-14  Bruno Haible  <bruno@clisp.org>
117822         * m4/sig_atomic_t: New file, from GNU gettext.
117823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
117825 2003-10-14  Bruno Haible  <bruno@clisp.org>
117827         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
117828         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
117829         Also use volatile where needed.
117831 2003-10-12  Paul Eggert  <eggert@twinsun.com>
117833         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
117834         Change maintainer from Bruno Haible to 'all'.
117836 2003-10-12  Paul Eggert  <eggert@twinsun.com>
117838         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
117840 2003-10-12  Paul Eggert  <eggert@twinsun.com>
117842         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
117843         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
117844         and define in terms of the other primitives.
117845         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
117846         (SIZE_MAX): Define if not already defined.
117847         (array_size_overflow): New function.
117848         (xalloc_die): Abort instead of exiting if 'error' returns.
117849         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
117850         (xmalloc, xrealloc): Use them.
117851         (xcalloc): Check for address arithmetic overflow.
117852         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
117853         a bit faster than strcpy.
117855 2003-10-10  Simon Josefsson  <jas@extundo.com>
117857         * modules/argp (Depends-on): Add restrict and strcase.
117859 2003-10-10  Simon Josefsson  <jas@extundo.com>
117861         * m4/argp.m4: Add AC_C_INLINE.
117863 2003-10-08  Paul Eggert  <eggert@twinsun.com>
117865         Merge getpass from libc, plus a few fixes.
117867         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
117868         Include <stdbool.h>.
117869         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
117870         __fsetlocking to empty.
117871         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
117872         do include <bits/libc-lock.h>.
117873         Do not include <fcntl.h>; not needed.
117874         [_LIBC]: Include <wchar.h>.
117875         (NOTCANCEL_MODE): New macro.
117876         (flockfile, funlockfile) [_LIBC]: New macros.
117877         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
117878         [!_LIBC]: New macros.
117879         (call_fclose): New function.
117880         (getpass): Use it.  Save tty stream separately; this simplifies the
117881         code and makes it more reliable if stdin happens to equal stdout.
117882         Invoke __fsetlocking on tty.
117883         Handle thread cancellation if needed.
117884         Namespace cleanup (use __tcgetattr, __getline).
117885         Use bool for Booleans.
117886         [USE_IN_LIBIO]: Handle wide streams.
117887         [!_LIBC]: Unconditionally do the fseek, since we don't know what
117888         stream might go where.
117890         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
117891         doesn't have to include <stdio.h> before us.
117892         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
117893         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
117894         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
117895         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
117896         if not declared, so that we can use getpass.c code from libc without
117897         rewriting it.
117898         (flockfile, ftrylockfile, funlockfile): New macros.
117900 2003-10-08  Paul Eggert  <eggert@twinsun.com>
117902         * modules/getpass: Depend on stdbool.
117904 2003-10-08  Paul Eggert  <eggert@twinsun.com>
117906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
117908 2003-10-07  Karl Berry  <karl@gnu.org>
117910         * config/config.{guess,sub}: update from config.
117912 2003-10-06  Jim Meyering  <jim@meyering.net>
117913             Bruno Haible  <bruno@clisp.org>
117915         This lets translators provide better translations for the
117916         "Written by ..." part of --version output.
117917         * lib/version-etc.h: Include stdarg.h.
117918         (version_etc_copyright): Declare as readonly.
117919         (version_etc): Make this function variadic with a NULL-terminated list
117920         of author name strings.
117921         (version_etc_va): New declaration.
117922         * lib/version-etc.c: Include stdarg.h, stdlib.h.
117923         (version_etc_copyright): Declare as readonly.
117924         (version_etc_va): New function. Provide a different translatable string
117925         for each possible number of authors < 10. Abbreviate when there are 10
117926         authors or more.
117927         (version_etc): Make this function variadic. Call version_etc_va.
117928         Suggestion from Gary V. Vaughan.
117930         * lib/long-options.h (parse_long_options): Change prototype: the
117931         authors string is moved to the end and becomes variadic.
117932         * lib/long-options.c: Include stdarg.h.
117933         (parse_long_options): Make this function variadic, too.
117934         Call version_etc_va, not version_etc.
117936 2003-10-06  Bruno Haible  <bruno@clisp.org>
117938         * modules/version-etc-2: Remove file.
117939         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
117941 2003-10-06  Bruno Haible  <bruno@clisp.org>
117943         * modules/fatal-signal: New file.
117944         * MODULES.html.sh (func_all_modules): Add fatal-signal.
117946 2003-10-06  Bruno Haible  <bruno@clisp.org>
117948         * m4/fatal-signal.m4: New file.
117949         * m4/signalblocking.m4: New file, from GNU gettext.
117951 2003-10-06  Bruno Haible  <bruno@clisp.org>
117953         * lib/version-etc-2.h: Remove file.
117954         * lib/version-etc-2.c: Remove file.
117956 2003-10-06  Bruno Haible  <bruno@clisp.org>
117958         * lib/fatal-signal.h: New file, from GNU gettext.
117959         * lib/fatal-signal.c: New file, from GNU gettext.
117961 2003-10-05  Paul Eggert  <eggert@twinsun.com>
117963         * README: Rework advice for preventing empty .o files.
117964         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
117965         not <sys/types.h>.
117967 2003-10-04  Karl Berry  <karl@gnu.org>
117969         * lib/argp*: update from libc.
117971 2003-10-04  Karl Berry  <karl@gnu.org>
117973         * config/config.{guess,sub}: update from config.
117975 2003-10-02  Bruno Haible  <bruno@clisp.org>
117977         * modules/lchown (Include): Add lchown.h.
117978         * modules/time_r (Include): Use "..." syntax.
117979         * modules/xgetdomainname (Include): Add xgetdomainname.h.
117981 2003-10-01  Simon Josefsson  <jas@extundo.com>
117983         * MODULES.html.sh (func_all_modules): Move gethostname from section
117984         'based on' to section 'lacking' POSIX:2001.
117986 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
117988         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
117989         to output mode on the same stream.
117991 2003-09-29  Paul Eggert  <eggert@twinsun.com>
117993         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
117994         Fix arg typo in previous patch.
117996 2003-09-28  Jim Meyering  <jim@meyering.net>
117998         * lib/error.c: Correct cpp indentation.
118000 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118002         * modules/free: New file.
118004 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118006         * m4/free.m4: New file.
118008 2003-09-27  Paul Eggert  <eggert@twinsun.com>
118010         * lib/minmax.h (MIN, MAX)
118011         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
118012         Omit the special code that used __typeof__, since we worry that
118013         it could be more trouble than it's worth.  See:
118014         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
118015         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
118017         * lib/free.c: New file.
118019 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
118021         Trivial fixes to Makefile.am parts of module listings.
118022         * modules/strstr: Append strstr.h to lib_SOURCES.
118023         * modules/strcase: Likewise, for strcase.h.
118025 2003-09-27  Karl Berry  <karl@gnu.org>
118027         * config/mkinstalldirs: update from automake.
118029 2003-09-26  Paul Eggert  <eggert@twinsun.com>
118031         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
118032         (error_tail): Do not loop, reallocating temporary buffer, since
118033         the output cannot contain more wide characters than the input
118034         contains bytes, the size must be big enough already.  This avoids
118035         one potential size overflow calculation.  Check for size overflow
118036         when calculating temporary buffer size.  Free temporary buffer
118037         when done, if it was allocated with malloc; this plugs a memory
118038         leak.  Remove casts from void * to pointers, that are no longer
118039         needed now that we're assuming C89 or better.
118041         Merge error changes from glibc.
118043         * lib/error.c, error.h: Update copyright notice header to match glibc.
118044         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
118045         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
118046         Disable cancellation while printing error.
118047         * lib/error.h: Prepend __ to parameter names.
118049 2003-09-26  Jim Meyering  <jim@meyering.net>
118051         * lib/error.c (error_tail): Move some declarations
118052         into inner scope where the local variables are used.
118054 2003-09-26  Bruno Haible  <bruno@clisp.org>
118056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
118057         stpncpy().
118058         Don't define stpncpy through config.h; it's now done through stpncpy.h.
118060 2003-09-26  Bruno Haible  <bruno@clisp.org>
118062         * lib/stpncpy.h (gnu_stpncpy): New declaration.
118063         (stpncpy): Define as alias for gnu_stpncpy.
118064         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
118066 2003-09-25  Simon Josefsson  <jas@extundo.com>
118068         * lib/xgetdomainname.h: New file.
118069         * lib/xgetdomainname.c: New file.
118071 2003-09-25  Simon Josefsson  <jas@extundo.com>
118072             Bruno Haible  <bruno@clisp.org>
118074         * modules/getdomainname: New file.
118075         * modules/xgetdomainname: New file.
118076         * MODULES.html.sh (func_all_modules): Add getdomainname,
118077         xgetdomainname.
118079 2003-09-25  Simon Josefsson  <jas@extundo.com>
118080             Bruno Haible  <bruno@clisp.org>
118082         * m4/getdomainname.m4: New file.
118084 2003-09-25  Simon Josefsson  <jas@extundo.com>
118085             Bruno Haible  <bruno@clisp.org>
118087         * lib/getdomainname.h: New file.
118088         * lib/getdomainname.c: New file.
118090 2003-09-25  Karl Berry  <karl@gnu.org>
118092         * lib/argp-fmtstream.c, argp-help.c: update from libc.
118094 2003-09-25  Karl Berry  <karl@gnu.org>
118096         * config/install-sh: update from automake.
118098 2003-09-25  Bruno Haible  <bruno@clisp.org>
118100         * modules/version-etc-2: New file, from modules/version-etc with
118101         modifications.
118102         * MODULES.html.sh (func_all_modules): Add version-etc-2.
118104 2003-09-25  Bruno Haible  <bruno@clisp.org>
118106         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
118107         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
118109 2003-09-24  Simon Josefsson  <jas@extundo.com>
118111         * modules/xgethostname: Add xgethostname.h.
118113 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118115         * lib/linebuffer.c (freebuffer): Don't free the argument, just
118116         the buffer associated with the argument.  Bug reported by
118117         Simon Josefsson.
118119 2003-09-24  Paul Eggert  <eggert@twinsun.com>
118121         * README: Document assumptions that 'int' is at least 32 bits
118122         wide, that integer arithmetic is 2's complement without overflow,
118123         that there are no holes in integer values, that adding sizes of
118124         two nonoverlapping objects can't overflow, and that all-bits-zero
118125         yields scalar zero.  Fix spelling and capitalization typos.
118127 2003-09-19  Karl Berry  <karl@gnu.org>
118129         * lib/argp.h: update from libc.
118131 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
118134         to avoid spurious warnings like "AC_RUN_IFELSE was called before
118135         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
118137 2003-09-17  Paul Eggert  <eggert@twinsun.com>
118139         * gnulib-tool: Use "test -h", not "test -L", for portability
118140         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
118141         (tags_regexp): Remove, since \| doesn't conform to POSIX.
118142         (sed_extract_prog): Issue s commands one-by-one, rather than
118143         using \| in one s command.
118145 2003-09-16  Paul Eggert  <eggert@twinsun.com>
118147         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
118148         input error, instead of returning NULL the next time we are called
118149         (and therefore losing track of errno).
118151 2003-09-16  Bruno Haible  <bruno@clisp.org>
118153         * gnulib-tool (func_create_testdir): Warn about duplicated
118154         dependencies.
118156 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118158         * modules/argmatch, modules/fatal, modules/obstack,
118159         modules/xalloc, modules/xgethostname: Sort dependencies by
118160         importance, not alphabetically.
118162 2003-09-15  Paul Eggert  <eggert@twinsun.com>
118164         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
118165         fails, so that the caller gets the proper errno.
118167         * lib/readutmp.c (read_utmp): Likewise.
118168         Check for fstat error.  Close stream and free storage
118169         when failing.
118171 2003-09-14  Karl Berry  <karl@gnu.org>
118173         * config/srclist.txt (strdup.c): disable for c89 changes.
118175 2003-09-14  Jim Meyering  <jim@meyering.net>
118177         * lib/getloadavg.c: Correct cpp indentation.
118178         * lib/strdup.c: Likewise.
118179         * lib/vasnprintf.c: Likewise.
118181 2003-09-14  Bruno Haible  <bruno@clisp.org>
118183         * modules/fwriteerror: New file.
118184         * MODULES.html.sh (func_all_modules): Add fwriteerror.
118186 2003-09-14  Bruno Haible  <bruno@clisp.org>
118188         * lib/fwriteerror.h: New file.
118189         * lib/fwriteerror.c: New file.
118191 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118193         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
118194         modules/xgethostname, modules/xalloc: Depend on exit.
118196 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118198         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
118200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
118201         and AC_MINIX, too, so that their extensions are available.
118203         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
118204         This macro has been superseded by gl_BACKUPFILE.
118206         More patches to assume C89 or better.
118208         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
118210         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
118211         unconditionally.
118212         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
118213         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
118214         Include <string.h>, <stdlib.h> unconditionally.
118215         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
118216         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
118217         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
118218         headers or for string.h.
118219         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
118220         or strtoul.
118222         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
118223         headers.
118224         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
118225         * m4/userspec.m4 (gl_USERSPEC): Likewise.
118226         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
118227         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
118228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
118229         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
118230         memcpy, memset.
118231         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
118232         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
118233         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
118234         strtol.
118235         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
118236         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
118237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
118238         strtoul.
118240 2003-09-12  Paul Eggert  <eggert@twinsun.com>
118242         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
118243         * lib/obstack.c [!defined _LIBC]: Likewise.
118244         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
118245         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
118246         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
118248         More changes to assume C89 or better.
118250         * lib/error.c (error_tail): Assume vprintf.
118252         * lib/argmatch.c (getenv): Remove decl.
118253         * lib/progreloc.c (get_full_program_name): Define via prototype.
118254         * lib/setenv.c (clearenv): Likewise.
118255         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
118256         needed.
118257         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
118258         (malloc, memcpy): Remove decls.
118259         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
118260         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
118261         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118262         (memcpy): Remove macro.
118263         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
118264         (__P): Remove.  All uses removed.
118265         (PTR): Remove.  All uses changed to void *.
118266         (CHAR_BIT, NULL): Remove.
118267         (spaces, zeros, memset_space, memset_zero)
118268         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
118269         Remove.
118270         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
118271         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
118272         Define with prototype.
118273         Remove now-unnecessary prototype decl.
118274         (extra_args_spec): Assume ANSI C.  All uses changed.
118275         (extra_args_spec_iso): Remove.
118276         (my_strftime, emacs_strftimeu): Define via prototype.
118277         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
118278         unconditionally.
118279         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
118280         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
118281         (strtoul, strtol): Remove decls.
118282         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
118283         LONG_MAX): Remove.
118284         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
118285         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
118286         (LOCALE_PARAM_PROTO): New macro.
118287         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
118288         (INTERNAL (strtol), strtol): Define with a prototype.
118289         (PARAMS): Remove.  All uses removed.
118290         * lib/tempname.c: Include <string.h> unconditionally.
118291         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
118292         * lib/xgethostname.c (main): Define with a prototype.
118293         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
118294         Include <stdlib.h> unconditionally.
118295         (calloc, malloc, realloc, free): Remove decls.
118296         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
118297         Include <stdlib.h> unconditionally.  Sort include file names.
118298         (strtod): Remove.
118299         (xstrtod): Define with a prototype.
118300         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
118301         (strtol, strtoul): Remove decls.
118303 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118305         More patches to assume C89 or better.
118306         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
118307         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
118308         string.h, memchr, STDC_HEADERS.
118310 2003-09-11  Paul Eggert  <eggert@twinsun.com>
118312         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
118313         Include <stdlib.h>, <string.h> unconditionally.
118314         Remove now-unnecessary cast to char *.
118315         * lib/strnlen.c: Include <string.h> unconditionally.
118316         * lib/yesno.c (yesno): Define with a prototype.
118318 2003-09-11  Bruno Haible  <bruno@clisp.org>
118320         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
118322 2003-09-10  Jim Meyering  <jim@meyering.net>
118324         * lib/error.c: Correct indentation of cpp directives.
118326 2003-09-10  Bruno Haible  <bruno@clisp.org>
118328         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
118329         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
118330         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
118331         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
118332         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
118333         <stdlib.h> and <string.h> checks.
118334         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
118335         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
118337 2003-09-10  Bruno Haible  <bruno@clisp.org>
118339         * lib/strcspn.c: Include <string.h> unconditionally.
118340         * lib/strpbrk.c: Include <string.h> unconditionally.
118341         * lib/strstr.c: Include <string.h> unconditionally.
118342         * lib/unicodeio.c: Include <string.h> unconditionally.
118343         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
118344         * lib/unsetenv.c: Likewise.
118345         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
118346         * lib/yesno.c: Include <stdlib.h> unconditionally.
118347         (rpmatch): Add prototype.
118349 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118351         More patches to assume C89 or better.
118352         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
118353         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
118354         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
118355         or for string.h.
118356         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
118357         stdlib.h.
118358         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
118359         C headers.
118360         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
118361         string.h.
118362         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
118363         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
118364         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
118365         or for string.h.
118366         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
118367         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
118368         C headers.
118369         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
118370         memcpy.
118371         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
118372         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
118373         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
118374         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
118375         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
118376         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
118377         string.h, free.
118378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
118379         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
118380         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
118381         C headers, or for string.h.
118382         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
118383         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
118384         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
118385         headers, memory.h, stdlib.h, string.h, strings.h.
118386         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
118387         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
118388         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
118389         strchr.
118390         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
118391         headers, memory.h, string.h.
118392         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
118393         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
118394         free.
118395         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
118396         headers.
118397         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
118398         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
118399         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
118400         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
118401         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
118403 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118405         More K&R removal.
118407         * lib/acosl.c (main): Use a prototype.
118408         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
118409         tanl.c: Likewise.
118411         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
118413         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
118414         (getopt, etopt_long, getopt_long_only, _getopt_internal)
118415         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
118416         with a prototype.
118417         * lib/getopt.c (const): Remove macro.
118418         Include <string.h> unconditionally.
118419         (my_index): Remove; all uses changed to strchr.
118420         (strlen): Remove decl.
118421         (exchange): Remove forward decl; no longer needed.
118422         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
118423         Define with prototype.
118424         * lib/getopt1.c (const): Remove macro.
118425         (getopt_long, getopt_long_only, main): Define with prototype.
118427         * lib/getugroups.c: Include <string.h> unconditionally.
118429         * lib/getusershell.c: Include <stdlib.h> unconditionally.
118430         (getusershell, setusershell, endusershell, readname, main):
118431         Define with prototypes.
118433         * lib/group-member.c: Include group-member.h first.
118434         Include <stdlib.h> unconditionally.
118436         * lib/hard-locale.c: Include hard-locale.h first.
118437         Include <stdlib.h>, <string.h> unconditionally.
118439         * lib/hash.c (free, malloc): Remove decls.
118440         Include <stdlib.h> unconditionally.
118442         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
118443         (getenv): Do not declare.
118445         * lib/idcache.c: Include <string.h> unconditionally.
118447         * lib/long-options.c: Include long-options.h first, to test interface.
118448         Include <stdlib.h> unconditionally.
118450         * lib/makepath.c: Include makepath.h first, to test interface.
118451         Include <stdlib.h> and <string.h> unconditionally.
118453         * lib/linebuffer.c: Include <stdlib.h>.
118454         (free): Remove decl.
118456         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
118457         stddef.h. rpl_malloc returns void *, not char *.
118458         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
118459         prototype.
118461         * lib/md5.h: Include <limits.h> unconditionally.
118462         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
118463         (__P): Remove; all uses removed.
118464         * lib/md5.c: Include "md5.h" first.
118465         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
118466         md5_buffer, md5_process_bytes, md5_process_block):
118467         Define with prototypes.
118468         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
118469         * lib/sha.c: Include "sha.h" first.
118470         Include <stdlib.h>, <string.h> unconditionally.
118472         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
118473         * lib/memcmp.c (__ptr_t): Likewise.
118474         * lib/memrchr.c (__ptr_t): Likewise.
118475         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
118476         Include <string.h> unconditionally.
118477         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
118478         * lib/memchr.c: Include <stdlib.h> unconditionally.
118479         * lib/memchr.c (LONG_MAX): Remove.
118480         * lib/memrchr.c (LONG_MAX): Likewise.
118481         * lib/memchr.c (__memchr): Define via a prototype.
118482         * lib/memrchr.c (__memrchr): Likewise.
118483         * lib/memcmp.c (__P): Remove, and remove all uses.
118484         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
118485         Remove forward decls; no longer needed.
118486         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
118487         Use types required by C89 in prototype.
118489         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
118490         * lib/savedir.c: Likewise.
118491         * lib/mkdir.c (free): Remove decl.
118492         * lib/rmdir.c (rmdir): Define with a prototype.
118493         * lib/savedir.c: Include savedir.h first, to test interface.
118495         * lib/mktime.c (STDC_HEADERS): Remove.
118496         Include <stdlib.h>, <string.h> unconditionally.
118498         * lib/modechange.c: Include <stdlib.h> unconditionally.
118499         (malloc): Remove decl.
118501         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
118502         (free): Remove decl.
118504         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
118505         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
118506         (This type really should be intptr_t, but that's a C99ism.)
118507         (_obstack_memcpy): Remove: all uses changed to memcpy.
118508         Include <string.h> unconditionally.
118509         (struct obstack): Assume __STDC__ for types of members
118510         chunkfun, freefun, extra_arg.
118511         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
118512         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
118513         obstack_begin, obstack_specify_allocation,
118514         obstack_specify_allocation_with_arg, obstack_chunkfun,
118515         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
118516         Remove unprototyped decls and the macros that use them.
118517         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
118518         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
118519         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
118520         (defined __STDC__ && __STDC__)]:
118521         Remove nonprototyped code.
118522         Include <stdlib.h> unconditionally.
118523         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
118524         _obstack_allocated_p, _obstack_free, obstack_free,
118525         _obstack_memory_used, print_and_abort):
118526         Define using prototypes.
118527         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
118528         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
118529         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
118530         obstack_next_free, obstack_object_size, obstack_room) [0]:
118531         Remove unused, unprototyped code.
118533         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
118535         * lib/physmem.c (physmem_total, physmem_available, main): Define
118536         with prototypes.
118538         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
118539         (main): Define with a prototype.
118541         * lib/posixver.c (getenv): Remove decl.
118543         * lib/putenv.c (malloc): Returns void *, not char *.
118544         Include <string.h> unconditionally.
118545         (strchr, memcpy, NULL): Do not define.
118547         * lib/readtokens.c: Include readtokens.h first, to test interface.
118548         Include <stdlib.h>, <string.h> unconditionally.
118549         (init_tokenbuffer): Define with a prototype.
118551         * lib/regex.c (PARAMS): Remove.  All uses removed.
118552         All uses of _RE_ARGS removed, too.
118553         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
118554         unconditionally.
118555         (bzero): Assume memset exists.
118556         (memcmp, memcpy, NULL): Remove.
118557         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
118558         char, or assignments to local vars of type signed char.
118559         (init_syntax_once, PREFIX(extract_number_and_incr),
118560         PREFIX(print_partial_compiled_pattern),
118561         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
118562         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
118563         PREFIX(regex_grow_registers), PREFIX(regex_compile),
118564         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
118565         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
118566         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
118567         wcs_compile_range, byte_compile_range, truncate_wchar,
118568         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
118569         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
118570         count_mbs_length, wcs_re_match_2_internal,
118571         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
118572         PREFIX(alt_match_null_string_p),
118573         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
118574         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
118575         regfree, PREFIX(extract_number)): Define with prototype.  Remove
118576         now-unnecessary declaration, if any.
118577         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
118578         regcomp, regexec):
118579         Remove now-unnecessary casts among pointer types.
118580         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
118582         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
118583         (free): Remove decl.
118585         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
118587         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
118588         (free): Remove decl.
118590         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
118591         * lib/xgetcwd.c: Likewise.
118593         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
118594         (free): Remove decl.
118596         * lib/strchrnul.c (strchrnul): Define with a prototype.
118597         Fix bug: c_in was not converted to char before searching.
118599         The following changes are not K&R related:
118601         * lib/group-member.h: Include <sys/types.h>, so that this file is
118602         self-contained.
118603         * lib/makepath.h: Likewise.
118605         * lib/getusershell.c (readname, default_index, line_size, readname):
118606         Use size_t, not int, for sizes.
118607         (readname): If the size overflows, report an error instead of
118608         looping forever.
118610 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118612         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
118613         libc.
118615 2003-09-09  Paul Eggert  <eggert@twinsun.com>
118617         * README: New section: portability guidelines.
118619 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
118621         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
118622         C89 spec.
118624 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
118626         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
118628 2003-09-08  Paul Eggert  <eggert@twinsun.com>
118630         Assume C89 or better; remove K&R cruft.
118631         A few of these changes were first proposed by Derek Robert Price
118632         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
118634         * lib/addext.c: Include <string.h> unconditionally.
118635         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
118636         Don't declare getenv or malloc.
118638         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
118639         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
118640         (NULL): Remove.
118641         (find_stack_direction, alloca): Use prototypes.
118643         * lib/atexit.c (atexit): Define using a prototype.
118645         * lib/basename.c, dirname.c, stripslash.c:
118646         Include <string.h> unconditionally.
118648         * lib/bcopy.c: Include <stddef.h>.
118649         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
118651         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
118653         * lib/error.h (error, error_at_line, error_print_progname)
118654         [! (defined (__STDC__) && __STDC__)]: Remove decls.
118655         * lib/error.c: Include error.h first, to check interface.
118656         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
118657         (VA_START): Remove; all uses changeed to va_start.
118658         (exit, strerror): Remove decls.
118659         (error_print_progname): Prototype uncondionally.
118660         Don't include <errno.h>; no longer needed.
118661         (private_strerror): Remove.
118662         (error_tail): Always define.
118663         (error, error_at_line): Assume C89 or better; always use prototypes.
118664         * lib/fatal.c: Include "fatal.h" first, to test interface.
118665         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
118666         (VA_START): Remove; all uses changed to va_start.
118667         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
118668         this case.
118669         (exit): Remove decl.
118670         (fatal): Prototype unconditionally.  Assume va_start works.
118671         Abort at end, to pacify gcc.
118673         * lib/euidaccess.c (main): Define with a prototype.
118675         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
118677         * lib/exitfail.c: Include <stdlib.h> unconditionally.
118679         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
118680         prototypes.
118681         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
118682         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
118683         (getenv): Remove decl.
118684         (fnmatch): Define using a prototype.
118685         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
118686         (FCT): Define using a prototype.
118688         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
118690         * lib/gethostname.c: Include <stddef.h>.
118691         (gethostname): Define with prototype.  Length is size_t, not int.
118693 2003-09-08  Paul Eggert  <eggert@twinsun.com>
118695         Assume C89 or better; remove K&R cruft.
118696         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
118697         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
118698         string.h, getenv, malloc.
118699         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
118700         headers.
118701         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
118702         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
118703         do not check for strerror.
118704         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
118705         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
118706         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
118707         do not check for doprnt or vprintf.
118708         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
118709         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
118711 2003-09-08  Paul Eggert  <eggert@twinsun.com>
118713         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
118714         getversion.c should have been removed then, but was accidentally
118715         preserved.
118717         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
118718         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
118720 2003-09-08  Karl Berry  <karl@gnu.org>
118722         * config/config.sub, config.guess, srclistvars.sh: update from savannah
118723                 config, forget about prep.
118725         * config/depcomp, missing: update from automake.
118727 2003-09-07  Paul Eggert  <eggert@twinsun.com>
118729         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
118730         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
118732 2003-09-07  Paul Eggert  <eggert@twinsun.com>
118734         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
118735         copy_tm_result.  Bug reported by Simon Josefsson in
118736         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
118738 2003-09-06  Paul Eggert  <eggert@twinsun.com>
118740         * m4/time_r.m4: New file.
118741         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
118742         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
118743         is. Check for timegm declaration.
118744         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
118745         Do not check for gmtime_r.
118746         Replace mktime if __mktime_internal does not exist and if mktime
118747         hasn't been replaced already.
118749 2003-09-06  Paul Eggert  <eggert@twinsun.com>
118751         * lib/time_r.c, lib/time_r.h: New files.
118753         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
118754         __localtime_r.
118755         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
118756         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
118758         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
118759         __gmtime_r.
118760         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
118761         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
118762         Include <time_r.h>.
118764         * lib/timegm.c: Switch to glibc implementation, with the following
118765         changes:
118766         [defined HAVE_CONFIG_H]: Include <config.h>.
118767         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
118768         (__mktime_internal) [!defined _LIBC]: New decl.
118769         (__gmtime_r) [!defined _LIBC]: New macro and function.
118770         (timegm): Use a prototype, since gnulib assumes C89.
118771         Do not bother declaring tmp to be const, as it's not really usefu.
118772         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
118773         (timegm): Declare only if HAVE_DECL_TIMEGM.
118775 2003-09-06  Paul Eggert  <eggert@twinsun.com>
118777         * MODULES.html.sh (func_all_modules): Add time_r.
118778         * modules/time_r: New file.
118779         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
118780         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
118782 2003-09-03  Paul Eggert  <eggert@twinsun.com>
118784         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
118785         Bug reported by Lute Kamstra in
118786         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
118788         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
118789         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
118790         course with correspondingly smaller numbers for tomorrow and
118791         yesterday.  From Tadayoshi Funaba.  Originally installed into
118792         sh-utils on 1999-08-07, but the patch got lost (I guess during the
118793         coreutils merge?).
118795 2003-08-31  Simon Josefsson  <jas@extundo.com>
118797         * modules/timegm: New file.
118798         * MODULES.html.sh (func_all_modules): Add timegm.
118800 2003-08-31  Simon Josefsson  <jas@extundo.com>
118802         * m4/timegm.m4: New file.
118804 2003-08-31  Simon Josefsson  <jas@extundo.com>
118806         * lib/timegm.h: New file.
118807         * lib/timegm.c: New file.  Based on
118808         wget-1.8.2/src/http.c:mktime_from_utc.
118810 2003-08-31  Karl Berry  <karl@gnu.org>
118812         * lib/argp.h: update from libc.
118814 2003-08-28  Bruno Haible  <bruno@clisp.org>
118816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
118817         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
118818         followed by '#define fnmatch fnmatch_posix' gives an error.
118820 2003-08-28  Bruno Haible  <bruno@clisp.org>
118822         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
118823         warning on QNX, which defines O_BINARY to 000000.
118825 2003-08-27  Jim Meyering  <jim@meyering.net>
118827         * m4/mkstemp.m4: Require that the system mkstemp be able to create
118828         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
118829         would fail after 32.  Reported by Danny Levinson.  Details here:
118830         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
118832 2003-08-24  Bruno Haible  <bruno@clisp.org>
118834         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
118835         MSVC7 <stdio.h> is included later.
118837 2003-08-22  Simon Josefsson  <jas@extundo.com>
118839         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
118841 2003-08-20  Karl Berry  <karl@gnu.org>
118843         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
118845 2003-08-20  Bruno Haible  <bruno@clisp.org>
118847         * modules/progname: New file.
118848         * MODULES.html.sh (func_all_modules): Add progname.
118850 2003-08-20  Bruno Haible  <bruno@clisp.org>
118852         * lib/progname.h: New file, from GNU gettext.
118853         * lib/progname.c: New file, from GNU gettext.
118854         * lib/progreloc.c: New file, from GNU gettext.
118856 2003-08-19  Jim Meyering  <jim@meyering.net>
118858         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
118859         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
118861 2003-08-19  Bruno Haible  <bruno@clisp.org>
118863         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
118864         more.
118866 2003-08-19  Bruno Haible  <bruno@clisp.org>
118868         * lib/xstrdup.c: Assume <string.h> exists.
118870 2003-08-18  Paul Eggert  <eggert@twinsun.com>
118872         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
118873         in makefile rules.
118875 2003-08-18  Jim Meyering  <jim@meyering.net>
118877         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
118878         * m4/lib-ld.m4: Likewise.
118880 2003-08-18  Jim Meyering  <jim@meyering.net>
118882         * lib/setenv.h: Indent nested cpp directive.
118883         * lib/vasnprintf.c: Remove trailing blanks.
118885 2003-08-17  Simon Josefsson  <jas@extundo.com>
118887         * modules/xstrndup: New file.
118888         * MODULES.html.sh (func_all_modules): Add xstrndup.
118890 2003-08-17  Simon Josefsson  <jas@extundo.com>
118892         * modules/argp: Fix autoconf macro name. Add more dependencies.
118894 2003-08-17  Simon Josefsson  <jas@extundo.com>
118896         * m4/xstrndup.m4: New file.
118898 2003-08-17  Simon Josefsson  <jas@extundo.com>
118900         * m4/argp.m4: New file.
118902 2003-08-17  Simon Josefsson  <jas@extundo.com>
118903             Bruno Haible  <bruno@clisp.org>
118905         * lib/xstrndup.h: New file.
118906         * lib/xstrndup.c: New file.
118908 2003-08-17  Bruno Haible  <bruno@clisp.org>
118910         * modules/strndup (Files, Include): Add lib/strndup.h.
118912 2003-08-17  Bruno Haible  <bruno@clisp.org>
118914         * modules/euidaccess (Files): Add lib/euidaccess.h.
118916 2003-08-17  Bruno Haible  <bruno@clisp.org>
118918         * lib/strndup.h: New file.
118920 2003-08-17  Bruno Haible  <bruno@clisp.org>
118922         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
118923         like AC_GNU_SOURCE.
118924         * modules/extensions (configure.ac): Comment out the invocation of
118925         gl_USE_SYSTEM_EXTENSIONS.
118927 2003-08-16  Paul Eggert  <eggert@twinsun.com>
118929         Merges from coreutils, etc.
118930         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
118931         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
118932         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
118933         fixing a typo.
118934         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
118935         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
118937 2003-08-16  Paul Eggert  <eggert@twinsun.com>
118939         Document merge from coreutils.
118940         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
118941         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
118942         * modules/utime: Add m4/utimes-null.m4.
118944 2003-08-16  Paul Eggert  <eggert@twinsun.com>
118946         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
118947         space, undoing this 2003-08-12 change:
118948         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
118950 2003-08-16  Paul Eggert  <eggert@twinsun.com>
118952         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
118953         strtoul.c from libc, undoing this 2003-08-12 change:
118954         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
118956 2003-08-16  Jim Meyering  <jim@meyering.net>
118958         Merges from coreutils.
118959         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
118960         prefix.  Adjust cache variables similarly.  Create 500 rather than
118961         just 300 files, to exercise bug on Darwin6.5, too.
118962         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
118963         $missing_dir.
118964         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
118965         AM_SYS_POSIX_TERMIOS.
118966         Reported by mkc@mathdogs.com.
118967         Also change use of $am_cv_sys_posix_termios
118968         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
118969         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
118970         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
118971         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
118972         in /proc/mounts until it finds one with matching device number.  This
118973         is unnecessary when the FILE argument *is* a mount point.  No stat call
118974         is necessary in that case.  So, disable the statvfs-testing code on
118975         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
118976         as RedHat bug# 84846.
118977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
118978         to 1MB, so as not to render systems with no stack size limit (e.g.,
118979         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
118980         Include <unistd.h>.  On some systems,
118981         it is required for the definition of _SC_PAGESIZE.
118983 2003-08-16  Jim Meyering  <jim@meyering.net>
118985         Merge from coreutils.
118986         * lib/xstrtoimax.c: #else #if -> #elif.
118987         * lib/xstrtoumax.c: Likewise.
118989 2003-08-16  Jim Meyering  <jim@meyering.net>
118991         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
118992         * m4/utimes.m4: Removed.
118993         * m4/utimes-null.m4: Renamed from utimes.m4.
118995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
118996         to 1MB, so as not to render systems with no stack size limit (e.g.,
118997         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
118998         Include <unistd.h>.  On some systems,
118999         it is required for the definition of _SC_PAGESIZE.
119001 2003-08-16  Jim Meyering  <jim@meyering.net>
119002         and Paul Eggert  <eggert@cs.ucla.edu>
119004         Merges from coreutils, etc.
119006         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
119007         using the latest version from cvs.  This avoids problems with #line
119008         directives using a vendor (Sun) compiler.
119009         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
119010         Don't set GETGROUPS_LIB here; now it's
119011         done via getgroups.m4's wrapper function.
119012         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
119013         rather than just in sh-util/configure.in, so that the
119014         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
119015         same.
119016         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
119017         AC_FUNC_GETLOADAVG where to find getloadavg.c.
119018         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
119019         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
119020         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
119021         Remove code that is now done by the newly-required macros.
119022         Append $(EXEEXT) to DF_PROG.
119023         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
119024         Do not invoke or require the following here,
119025         since prereq.m4 or some gnulib .m4 now does this for us:
119026         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
119027         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
119028         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
119029         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
119030         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
119031         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
119032         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
119033         AC_FUNC_OBSTACK.
119034         Do not replace the following functions, as this is now the job
119035         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
119036         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
119037         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
119038         atexit getpass, strdup, getpagesize.
119039         Replace 'raise'.
119040         Do not check for the following functions, as this is now the job
119041         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
119042         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
119043         setregid.
119044         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
119045         Check for sys/sysctl.h.
119046         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
119047         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
119048         of checking for ssize_t ourselves.
119050         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
119051         Require every macro that gnulib/modules/* suggests for us.
119052         (jm_PREREQ_ADDEXT): New macro.
119053         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
119054         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
119056         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
119057         (gl_PHYSMEM): Use it.
119058         Also check for `table' function.
119059         Check for new headers and functions.
119060         Add check for sys/sysmp.h.
119061         With suggestions from Kaveh Ghazi.
119062         Ignore headers that are present but cannot be compiled.  This
119063         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
119064         C 5.4.
119066 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119068         Document merge from coreutils.
119069         * modules/userspec: Depend on posixver.
119070         * modules/strftime: Depend on tzset.
119072 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119074         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
119075         rather than tab, after '#' in shell-script copyright notices.
119076         Suggested by Bruno Haible.
119078 2003-08-15  Paul Eggert  <eggert@twinsun.com>
119080         * config/srclist-update: Use three spaces, rather than tab, after '#'
119081         in shell-script copyright notices.  Suggested by Bruno Haible.
119082         Remove unnecessary parenthesization in regular expression.
119084 2003-08-15  Jim Meyering  <jim@meyering.net>
119086         Merge from coreutils.
119087         * lib/xgethostname.c: Include <stdlib.h>.
119088         (xghostname): Don't exit for anything other than memory-related
119089         failure; just return NULL.
119090         * lib/userspec.c: Include "posixver.h".
119091         (parse_user_spec): Accept `.' as a separator only
119092         in pre-POSIX-200112 mode.
119093         * lib/strtoimax.c: Use #elif rather than #else #if.
119094         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
119095         Remove function, now that we can rely on a working tzset function.
119096         [!_LIBC]: Ensure that the required autoconf test has been run.
119097         [!defined _NL_CURRENT && HAVE_STRFTIME]:
119098         Use underlying_strftime for %r.
119099         * lib/sha.c: Merge in some clean-up and optimization changes from
119100         glibc.
119101         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
119102         Ensure that it is a multiple of 64.
119103         Rearrange loop exit tests so as to avoid performing an
119104         additional fread after encountering an error or EOF.
119105         * lib/realloc.c: Update copyright date.
119107 2003-08-15  Jim Meyering  <jim@meyering.net>
119108         and Paul Eggert  <eggert@twinsun.com>
119110         Merge from coreutils.
119111         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
119112         member but strut utmpx does not.  Needed for AIX 4.3.3.
119113         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
119115 2003-08-15  Jim Meyering  <jim@meyering.net>
119116         and Paul Eggert  <eggert@cs.ucla.edu>
119118         Merges from coreutils, etc.
119119         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
119120         Require gl_FUNC_TZSET_CLOBBER.
119121         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
119122         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
119123         members.
119125 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119127         Help the merge from coreutils.
119128         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
119129         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
119130         * m4/tzset.m4: Use it too.
119132 2003-08-14  Paul Eggert  <eggert@twinsun.com>
119134         * modules/tzset: New file.
119136 2003-08-14  Jim Meyering  <jim@meyering.net>
119138         Merges from coreutils.
119139         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
119140         variable names, rather than @FNMATCH_H@.
119141         * modules/alloca: Likewise for $(ALLOCA_H).
119143         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
119144         the three copies of the literal target, `fnmatch.h'.
119145         * modules/alloca (alloca.h): Likewise.
119147 2003-08-14  Jim Meyering  <jim@meyering.net>
119149         Merge from coreutils.
119150         * m4/tzset.m4: New file.
119151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
119152         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
119153         otherwise, AIX 5.1 systems would end up using the latter.
119154         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
119155         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
119156         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
119157         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
119159 2003-08-14  Jim Meyering  <jim@meyering.net>
119161         Merge from coreutils.
119162         * lib/obstack.h: Whitespace changes.
119163         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
119164         and xcalloc return values.
119165         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
119166         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
119167         hang on OSF/1 5.1 for DIR on both local and remote file systems.
119168         Reported by (and fix confirmed by) Nelson H. F. Beebe.
119169         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
119170         error from mntctl.
119171         Use mntctl's return value to drive the entry-processing loop, since
119172         we can't rely on the value of the vmt_length member in the last
119173         entry.  On some systems doing so could result in exhausting
119174         virtual memory.  Based in part on a patch from Mike Jetzer.
119176 2003-08-14  Jim Meyering  <jim@meyering.net>
119177         and Paul Eggert  <eggert@twinsun.com>
119179         Merges from coreutils, plus other fixes.
119180         * lib/physmem.c: Merge in portability changes from gcc/libiberty
119181         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
119182         for credits and details.  Thanks to Kaveh Ghazi for helping
119183         to keep these files in sync.
119184         (ARRAY_SIZE): Define it.
119185         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
119186         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
119187         (memcasecmp): Don't assume size_t fits in unsigned int.
119188         Remove casts and duplicate code.
119189         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
119190         (memcpy): Remove definition.
119191         Merge in some clean-up and optimization changes from glibc.
119192         [BLOCKSIZE]: Move definition to top of file.
119193         Ensure that it is a multiple of 64.
119194         Rearrange loop exit tests so as to avoid performing an
119195         additional fread after encountering an error or EOF.
119196         * lib/md5.h (md5_uintptr): Define.
119197         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
119198         return to the initial working directory.  Preserve errno
119199         for caller.
119200         * lib/idcache.c: Include "xalloc.h".
119201         (xmalloc, xrealloc): Remove decls.
119202         (getuser): Remove casts no longer required in C89.
119203         * lib/human.c: Include stdio.h, for sprintf.
119204         * lib/group-member.c: Include "xalloc.h".
119205         (xmalloc, xrealloc): Remove decls.
119206         (get_group_info): Remove casts no longer required in C89.
119207         * lib/getusershell.c (readname): Remove casts no longer required in
119208         C89.
119209         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
119210         * lib/getline.c: Whitespace fix, from coreutils.
119212 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119214         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
119215         Check for isascii.
119217         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119218         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119219         Undo previous (whitespace-only) change.
119221 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119223         * lib/exclude.c: Include <ctype.h>
119224         (IN_CTYPE_DOMAIN): New macro.
119225         (is_space): New fn.
119226         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
119227         and empty lines.
119229         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119230         Undo previous (whitespace-only) change.
119232 2003-08-13  Paul Eggert  <eggert@twinsun.com>
119234         * config/srclist-update: Change update back to the old behavior,
119235         leaving whitespace alone.  Use one 'sed' command rather than a
119236         pipeline.
119237         (fixlicense): Now a variable, not a function.
119238         (remove_trailing_blanks): Remove.
119239         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
119240         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119241         Undo previous (whitespace-only) change.
119243 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119245         Merge from coreutils.
119246         * modules/euidaccess: Add lib_SOURCES, include for new
119247         file euidaccess.h
119249 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119251         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
119252         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
119253         Normalize leading white space and remove trailing white space.
119255         Merge from coreutils
119256         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
119258         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
119259         0.12.1.  These files are now being upgraded automatically by
119260         ../config/srclist-update.
119262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119264         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
119265         Normalize leading white space and remove trailing white space.
119266         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
119267         notice, as per ../config/srclist-update.
119269         Merge from coreutils.
119270         * lib/euidaccess.h: New file.
119271         * lib/euidaccess.c: Include it.
119272         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
119273         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
119274         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
119276 2003-08-12  Paul Eggert  <eggert@twinsun.com>
119278         * config/srclist-update: Add copyright notice.
119279         (remove_id_lines, remove_trailing_blanks): New constants.
119280         (fixfile): Use them to normalize spacing a bit in copied files.
119281         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
119282         Normalize leading white space and remove trailing white space.
119284         * config/texinfo.tex: Sync with texinfo.
119286         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
119287         strtoul.c from libc, to merge coreutils whitespace changes.
119289         * config/srclist.txt: Get the following m4 files from gettext:
119290         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
119291         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
119292         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
119293         wint_t.m4.
119295 2003-08-12  Karl Berry  <karl@gnu.org>
119297         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
119298         been made.
119300 2003-08-11  Paul Eggert  <eggert@twinsun.com>
119302         * modules/gnu-source, m4/gnu-source.m4:
119303         Remove; we're assuming Autoconf 2.54 or later now.
119304         Suggested by Bruno Haible.
119305         * MODULES.html.sh (func_all_modules): Remove gnu-source.
119307 2003-08-11  Bruno Haible  <bruno@clisp.org>
119309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
119311 2003-08-11  Bruno Haible  <bruno@clisp.org>
119313         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
119314         (vasnprintf): Use it instead of wcslen.
119316 2003-08-11  Bruno Haible  <bruno@clisp.org>
119318         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
119319         value to ensure that _Bool promotes to int. Use #define for _Bool when
119320         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
119322 2003-08-10  Karl Berry  <karl@gnu.org>
119324         * lib/regex.h: update from libc (whitespace fix).
119326 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119328         Merge some files from coreutils.  These changes were
119329         originally made by Jim Meyering.
119330         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
119331         many older Unixes require this.
119332         * lib/alloca.c (alloca): Remove cast to argument of free;
119333         no longer needed in C89.
119334         * lib/alloca_.h, regex.h: Fix white space to match
119335         what GNU indent does.
119337 2003-08-09  Paul Eggert  <eggert@twinsun.com>
119339         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
119340         apparently Emacs's Unicode mode got confused before my 2003-08-05
119341         checkin.
119343 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119345         * m4/extensions.m4: New file.
119346         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
119347         Require gl_USE_SYSTEM_EXTENSIONS.
119348         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
119349         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
119351 2003-08-08  Paul Eggert  <eggert@twinsun.com>
119353         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
119354         * modules/extensions, modules/gnu-source: New files.
119355         * modules/timespec, modules/unlocked-io: Depend on extensions.
119357 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119359         * modules/restrict: New file.
119360         * MODULES.html.sh (func_all_modules): Add restrict.
119361         * modules/regex: Depend on restrict.
119363 2003-08-07  Paul Eggert  <eggert@twinsun.com>
119365         * m4/restrict.m4: New file.
119366         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
119368 2003-08-07  Bruno Haible  <bruno@clisp.org>
119370         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
119371         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
119373 2003-08-07  Bruno Haible  <bruno@clisp.org>
119375         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
119376         makes the module 'getndelim2' compatible with the module 'getline'.
119378 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119380         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
119381         byte with "\201" to avoid glitches when editing that source file
119382         with multi-gnome-terminal.
119384 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119386         * lib/bumpalloc.h: Remove.
119388 2003-08-05  Paul Eggert  <eggert@twinsun.com>
119390         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
119391         * modules/bumpalloc: Remove.
119393 2003-08-04  Paul Eggert  <eggert@twinsun.com>
119395         * lib/getloadavg.c: Change copyright notice and spacing to conform to
119396         GNU coding style.
119398         Merge from coreutils.
119399         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
119400         1. From glibc.
119401         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
119402         from Karl Berry, implemented by Jim Meyering.
119403         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
119404         from Dmitry V. Levin.
119405         Remove anachronistic cast of xrealloc.
119406         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
119407         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
119408         type. Otherwise, it wouldn't compile with at least /bin/cc on
119409         ymp-cray-unicos9.0.2.X.
119410         Combine two mostly-identical uses of alloca into one.
119411         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
119413 2003-08-04  Dave Love  <d.love@dl.ac.uk>
119415         [From Emacs.]
119417         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
119418         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
119419         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
119420         obsolete NLIST_NAME_UNION.
119421         [__GNU__]: Undef BSD and FSCALE.
119422         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
119424 2003-08-03  Paul Eggert  <eggert@twinsun.com>
119426         * lib/stdbool_.h (_Bool): Make it signed char, instead of
119427         an enum type, so that it's guaranteed to promote to int.  See:
119428         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
119430 2003-08-03  Karl Berry  <karl@gnu.org>
119432         * config/depcomp: update from automake.
119434 2003-07-31  Paul Eggert  <eggert@twinsun.com>
119436         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
119437         (strerror): Don't assume that a printable int fits in 14 bytes.
119439 2003-07-31  Bruno Haible  <bruno@clisp.org>
119441         * modules/getpass-gnu: New file.
119442         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
119444 2003-07-31  Bruno Haible  <bruno@clisp.org>
119446         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
119448 2003-07-24  Karl Berry  <karl@gnu.org>
119450         * config/missing: update from automake.
119452 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
119453             Bruno Haible  <bruno@clisp.org>
119455         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
119456         * lib/getline.c (getline, getdelim): Likewise.
119457         Remove _GNU_SOURCE define; now it's defined in config.h through
119458         m4/getline.m4.
119460 2003-07-23  Karl Berry  <karl@gnu.org>
119462         * config/config.sub: update from prep.
119464 2003-07-22  Paul Eggert  <eggert@twinsun.com>
119466         * modules/xalloc (Depends-on): Add exitfail.
119467         * modules/xmemcoll: Likewise.
119469 2003-07-22  Paul Eggert  <eggert@twinsun.com>
119471         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
119472         over-parenthesization in macros.
119474         Sync with coreutils.
119476         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
119477         required by C99.
119479         Use `exit_failure' for xalloc and xmemcoll instead of their own
119480         private exit-failure variables.
119481         * lib/xalloc.h (xalloc_exit_failure): Remove.
119482         * lib/xmalloc.c: Likewise.  Include exitfail.h.
119483         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
119484         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
119485         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
119486         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
119488 2003-07-20  Jim Meyering  <jim@meyering.net>
119490         * modules/closeout (Depends-on): Add exitfail.
119491         Suggestion from Bruno Haible.
119493 2003-07-19  Karl Berry  <karl@gnu.org>
119495         * config/config.sub: update from prep.
119497 2003-07-18  Paul Eggert  <eggert@twinsun.com>
119499         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
119500         Remove.
119501         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
119502         to test that it can stand by itself.  Include "exitfail.h".
119503         Clients should set exit_failure instead.
119504         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
119506 2003-07-18  Bruno Haible  <bruno@clisp.org>
119508         * modules/getndelim2: New file.
119509         * modules/getline: Share files with module getndelim2.
119510         * modules/getnline: Depend on getndelim2 instead of sharing files with
119511         it. Add getnline.c to lib_SOURCES.
119512         * MODULES.html.sh (func_all_modules): Add getndelim2.
119514 2003-07-18  Bruno Haible  <bruno@clisp.org>
119516         * m4/getndelim2.m4: New file.
119517         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
119518         invoke gl_PREREQ_GETNDELIM2.
119519         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
119520         gl_PREREQ_GETNDELIM2.
119521         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
119522         gl_GETNDELIM2.
119524 2003-07-18  Bruno Haible  <bruno@clisp.org>
119526         * lib/getndelim2.h: New file.
119527         * lib/getndelim2.c: Make into a module of its own. Include config.h,
119528         getndelim2.h.
119529         (getndelim2): Make non-static. Change return type to ssize_t.
119530         * lib/getline.h: Change argument names.
119531         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
119532         * lib/getnline.c: Include getndelim2.h.
119534 2003-07-18  Andreas Schwab  <schwab@suse.de>
119536         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
119538 2003-07-17  Karl Berry  <karl@gnu.org>
119540         * config/config.sub: update from prep.
119542 2003-07-17  Bruno Haible  <bruno@clisp.org>
119544         * modules/getnline: New file.
119545         * modules/getline: Add lib/getndelim2.c to source file list.
119546         * MODULES.html.sh (func_all_modules): Add getnline.
119548 2003-07-17  Bruno Haible  <bruno@clisp.org>
119550         * m4/getnline.m4: New file.
119552 2003-07-17  Bruno Haible  <bruno@clisp.org>
119554         * m4/Makefile.am.in: Remove file.
119555         * m4/Makefile.am: Remove file.
119556         * m4/Makefile.in: Remove file.
119558 2003-07-17  Bruno Haible  <bruno@clisp.org>
119560         * lib/getnline.h: New file.
119561         * lib/getnline.c: New file.
119562         * lib/getndelim2.c: New file, extracted from getline.c.
119563         (getndelim2): Renamed from getdelim2, with added nmax argument.
119564         * lib/getline.c: Include getndelim2.c.
119565         (getdelim2): Moved out to getndelim2.c.
119566         (getline, getdelim): Update.
119568 2003-07-17  Bruno Haible  <bruno@clisp.org>
119570         * lib/Makefile.am: Remove file.
119571         * lib/Makefile.in: Remove file.
119573 2003-07-17  Bruno Haible  <bruno@clisp.org>
119575         * configure.in: Remove file.
119576         * Makefile.in: Remove file.
119578 2003-07-17  Bruno Haible  <bruno@clisp.org>
119580         * MODULES.html.sh: Put the </BODY> right before </HTML>.
119582 2003-07-16  Karl Berry  <karl@gnu.org>
119584         * config/srclist-update: was running fixlicense twice, which caused
119585                 texinfo.tex to be nullified for some reason.  Simplify,
119586                 $gplsrc is no longer needed as far as I can see?
119588 2003-07-16  Jim Meyering  <jim@meyering.net>
119590         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
119592 2003-07-15  Paul Eggert  <eggert@twinsun.com>
119594         * config/srclist.txt: Get the following files from gettext-runtime/intl
119595         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
119596         ref-del.sin.  From Bruno Haible.
119597         * config/srclist-update (fixfile): Change grep pattern again, since the
119598         previous fix didn't work (there was another trailing $).  Use
119599         '[$]' to escape the $s.
119601 2003-07-15  Karl Berry  <karl@gnu.org>
119603         * lib/vasnprintf.c: update from gettext.
119605 2003-07-15  Karl Berry  <karl@gnu.org>
119607         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
119608         gets expanded when surrounded by '$'.
119610 2003-07-15  Jim Meyering  <jim@meyering.net>
119612         * modules/save-cwd: Don't depend on error.  From Derek Price.
119614 2003-07-15  Jim Meyering  <jim@meyering.net>
119616         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
119618 2003-07-14  Simon Josefsson  <jas@extundo.com>
119620         * modules/mempcpy: New file.
119621         * MODULES.html.sh (func_all_modules): Add mempcpy.
119623 2003-07-14  Simon Josefsson  <jas@extundo.com>
119625         * m4/mempcpy.m4: New file.
119627 2003-07-14  Simon Josefsson  <jas@extundo.com>
119629         * lib/mempcpy.h: New file.
119630         * lib/mempcpy.c: New file.
119632 2003-07-14  Paul Eggert  <eggert@twinsun.com>
119634         * modules/getdate, modules/posixtm: Depend on mktime.
119636 2003-07-14  Paul Eggert  <eggert@twinsun.com>
119638         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
119639         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
119640         unicodeio.c, unicodeio.h, unlocked-io.h:
119641         Switch from LGPL to GPL.
119643 2003-07-14  Paul Eggert  <eggert@twinsun.com>
119645         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
119646         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
119647         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
119648         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
119649         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
119650         updated automatically by ../config/srclist-update.  This changes
119651         their license from LPGL to GPL.
119653 2003-07-14  Paul Eggert  <eggert@twinsun.com>
119655         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
119656         assumed to refer to the root of the most recent stable gettext version.
119657         * config/srclistvars.sh: Add defaults for eggert.
119658         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
119659         Match "This program" as well as "The program".  This is needed
119660         for gettext.
119662 2003-07-14  Jim Meyering  <jim@meyering.net>
119664         Don't emit diagnostics.  Let callers do that.
119665         * lib/save-cwd.c: Don't include "error.h".
119666         (save_cwd): Don't call error.  Ensure that errno is valid
119667         when returning nonzero.
119669         * lib/save-cwd.h (restore_cwd): Update prototype.
119670         * lib/save-cwd.c (restore_cwd): Remove two parameters.
119671         Simplify.  Don't call error upon failure.  Let callers do that.
119672         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
119673         when auditing is enabled.  But don't bother updating the #if.
119675 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
119677         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
119678         it breaks C++ compilation.
119679         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
119681 2003-07-10  Simon Josefsson  <jas@extundo.com>
119683         * modules/strchrnul (Makefile.am): Add strchrnul.h.
119685 2003-07-10  Jim Meyering  <jim@meyering.net>
119687         * m4/clock_time.m4: Remove trailing blank.
119688         * m4/intmax_t.m4: Likewise.
119690 2003-07-10  Jim Meyering  <jim@meyering.net>
119692         * lib/vasnprintf.c: Remove trailing blanks.
119693         Make cpp indentation consistent.
119695 2003-07-09  Paul Eggert  <eggert@twinsun.com>
119697         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
119698         posixver.c, strftime.c, strnlen.c, strverscmp.c:
119699         Switch from LGPL to GPL.
119701 2003-07-09  Paul Eggert  <eggert@twinsun.com>
119703         * config/srclist.txt: Sort sublists.  Add
119704         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
119705         that differ from gnulib for one reason or another; we'd like this list
119706         to be smaller but for now let's document what we have.
119708 2003-07-08  Paul Eggert  <eggert@twinsun.com>
119710         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
119711         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
119712         and sweeter "eval x=$x".
119713         * config/srclist.txt: Get lib/argp* from glibc.
119715 2003-07-07  Paul Eggert  <eggert@twinsun.com>
119717         * lib/mktime.c: Fix some boundary cases and remove need for floating
119718         point.
119720         Issue a compile-time diagnostic if time_t is floating point, or if
119721         two's complement arithmetic is not in effect, or if arithmetic
119722         right shift does not propagate the sign.  These assumptions were
119723         all in the original code but they weren't checked.
119725         (TIME_T_MIDPOINT, verify): New macros.
119726         (__isleap): Remove; it has integer overflow problems.
119727         (leapyear): New function, without those problems.
119728         (ydhms_tm_diff): Remove; splitting into two parts.
119729         (ydhms_diff): New function, containing the arithmetic part of
119730         the old ydhms_tm_diff function.  Issue a compile-time
119731         diagnostic if we are not using C99 integer division.
119732         Avoid casts when possible.
119733         (guess_time_tm): New function, containing the checking part of
119734         the old ydhms_tm_diff function.  Return the new value, rather than
119735         the difference between it and the old.  Accept a new argument T
119736         so that *T specifies the old value.  Check for overflow in the result.
119738         (__mktime_internal): Use a time_t offset, not a long int offset.
119739         This undoes the 2003-06-04 change, which is no longer needed now
119740         that we have better overflow checking.
119741         (localtime_offset): Likewise.
119743         (__mktime_internal): Avoid harmful overflow on hosts where time_t
119744         and long are 64-bit but int is only 32-bit.
119745         (ydhms_diff): Use long int to store year1 and yday1.
119746         Issue a compile-time diagnostic if long int is not wide enough.
119748         (__mktime_internal): Use long int to store adjusted year and yday.
119749         Use plain C rather than preprocessor commands, if that doesn't
119750         affect efficiency.
119751         Check for overflow (and try to repair) after each probe
119752         rather than checking only at the very end.  This avoids some bugs
119753         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
119754         does not equal GMT offset at maximum time).
119755         Use integer to check for overflow rather than floating point; this
119756         is more portable to non-IEEE hosts, and is a tad faster.
119757         When we detect that we are oscillating between two values,
119758         don't check whether tm_isdst has the requested value, since
119759         we already know the answer.  When tm_isdst has the wrong value,
119760         use a different heuristic to find the right one, based on the
119761         extreme values actually observed in practice in tz2003a,
119762         rather than the (overly optimistic) "previous 3 calendar quarters".
119764         (not_equal_tm, print_tm, check_result): Use "const T" rather than
119765         "T const" to accommodate glibc style.
119766         (check_result): Use less-confusing report format.  "long" -> "long int.
119767         (main): Likewise.
119768         Don't loop if the iteration overflows time_t.
119769         Allow a negative step in the iteration.
119771 2003-07-06  Karl Berry  <karl@gnu.org>
119773         * config/depcomp: update from automake.
119774         * config/config.sub: update from prep.
119776 2003-07-03  Karl Berry  <karl@gnu.org>
119778         * config/config.guess: update from prep.
119780 2003-07-01  Paul Eggert  <eggert@twinsun.com>
119782         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
119783         xreadlink.c now includes it unconditionally.
119785 2003-07-01  Paul Eggert  <eggert@twinsun.com>
119787         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
119788         having it depend on HAVE_SYS_TYPES_H.
119790 2003-07-01  Bruno Haible  <bruno@clisp.org>
119792         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
119793         <sys/types.h> should be sufficient.
119794         Reported by Paul Eggert.
119796 2003-06-26  Karl Berry  <karl@gnu.org>
119798         * config/depcomp: update from automake.
119800 2003-06-26  Bruno Haible  <bruno@clisp.org>
119802         * modules/human: Depend on module stdbool.
119804 2003-06-25  Bruno Haible  <bruno@clisp.org>
119806         * modules/readlink: New file.
119807         * modules/xreadlink: Depend on it.
119808         * MODULES.html.sh (func_all_modules): Add readlink.
119810 2003-06-25  Bruno Haible  <bruno@clisp.org>
119812         * m4/readlink.m4: New file.
119814 2003-06-25  Bruno Haible  <bruno@clisp.org>
119816         * lib/readlink.c: New file.
119818 2003-06-22  Karl Berry  <karl@gnu.org>
119820         * config/srclist.txt: update mkinstalldirs from automake.
119821         * config/mkinstalldirs: update.
119823 2003-06-22  Bruno Haible  <bruno@clisp.org>
119825         Portability to mingw32.
119826         * m4/ssize_t.m4: New file, from GNU gettext.
119827         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
119828         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
119830 2003-06-22  Bruno Haible  <bruno@clisp.org>
119832         * modules/safe-read: Add m4/ssize_t.m4.
119833         * modules/xreadlink: Add m4/ssize_t.m4.
119835 2003-06-20  Bruno Haible  <bruno@clisp.org>
119837         Assume C89, so PARAMS isn't needed.
119838         * lib/unicodeio.h (PARAMS): Remove.
119839         * lib/unicodeio.c: Don't use PARAMS.
119841 2003-06-18  Karl Berry  <karl@gnu.org>
119843         * config/config.{guess,sub}: update from prep.
119845 2003-06-18  Jim Meyering  <jim@meyering.net>
119847         Merge changes from coreutils.
119848         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
119849         Remove explicit declarations of xmalloc and realloc.
119850         Include xalloc.h.
119851         (read_utmp): Remove anachronistic cast of xmalloc.
119853 2003-06-17  Paul Eggert  <eggert@twinsun.com>
119855         Assume C89, so PARAMS isn't needed.
119856         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
119857         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
119858         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
119859         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
119860         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
119861         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
119862         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
119863         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
119864         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
119865         lib/xstrtod.h, lib/xstrtol.h: Likewise.
119866         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
119867         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
119868         no longer needed. Anyway, config.h should always be included before any
119869         other file.
119871 2003-06-11  Simon Josefsson  <jas@extundo.com>
119873         * modules/sysexits: New file.
119874         * MODULES.html.sh (func_all_modules): Add sysexits.
119876 2003-06-11  Simon Josefsson  <jas@extundo.com>
119878         * lib/sysexit_.h: New file.
119880 2003-06-11  Derek Price  <derek@ximbiot.com>
119882         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
119883         necessary.
119885 2003-06-11  Bruno Haible  <bruno@clisp.org>
119887         * m4/sysexits.m4: New file.
119889 2003-06-10  Simon Josefsson  <jas@extundo.com>
119891         * lib/argp.h: New file, from glibc.
119892         * lib/argp-ba.c: New file, from glibc.
119893         * lib/argp-eexst.c: New file, from glibc.
119894         * lib/argp-fmtstream.c: New file, from glibc.
119895         * lib/argp-fmtstream.h: New file, from glibc.
119896         * lib/argp-fs-xinl.c: New file, from glibc.
119897         * lib/argp-help.c: New file, from glibc.
119898         * lib/argp-namefrob.h: New file, from glibc.
119899         * lib/argp-parse.c: New file, from glibc.
119900         * lib/argp-pv.c: New file, from glibc.
119901         * lib/argp-pvh.c: New file, from glibc.
119902         * lib/argp-xinl.c: New file, from glibc.
119904 2003-06-10  Simon Josefsson  <jas@extundo.com>
119906         * modules/strchrnul: New file.
119908 2003-06-10  Simon Josefsson  <jas@extundo.com>
119910         * modules/argp: New file.
119912 2003-06-10  Simon Josefsson  <jas@extundo.com>
119914         * m4/strchrnul.m4: New file.
119916 2003-06-10  Simon Josefsson  <jas@extundo.com>
119918         * lib/strchrnul.h: New file.
119919         * lib/strchrnul.c: New file.
119921 2003-06-10  Bruno Haible  <bruno@clisp.org>
119923         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
119925 2003-06-07  Karl Berry  <karl@gnu.org>
119927         * config/config.{guess,sub}: update from prep.
119929 2003-06-07  Jim Meyering  <jim@meyering.net>
119931         * modules/strtod: Use $(...) notation, not @...@ for
119932         AC_REPLACE'd variables.
119933         * modules/localcharset: Likewise.
119935 2003-06-07  Jim Meyering  <jim@meyering.net>
119937         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
119938         in place of my name in the copyright comment.
119939         Remove definition and uses of __P.
119941         From coreutils.
119942         * lib/stat.c: Don't declare xmalloc explicitly.
119943         Instead, include "xalloc.h".
119944         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
119945         xrealloc, and xcalloc return values.
119946         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
119947         Improve comment.
119948         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
119950 2003-06-07  Bruno Haible  <bruno@clisp.org>
119952         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
119953         avoid AC_CONFIG_LINKS.
119954         * modules/fnmatch (Makefile.am): Use explicit creation rule for
119955         fnmatch.h, to avoid AC_CONFIG_LINKS.
119956         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
119958 2003-06-07  Bruno Haible  <bruno@clisp.org>
119960         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
119961         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
119962         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
119963         directory.
119964         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
119965         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
119966         directory.
119968 2003-06-06  Jim Meyering  <jim@meyering.net>
119970         Merge from coreutils.
119971         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
119972         Consolidate declarations and initializations of *_base* locals.
119974         Merge from coreutils.
119975         This avoids a core dump on systems without GNU putenv,
119976         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
119977         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
119978         (unsetenv): New static function, from GNU libc.
119979         (rpl_putenv): Use it.
119981         * lib/modechange.c: Remove trailing blanks.
119983         Merge from coreutils.
119984         * lib/fsusage.c: Remove declaration of statfs.
119985         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
119987         * lib/posixtm.c: Include <stdbool.h> unconditionally.
119989 2003-06-06  Jim Meyering  <jim@meyering.net>
119991         * lib/stdbool_.h: Renamed from stdbool.h.in.
119993 2003-06-06  Jim Meyering  <jim@meyering.net>
119994             Bruno Haible  <bruno@clisp.org>
119996         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
119997         Adjust Makefile.am snippet not to redirect directly to target.
119998         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
120000 2003-06-05  Paul Eggert  <eggert@twinsun.com>
120002         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
120003         mismatch, look in future quarters as well as past.  This fixes a
120004         bug when processing fall-backwards gaps immediately after a long
120005         period of daylight-saving time.
120007         * lib/mktime.c: Assume freestanding C89 or better.
120008         (HAVE_LIMITS_H): Remove.  Assume it's 1.
120009         (__P): Remove; not used.
120010         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
120011         (mktime, not_equal_tm, print_tm, check_result,
120012         main): Use prototypes.  Use const * where appropriate.
120013         (main): Fix typo in testing code that uncovered by above changes.
120014         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
120016 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120018         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
120019         locale.h, localeconv.  This merges changes from coreutils.
120021         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
120022         It can be removed after the next Autoconf is released.
120023         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
120024         needed.
120026 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120028         * lib/mktime.c: Fix Debian bug 177940
120029         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
120030         (localtime_offset): Now long int, not time_t, because we want it
120031         to be guaranteed to be signed.  All uses changed.
120032         (__mktime_internal): If overflow would occur when adding offset,
120033         don't add it.
120035         Merge 'human' changes from coreutils.  Rewrite to support
120036         locale-specific notations like thousands separators.
120037         * lib/human.c: Simplify authorship notice.
120038         Include human.h immediately after config.h.
120039         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
120040         <limits.h>: Do not include, since human.h does.
120041         (SIZE_MAX, UINTMAX_MAX): New macros.
120042         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
120043         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
120044         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
120045         (power_letter): Renamed from suffixes.
120046         (generate_suffix_backwards): Remove.
120047         (adjust_value): Now takes int style (because of human.h changes)
120048         and long double value (for greater precision on some platforms).
120049         (group_number): New function.
120050         (human_readable): Use it.  Use integer options, not enum.
120051         Put the options before the sizes in the arg list.
120052         Support all the new options.
120053         The old human_readable function has been removed;
120054         use inttostr.h instead.
120055         (human_readable, default_block_size, humblock):
120056         Use uintmax_t, not int, for block sizes.
120057         (human_readable_inexact, block_size_types): Remove.
120058         (block_size_opts): New constant.
120059         (human_options): Renamed from human_block_size, with new signature
120060         that allows block sizes up to UINTMAX_MAX.  All callers changed.
120061         * lib/human.h: Add copyright and authorship notice.
120062         Include <limits.h> and <stdbool.h> unconditionally.
120063         (PARAMS): Remove.  All uses removed.
120064         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
120065         (enum human_inexact_style): Remove tag; now a nameless enum.
120066         (human_floor, human_ceiling, human_round_to_even): Now have
120067         values 2, 0, 1 rather than -1, 1, 0.
120068         (human_group_digits, human_suppress_point_zero, human_autoscale,
120069         human_base_1024, human_SI, human_B): New constants.
120070         (human_readable_inexact, human_block_size): Remove.
120071         (human_readable): Size args are now uintmax_t, not int.
120072         (human_options): New decl.
120074         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
120075         unnecessary now that we assume C89 or better.  This change
120076         imported from coreutils.
120078         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120079         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
120080         in the 2003-05-30 sync from glibc.
120082         .h files should stand alone, but we shouldn't include <sys/types.h>
120083         if we can get away with just <stddef.h>.
120085         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
120086         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
120087         rather than <sys/types.h>, as we merely need size_t.
120088         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
120089         to get size_t.
120090         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
120091         Include <stdio.h>, to get FILE.
120092         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
120093         memcasecmp.h has included <stddef.h> and all we need is size_t.
120094         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
120095         our interface, instead of including <sys/types.h>
120097 2003-06-04  Paul Eggert  <eggert@twinsun.com>
120099         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
120100         now, as glibc mktime is buggy on non-glibc systems.
120102 2003-06-03  Karl Berry  <karl@gnu.org>
120104         * config/config.sub: update from prep.
120106 2003-06-02  Paul Eggert  <eggert@twinsun.com>
120108         [from coreutils]
120109         Fix some minor time-related bugs with POSIX time arguments.
120110         Some valid time stamps were being rejected (notably -1, and
120111         time stamps before 1900 on 64-bit hosts).  And some invalid
120112         time stamps were being accepted, e.g. September 31.
120114         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
120115         that we can return (time_t) -1 successfully.
120116         * lib/posixtm.c: Likewise.
120117         [HAVE_STDBOOL_H]: Include <stdbool.h>.
120118         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
120119         (t): Remove static var.
120120         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
120121         of static var.  All uses changed.
120122         (year): Do not reject years before 1900; they can occur with
120123         64-bit time_t.
120124         (posix_time_parse): Do not check for out-of-range components;
120125         that is now the caller's responsibility, since our checks were
120126         only approximations.
120127         (posixtime): Use mktime to check for out-of-range components,
120128         since it knows them exactly.
120129         If mktime returns (time_t) -1, check whether an error actually occurred
120130         by invoking localtime on -1.
120131         (main) [TEST_POSIXTIME]: Check for input data errors, and report
120132         posixtime failures better.
120133         Improve the test data (in comments only).
120135 2003-06-02  Karl Berry  <karl@gnu.org>
120137         * config/mkinstalldirs (version): new variable.
120138         (--version): new option.
120139         (usage): improve message.
120141 2003-05-30  Karl Berry  <karl@gnu.org>
120143         * lib/mktime.c: update from libc.
120145 2003-05-30  Bruno Haible  <bruno@clisp.org>
120147         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
120148         * config/config.rpath: Upgrade to gettext-0.12.1.
120150 2003-05-30  Bruno Haible  <bruno@clisp.org>
120152         * m4/gettext.m4: Upgrade to gettext-0.12.1.
120153         * m4/nls.m4: New file, from gettext-0.12.1.
120154         * m4/po.m4: New file, from gettext-0.12.1.
120155         * m4/progtest.m4: Upgrade to gettext-0.12.1.
120157 2003-05-30  Bruno Haible  <bruno@clisp.org>
120159         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
120160         * lib/localcharset.h: Likewise.
120161         * lib/localcharset.c: Likewise.
120163 2003-05-29  Karl Berry  <karl@gnu.org>
120165         * config/config.rpath: update from gettext.
120167 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120169         Assume the headers required for C89 freestanding compilers.
120170         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
120171         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
120172         * m4/human.m4 (gl_HUMAN): Likewise.
120173         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
120174         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
120175         * m4/userspec.m4 (gl_USERSPEC): Likewise.
120176         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
120177         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
120178         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
120180 2003-05-28  Paul Eggert  <eggert@twinsun.com>
120182         Assume the headers required for C89 freestanding compilers.
120183         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
120184         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
120185         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
120186         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
120187         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
120188         define, since <limits.h> is guaranteed to do that.
120189         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
120190         * lib/exclude.c: Include <stdbool.h> unconditionally.
120191         * lib/tempname.c: Include <stddef.h> unconditionally.
120192         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
120193         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
120194         <stddef.h> does that.
120195         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
120196         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
120197         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
120198         needed.
120199         * lib/xstrtol.c: Likewise.
120200         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
120201         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
120203         * lib/addext.c (addext): Use assignment rather than cast, to avoid
120204         warnings on some platforms.
120206         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
120207         arbitrarily.
120209 2003-05-26  Jim Meyering  <jim@meyering.net>
120211         Merge in a change from coreutils:
120212         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
120213         that is guaranteed to be `no'.  Use `no_such_member' to indicate
120214         that condition, rather than `-1' which is slightly misleading.
120215         Change the name of the cache variable to have the gl_ prefix.
120216         Prompted by a patch from Richard Dawe for DJGPP.
120218 2003-05-24  Karl Berry  <karl@gnu.org>
120220         * config/config.guess: update from prep.
120222 2003-05-22  Karl Berry  <karl@gnu.org>
120224         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
120226 2003-05-20  Karl Berry  <karl@gnu.org>
120228         * config/config.guess: update from prep.
120230 2003-05-18  Karl Berry  <karl@gnu.org>
120232         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
120233         might actually be set by the user.
120235         * config/depcomp, install-sh, mdate-sh: update from automake.
120237 2003-05-17  Bruno Haible  <bruno@clisp.org>
120239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
120240         invalid expansion for AC_EGREP_CPP.
120241         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
120242         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
120243         Suggested by Akim Demaille <akim@epita.fr> in
120244         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
120246 2003-05-12  Jim Meyering  <jim@meyering.net>
120248         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
120249         the space-padded-by-default conversion specifiers, %e, %k, %l.
120251 2003-05-12  Bruno Haible  <bruno@clisp.org>
120253         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
120254         the string is longer than 4 KB.
120256 2003-05-11  Karl Berry  <karl@gnu.org>
120258         * config/config.{guess,sub}: update from prep.
120260 2003-05-09  Bruno Haible  <bruno@clisp.org>
120262         * modules/error: Add m4/strerror_r.m4 to file list.
120264 2003-05-03  Bruno Haible  <bruno@clisp.org>
120266         Upgrade to Unicode-4.0.
120267         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
120268         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
120269         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
120270         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
120271         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
120272         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
120273         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
120274         Change width of U+E0100..U+E01EF from 1 to 0.
120276 2003-04-25  Jim Meyering  <jim@meyering.net>
120278         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
120279         of type size_t, not int.
120281 2003-04-25  Bruno Haible  <bruno@clisp.org>
120283         * lib/copy-file.c: Include <stddef.h>, for size_t.
120285 2003-04-21  Paul Eggert  <eggert@twinsun.com>
120287         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
120288         code which expansion is under static control.  Patch imported from
120289         Akim Demaille's patch to Bison; see
120290         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
120292 2003-04-14  Bruno Haible  <bruno@clisp.org>
120294         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
120296 2003-04-11  Jim Meyering  <jim@meyering.net>
120298         Merge changes from Coreutils.
120300         2003-03-22  Jim Meyering  <jim@meyering.net>
120302         * lib/strftime.c (widen): Cast alloca return value to proper type.
120304         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
120306         From GNU libc.
120307         * lib/strftime.c (my_strftime): Handle very large width
120308         specifications for numeric values correctly.  Improve checks for
120309         overflow.
120311         2003-01-19  Jim Meyering  <jim@meyering.net>
120313         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
120314         definitions.
120315         (nl_get_alt_digit) [! defined my_strftime]: Define.
120316         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
120317         _nl_get_alt_digit and _nl_get_walt_digit.
120319         * lib/strftime.c (my_strftime): Merge in locale-related changes from
120320         libc. These changes have no effect outside of _LIBC.
120322 2003-04-10  Bruno Haible  <bruno@clisp.org>
120324         * modules/findprog: New file.
120325         * MODULES.html.sh (func_all_modules): Add it.
120327 2003-04-10  Bruno Haible  <bruno@clisp.org>
120329         * m4/findprog.m4: New file.
120330         * m4/eaccess.m4: New file.
120332 2003-04-10  Bruno Haible  <bruno@clisp.org>
120334         * lib/findprog.h: New file, from GNU gettext.
120335         * lib/findprog.c: New file, from GNU gettext.
120337 2003-04-05  Jim Meyering  <jim@meyering.net>
120339         Merge changes from Coreutils.
120341         * lib/exclude.h (PARAMS): Remove definition and uses.
120342         * lib/exclude.c: Remove uses of `PARAMS'.
120344         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
120345         Add test-cases for DOS filenames. Declare program_name.
120346         (main): Set up program_name.  Patch by Rich Dawe.
120348         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
120349         error from mntctl.
120350         Use mntctl's return value to drive the entry-processing loop, since
120351         we can't rely on the value of the vmt_length member in the last
120352         entry.  On some systems doing so could result in exhausting
120353         virtual memory.  Based in part on a patch from Mike Jetzer.
120355 2003-04-04  Bruno Haible  <bruno@clisp.org>
120357         * modules/linebreak: New file.
120358         * MODULES.html.sh (func_all_modules): Add it.
120360 2003-04-04  Bruno Haible  <bruno@clisp.org>
120362         * m4/linebreak.m4: New file.
120364 2003-04-04  Bruno Haible  <bruno@clisp.org>
120366         * lib/linebreak.h: New file, from GNU gettext.
120367         * lib/linebreak.c: New file, from GNU gettext with slight
120368         modifications.
120369         * lib/lbrkprop.h: New file, from GNU gettext.
120371 2003-04-03  Bruno Haible  <bruno@clisp.org>
120373         * modules/utf8-ucs4: New file.
120374         * modules/utf16-ucs4: New file.
120375         * modules/ucs4-utf8: New file.
120376         * modules/ucs4-utf16: New file.
120377         * MODULES.html.sh (func_all_modules): Add them.
120379 2003-04-03  Bruno Haible  <bruno@clisp.org>
120381         * m4/utf-ucs4.m4: New file.
120382         * m4/ucs4-utf.m4: New file.
120384 2003-04-03  Bruno Haible  <bruno@clisp.org>
120386         * lib/utf8-ucs4.h: New file, from GNU gettext.
120387         * lib/utf16-ucs4.h: New file, from GNU gettext.
120388         * lib/ucs4-utf8.h: New file, from GNU gettext.
120389         * lib/ucs4-utf16.h: New file, from GNU gettext.
120391 2003-04-02  Bruno Haible  <bruno@clisp.org>
120393         * modules/binary-io: New file.
120394         * MODULES.html.sh (func_all_modules): Add it.
120396 2003-04-02  Bruno Haible  <bruno@clisp.org>
120398         * lib/binary-io.h: New file, from GNU gettext.
120400 2003-04-01  Bruno Haible  <bruno@clisp.org>
120402         * modules/pathname: New file.
120403         * MODULES.html.sh (func_all_modules): Add it.
120405 2003-04-01  Bruno Haible  <bruno@clisp.org>
120407         * lib/pathname.h: New file, from GNU gettext.
120408         * lib/concatpath.c: New file, from GNU gettext.
120410 2003-03-30  Bruno Haible  <bruno@clisp.org>
120412         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
120414 2003-03-30  Bruno Haible  <bruno@clisp.org>
120416         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
120417         function chown() doesn't exist.
120419 2003-03-28  Bruno Haible  <bruno@clisp.org>
120421         * modules/copy-file: New file.
120422         * MODULES.html.sh (func_all_modules): Add it.
120424 2003-03-28  Bruno Haible  <bruno@clisp.org>
120426         * m4/copy-file.m4: New file.
120428 2003-03-28  Bruno Haible  <bruno@clisp.org>
120430         * lib/copy-file.h: New file, from GNU gettext.
120431         * lib/copy-file.c: New file, from GNU gettext.
120433 2003-03-18  Jim Meyering  <jim@meyering.net>
120435         * lib/quote.c (quote_n): Fix typo in comment.
120437 2003-03-18  Bruno Haible  <bruno@clisp.org>
120439         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
120440         checking.
120441         * m4/onceonly_2_57.m4: Likewise.
120443 2003-03-17  Bruno Haible  <bruno@clisp.org>
120445         * m4/onceonly.m4: Require autoconf 2.54 or newer.
120446         (m4_quote): Remove macro.
120447         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
120449 2003-03-14  Jim Meyering  <jim@meyering.net>
120451         Merge changes from Coreutils.
120452         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
120453         to be const, in order to avoid warnings.
120454         (obstack_room): Likewise.
120455         (obstack_empty_p): Likewise.
120457 2003-03-14  Bruno Haible  <bruno@clisp.org>
120459         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
120460         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
120462 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120464         Merge changes from Bison.
120465         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
120466         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
120467         when compiling Bison 1.875's `bitset bset = obstack_alloc
120468         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
120469         * lib/hash.c: Include <stdbool.h> unconditionally.
120471 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120473         * m4/onceonly.m4 (m4_quote): New macro.
120474         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
120475         Quote AC_FOREACH variable-expansions properly.
120477 2003-03-13  Paul Eggert  <eggert@twinsun.com>
120479         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
120481 2003-03-09  Paul Eggert  <eggert@twinsun.com>
120483         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
120484         Reported by Bruce Becker; see:
120485         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
120487 2003-03-03  Paul Eggert  <eggert@twinsun.com>
120488             Bruno Haible  <bruno@clisp.org>
120490         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
120491         Reported by John Hughes, see
120492         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
120494 2003-02-20  Bruno Haible  <bruno@clisp.org>
120496         * MODULES.html.sh (func_all_modules): Add poll.
120498 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
120500         * modules/poll: New file.
120502 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
120504         * lib/poll_.h: New file.
120505         * lib/poll.c: New file.
120507 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
120509         * m4/poll.m4: New file.
120511 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
120513         * modules/mathl: New file.
120515 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
120517         * lib/mathl.h: New file.
120518         * lib/acosl.c: New file.
120519         * lib/asinl.c: New file.
120520         * lib/atanl.c: New file.
120521         * lib/ceill.c: New file.
120522         * lib/cosl.c: New file.
120523         * lib/expl.c: New file.
120524         * lib/floorl.c: New file.
120525         * lib/frexpl.c: New file.
120526         * lib/ldexpl.c: New file.
120527         * lib/logl.c: New file.
120528         * lib/sincosl.c: New file.
120529         * lib/sinl.c: New file.
120530         * lib/sqrtl.c: New file.
120531         * lib/tanl.c: New file.
120532         * lib/trigl.c: New file.
120533         * lib/trigl.h: New file.
120535 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
120537         * m4/mathl.m4: New file.
120539 2003-02-18  Bruno Haible  <bruno@clisp.org>
120541         * MODULES.html.sh (func_all_modules): Add mathl.
120543 2003-02-17  Bruno Haible  <bruno@clisp.org>
120545         * modules/mkdtemp: New module.
120546         * MODULES.html.sh (func_all_modules): Add it.
120548 2003-02-17  Bruno Haible  <bruno@clisp.org>
120550         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
120552 2003-02-17  Bruno Haible  <bruno@clisp.org>
120554         * lib/mkdtemp.h: New file, from GNU gettext.
120555         * lib/mkdtemp.c: New file, from GNU gettext.
120557 2003-02-02  Jim Meyering  <jim@meyering.net>
120559         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
120560         e.g. glibc-2.2.93.
120562 2003-01-31  Bruno Haible  <bruno@clisp.org>
120564         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
120565         'rpl_rename'.
120566         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
120567         'rpl_strnlen'.
120568         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
120569         'rpl_strtod'.
120570         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
120571         'rpl_utime'.
120573 2003-01-31  Bruno Haible  <bruno@clisp.org>
120575         * lib/rename.c: #undef rename before defining rpl_rename.
120576         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
120578 2003-01-30  Bruno Haible  <bruno@clisp.org>
120580         * modules/vasnprintf, modules/vasprintf: New modules.
120581         * MODULES.html.sh (func_all_modules): Add them.
120583 2003-01-30  Bruno Haible  <bruno@clisp.org>
120585         * m4/signed.m4: New file, from GNU gettext.
120586         * m4/longdouble.m4: New file, from GNU gettext.
120587         * m4/wchar_t.m4: New file, from GNU gettext.
120588         * m4/wint_t.m4: New file, from GNU gettext.
120589         * m4/vasnprintf.m4: New file.
120590         * m4/vasprintf.m4: New file.
120592 2003-01-30  Bruno Haible  <bruno@clisp.org>
120594         * lib/printf-args.h: New file, from GNU gettext.
120595         * lib/printf-args.c: New file, from GNU gettext.
120596         * lib/printf-parse.h: New file, from GNU gettext.
120597         * lib/printf-parse.c: New file, from GNU gettext.
120598         * lib/vasnprintf.h: New file, from GNU gettext.
120599         * lib/vasnprintf.c: New file, from GNU gettext.
120600         * lib/asnprintf.c: New file, from GNU gettext.
120601         * lib/vasprintf.h: New file, from GNU gettext with modifications.
120602         * lib/vasprintf.c: New file, from GNU gettext.
120603         * lib/asprintf.c: New file, from GNU gettext.
120605 2003-01-29  Bruno Haible  <bruno@clisp.org>
120607         * modules/stpncpy: New module.
120608         * MODULES.html.sh (func_all_modules): Add it.
120610 2003-01-29  Bruno Haible  <bruno@clisp.org>
120612         * m4/stpncpy.m4: New file.
120614 2003-01-29  Bruno Haible  <bruno@clisp.org>
120616         * lib/stpncpy.h: New file, from GNU gettext with modifications.
120617         * lib/stpncpy.c: New file, from GNU gettext with modifications.
120619 2003-01-28  Bruno Haible  <bruno@clisp.org>
120621         * modules/c-ctype: New module.
120622         * MODULES.html.sh (func_all_modules): Add it.
120624 2003-01-28  Bruno Haible  <bruno@clisp.org>
120626         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
120627         Paul Eggert.
120628         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
120629         Paul Eggert.
120631 2003-01-27  Bruno Haible  <bruno@clisp.org>
120633         * modules/xsetenv: New module.
120634         * MODULES.html.sh (func_all_modules): Add it.
120636 2003-01-27  Bruno Haible  <bruno@clisp.org>
120638         * lib/xsetenv.h: New file, from GNU gettext.
120639         * lib/xsetenv.c: New file, from GNU gettext.
120641 2003-01-23  Jim Meyering  <jim@meyering.net>
120643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
120644         from working on systems without dirfd (at least Irix and OSF1/Tru64).
120646 2003-01-23  Bruno Haible  <bruno@clisp.org>
120648         * modules/minmax: New module.
120649         * MODULES.html.sh (func_all_modules): Add it.
120651 2003-01-23  Bruno Haible  <bruno@clisp.org>
120653         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
120654         Eggert.
120656 2003-01-22  Bruno Haible  <bruno@clisp.org>
120658         * modules/exit: New module.
120659         * MODULES.html.sh (func_all_modules): Add it.
120661 2003-01-22  Bruno Haible  <bruno@clisp.org>
120663         * lib/exit.h: New file, from GNU gettext.
120665 2003-01-19  Bruno Haible  <bruno@clisp.org>
120667         * gnulib-tool: Recognize option --extract-maintainer.
120668         (func_get_maintainer): New function.
120669         * modules/*: Add Maintainer entry.
120671 2003-01-16  Jim Meyering  <jim@meyering.net>
120673         * m4/regex.m4: The `regex' struct is both input and output.
120674         Initialize it before each use.  Patch by Tim Waugh.
120676 2003-01-16  Bruno Haible  <bruno@clisp.org>
120678         * MODULES.html.sh: Add a table of contents. Add the module name as
120679         leftmost column. Add hyperlinks.
120681 2003-01-15  Bruno Haible  <bruno@clisp.org>
120683         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
120685 2003-01-15  Bruno Haible  <bruno@clisp.org>
120687         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
120688         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
120689         suffix.
120691 2003-01-15  Bruno Haible  <bruno@clisp.org>
120693         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
120695 2003-01-15  Bruno Haible  <bruno@clisp.org>
120697         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
120698         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
120700 2003-01-14  Jim Meyering  <jim@meyering.net>
120702         * lib/same.c (same_name): Tweak a comment.
120704 2003-01-14  Bruno Haible  <bruno@clisp.org>
120706         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
120707         when a string comparison is sufficient.
120709 2003-01-14  Bruno Haible  <bruno@clisp.org>
120711         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
120712         'unsigned int'.
120714 2003-01-14  Bruno Haible  <bruno@clisp.org>
120716         * lib/hash-pjw.c: Add comment about low quality of this function.
120718 2003-01-13  Bruno Haible  <bruno@clisp.org>
120720         * modules/stpcpy: Distribute lib/stpcpy.h.
120721         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
120723 2003-01-13  Bruno Haible  <bruno@clisp.org>
120725         * modules/*: Add a description.
120726         * modules/strpbrk: Fix Makefile.am snippet.
120727         * modules/strtoimax: Fix dependencies.
120728         * modules/strtoumax: Likewise.
120730 2003-01-13  Bruno Haible  <bruno@clisp.org>
120732         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
120733         * modules/alloca (Makefile.am): All object files depend on alloca.h.
120734         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
120736 2003-01-13  Bruno Haible  <bruno@clisp.org>
120738         * gnulib-tool (func_create_testdir): Store config/* files in the main
120739         directory.
120740         * config.rpath: Move to ...
120741         * config/config.rpath: ... here.
120742         * modules/gettext: Contains config/config.rpath, not config.rpath.
120743         * modules/iconv: Likewise.
120745 2003-01-12  Paul Eggert  <eggert@twinsun.com>
120747         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
120748         to avoid collisions with libcurses and libreadline.
120750         * m4/getstr.m4: Remove.
120751         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
120753 2003-01-12  Paul Eggert  <eggert@twinsun.com>
120755         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
120756         to avoid collisions with libcurses and libreadline.
120758         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
120759         * lib/getstr.h, getstr.c: Remove.
120760         * lib/getline.c: Include "getline.h", to check interface.
120761         Move body of old getstr.c here: this defines MIN_CHUNK and
120762         declares getdelim2, which is renamed from getstr.
120763         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
120765         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
120766         All uses changed.
120767         * lib/linebuffer.h: Likewise.
120768         (readline): Remove backward-compatibility macro.
120770 2003-01-12  Paul Eggert  <eggert@twinsun.com>
120772         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
120773         to avoid collisions with libcurses and libreadline.
120774         * getstr: Remove.
120775         * MODULES.html.sh: Remove getstr.
120776         * modules/getline: Depend on unlocked-io, not getstr.
120778 2003-01-12  Jim Meyering  <jim@meyering.net>
120780         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
120782 2003-01-10  Bruno Haible  <bruno@clisp.org>
120784         * modules/alloca: Change Makefile.am requirements. Simplify Include
120785         requirements. Add lib/alloca_.h to file list.
120787 2003-01-10  Bruno Haible  <bruno@clisp.org>
120789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
120791 2003-01-10  Bruno Haible  <bruno@clisp.org>
120793         * lib/alloca_.h: New file.
120794         * lib/getdate.y: Unconditionally include alloca.h.
120795         * lib/makepath.c: Likewise.
120796         * lib/setenv.c: Likewise.
120797         * lib/userspec.c: Likewise.
120799 2003-01-09  Karl Berry  <karl@gnu.org>
120801         * MODULES.html.sh: include `dirname $0` in PATH, to find
120802         gnulib-tool.
120804 2003-01-09  Bruno Haible  <bruno@clisp.org>
120806         * modules/stdbool: Change configure.ac, Makefile.am requirements.
120807         Simplify Include requirements. Add lib/stdbool.h.in to file list.
120809 2003-01-09  Bruno Haible  <bruno@clisp.org>
120811         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
120813 2003-01-09  Bruno Haible  <bruno@clisp.org>
120815         * lib/stdbool.h.in: New file.
120817 2003-01-09  Bruno Haible  <bruno@clisp.org>
120819         * gnulib-tool (func_all_modules): Ignore files ending in ~.
120820         * MODULES.html.sh: Likewise.
120822 2003-01-08  Jim Meyering  <jim@meyering.net>
120824         * lib/full-write.c: Undefine and define-away `const' after inclusion
120825         of errno.h, not before.  Suggestion from Bruno Haible.
120827 2003-01-08  Bruno Haible  <bruno@clisp.org>
120829         * modules/full-read: Depend on full-write.
120831 2003-01-08  Bruno Haible  <bruno@clisp.org>
120833         * lib/safe-read.c: Include specification header first, to ensure its
120834         selfcontainedness.
120835         * lib/full-write.c: Likewise.
120837 2003-01-07  Jim Meyering  <jim@meyering.net>
120839         * lib/full-write.c: Rework so that it may serve to define full_read,
120840         too.
120841         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
120843 2003-01-07  Bruno Haible  <bruno@clisp.org>
120845         * lib/strtoimax.c: Include <stdint.h> as an alternative to
120846         <inttypes.h>.
120847         * lib/xstrtol.h: Likewise.
120848         * lib/xstrtoimax.c: Likewise.
120849         * lib/xstrtoumax.c: Likewise.
120850         * lib/human.h: Likewise.
120852         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
120853         on systems that have <inttypes.h> but not <stdint.h>.
120855 2003-01-07  Bruno Haible  <bruno@clisp.org>
120857         * MODULES.html.sh: Add copyright notice.
120858         (missed_files): Omit CVS directory entries.
120859         (func_module): Make it work with sed-3.02.
120860         * MODULES.txt: Remove file.
120862 2003-01-06  Jim Meyering  <jim@meyering.net>
120864         * lib/version-etc.c: Update year in translatable copyright string.
120866 2003-01-03  Karl Berry  <karl@gnu.org>
120868         * config/config.{guess,sub}: update from prep.
120870 2003-01-02  Karl Berry  <karl@gnu.org>
120872         * doc/COPYING.DOC: belatedly updated to 1.2.
120874 2003-01-01  Karl Berry  <karl@gnu.org>
120876         * gnulib-tool (func_verify_module): report module name $module in
120877         error message, not $1.
120878         * gnulib-tool (create-testdir): don't complain if destdir couldn't
120879         be created, only if it doesn't exist.
120880         * gnulib-tool (last_checkin_date): don't expand the $Date here.
120882 2002-12-31  Paul Eggert  <eggert@twinsun.com>
120884         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
120886 2002-12-31  Paul Eggert  <eggert@twinsun.com>
120888         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
120889         memcmp if strcoll doesn't work.
120891 2002-12-31  Bruno Haible  <bruno@clisp.org>
120893         * lib/utime.c (utime_null): No need to call ftruncate if the file was
120894         nonempty.
120896 2002-12-31  Bruno Haible  <bruno@clisp.org>
120898         * lib/memcoll.c (STRCOLL): New macro.
120899         (memcoll): Use it.
120901 2002-12-31  Bruno Haible  <bruno@clisp.org>
120903         * lib/localcharset.h: New file.
120904         * lib/localcharset.c: Include it.
120905         * lib/unicodeio.c: Likewise.
120907 2002-12-31  Bruno Haible  <bruno@clisp.org>
120909         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
120910         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
120912 2002-12-31  Bruno Haible  <bruno@clisp.org>
120914         * lib/getline.h: Include <stddef.h>, for size_t.
120916         * lib/unicodeio.h: Include <stddef.h>, for size_t.
120917         * lib/unicodeio.c: Don't include <stddef.h>.
120919 2002-12-31  Bruno Haible  <bruno@clisp.org>
120921         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
120922         HAVE_TM_ZONE.
120924 2002-12-24  Karl Berry  <karl@gnu.org>
120926         * config/config.guess: update from prep.
120928 2002-12-24  Bruno Haible  <bruno@clisp.org>
120930         General infrasructure.
120931         * m4/README: Rewritten.
120932         * m4/onceonly.m4: New file.
120933         * m4/onceonly_2_57.m4: New file.
120935         Module atexit.
120936         * m4/atexit.m4: New file.
120938         Module strtod.
120939         * m4/strtod.m4: New file.
120941         Module strtol.
120942         * m4/strtol.m4: New file.
120944         Module strtoul.
120945         * m4/strtoul.m4: New file.
120947         Module memchr.
120948         * m4/memchr.m4: New file.
120950         Module memcmp.
120951         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
120952         (jm_FUNC_MEMCMP): Invoke it.
120954         Module memcpy.
120955         * m4/memcpy.m4: New file.
120957         Module memmove.
120958         * m4/memmove.m4: New file.
120960         Module memset.
120961         * m4/memset.m4: New file.
120963         Module strcspn.
120964         * m4/strcspn.m4: New file.
120966         Module strpbrk.
120967         * m4/strpbrk.m4: New file.
120969         Module strstr.
120970         * m4/strstr.m4: New file.
120972         Module strerror.
120973         * m4/strerror.m4: New file.
120975         Module mktime.
120976         * m4/mktime.m4: Renamed from jm-mktime.m4.
120977         (gl_PREREQ_MKTIME): New macro.
120978         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
120980         Module malloc.
120981         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
120982         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
120983         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
120985         Module realloc.
120986         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
120987         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
120988         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
120990         Module strftime.
120991         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
120992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
120993         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
120994         gl_TM_GMTOFF.
120995         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
120997         Module xalloc.
120998         * m4/xalloc.m4: New file.
121000         Module alloca.
121001         * m4/alloca.m4: New file.
121003         Module putenv.
121004         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
121005         (jm_FUNC_PUTENV): Invoke it.
121007         Module setenv.
121008         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
121009         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
121010         when invoked twice.
121011         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
121012         gt_FUNC_SETENV.
121014         Module memrchr.
121015         * m4/memrchr.m4: New file.
121017         Module stpcpy.
121018         * m4/stpcpy.m4: New file.
121020         Module strcase.
121021         * m4/strcase.m4: New file.
121023         Module strdup.
121024         * m4/strdup.m4: New file.
121026         Module strnlen.
121027         * m4/strnlen.m4: New file.
121029         Module strndup.
121030         * m4/strndup.m4: New file.
121032         Module xstrtod.
121033         * m4/xstrtod.m4: New file.
121035         Module xstrtol.
121036         * m4/xstrtol.m4: New file.
121038         Module getdate.
121039         * m4/getdate.m4: New file.
121041         Module unlocked-io.
121042         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
121043         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
121044         * m4/jm-glibc-io.m4n: Remove file.
121046         Module long-options.
121047         * m4/long-options.m4: New file.
121049         Module md5.
121050         * m4/md5.m4: New file.
121052         Module sha.
121053         * m4/sha.m4: New file.
121055         Module getstr.
121056         * m4/getstr.m4: New file.
121058         Module getline.
121059         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
121060         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
121061         <sys/types.h>, for size_t. Use the function name gnu_getline, not
121062         simply getline. Infoke gl_PREREQ_GETLINE.
121064         Module obstack.
121065         * m4/obstack.m4: New file.
121067         Module hash.
121068         * m4/hash.m4: New file.
121070         Module readtokens.
121071         * m4/readtokens.m4: New file.
121073         Module strverscmp.
121074         * m4/strverscmp.m4: New file.
121076         Module stdbool.
121077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
121078         OSF/1.
121080         Module strtoll.
121081         * m4/strtoll.m4: New file.
121083         Module strtoull.
121084         * m4/strtoull.m4: New file.
121086         Module strtoimax.
121087         * m4/strtoimax.m4: New file.
121089         Module strtoumax.
121090         * m4/strtoumax.m4: New file.
121092         Module xstrtoimax.
121093         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
121094         jm_AC_PREREQ_XSTRTOIMAX.
121095         Moved the strtol prerequisites to strtol.m4.
121096         Moved the strtoll prerequisites to strtoll.m4.
121097         Moved the strtoimax prerequisites to strtoimax.m4.
121099         Module xstrtoumax.
121100         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
121101         jm_AC_PREREQ_XSTRTOUMAX.
121102         Moved the strtoul prerequisites to strtoul.m4.
121103         Moved the strtoull prerequisites to strtoull.m4.
121104         Moved the strtoumax prerequisites to strtoumax.m4.
121106         Module chown.
121107         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
121108         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
121110         Module dup2.
121111         * m4/dup2.m4: New file.
121113         Module ftruncate.
121114         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
121115         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
121117         Module getgroups.
121118         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
121119         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
121121         Module gettimeofday.
121122         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
121123         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
121124         gl_PREREQ_GETTIMEOFDAY.
121126         Module mkdir.
121127         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
121128         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
121130         Module mkstemp.
121131         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
121132         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
121133         jm_AC_TYPE_UINTMAX_T.
121134         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
121136         Module stat.
121137         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
121138         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
121140         Module lstat.
121141         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
121142         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
121144         Module timespec.
121145         * m4/timespec.m4 (gl_TIMESPEC): New macro.
121146         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
121147         * m4/st_mtim.m4: Indentation.
121149         Module nanosleep.
121150         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
121151         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
121152         gl_PREREQ_NANOSLEEP.
121154         Module regex.
121155         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
121156         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
121157         (gl_REGEX): New macro.
121159         Module rename.
121160         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
121161         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
121163         Module rmdir.
121164         * m4/rmdir.m4: New file.
121166         Module utime.
121167         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
121168         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
121169         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
121171         Module dirname.
121172         * m4/dirname.m4: New file.
121174         Module getopt.
121175         * m4/getopt.m4: New file.
121177         Module unistd-safer.
121178         * m4/unistd-safer.m4: New file.
121180         Module fnmatch.
121181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
121182         declaration.
121183         (gl_PREREQ_FNMATCH_EXTRA): New macro.
121184         (gl_FUNC_FNMATCH_POSIX): New macro.
121185         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
121186         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
121187         simply fnmatch.
121189         Module exclude.
121190         * m4/exclude.m4: New file.
121192         Module human.
121193         * m4/human.m4: New file.
121195         Module acl.
121196         * m4/acl.m4: Nop.
121198         Module backupfile.
121199         * m4/backupfile.m4: New file.
121200         * m4/d-ino.m4: Indentation.
121202         Module fsusage.
121203         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
121204         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
121205         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
121207         Module dirfd.
121208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
121209         requirements.
121211         Module euidaccess.
121212         * m4/euidaccess.m4: New file.
121214         Module file-type.
121215         * m4/file-type.m4: New file.
121217         Module fileblocks.
121218         * m4/fileblocks.m4: New file.
121220         Module filemode.
121221         * m4/filemode.m4: New file.
121223         Module isdir.
121224         * m4/isdir.m4: New file.
121226         Module lchown.
121227         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
121228         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
121230         Module makepath.
121231         * m4/makepath.m4: New file.
121233         Module modechange.
121234         * m4/modechange.m4: New file.
121236         Module mountlist.
121237         * m4/mountlist.m4: New file.
121238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
121239         Indentation.
121241         Module path-concat.
121242         * m4/path-concat.m4: New file.
121244         Module pathmax.
121245         * m4/pathmax.m4: New file.
121247         Module same.
121248         * m4/same.m4: New file.
121250         Module save-cwd.
121251         * m4/save-cwd.m4: New file.
121253         Module savedir.
121254         * m4/savedir.m4: New file.
121256         Module xgetcwd.
121257         * m4/xgetcwd.m4: New file.
121258         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
121260         Module xreadlink.
121261         * m4/xreadlink.m4: New file.
121263         Module safe-read.
121264         * m4/safe-read.m4: New file.
121266         Module safe-write.
121267         * m4/safe-write.m4: New file.
121269         Module closeout.
121270         * m4/closeout.m4: New file.
121272         Module stdio-safer.
121273         * m4/stdio-safer.m4: New file.
121275         Module getpass.
121276         * m4/getpass.m4: New file.
121278         Module getugroups.
121279         * m4/getugroups.m4: New file.
121281         Module group-member.
121282         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
121283         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
121285         Module idcache.
121286         * m4/idcache.m4: New file.
121288         Module userspec.
121289         * m4/userspec.m4: New file.
121291         Module gettime.
121292         * m4/clock_time.m4: New file.
121293         * m4/gettime.m4: New file.
121295         Module settime.
121296         * m4/settime.m4: New file.
121298         Module posixtm.
121299         * m4/posixtm.m4: New file.
121301         Module gethostname.
121302         * m4/gethostname.m4: New file.
121304         Module canon-host.
121305         * m4/canon-host.m4: New file.
121307         Module gettext.
121308         * m4/codeset.m4: New file, from gettext-0.11.5.
121309         * m4/gettext.m4: New file, from gettext-0.11.5.
121310         * m4/glibc21.m4: New file, from gettext-0.11.5.
121311         * m4/iconv.m4: New file, from gettext-0.11.5.
121312         * m4/intdiv0.m4: New file, from gettext-0.11.5.
121313         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
121314         * m4/inttypes.m4: New file, from gettext-0.11.5.
121315         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
121316         * m4/isc-posix.m4: New file, from gettext-0.11.5.
121317         * m4/lcmessage.m4: New file, from gettext-0.11.5.
121318         * m4/lib-ld.m4: New file, from gettext-0.11.5.
121319         * m4/lib-link.m4: New file, from gettext-0.11.5.
121320         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
121321         * m4/progtest.m4: New file, from gettext-0.11.5.
121322         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
121323         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
121324         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
121326         Module localcharset.
121327         * m4/localcharset.m4: New file.
121329         Module hard-locale.
121330         * m4/hard-locale.m4: New file.
121332         Module mbswidth.
121333         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
121334         onceonly macros.
121335         * m4/mbrtowc.m4: Add comment.
121337         Module memcasecmp.
121338         * m4/memcasecmp.m4: New file.
121340         Module memcoll.
121341         * m4/memcoll.m4: New file.
121343         Module unicodeio.
121344         * m4/unicodeio.m4: New file.
121346         Module rpmatch.
121347         * m4/rpmatch.m4: New file.
121349         Module yesno.
121350         * m4/yesno.m4: New file.
121352         Module exitfail.
121353         * m4/exitfail.m4: New file.
121355         Module c-stack.
121356         * m4/c-stack.m4 (gl_C_STACK): New macro.
121357         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
121359         Module error.
121360         * m4/error.m4 (gl_ERROR): New macro.
121361         (jm_PREREQ_ERROR): Use onceonly macros.
121363         Module fatal.
121364         * m4/fatal.m4: New file.
121366         Module getloadavg.
121367         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
121368         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
121370         Module getpagesize.
121371         * m4/getpagesize.m4: New file.
121373         Module getusershell.
121374         * m4/getusershell.m4: New file.
121376         Module physmem.
121377         * m4/physmem.m4: New file.
121379         Module posixver.
121380         * m4/posixver.m4: New file.
121382         Module quotearg.
121383         * m4/quotearg.m4: New file.
121385         Module quote.
121386         * m4/quote.m4: New file.
121388         Module readutmp.
121389         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
121391         Module sig2str.
121392         * m4/sig2str.m4: New file.
121394         Other.
121395         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
121396         ulonglong.m4.
121397         * m4/intmax_t.m4: New file.
121398         * m4/d-type.m4: Indentation.
121399         * m4/jm-macros.m4: Update.
121400         * m4/prereq.m4 (jm_PREREQ): Update.
121401         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
121402         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
121403         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
121404         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
121405         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
121406         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
121407         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
121408         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
121409         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
121410         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
121411         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
121412         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
121413         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
121414         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
121415         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
121416         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
121417         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
121418         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
121419         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
121421 2002-12-24  Bruno Haible  <bruno@clisp.org>
121423         * MODULES.txt: Update according to m4/ changes.
121425         Module gettext.
121426         * config.rpath: New file, from gettext-0.11.5.
121428         * modules/*: New module descriptions.
121429         * gnulib-tool: New file.
121430         * MODULES.html.sh: New file.
121432 2002-12-21  Karl Berry  <karl@gnu.org>
121434         * doc/fdl.texi: update to version 1.2.
121436 2002-12-19  Karl Berry  <karl@gnu.org>
121438         * config/config.guess: update from prep.
121440 2002-12-18  Bruno Haible  <bruno@clisp.org>
121442         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
121443         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
121445 2002-12-17  Bruno Haible  <bruno@clisp.org>
121447         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
121448         stdlib.h, string.h.
121450 2002-12-17  Bruno Haible  <bruno@clisp.org>
121452         * lib/canon-host.c (strdup): Remove unused declaration.
121454         * lib/fsusage.c: Include full_read.h.
121455         (get_fs_usage): Use full_read instead of safe_read.
121457         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
121459 2002-12-12  Karl Berry  <karl@gnu.org>
121461         * config/config.guess: update from prep.
121463 2002-12-11  Bruno Haible  <bruno@clisp.org>
121465         * m4/setenv.m4: New file, from gettext-0.11.5.
121467 2002-12-11  Bruno Haible  <bruno@clisp.org>
121469         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
121470         not unsetenv().
121471         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
121472         modifications:
121474         2002-12-11  Bruno Haible  <bruno@clisp.org>
121476                 * setenv.c (alloca): Fall back to malloc.
121477                 (freea): New macro.
121478                 (setenv): Use freea() to free memory allocated with alloca().
121480         2002-11-13  Bruno Haible  <bruno@clisp.org>
121482                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
121483                 function declarations.
121484                 * unsetenv.c (unsetenv): Likewise.
121486         2002-03-04  Bruno Haible  <bruno@clisp.org>
121488                 Portability to AIX 4.3.3.
121489                 * unsetenv.c: New file, extracted from setenv.c.
121490                 * setenv.c: Move the unsetenv() function to unsetenv.c.
121492         2001-12-20  Bruno Haible  <bruno@clisp.org>
121494                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
121495                 use malloc instead. For SunOS 4.
121497         2001-12-11  Bruno Haible  <bruno@clisp.org>
121499                 * setenv.c: Declare alloca.
121500                 (compar_fn_t): New typedef.
121501                 (KNOWN_VALUE, STORE_VALUE): Use it.
121503         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
121504         setenv.h.
121506 2002-12-10  Paul Eggert  <eggert@twinsun.com>
121508         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
121509         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
121510         Choose values that are less likely to collide with system fnmatch
121511         options.
121512         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
121513         defined (e.g., a pure POSIX system).
121514         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
121515         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
121517 2002-12-06  Paul Eggert  <eggert@twinsun.com>
121519         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
121520         a pain in practice to deal with generated m4 files.  This change
121521         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
121523         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
121524         and jm-glibc-io.m4, as they are no longer a special case.
121525         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
121526         kludge and the auto-generation stuff.  Check only whether the
121527         functions are declared, not whether they exist, since older hosts
121528         that don't declare the functions can't use the optimization anyway.
121530 2002-12-06  Jim Meyering  <jim@meyering.net>
121532         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
121534         Merge in changes from libc's misc/error.c, in preparation
121535         for the merge of gnulib's changes back into libc.
121537         * lib/error.c (_): Define only if not already defined.
121538         Move definition to follow all #include directives.
121539         Include unlocked-io.h only if !_LIBC.
121540         [_LIBC]: Include <libio/libioP.h>.
121541         [USE_IN_LIBIO]: Include <libio/iolibio.h>
121542         (fflush): Tweak definition to use INTUSE.
121543         (putc): Define.
121545 2002-12-05  Paul Eggert  <eggert@twinsun.com>
121547         * lib/alloca.c [defined emacs]: Include "lisp.h".
121548         (xalloc_die) [defined emacs]: New macro.
121549         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
121550         [! defined emacs]: Include <xalloc.h>.
121551         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
121552         (pointer): Typedef to POINTER_TYPE *.
121553         (malloc): Remove decl; we now always use xmalloc.
121554         (alloca): Use old-style definition, since Emacs needs this.
121555         Check for arithmetic overflow when computing combined size.
121557 2002-12-04  Paul Eggert  <eggert@twinsun.com>
121559         Do not generate unlocked-io.h automatically, since it's easier to
121560         maintain it by hand.
121562         * lib/unlocked-io.h: New file, from GNU diffutils,
121563         but with proper copyright notice and attribution.
121564         * lib/gen-uio: Remove.
121565         * lib/Makefile.am: Add copyright notice.
121566         (libfetish_a_SOURCES): Add unlocked-io.h.
121567         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
121568         (DISTCLEANFILES, io_functions): Remove macros.
121569         (EXTRA_DIST): Remove gen_uio.
121570         (unlocked-io.h): Remove rule.
121572 2002-12-04  Jim Meyering  <jim@meyering.net>
121574         Reflect the fact that stat.c and lstat.c are no longer generated.
121575         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
121576         (DISTCLEANFILES): Likewise.
121577         (EXTRA_DIST): Likewise.
121578         (all_local): Don't depend on stat.c or lstat.c.
121579         (stat.c, lstat.c): Remove rules.
121580         (EXTRA_DIST): Remove xstat.in.
121582         * lib/xstat.in: Remove file.  Contents moved into stat.c.
121583         * lib/stat.c: New file.  Contents mostly from xstat.in.
121584         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
121585         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
121587         * lib/safe-read.c: Rework so that it may serve to define safe_write,
121588         too.
121589         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
121591 2002-12-03  Jim Meyering  <jim@meyering.net>
121593         * lib/safe-read.c, safe-write.c: Change variable names and comments,
121594         but not semantics, to minimize the differences between these two files.
121595         (safe_read): Change comment to mention SAFE_READ_ERROR.
121597         * lib/safe-read.c (IS_EINTR): Define.
121598         (safe_read): Use IS_EINTR in place of in-function cpp directives.
121600 2002-12-02  Jim Meyering  <jim@meyering.net>
121602         * lib/safe-read.c (EINTR): Define.
121603         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
121604         (INT_MAX): Provide fallback.
121605         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
121607         * lib/safe-read.h (SAFE_READ_ERROR): Define.
121609 2002-12-02  Bruno Haible  <bruno@clisp.org>
121611         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
121612         Define, taken from safe-read.c.
121613         (INT_MAX): Provide fallback.
121614         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
121615         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
121617         * lib/safe-read.c (EINTR): Remove definition.
121618         (safe_read): Don't use EINTR if it is absent.
121620 2002-12-01  Jim Meyering  <jim@meyering.net>
121622         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
121623         zero.
121624         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
121626 2002-11-27  Paul Eggert  <eggert@twinsun.com>
121628         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
121629         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
121630         with `if (! (value < limit)) abort ();', for readability.
121632 2002-11-26  Karl Berry  <karl@gnu.org>
121634         * lib/strdup.c: copy from libc again, with jim's ok.
121635         * lib/.cppi-disable: re-add strdup.c
121637 2002-11-25  Karl Berry  <karl@gnu.org>
121639         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
121640         instead of "strtol.c".
121642 2002-11-25  Karl Berry  <karl@gnu.org>
121644         * config/install-sh: update from automake for variable quoting, $0 in
121645         error msgs, etc.
121647         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
121648         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
121649         entry.
121651 2002-11-25  Jim Meyering  <jim@meyering.net>
121653         * lib/mktime.c: Sync from libc, now that it has the latest fix.
121655 2002-11-24  Karl Berry  <karl@gnu.org>
121657         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
121658         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
121660 2002-11-24  Jim Meyering  <jim@meyering.net>
121662         Update from coreutils:
121664         * lib/mktime.c: Merge in changes from libc.
121666         Avoid a link-time failure on some Linux systems.
121667         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
121668         (otherwise).
121669         (__mon_yday): Declare with the STATIC attribute.
121670         (__mktime_internal): Likewise.
121671         Based on a report from Greg Schafer.
121673 2002-11-23  Jim Meyering  <jim@meyering.net>
121675         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
121676         Use `unsigned', not `int', as type of index.
121678         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
121680         * lib/fsusage.c: Remove unneeded parentheses around operands of
121681         `defined'.
121683 2002-11-22  Paul Eggert  <eggert@twinsun.com>
121685         * lib/quotearg.h: Allow multiple inclusion by surrounding with
121686         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
121687         so that we can be included first.
121688         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
121689         * lib/quotearg.c: Include quotearg.h immediately after config.h.
121690         No need to include stddef.h or sys/types.h any more.
121691         Surround local include files with "", not "<>".
121692         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
121693         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
121694         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
121695         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
121696         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
121697         (ISPRINT): Remove; no longer needed now that we assume C89.
121699         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
121700         Preserve errno.
121702         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
121703         quotearg_char): Use SIZE_MAX rather than
121704         (size_t) -1 when we are talking about "infinity".
121706         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
121708 2002-11-22  Paul Eggert  <eggert@twinsun.com>
121710         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
121711         hint that one should use `if (! x) abort ();' rather than `assert
121712         (x);', and anyway it's one less thing to worry about configuring.
121713         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
121714         hash_rehash, hash_insert): Use abort rather than assert.
121716 2002-11-22  Bruno Haible  <bruno@clisp.org>
121718         * lib/safe-read.h: Assume C89. Add comments.
121719         (safe_read): Change return type to size_t.
121720         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
121721         byte counts > SSIZE_MAX correctly.
121722         * lib/safe-write.h: New file.
121723         * lib/safe-write.c: New file.
121724         * lib/full-read.h: New file.
121725         * lib/full-read.c: New file.
121726         * lib/full-write.h: Assume C89. Add comments.
121727         * lib/full-write.c: Include safe-write.h.
121728         (full_write): Rewritten to use safe_write.
121729         Suggested by Jim Meyering and Paul Eggert.
121731 2002-11-21  Jim Meyering  <jim@meyering.net>
121733         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
121735         Merge in changes from the coreutils.
121737         2002-09-25  Paul Eggert  <eggert@twinsun.com>
121738         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
121739         <stdint.h>.
121740         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
121741         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
121742         int.  Work more efficiently if X is the same width as uintmax_t.
121743         Do not compare X to -1, to avoid bogus compiler warning.
121744         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
121745         Don't assume that f_frsize and f_bsize are the same type.
121747         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
121748         warning on FreeBSD.
121750         * lib/makepath.c (make_path): Restore umask *before* creating the final
121751         component.
121752         (make_path): Minor reformatting.
121754         * lib/xmalloc.c: Adjust to work with new autoconf macros,
121755         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
121756         HAVE_MALLOC/HAVE_REALLOC.
121758         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
121759         dummy ones.  At least on GNU/Linux systems, `auto' means something
121760         else.
121761         From Michael Stone.
121763 2002-11-21  Bruno Haible  <bruno@clisp.org>
121765         Remove case insensitive option matching.
121766         * lib/argmatch.h (argcasematch): Remove declaration.
121767         (ARGCASEMATCH): Remove macro.
121768         (__xargmatch_internal): Remove case_sensitive argument.
121769         (XARGMATCH): Update.
121770         (XARGCASEMATCH): Remove macro.
121771         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
121772         case_sensitive argument.
121773         (argcasematch): Remove function.
121774         (__xargmatch_internal): Remove case_sensitive argument.
121775         (main): Use XARGMATCH instead of XARGCASEMATCH.
121777         * lib/xmalloc.c: Change compile-time error message. Add comment about
121778         required autoconf version.
121780 2002-11-20  Paul Eggert  <eggert@twinsun.com>
121782         Merge argmatch cleanups from Bison.  Assume C89.
121784         * lib/argmatch.c: Include config.h here, not in argmatch.h.
121785         Include stdlib.h, for EXIT_FAILURE.
121786         Always include <string.h>, since we assume C89.
121787         (EXIT_FAILURE): Remove pre-C89 bug workaround.
121788         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
121789         Include <stddef.h> instead, since it's all we need for size_t.
121790         (PARAMS): Remove.  All uses removed.
121791         (ARRAY_CARDINALITY): Do not bother to #undef.
121792         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
121793         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
121794         Remove unnecessary parentheses.
121795         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
121796         Insert necessary parentheses.
121797         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
121798         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
121800 2002-11-19  Bruno Haible  <bruno@clisp.org>
121802         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
121803         * lib/mbswidth.h: Include <stddef.h>, for size_t.
121805         * lib/mbswidth.h (PARAMS): Remove macro.
121806         (mbswidth, mbsnwidth): Use ANSI C function declarations.
121807         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
121809         * lib/gcd.h (PARAMS): Remove macro.
121810         (gcd): Use ANSI C function declarations.
121811         * lib/gcd.c (gcd): Likewise.
121813 2002-11-15  Bruno Haible  <bruno@clisp.org>
121815         * lib/strcspn.c: Include <stddef.h>.
121816         (strcspn): Use ANSI C function declaration. Change return type to
121817         size_t. Use NULL.
121818         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
121819         (strpbrk): Use NULL.
121820         * lib/strpbrk.h (PARAMS): Remove macro.
121821         (strpbrk): Use ANSI C function declaration.
121822         * lib/strstr.c: Don't include <sys/types.h>.
121823         * lib/strstr.h (PARAMS): Remove macro.
121824         (strstr): Use ANSI C function declarations.
121826 2002-11-14  Karl Berry  <karl@gnu.org>
121828         * config/mkinstalldirs: `do' on separate line, instead of
121829         `for var; do'.
121831 2002-11-06  Bruno Haible  <bruno@clisp.org>
121833         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
121834         * lib/gcd.c (gcd): Likewise.
121836 2002-11-05  Bruno Haible  <bruno@clisp.org>
121838         * lib/gcd.h: New file, from gettext-0.11.5.
121839         * lib/gcd.c: New file, from gettext-0.11.5.
121841 2002-11-05  Bruno Haible  <bruno@clisp.org>
121843         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
121844         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
121845         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
121846         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
121848         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
121849         <libintl.h>.
121850         * lib/makepath.c: Include gettext.h instead of <locale.h> and
121851         <libintl.h>.
121853         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
121854         * lib/human.c: Include gettext.h instead of <libintl.h>.
121855         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
121856         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
121857         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
121858         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
121859         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
121860         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
121861         (textdomain): Remove definition.
121862         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
121864         * lib/long-options.c: Remove include of <libintl.h> and definition of
121865         _.
121866         * lib/same.c: Remove include of <libintl.h> and definition of _.
121868 2002-11-04  Owen Taylor  <otaylor@redhat.com>
121870         * lib/config.charset: A few additions for Solaris.
121872 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
121874         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
121875         * lib/localcharset.c (locale_charset): Declare as extern "C".
121877 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
121879         * lib/config.charset: msdos in uk_UA uses CP1125.
121881 2002-11-04  Bruno Haible  <bruno@clisp.org>
121883         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
121884         * lib/strcase.h: New file, from GNU gettext-0.11.5.
121885         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
121886         * lib/strstr.h: New file, from GNU gettext-0.11.5.
121887         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
121889 2002-11-04  Bruno Haible  <bruno@clisp.org>
121891         * lib/localcharset.c (locale_charset): Don't return an empty string.
121893 2002-11-04  Bruno Haible  <bruno@clisp.org>
121895         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
121896         aliases.
121898 2002-11-04  Bruno Haible  <bruno@clisp.org>
121900         * lib/config.charset: Update for newest glibc. Add canonical names
121901         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
121903 2002-11-04  Bruno Haible  <bruno@clisp.org>
121905         * lib/config.charset: Add support for NetBSD.
121907 2002-11-04  Bruno Haible  <bruno@clisp.org>
121909         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
121911 2002-11-01  Bruno Haible  <bruno@clisp.org>
121913         * configure.in: Add AC_CONFIG_AUX_DIR call.
121914         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
121915         test/Makefile.
121916         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
121918 2002-09-28  Karl Berry  <karl@gnu.org>
121920         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
121921         installed automake until the next release, since changes have been
121922         made.
121924 2002-09-25  Karl Berry  <karl@gnu.org>
121926         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
121927         * lib/getopt*: copy from libc/posix.
121928         * lib/gettext.h: copy from gettext.
121929         * lib/.cppi-disable: add strdup.c, gettext.h.
121931 2002-09-25  Karl Berry  <karl@gnu.org>
121933         * config/srclist.txt: enable gettext.h check.
121934         * config/config.{guess,sub}: update from prep.
121935         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
121936                 from automake 1.6.3.
121937         See srclist*.
121939 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
121941         * regex.c (PATFETCH): Remove the translating fetch.
121942         (PATFETCH_RAW): Rename to PATFETCH.
121943         (set_image_of_range): New fun.
121944         (SET_RANGE_TABLE_WORK_AREA): Use it.
121945         (regex_compile): Don't translate the pattern chars so eagerly.
121946         Only do it when inserting an `exactn' bytecode or when handling
121947         a char-range.
121948         (mutually_exclusive_p): Avoid empty statement.
121950 2002-07-06  Jim Meyering  <meyering@lucent.com>
121952         * m4/README: Don't mention Makefile.am.in.
121953         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
121955 2002-07-01  Jim Meyering  <meyering@lucent.com>
121957         * lib/c-stack.c: Include sys/time.h.
121958         From Volker Borchert.
121960 2002-06-26  Paul Eggert  <eggert@twinsun.com>
121962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
121964 2002-06-26  Paul Eggert  <eggert@twinsun.com>
121966         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
121967         New macro.  Use it uniformly instead of
121968         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
121969         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
121970         reported by Vin Shelton.
121972 2002-06-22  Paul Eggert  <eggert@twinsun.com>
121974         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
121975         Do not assume SA_SIGINFO behavior.
121976         Bug reported by Jim Meyering on NetBSD 1.5.2.
121978 2002-06-22  Jim Meyering  <meyering@lucent.com>
121980         * m4/c-stack.m4: New file, from diffutils-2.8.2.
121981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
121983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
121984         now that configure.ac uses AC_GNU_SOURCE.
121985         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
121986         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
121988         Update to latest tools.  Suggestions from Paul Eggert.
121989         * m4/stdbool.m4: New file, from diffutils-2.8.2.
121990         * m4/gnu-source.m4: Update from diffutils-2.8.2.
121991         * m4/fnmatch.m4: Likewise.
121992         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
121993         to AC_HEADER_STDBOOL
121995 2002-06-22  Jim Meyering  <meyering@lucent.com>
121997         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
121998         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
122000 2002-06-22  Jim Meyering  <meyering@lucent.com>
122002         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
122004         * lib/exitfail.c, exitfail.h: Likewise.
122005         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
122007         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
122008         of fnmatch.h.
122009         (EXTRA_DIST): Add fnmatch_loop.c.
122010         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
122012         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
122013         * lib/fnmatch.c: Update from diffutils-2.8.2.
122014         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
122015         * lib/fnmatch.h: Remove file.
122017 2002-06-21  Jim Meyering  <meyering@lucent.com>
122019         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
122020         * m4/mbrtowc.m4: Likewise.
122022         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
122023         * m4/mbswidth.m4: Reflect name change:
122024         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
122025         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
122027         * m4/lib-link.m4: Update from gettext-0.11.2.
122028         * m4/gettext.m4: Likewise.
122030         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
122031         From Alfred M. Szmidt.
122033 2002-06-18  Paul Eggert  <eggert@twinsun.com>
122035         * lib/file-type.h: Report an error if neither S_ISREG nor
122036         S_IFREG is defined, instead of using a test specific to glibc
122037         2.2.  This should be safe, since POSIX requires S_ISREG and
122038         Unix Version 7 had S_IFREG.  We don't need to check for
122039         <sys/types.h> since we don't use any symbols that it defines.
122041 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
122043         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
122044         $@-t, so that each temporary file name is unique and valid in the first
122045         8 characters, for operation under DOS.
122047 2002-06-15  Paul Eggert  <eggert@twinsun.com>
122049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
122051 2002-06-15  Jim Meyering  <meyering@lucent.com>
122053         Work even with DJGPP 2.03, which lacks support for symlinks.
122054         From Richard Dawe.
122055         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
122056         is defined.
122057         * lib/lchown.c (S_ISLNK): Likewise.
122059 2002-06-15  Jim Meyering  <meyering@lucent.com>
122061         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
122062         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
122063         have been included before this file.
122065 2002-06-14  Jim Meyering  <meyering@lucent.com>
122067         * lib/file-type.h: Use the version from diffutils-2.8.2.
122068         * lib/file-type.c: Likewise.
122070 2002-06-07  Jim Meyering  <meyering@lucent.com>
122072         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
122073         They're needed at least for NetBSD 1.5.2.
122074         ($statxfs_includes): Include those same headers.
122075         ($statxfs_includes): Include sys/vfs.h if available.
122076         ($statxfs_includes): Likewise for sys/statvfs.h.
122077         Check for the following members in both structs statfs and statvfs:
122078         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
122080 2002-06-01  Jim Meyering  <meyering@lucent.com>
122082         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
122083         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
122085 2002-05-28  Jim Meyering  <meyering@lucent.com>
122087         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
122088         Reported by Volker Borchert.
122090 2002-05-27  Jim Meyering  <meyering@lucent.com>
122092         Fix a problem seen only on nonconforming systems whereby ls.c's
122093         use of localtime, and then of gettimeofday would cause trouble:
122094         the localtime call used to initialize rpl_gettimeofday's save
122095         mechanism would clobber ls's current local time information so
122096         that in any long listing the first file would always be listed
122097         with date 1970-01-01.  Analysis by Volker Borchert.
122099         * lib/gettimeofday.c (localtime): Undefine.
122100         (rpl_localtime): New function.
122102 2002-05-27  Jim Meyering  <meyering@lucent.com>
122104         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
122105         localtime.
122107         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
122108         use the replacement function; it wouldn't resolve at link time.
122109         Reported by Volker Borchert.
122111 2002-05-22  Jim Meyering  <meyering@lucent.com>
122113         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
122114         file-type.h.
122115         * lib/file-type.h: New file.
122116         * lib/file-type.c (file_type): New file/function.  Extracted from
122117         diffutils.
122119 2002-04-30  Jim Meyering  <meyering@lucent.com>
122121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
122123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122125         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
122127 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122129         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
122130         Do not check for alloca.h (no longer used) or stdbool.h (was never
122131         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
122133 2002-04-29  Paul Eggert  <eggert@twinsun.com>
122135         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
122137 2002-04-29  Jim Meyering  <meyering@lucent.com>
122139         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
122140         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
122141         Use AC_FUNC_STRNLEN here instead.
122143         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
122144         With autoconf-2.53a, it's part of AC_PROG_CC.
122146 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122148         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
122149         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
122151 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122153         * lib/sig2str.h, lib/sig2str.c: New files.
122154         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
122156 2002-04-28  Paul Eggert  <eggert@twinsun.com>
122158         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
122159         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
122160         of 127, since 64 is the largest conceivable number for ancient
122161         nonstandard hosts.
122162         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
122164 2002-04-28  Jim Meyering  <meyering@lucent.com>
122166         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
122168 2002-04-24  Jim Meyering  <meyering@lucent.com>
122170         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
122171         (jm_PREREQ): Use it.
122173         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
122174         mach/mach.h fcntl.h.
122175         Check for this function: setlocale.
122177 2002-04-24  Jim Meyering  <meyering@lucent.com>
122179         * lib/gettext.h: New file, from Gettext.
122180         * lib/Makefile.am (INCLUDES): Remove -I../intl.
122181         (libfetish_a_SOURCES): Add gettext.h.
122183 2002-04-16  Jim Meyering  <meyering@lucent.com>
122185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
122186         ut_pid, ut_id, ut_exit.
122188 2002-04-16  Jim Meyering  <meyering@lucent.com>
122190         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
122191         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
122192         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
122194 2002-04-12  Jim Meyering  <meyering@lucent.com>
122196         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
122197         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
122198         existence of the getmntinfo function.  Needed for Darwin 5.3.
122200         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
122201         This is necessary at least on Darwin 5.3.
122203         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
122204         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
122205         strnlen.o in the library, and that makes some versions of ranlib
122206         object.
122208 2002-04-12  Jim Meyering  <meyering@lucent.com>
122210         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
122212 2002-04-09  Jim Meyering  <meyering@lucent.com>
122214         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
122215         to be more precise.  Rather than saying we're checking whether the
122216         function `works', say what we're testing.
122217         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
122218         Reported by Bruno Haible.
122220 2002-03-10  Jim Meyering  <meyering@lucent.com>
122222         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
122223         Suggestion from Santiago Vila.
122225 2002-03-08  Jim Meyering  <meyering@lucent.com>
122227         * lib/rename.c: Mention that this wrapper is needed also on
122228         mips-dec-ultrix4.4 systems.
122230 2002-03-02  Jim Meyering  <meyering@lucent.com>
122232         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
122233         not HAVE_CLOCK_SETTIME.
122235 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122237         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
122238         Check for clock_settime.
122240 2002-02-27  Paul Eggert  <eggert@twinsun.com>
122242         * lib/nanosleep.h: Rename to....
122243         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
122245         * lib/gettime.c: New file.
122246         * lib/settime.c: New file.
122247         * lib/stime.c: Remove.
122249         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
122250         timespec.h.  Remove nanosleep.h.
122252 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122254         * m4/acl.m4: New file.
122255         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
122256         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
122258 2002-02-25  Paul Eggert  <eggert@twinsun.com>
122260         * lib/acl.c, lib/acl.h: New files.
122261         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
122263 2002-02-24  Jim Meyering  <meyering@lucent.com>
122265         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
122266         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
122267         cause trouble.  Reported by Nelson Beebe.
122269 2002-02-23  Paul Eggert  <eggert@twinsun.com>
122271         * lib/path-concat.c (xpath_concat): Reorder code to pacify
122272         compilers that don't know that xalloc_die never returns.
122274 2002-02-20  Jim Meyering  <meyering@lucent.com>
122276         * lib/getdate.c: Regenerate using bison-1.33.
122278 2002-02-17  Jim Meyering  <meyering@lucent.com>
122280         * config/config.guess (main): Don't use `head -1'; it's no longer
122281         portable. Use `sed 1q' instead.
122283 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
122285         * m4/codeset.m4: Upgrade to gettext-0.11.
122286         * m4/gettext.m4: Upgrade to gettext-0.11.
122287         * m4/glibc21.m4: Upgrade to gettext-0.11.
122288         * m4/iconv.m4: Upgrade to gettext-0.11.
122289         * m4/isc-posix.m4: Upgrade to gettext-0.11.
122290         * m4/lcmessage.m4: Upgrade to gettext-0.11.
122291         * m4/lib-ld.m4: New file, from gettext-0.11.
122292         * m4/lib-link.m4: New file, from gettext-0.11.
122293         * m4/lib-prefix.m4: New file, from gettext-0.11.
122294         * m4/progtest.m4: Upgrade to gettext-0.11.
122296 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122298         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
122299         (jm_PREREQ): Use it.
122301 2002-02-15  Paul Eggert  <eggert@twinsun.com>
122303         * lib/posixver.c, lib/posixver.h: New files.
122304         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122306 2002-02-02  Paul Eggert  <eggert@twinsun.com>
122307             Bruno Haible  <bruno@clisp.org>
122309         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
122310         (fwrite_success_callback): New declaration.
122311         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
122312         print_unicode_char. Call failure callback instead of error.
122313         (fwrite_success_callback): New function.
122314         (exit_failure_callback): New function.
122315         (fallback_failure_callback): New function.
122316         (print_unicode_char): Call unicode_to_mb.
122318 2002-01-26  Jim Meyering  <meyering@lucent.com>
122320         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
122321         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
122323 2002-01-26  Jim Meyering  <meyering@lucent.com>
122325         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
122327 2002-01-22  Paul Eggert  <eggert@twinsun.com>
122329         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
122331 2002-01-22  Jim Meyering  <meyering@lucent.com>
122333         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
122334         Otherwise, some versions of automake would omit the rule that makes
122335         Makefile from Makefile.in.
122337 2002-01-21  Paul Eggert  <eggert@twinsun.com>
122339         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
122340         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
122341         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
122342         (memcoll): Set errno to zero if there is no error.
122344         * lib/quotearg.c (quotearg_buffer_restyled):
122345         Fix bug with quoting buffers containing NUL when backslashing escapes.
122346         This bug was exposed by the other changes in this patch.
122347         (quotearg_n_options): New arg ARGSIZE.
122348         All callers changed.
122349         (quoting_options_from_style): New function.
122350         (quotearg_n_style): Use it.
122351         (quotearg_n_style_mem): New function.
122353         * lib/quotearg.h (quotearg_n_style_mem): New function.
122355 2002-01-19  Jim Meyering  <meyering@lucent.com>
122357         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
122358         Remove useless quotes: DF_PROG="df".
122359         * m4/strnlen.m4: New file.
122361 2002-01-16  Paul Eggert  <eggert@twinsun.com>
122363         * lib/backupfile.c (ISDIGIT): Comment fix.
122364         * lib/getdate.y (ISDIGIT): Likewise.
122365         * lib/posixtm.c (ISDIGIT, year): Likewise.
122366         * lib/strverscmp.c (ISDIGIT): Likewise.
122367         * lib/userspec.c (ISDIGIT): Likewise.
122369 2002-01-16  Jim Meyering  <meyering@lucent.com>
122371         * lib/getdate.y: Add three semicolons, each just before a closing
122372         brace. Bison (as of version 1.31) no longer papers over that mistake.
122374 2002-01-05  Jim Meyering  <meyering@lucent.com>
122376         * lib/version-etc.c (version_etc_copyright): Update copyright year.
122378 2001-12-19  Paul Eggert  <eggert@twinsun.com>
122380         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
122381         not silently exit merely because the output buffer happens to
122382         have nothing pending.
122384 2001-12-18  Paul Eggert  <eggert@twinsun.com>
122386         See the big note in ../ChangeLog.
122387         * lib/human.c (suffixes): Prefer K to k for 1024.
122388         (generate_suffix_backwards): New function.
122389         (human_readable_inexact): Use it.
122390         * lib/xstrtol.c (__xstrtol): If there is no number but there
122391         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
122392         Accept 'K' as well as 'k'.
122394 2001-12-15  Jim Meyering  <meyering@lucent.com>
122396         * lib/regex.h (__restrict_arr): Update from libc.
122398         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
122399         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
122400         (STREQ): Define.
122402 2001-12-14  Jim Meyering  <meyering@lucent.com>
122404         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
122405         Suggestion from Bruno Haible.
122407 2001-12-10  Jim Meyering  <meyering@lucent.com>
122409         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
122410         xrealloc, Instead, include "xalloc.h".
122411         (initbuffer): Don't cast xmalloc return value to char*.
122412         (readline): Reword comment.
122413         Don't cast xrealloc return value to char*
122414         Return NULL, not 0.
122416 2001-12-09  Jim Meyering  <meyering@lucent.com>
122418         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
122419         about `signed and unsigned type in conditional expression'.
122420         * lib/posixtm.c (posix_time_parse): Likewise.
122422         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
122424         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
122425         to avoid a pedantic warning.
122427         * lib/getstr.c: Don't include assert.h.
122428         (getstr): Remove warning-evoking assertions.
122429         Return -1 if offset parameter is out of bounds.
122430         Change the type of a local from int to size_t.
122432         * lib/strftime.c (my_strftime_localtime_r): Include this function
122433         definition in the `#if ! HAVE_TM_GMTOFF' block.
122435         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
122436         Include xalloc.h instead.
122438 2001-12-02  Jim Meyering  <meyering@lucent.com>
122440         * lib/tempname.c: Don't declare getenv, thus reverting the change of
122441         2001-11-18.  It's no longer necessary, now that stdlib.h is always
122442         included.
122444         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
122445         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
122447 2001-11-30  Akim Demaille  <akim@epita.fr>
122449         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
122450         before being defined.
122452 2001-11-27  Paul Eggert  <eggert@twinsun.com>
122454         * lib/quotearg.h (quotearg_n, quotearg_n_style):
122455         First arg is int, not unsigned.
122456         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
122457         (SIZE_MAX, UINT_MAX): New macros.
122458         (quotearg_n_options): Abort if N is negative.
122459         Avoid overflow check on hosts where size_t is 64 bits and int
122460         is 32 bits, as overflow is impossible there.
122461         Fix off-by-one typo that caused unnecessary reallocation.
122463 2001-11-27  Jim Meyering  <meyering@lucent.com>
122465         * lib/tempname.c: Merge with version from libc.
122466         * lib/regex.c: Likewise.
122468         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
122469         systems for which STDC_HEADERS is 0, it was not included, resulting in
122470         a warning about an integer-to-pointer conversion problem with getenv.
122471         Reported by Volker Borchert.
122473 2001-11-26  Jim Meyering  <meyering@lucent.com>
122475         * lib/gtod.h: Remove file.
122476         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
122477         * lib/gettimeofday.c: Don't include gtod.h.
122478         (GTOD_init): Remove function.
122479         (rpl_gettimeofday): Do its job here instead, rather than aborting.
122480         Suggestion from Volker Borchert.
122482 2001-11-23  Jim Meyering  <meyering@lucent.com>
122484         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
122485         it.
122486         * lib/hash.c (struct hash_table): Define it here instead.
122488 2001-11-22  Jim Meyering  <meyering@lucent.com>
122490         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
122492 2001-11-20  Jim Meyering  <meyering@lucent.com>
122494         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
122495         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
122497 2001-11-19  Jim Meyering  <meyering@lucent.com>
122499         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
122500         directory.  Use "conftestXXXXXX" as the template.
122501         Suggestion from Paul Eggert.
122503         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
122504         immediately, so the test doesn't mistakenly hit the max-open-files
122505         limit.
122507 2001-11-18  Paul Eggert  <eggert@twinsun.com>
122509         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
122510         (TEMPORARIES): New macro.
122511         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
122512         removes an artificial limitation (e.g. HP-UX 10.20, where
122513         TMP_MAX is 17576).
122515 2001-11-18  Jim Meyering  <meyering@lucent.com>
122517         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
122519 2001-11-18  Jim Meyering  <meyering@lucent.com>
122521         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
122522         on SunOS 4.
122524         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
122525         files will be created before anything else.
122527 2001-11-17  Paul Eggert  <eggert@twinsun.com>
122529         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
122530         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
122532 2001-11-17  Jim Meyering  <meyering@lucent.com>
122534         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
122535         Prompted by a report from Bob Proulx.
122537         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
122538         Instead, require UTILS_FUNC_MKSTEMP.
122540 2001-11-17  Jim Meyering  <meyering@lucent.com>
122542         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
122543         Now, that's done as part of AC_FUNC_STRTOD.
122545 2001-11-17  Jim Meyering  <meyering@lucent.com>
122547         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
122548         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
122549         rather than group writable.  Patch by Juan F. Codagnone.
122551         * lib/readtokens.c: Remove explicit declarations of xmalloc and
122552         xrealloc, Instead, include "xalloc.h".
122554         * lib/mountlist.c: Include unlocked-io.h after all system headers.
122555         Remove explicit declarations of xmalloc, xrealloc,
122556         and xstrdup.  Instead, include "xalloc.h".
122558         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
122559         unlocked-io.h.
122560         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
122561         Likewise.
122562         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
122564         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
122565         Reported by Padraig Brady.
122567         * lib/mkstemp.c: #undef mkstemp.
122568         Include config.h.
122569         (rpl_mkstemp): Rename from mkstemp.
122570         Protoize.
122572 2001-11-16  Jim Meyering  <meyering@lucent.com>
122574         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
122575         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
122576         determine the amount of total physical memory, use pstat_getstatic.
122577         HPUX-11 doesn't define _SC_PHYS_PAGES.
122578         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
122579         If sysconf couldn't be used to determine the amount of available
122580         physical memory, use both pstat_getstatic and pstat_getdynamic.
122581         Based on a patch from Bob Proulx.
122583 2001-11-10  Jim Meyering  <meyering@lucent.com>
122585         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
122586         (jm_PREREQ): Use it.
122588 2001-11-09  Jim Meyering  <meyering@lucent.com>
122590         * m4/jm-macros.m4: Require autoconf-2.52f.
122591         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
122592         Use these AC_-prefixed names, not the AM_-prefixed ones.
122594         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
122596 2001-11-05  Jim Meyering  <meyering@lucent.com>
122598         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
122600 2001-11-04  Jim Meyering  <meyering@lucent.com>
122602         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
122603         $DEFS.
122605 2001-11-03  Jim Meyering  <meyering@lucent.com>
122607         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
122608         of AC_DEFUN.
122610         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
122611         know the name of the variable in the macro definition.
122613 2001-11-03  Jim Meyering  <meyering@lucent.com>
122615         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
122616         in argmatch_to_argument call.
122618         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
122619         argument.
122621         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
122622         e.g., a fault due to an attempt to free a NULL pointer.
122624 2001-11-01  Jim Meyering  <meyering@lucent.com>
122626         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
122627         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
122629 2001-11-01  Jim Meyering  <meyering@lucent.com>
122631         * lib/dirfd.c, lib/dirfd.h: New files.
122632         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
122634         * lib/hash.c (hash_print) [TESTING]: Clean up.
122636 2001-10-22  Paul Eggert  <eggert@twinsun.com>
122638         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
122639         to avoid a warning if -Wall.
122641 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
122643         * README: New file
122644         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
122645         (per RMS's instructions, this is now the canonical source)
122646         * lgpl/, gpl/: New directories.
122648 2001-10-21  Paul Eggert  <eggert@twinsun.com>
122650         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
122652 2001-10-21  Jim Meyering  <meyering@lucent.com>
122654         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
122655         this code would end up calling gettext even in packages built
122656         with --disable-nls.
122657         * lib/getopt.c (_): Likewise.
122658         * lib/regex.c (_): Likewise.
122660 2001-10-20  Paul Eggert  <eggert@twinsun.com>
122662         * m4/error.m4 (jm_PREREQ_ERROR):
122663         Do not invoke AC_CHECK_FUNCS with strerror_r, as
122664         AC_FUNC_STRERROR_R does that.
122665         Check for strerror declaration.
122667         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
122668         are supposed to have them these days.
122669         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
122670         Merge changes from latest Autoconf CVS.
122671         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
122672         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
122673         POSIX decided to standardize on the int flavor of strerror_r.
122675 2001-10-20  Paul Eggert  <eggert@twinsun.com>
122677         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
122678         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
122679         Use strerror_r that is only a macro, even if it is not a function.
122680         (strerror): Check for HAVE_DECL_STRERROR before declaring.
122681         (private_strerror): Use prototypes, not old-style function definition.
122682         (print_errno_message): New function.
122683         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
122684         char*-flavored one.
122685         (error_tail, error, error_at_line): Use it.
122687 2001-10-11  Jim Meyering  <meyering@lucent.com>
122689         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
122690         and quote_n (1, ... to avoid clobbering a buffer.
122692 2001-10-05  Jim Meyering  <meyering@lucent.com>
122694         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
122695         hash-pjw.h.
122696         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
122697         * lib/hash-pjw.h: New file.
122699 2001-09-30  Jim Meyering  <meyering@lucent.com>
122701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
122702         `struct fsstat' has the `f_fstypename' member.
122703         Use that to define FS_TYPE, which is now used to make
122704         the getfsstat link test tighter.
122706 2001-09-30  Jim Meyering  <meyering@lucent.com>
122708         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
122709         Include <sys/ucred.h>, for Apple Darwin.
122710         Include sys/mount.h and sys/fs_types.h only if available.
122711         (FS_TYPE): Define.
122712         (read_filesystem_list): Use FS_TYPE.
122714 2001-09-29  Paul Eggert  <eggert@twinsun.com>
122716         * lib/exclude.c (excluded_filename): 0 -> false, since it's
122717         a boolean context.
122719 2001-09-29  Jim Meyering  <meyering@lucent.com>
122721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
122722         [one-argument getmntent function]): Include stdio.h before mntent.h.
122723         SunOS 4.1.x needs it for the declaration of `FILE'.
122724         Patch by Volker Borchert.
122726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
122727         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
122728         sys/fs_types.h, and make the link-test for getfsstat guard #include
122729         directives with appropriate #if HAVE_*_H tests so that we can
122730         detect getfsstat on Apple Darwin1.3.7 systems.
122731         Reported by Nelson Beebe.
122732         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
122734 2001-09-28  Paul Eggert  <eggert@twinsun.com>
122736         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
122737         #defines strtoimax.  Also treat the other strto* functions
122738         like strtoimax.
122740         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
122741         Check for strtoul and strtoumax,
122742         as those declarations are made even in the signed case.
122743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
122744         Likewise, for strtol and strtoimax.
122746 2001-09-28  Paul Eggert  <eggert@twinsun.com>
122748         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
122749         #defines strtoimax.  Also treat the other strto* functions
122750         like strtoimax.
122752         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
122753         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
122754         (strtoimax, strtoumax): Do not declare if already defined as a macro.
122756 2001-09-26  Jim Meyering  <meyering@lucent.com>
122758         Most macros in unlocked-io.h had the wrong number of arguments.
122759         * lib/gen-uio: New script.
122760         (USE_UNLOCKED_IO): Define to 1 if not already defined.
122761         * lib/unlocked-io.hin: Remove file.
122762         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
122763         rather than trying to embed it here.
122764         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
122765         Reported by Padraig Brady.
122767 2001-09-25  Volker Borchert  <bt@teknon.de>
122769         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
122770         `result'.
122772 2001-09-24  Jim Meyering  <meyering@lucent.com>
122774         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
122776 2001-09-23  Jim Meyering  <meyering@lucent.com>
122778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
122779         instead of the mere test for existence of mntent.h.  The latter
122780         would get a false-positive on AIX 3.4 systems.
122781         In the outer getmntent if-block, don't die if neither of the getmntent
122782         tests succeeds.  Instead, just fall through and continue with the
122783         remaining tests.
122785 2001-09-23  Jim Meyering  <meyering@lucent.com>
122787         * lib/mountlist.c: Remove useless parentheses in #if directives.
122788         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
122789         the deprecated MOUNTED symbol is no longer defined in mntent.h.
122791 2001-09-22  Jim Meyering  <meyering@lucent.com>
122793         * m4/gettext.m4: New file.  From gettext.
122794         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
122795         * m4/progtest.m4: Likewise
122796         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
122797         * m4/glibc21.m4: Likewise.
122799         * m4/libintl.m4: Remove.  No longer used.
122801 2001-09-22  Jim Meyering  <meyering@lucent.com>
122803         * lib/localcharset.c: Update from latest gettext.
122804         * lib/config.charset: Likewise.
122806 2001-09-20  Jim Meyering  <meyering@lucent.com>
122808         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
122809         strtoimax.
122810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
122811         strtoumax.
122813 2001-09-20  Jim Meyering  <meyering@lucent.com>
122815         * lib/xstrtol.c (strtoimax): Guard declaration with
122816         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
122817         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
122818         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
122819         (strtoumax): Likewise, for completeness (it wasn't necessary).
122821 2001-09-17  Paul Eggert  <eggert@twinsun.com>
122823         * lib/strtoimax.c (HAVE_LONG_LONG):
122824         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
122825         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
122826         to work around bug in IBM C compiler.
122828 2001-09-17  Jim Meyering  <meyering@lucent.com>
122830         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
122831         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
122832         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
122833         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
122834         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
122835         whenever the right hand side need not be expanded by the shell.
122837 2001-09-16  Paul Eggert  <eggert@twinsun.com>
122839         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
122840         library.  It's not correct, as some older glibcs are buggy.
122841         fnmatch wasn't fixed until glibc 2.2.
122843         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
122844         special shell magic here.
122846 2001-09-16  Jim Meyering  <meyering@lucent.com>
122848         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
122849         * m4/jm-macros.m4: Require it.
122851 2001-09-16  Jim Meyering  <meyering@lucent.com>
122853         * lib/mkdir.c: New file.
122855 2001-09-15  Jim Meyering  <meyering@lucent.com>
122857         * m4/jm-macros.m4: Check for help2man.
122859 2001-09-11  Jim Meyering  <meyering@lucent.com>
122861         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
122862         The body, by Paul Eggert, was moved here from configure.in.
122863         * m4/jm-macros.m4: Require UTILS_HOST_OS.
122865 2001-09-04  Paul Eggert  <eggert@twinsun.com>
122867         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
122868         (jm_PREREQ): Use it.
122870 2001-09-04  Paul Eggert  <eggert@twinsun.com>
122872         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
122873         Use ssize_t, not int, to store result of readlink.
122874         Check for ssize_t overflow as well as size_t overflow,
122875         as POSIX says the result of readlink is implementation-defined
122876         when ssize_t overflows.
122877         Remove unnecessary cast to char*.
122878         Use free+malloc instead of realloc, as the storage doesn't need
122879         to be preserved and it's clearer and can be more efficient that way.
122880         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
122881         * lib/xreadlink.h (xreadlink): Update prototype.
122883 2001-09-04  Paul Eggert  <eggert@twinsun.com>
122885         * lib/xgetcwd.c: Revert some of the previous change; intead,
122886         fix the HAVE_GETCWD_NULL code to behave more like the
122887         !HAVE_GETCWD_NULL code used to.
122889         Include "xalloc.h".
122890         (xgetcwd): Do not return NULL when memory is exhausted; instead,
122891         invoke xalloc_die.
122893 2001-09-03  Paul Eggert  <eggert@twinsun.com>
122895         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
122896         sys/param.h, as pathmax.h includes them.
122898 2001-09-03  Paul Eggert  <eggert@twinsun.com>
122900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
122901         (jm_PREREQ_XGETCWD): New macro.
122903         * m4/getcwd.m4: New file.
122905 2001-09-03  Paul Eggert  <eggert@twinsun.com>
122907         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
122908         like the HAVE_GETCWD_NULL code.
122909         Include pathmax.h if not HAVE_GETCWD.
122910         Do not include xalloc.h.
122911         (INITIAL_BUFFER_SIZE): New symbol.
122912         Do not use xmalloc / xrealloc, since the caller is responsible for
122913         handling errors.  Preserve errno around `free' during failure.
122914         Do not overrun buffer when using getwd.
122916 2001-09-03  Paul Eggert  <eggert@twinsun.com>
122918         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
122919         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
122920         getcwd (NULL, 0).
122922 2001-09-03  Paul Eggert  <eggert@twinsun.com>
122924         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
122925         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
122926         spotted by Jim Meyering.
122928 2001-09-03  Jim Meyering  <meyering@lucent.com>
122930         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
122931         failure.
122933 2001-09-02  Jim Meyering  <meyering@lucent.com>
122935         * lib/error.c: Update from GNU libc.
122937 2001-09-01  Jim Meyering  <meyering@lucent.com>
122939         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
122940         Used by df.
122942 2001-09-01  Jim Meyering  <meyering@lucent.com>
122944         * lib/xreadlink.c: New file.
122945         * lib/xreadlink.h: New file.
122946         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
122947         xreadlink.h.
122949         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
122950         doesn't conflict with sparc Solaris 7's definition in
122951         /usr/include/sys/int_types.h.
122953         * lib/exclude.c: Use `""', not `<>' to #include non-system header
122954         files.
122955         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
122956         and strncasecmp as r-values.  Unixware didn't have declarations.
122958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
122960         * lib/xstrtol.h: Add copyright notice.
122961         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
122962         LONGINT_INVALID_SUFFIX_CHAR.
122964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
122966         * lib/xstrtol.c (strtoimax): New decl.
122968 2001-08-31  Paul Eggert  <eggert@twinsun.com>
122970         * lib/xgetcwd.c: Don't include pathmax.h.
122971         Include stdlib.h and unistd.h if available.
122972         Include xalloc.h.
122973         (xmalloc, xstrdup, free): Remove decls.
122974         (xgetcwd): Don't assume sizes fit in unsigned.
122975         Check for overflow when computing sizes.
122976         Simplify reallocation code.
122978 2001-08-31  Paul Eggert  <eggert@twinsun.com>
122980         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
122981         a directory's st_size can have an arbitrary value, so the old
122982         usage could waste an arbitrary amount of memory.  All uses
122983         changed.
122984         * lib/savedir.h: Update prototype.
122986 2001-08-31  Paul Eggert  <eggert@twinsun.com>
122988         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
122990         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
122991         old strtoimax.c.
122993         Also, make the following further changes to make this file's
122994         configuration more similar to that of strtol.c:
122995         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
122996         (strtoumax, uintmax_t, strtoull, strtol): Remove.
122997         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
122998         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
122999         changed to signed values.
123001         And make the following changes as well:
123002         Fix copyright notice, as 1999 was missing.
123003         (verify): New macro.
123004         (strtoimax): Check sizes at compile-time, not run-time.
123005         Prefer strtol to strtoll if both work.
123006         (main): Remove; it was not that useful and was a pain to maintain.
123008         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
123010 2001-08-31  Jim Meyering  <meyering@lucent.com>
123012         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
123013         Use an initial, malloc'd, buffer of length 128 rather than
123014         a statically allocated one of length 1024.
123016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123018         Simplify code, partly by assuming autoconf 2.52 semantics.
123020         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
123022         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
123023         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
123024         All uses removed.
123025         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
123026         Move AC_REQUIRE to next-to-top level, to avoid confusion.
123027         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
123028         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
123029         jm_AC_HEADER_INTTYPES_H.
123030         * m4/jm-macros.m4 (jm_MACROS): Likewise.
123032         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
123034         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
123035         Quote first arg of AC_DEFUN.
123036         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
123037         since they are needed to parse the include file even if we need
123038         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
123039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
123040         but with opposite signedness.
123042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123044         Merge 'exclude' changes from tar 1.13.22.
123045         This fixes one or two unlikely storage allocation overflow bugs,
123046         but doesn't change user-visible behavior otherwise.
123048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123050         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
123051         (jm_PREREQ_EXCLUDE): New macro.
123053 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123055         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
123056         tm to be declared.
123058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123060         * lib/hash.c: Remove '2001' from copyright notice.
123062 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123064         * lib/full-write.h: New file.
123065         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
123066         * lib/full-write.c: Correct credits, as cccp.c no longer
123067         exists and anyway it was so heavily changed from the old cccp
123068         code as to be unrecognizable.  Include full-write.h.
123069         (full_write): Return size_t, with short writes meaning failure.
123070         All callers changed.  This fixes a bug with large buffers
123071         on 64-bit hosts.
123072         * lib/utime.c: Include full-write.h.
123074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123076         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
123077         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
123078         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
123079         Include if available.
123080         (<xalloc.h>): Include
123081         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
123082         (verify): New macro.  Use it to verify that EXCLUDE macros do not
123083         collide with FNM macros.
123084         (struct patopts): New struct.
123085         (struct exclude): Use it, as exclude patterns now come with options.
123086         (new_exclude): Support above changes.
123087         (new_exclude, add_exclude_file):
123088         Initial size must now be a power of two to simplify overflow checking.
123089         (free_exclude, fnmatch_no_wildcards): New function.
123090         (excluded_filename): No longer requires options arg, as the options
123091         are determined by add_exclude.  Now returns bool, not int.
123092         (excluded_filename, add_exclude):
123093         Add support for the fancy new exclusion options.
123094         (add_exclude, add_exclude_file): Now takes int options arg.
123095         Check for arithmetic overflow when computing sizes.
123096         (add_exclude_file): xrealloc might modify errno, so don't
123097         realloc until after errno might be used.
123099         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
123100         New macros.
123101         (free_exclude): New decl.
123102         (add_exclude, add_exclude_file): Now takes int options arg.
123103         (excluded_filename): No longer requires options arg, as the options
123104         are determined by add_exclude.  Now returns bool, not int.
123106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
123108         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
123110 2001-08-27  Jim Meyering  <meyering@lucent.com>
123112         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
123114         * lib/version-etc.c (N_): Remove definition.
123115         Revert most of last change.
123116         Instead, simply don't mark the `Copyright...' string for translation.
123117         Based on advice from Paul Eggert.
123119         * lib/strtoxmax.c: Tweak comment.
123121 2001-08-26  Jim Meyering  <meyering@lucent.com>
123123         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
123125         * m4/xstrtoimax.m4: New file.
123126         * m4/xstrtoumax.m4: Add comments explaining why we
123127         AC_REPLACE_FUNCS(strtol).
123129 2001-08-26  Jim Meyering  <meyering@lucent.com>
123131         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
123132         of copyright with `%s' so translators don't get an untranslated
123133         message in 2002.
123134         (COPYRIGHT_YEAR): Define.
123135         (version_etc): Use fprintf rather than fputs.
123136         Suggestion from Ulrich Drepper.
123138         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
123140         * lib/strtoll.c: New file, from GNU libc.
123141         * lib/xstrtoimax.c: New file.
123143         * lib/xstrtol.h: Add xstrtoimax.
123144         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
123145         * lib/strtoimax.c: New file.  Likewise, but first define
123146         STRTOUXMAX_SIGNED.
123148         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
123149         ...
123150         * lib/strtoxmax.c: ... then renamed to this.
123152 2001-08-18  Paul Eggert  <eggert@twinsun.com>
123154         * m4/inttypes.m4: Add AC_PREREQ(2.13).
123155         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
123156         (jm_AC_TYPE_INTMAX_T): New macro.
123157         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
123159         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
123161         * m4/longlong.m4: Renamed from ulonglong.m4.
123162         * m4/inttypes.m4: Renamed from inttypes_h.m4.
123163         * m4/uintmax_t.m4: Removed.
123165 2001-08-13  Paul Eggert  <eggert@twinsun.com>
123167         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
123168         Port to Solaris 8, where 'sed' requires a space after the 'r'
123169         command, and where sh dislikes "$/".  Clean up the spacing a bit.
123170         Redirect output to $tmp just once.
123172 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
123174         * lib/addext.c (<errno.h>): Include.
123175         (errno): Declare if not defined.
123176         (addext): Work correctly when pathconf returns -1 and leaves
123177         errno alone because there is no limit.  Also, work even if
123178         pathconf returns a value greater than SIZE_MAX.
123180 2001-08-12  Jim Meyering  <meyering@lucent.com>
123182         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
123183         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
123184         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
123185         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
123186         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
123187         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
123188         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
123189         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
123190         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
123191         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
123192         utime.m4, utimes.m4, xstrtoumax.m4:
123193         Quote the first argument in each use of AC_DEFUN.
123195 2001-08-12  Jim Meyering  <meyering@lucent.com>
123197         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
123198         Simply `return getcwd (NULL, 0);'.
123199         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
123200         Use 1300 as initial value for length, not PATH_MAX.
123202         * lib/pathmax.h: Clean up cpp syntax.
123204 2001-08-12  Jim Meyering  <meyering@lucent.com>
123206         * lib/gettimeofday.c: New file.
123207         * lib/gtod.h: New file.
123208         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
123210 2001-08-05  Jim Meyering  <meyering@lucent.com>
123212         * m4/jm-macros.m4: Require autoconf-2.52.
123214 2001-08-04  Jim Meyering  <meyering@lucent.com>
123216         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
123217         stmt, to get in sync with glibc.
123219 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123221         The following changes are from gettext 0.10.39 as maintained by
123222         Bruno Haible.
123224         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
123225         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
123226         with inverted sense.  All uses changed.
123228         * lib/mbswidth.c: Don't include <limits.h>.
123229         Include <stdlib.h> and <string.h> unconditionally.
123230         (iswcntrl, mbsinit, ISCNTRL): New macros.
123231         (mbsnwidth): Use K&R style function declarations.
123232         Don't bother checking for MB_LEN_MAX == 1, since the compiler
123233         can optimize it when MB_CUR_MAX == 1.
123234         The width of control characters is zero, not 1.
123236 2001-08-03  Paul Eggert  <eggert@twinsun.com>
123238         The following changes are from gettext 0.10.39 as maintained by
123239         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
123241         * m4/codeset.m4: Upgrade to serial AM1.
123242         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
123243         all uses changed.  Quote first arg of AC_DEFUN.
123244         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
123246         * m4/iconv.m4: Upgrade to serial AM2.
123247         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
123248         Add --with-libconv-prefix.
123249         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
123250         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
123251         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
123252         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
123253         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
123255         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
123256         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
123257         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
123258         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
123259         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
123260         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
123261         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
123262         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
123263         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
123265         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
123266         string.h any more.
123268         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
123269         not the default value.
123271         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
123272         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
123273         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
123274         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
123275         Also check for iswcntrl, used for wcwidth fallback.
123276         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
123277         to Autoconf 2.13.
123279 2001-08-03  Jim Meyering  <meyering@lucent.com>
123281         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
123282         as it was in the original.  Reported by Paul Eggert.
123284 2001-07-16  Jim Meyering  <meyering@lucent.com>
123286         * m4/gettimeofday.m4: New file.
123287         Prompted by a report from Bernhard Baehr.
123289 2001-07-15  Jim Meyering  <meyering@lucent.com>
123291         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
123292         stuff. Now it's in ../Makefile.cfg.
123294 2001-07-15  Jim Meyering  <meyering@lucent.com>
123296         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
123297         (BUILT_SOURCES): Add unlocked-io.h.
123298         (io_functions): Define.
123299         (unlocked-io.h): New rule.
123300         (DISTCLEANFILES): Add unlocked-io.h.
123301         (all-local): Depend on unlocked-io.h, to ensure it is created.
123303         * lib/unlocked-io.hin: New file
123305         * lib/regex.c: Update from glibc.
123307 2001-07-05  Jim Meyering  <meyering@lucent.com>
123309         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
123310         recommendation.
123311         (libfetish_a_SOURCES): Put all .h files here instead.
123312         Remove a thus-exposed (better checks in automake) duplicate and
123313         two unnecessary .h files.
123315 2001-07-04  Jim Meyering  <meyering@lucent.com>
123317         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
123318         that generates jm-glibc-io.m4 so that it doesn't trigger any make
123319         distcheck failure.
123321 2001-07-02  Jim Meyering  <meyering@lucent.com>
123323         The following changes were prompted by suggestions from Bruno Haible.
123325         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
123326         is now generated.
123327         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
123328         definition of EXTRA_DIST.
123329         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
123330         ensure that the generated file is created/updated whenever the list
123331         of $(unlocked_functions) is changed.
123332         (jm-glibc-io.m4): New rule.
123333         (unlocked-io.h): New rule -- currently unused.
123335 2001-06-24  Jim Meyering  <meyering@lucent.com>
123337         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
123338         unmatched right bracket, rather than kludging it with an extra,
123339         falsely-matching quote in a comment.  Patch by Akim Demaille.
123341 2001-06-11  Jim Meyering  <meyering@lucent.com>
123343         * lib/regex.c: Update from GNU libc.
123345 2001-05-27  Jim Meyering  <meyering@lucent.com>
123347         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
123348         Check for ut_type in struct utmp.
123350 2001-05-27  Jim Meyering  <meyering@lucent.com>
123352         * lib/readutmp.h (UT_TYPE): Define.
123354 2001-05-24  Jim Meyering  <meyering@lucent.com>
123356         * lib/argmatch.c: Include "quote.h".
123357         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
123358         quote function.  Reported by Göran Uddeborg.
123360 2001-05-22  Jim Meyering  <meyering@lucent.com>
123362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
123363         now that we use the package-supplied version unconditionally.
123364         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
123366 2001-05-21  Jim Meyering  <meyering@lucent.com>
123368         * m4/regex.m4: Change a couple backticks to single quotes to avoid
123369         shell syntax errors.
123371 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
123373         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
123375 2001-05-20  Paul Eggert  <eggert@twinsun.com>
123377         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
123378         Don't bother to check library strftime, since
123379         we'll be using our own my_strftime function anyway.
123380         Define my_strftime instead of strftime.
123382 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
123384         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
123385         which is not yet declared.
123387 2001-05-15  Jim Meyering  <meyering@lucent.com>
123389         * m4/regex.m4: Use proper quoting so brackets appear in the test
123390         program.
123391         Reported by, and with help from, Bruno Haible.
123393 2001-05-13  Jim Meyering  <meyering@lucent.com>
123395         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
123396         undefined.
123398 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123400         dirname code cleanup.  base_name now behaves more compatibly
123401         with POSIX basename when given file names that have trailing
123402         slashes, and similarly for dir_name.  Add new primitives
123403         base_len and dir_len.  Put the directory-name-related decls
123404         into dirname.h.
123406         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
123407         * lib/backupfile.c (base_name): Likewise.
123408         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
123409         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
123410         * lib/makepath.c (strip_trailing_slashes): Likewise.
123411         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
123412         ISSLASH): Likewise.
123413         * lib/rename.c (strip_trailing_slashes): Likewise.
123414         * lib/same.c (base_name): Likewise.
123415         * lib/stripslash.c (ISSLASH): Likewise.
123417         * lib/addext.c: Include <dirname.h> after size_t is defined.
123418         * lib/backupfile.c: Likewise.
123420         * lib/addext.c (addext): Use base_len to trim redundant
123421         trailing slashes instead of doing it ourselves.
123422         But do not trim the last slash if it is not redundant.
123424         * lib/backupfile.c (find_backup_file_name,
123425         max_backup_version): Use base_len instead of rolling it ourselves.
123426         Handle the case of "" and (on DOS) "C:" correctly.
123428         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
123429         needed. Include <string.h>, <dirname.h>.
123430         (base_name): Allow file names ending in slashes, other than names
123431         that are all slashes.  In this case, return the basename followed
123432         by the slashes.  This is more general, and can be used in places
123433         where the original base_name purposely had an assertion failure.
123434         (base_len): New function.
123436         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
123437         Do not include <assert.h>; no longer needed.
123438         Include xalloc.h.
123439         (memrchr): Remove decl.
123440         (dir_name_r): Remove.
123441         (dir_len): Renamed from dirlen.  All callers changed.
123442         Rewrite in terms of base_name, for simplicity and consistency.
123443         (dir_name): Never return NULL.  All callers changed.
123444         Do not include <stdlib.h> in test program; no longer needed.
123445         return 0; is fine for test program.
123447         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
123448         New macros.
123449         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
123451         * lib/path-concat.c (path_concat): Use base_len to compute
123452         base length, not strlen; this means we cannot rely on memcpy
123453         to null-terminate.
123455         * lib/same.c (STREQ): Remove.
123456         (same_name): Handle the case where the basename ends in trailing '/'.
123458         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
123459         a slash was stripped.  Do not strip the last slash after a
123460         file system prefix.
123462 2001-05-11  Paul Eggert  <eggert@twinsun.com>
123464         * lib/Makefile.am (libfetish_a_SOURCES):
123465         Add strftime.c, since we now compile it on all hosts.
123467         * lib/strftime.c (my_strftime):
123468         Define to nstrftime if emacs, but only if my_strftime is not defined.
123469         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
123470         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
123471         Add one more extra argument: a nanoseconds value.
123472         All uses changed.
123473         (ns): New macro.
123474         (my_strftime function): Add %N format.
123475         (emacs_strftimeu): Renamed from emacs_strftime,
123476         with extra ut argument.
123478 2001-05-09  Paul Eggert  <eggert@twinsun.com>
123480         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
123482 2001-04-21  Jim Meyering  <meyering@lucent.com>
123484         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
123485         doesn't interfere.
123487 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
123489         * m4/ftruncate.m4: Check for chsize.
123490         Link with ftruncate.o unconditionally if ftruncate is missing.
123491         This was required when cross-compiling to i586-mingw32msvc.
123493 2001-04-08  Jim Meyering  <meyering@lucent.com>
123495         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
123496         recomputed; that's necessary when the offset spans a DST transition.
123497         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
123499 2001-04-02  Jim Meyering  <meyering@lucent.com>
123501         * lib/regex.h, regex.c: Update from GNU libc.
123503 2001-03-24  Jim Meyering  <meyering@lucent.com>
123505         * m4/jm-macros.m4: Require autoconf-2.49d.
123507 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
123509         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
123511 2001-03-19  Paul Eggert  <eggert@twinsun.com>
123513         * lib/version-etc.c (version_etc_copyright): Update to 2001.
123515 2001-03-17  Jim Meyering  <meyering@lucent.com>
123517         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
123518         now that the version in autoconf is equivalent.
123519         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
123521         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
123522         Suggestion from Akim Demaille.
123524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
123525         (jm_PREREQ_TEMPNAME): New function.
123527 2001-03-16  Paul Eggert  <eggert@twinsun.com>
123529         * lib/tempname.c (uint64_t): Define to uintmax_t if
123530         not defined, and if UINT64_MAX is not defined.
123531         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
123532         Reported by John David Anglin.
123534 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
123536         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
123537         resolve alias if codeset is empty.
123538         * lib/config.charset (BeOS): Use wildcard syntax.
123540 2001-03-13  Jim Meyering  <meyering@lucent.com>
123542         * lib/path-concat.c (path_concat)
123543         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
123544         concatenating e.g., `C:' and `foo'.
123545         From Bruno Haible.
123547 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
123549         * lib/localcharset.c (locale_charset): Don't use
123550         setlocale(LC_CTYPE,NULL). Don't return NULL.
123551         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
123553 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
123555         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
123556         support for DOS/DJGPP.
123558 2001-03-01  Paul Eggert  <eggert@twinsun.com>
123560         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
123561         lacks mkstemp.  Compile our own tempname.c if we compile our own
123562         mkstemp.c, as mkstemp relies on tempname.
123564 2001-03-01  Jim Meyering  <meyering@lucent.com>
123566         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
123567         AH_VERBATIM really does output its argument verbatim.
123569 2001-02-28  Paul Eggert  <eggert@twinsun.com>
123571         * lib/Makefile.am (libfetish_a_SOURCES):
123572         Add dup-safer.c, fopen-safer.c.
123573         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
123575         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
123576         * lib/unistd-safer.h: New files.
123578 2001-02-25  Paul Eggert  <eggert@twinsun.com>
123580         The mkstemp replacement is taken from glibc 2.2.2, with some
123581         portability fixes for use outside glibc, as follows:
123583         * lib/tempname.c (struct_stat64): New macro.
123584         (direxists, __gen_tempname): Use it.
123585         This avoids a portability problem with Solaris 8.
123587         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
123588         (<stddef.h>, <stdint.h>, <string.h>):
123589         Include only if STDC_HEADERS || _LIBC.
123590         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
123591         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
123592         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
123593         (__set_errno): Define this macro if <errno.h> doesn't.
123594         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
123595         Define these macros if <stdio.h> doesn't.
123596         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
123597         Define these macros if <sys/stat.h>
123598         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
123599         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
123600         __xstat64): Define if not _LIBC.
123601         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
123602         (__gen_tempname): Invoke gettimeofday only if
123603         HAVE_GETTIMEOFDAY || _LIBC;
123604         otherwise, fall back on plain "time".
123605         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
123607         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
123609         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
123611 2001-02-18  Paul Eggert  <eggert@twinsun.com>
123613         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
123615 2001-02-17  Paul Eggert  <eggert@twinsun.com>
123617         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
123618         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
123619         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
123620         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
123622 2001-02-17  Paul Eggert  <eggert@twinsun.com>
123624         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
123625         Remove workaround macros for hosts that have mbrtowc but not
123626         mbstate_t, as we now insist on proper declarations for both
123627         before using mbrtowc.
123629 2001-02-17  Jim Meyering  <meyering@lucent.com>
123631         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
123632         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
123633         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
123634         UnixWare 7.1.1.
123636         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
123637         rather than AC_CACHE_VAL.
123639 2001-02-17  Jim Meyering  <meyering@lucent.com>
123641         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
123642         around included file name.
123644         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
123646         * lib/strftime.c: Update from GNU libc (the only changes were to
123647         comments).
123649 2001-02-17  Jim Meyering  <meyering@lucent.com>
123651         * lib/regex.c: Update from libc.
123653 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
123655         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
123656         clash.
123658 2001-02-16  Paul Eggert  <eggert@twinsun.com>
123660         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
123661         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
123662         Reported by Mark Hounschell via Paul Eggert.
123664 2001-02-07  Jim Meyering  <meyering@lucent.com>
123666         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
123668 2001-02-05  Jim Meyering  <meyering@lucent.com>
123670         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
123671         it includes the patch required for `large file' support with at least
123672         HP-UX's 10.20 /bin/cc.
123674 2001-02-03  Jim Meyering  <meyering@lucent.com>
123676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
123677         AS_IF, now that it works once again (mysteriously).
123678         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
123680 2001-01-30  Jim Meyering  <meyering@lucent.com>
123682         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
123683         * m4/chown.m4: Rename conftestchown to conftest.chown.
123684         * m4/rename.m4: s/conftestdir/conftest.d1/ and
123685         s/conftestdir2/conftest.d2/.
123686         * m4/utimes.m4: s/conftestdata/conftest.data/
123687         Inspired by Pavel Roskin's change in autoconf.
123689 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
123691         * lib/config.charset: Update for FreeBSD 4.2.
123693 2001-01-27  Jim Meyering  <meyering@lucent.com>
123695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
123696         a use of AS_IF.
123697         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
123699 2001-01-26  Jim Meyering  <meyering@lucent.com>
123701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
123702         quotearg.c includes it.
123704 2001-01-26  Jim Meyering  <meyering@lucent.com>
123706         * lib/quotearg.c: Include stddef.h.
123707         * lib/quote.c: Include stddef.h.
123708         Reported by Axel Kittenberger.
123710         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
123711         line in double quotes so that it evokes a better diagnostic.
123712         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
123713         Reported by Axel Kittenberger.
123715 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
123717         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
123718         as if it was a `charset'.
123720 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
123722         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
123723         has const.
123725 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
123727         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
123728         to avoid a warning.  Add back 'const' to inptr.
123730 2001-01-20  Jim Meyering  <meyering@lucent.com>
123732         Be sure that headers are checked before used in code compiled
123733         for the type checks.
123734         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
123735         In place of that, invoke jm_CHECK_ALL_TYPES.
123736         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
123737         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
123738         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
123739         The check for ssize_t was mistakenly run before the test for unistd.h.
123741         The configure-time check for stdbool.h was missing.
123742         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
123743         (jm_PREREQ_HASH): New function.
123745 2001-01-17  Jim Meyering  <meyering@lucent.com>
123747         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
123748         for autoconf-2.49c.
123749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
123751 2001-01-16  Jim Meyering  <meyering@lucent.com>
123753         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
123754         From Bruno Haible.
123756 2001-01-14  Jim Meyering  <meyering@lucent.com>
123758         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
123759         foo and bar.  Create conftestdir/ in the script, not in the C code.
123760         Remove directories in the script, not in the C code.
123761         Remove conftestdir{,2} before trying to create the directory.
123762         Make the entire configure script fail if the mkdir fails.
123764 2001-01-14  Jim Meyering  <meyering@lucent.com>
123766         * lib/rename.c: New file.  From Volker Borchert.
123767         Include stdlib.h, string.h or strings.h, and xalloc.h.
123768         Use strip_trailing_slashes rather than open-coding it.
123770 2001-01-03  Paul Eggert  <eggert@twinsun.com>
123772         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
123774 2001-01-03  Jim Meyering  <meyering@lucent.com>
123776         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
123777         of local `inptr' to avoid warning with some system declarations of
123778         iconv.
123780 2001-01-02  Volker Borchert  <bt@teknon.de>
123782         * m4/rename.m4: New file.
123783         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
123785 2001-01-01  Jim Meyering  <meyering@lucent.com>
123787         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
123788         even on systems with utmpx.h.  It's necessary for the declaration of
123789         utmp's ut_user member.  Reported by Andreas Jaeger.
123791         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
123792         available. They are required for the declarations of getgrgid and
123793         getpwuid resp.
123794         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
123795         Reported by Andreas Jaeger.
123797 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
123799         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
123800         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
123801         so `make install' also works in VPATH builds.
123803 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
123805         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
123806         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
123807         can be used in subdirectories.
123809 2000-12-29  Paul Eggert  <eggert@twinsun.com>
123811         * lib/modechange.c: Do not assume that mode_t uses the
123812         traditional octal encoding.  E.g. "chmod 1 FOO" should set
123813         the other-execute bit of FOO even if S_IXOTH != 1.
123815         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
123816         WOTH, XOTH, ALLM): New macros.
123817         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
123818          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
123819         Use them.
123820         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
123821         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
123822         (mode_compile):
123823         No need to use uintmax_t; unsigned long is long enough.
123824         Don't bother to get suffix since we don't use it.
123826 2000-12-26  Jim Meyering  <meyering@lucent.com>
123828         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
123829         better with autoheader.
123831 2000-12-24  Jim Meyering  <meyering@lucent.com>
123833         * lib/hash.c (is_prime): Return explicit boolean values.
123834         (hash_get_first): Return NULL to appease Irix5.6's 89.
123835         Reported by Nelson Beebe.
123837 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
123839         * lib/localcharset.c (locale_charset): Add support for Win32.
123841 2000-12-18  Paul Eggert  <eggert@twinsun.com>
123843         * lib/physmem.h, lib/physmem.c: New files.
123845         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
123846         (noinst_HEADERS): Add physmem.h.
123848         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
123849         't' for compatibility with Solaris 8 sort.
123851 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
123853         * lib/config.charset: Add support for BeOS.
123855 2000-12-17  Jim Meyering  <meyering@lucent.com>
123857         * m4/dos.m4 (jm_AC_DOS): New file and macro.
123858         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
123860 2000-12-16  Jim Meyering  <meyering@lucent.com>
123862         This bug had a serious impact on chown: `chown N:M FILE' (for integer
123863         N and M) would have treated it like `chown N:N FILE'.
123865         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
123867 2000-12-16  Jim Meyering  <meyering@lucent.com>
123869         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
123870         SHELLS_FILE to a file name that's useful on djgpp systems.
123871         Include stdlib.h.
123872         (ADDITIONAL_DEFAULT_SHELLS): Define.
123873         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
123874         Based mostly on a patch from Prashant TR.
123876 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
123878         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
123879         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
123880         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
123882 2000-12-08  Andreas Schwab  <schwab@suse.de>
123884         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
123885         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
123887 2000-12-07  Jim Meyering  <meyering@lucent.com>
123889         * lib/stripslash.c (ISSLASH): Define.
123890         (strip_trailing_slashes): Use ISSLASH rather than comparing against
123891         `/'.
123892         From Prashant TR.
123894         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
123895         (dir_name_r): Declare this function as static.
123896         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
123897         manifest itself on a name containing a mix of slashes and
123898         backslashes.
123899         Make this function work with names starting with a DOS-style
123900         drive letter and colon prefix.
123901         (dir_name): Append `.' if necessary.
123902         Based mostly on patches from Prashant TR and Eli Zaretskii.
123904         * lib/dirname.h (dir_name_r): Remove prototype.
123906 2000-12-06  Paul Eggert  <eggert@twinsun.com>
123908         * m4/off_t-format.m4: Remove this file.
123909         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
123911 2000-12-06  Jim Meyering  <meyering@lucent.com>
123913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
123914         replacement strtoull, we may well need the replacement strtoul, too.
123915         Check for declarations of strtoul and strtoull.
123916         Check for strtol.  Mainly as a cue to cause automake to include
123917         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
123918         Check for limits.h -- strtol.c needs it.
123920 2000-12-05  Jim Meyering  <meyering@lucent.com>
123922         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
123924 2000-12-04  Jim Meyering  <meyering@lucent.com>
123926         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
123927         Also include memory.h, stdlib.h, unistd.h if appropriate.
123928         Reported by Andreas Jaeger (conflicting declaration of malloc).
123930 2000-12-02  Jim Meyering  <meyering@lucent.com>
123932         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
123933         * m4/jm-macros.m4 (jm_MACROS): require it.
123935 2000-12-02  Jim Meyering  <meyering@lucent.com>
123937         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
123939 2000-12-01  Paul Eggert  <eggert@twinsun.com>
123941         * lib/memrchr.c: Include <config.h> before any system include file.
123943 2000-11-30  Jim Meyering  <meyering@lucent.com>
123945         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
123947 2000-11-30  Jim Meyering  <meyering@lucent.com>
123949         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
123951 2000-11-29  Paul Eggert  <eggert@twinsun.com>
123953         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
123955 2000-11-26  Jim Meyering  <meyering@lucent.com>
123957         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
123959 2000-11-22  Paul Eggert  <eggert@twinsun.com>
123961         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
123962         size of (size_t) -1; it's not portable.
123964 2000-11-17  Jim Meyering  <meyering@lucent.com>
123966         * lib/strstr.c: Update from GNU libc.
123968 2000-11-17  Akim Demaille  <akim@epita.fr>
123970         * lib/obstack.h: Formatting changes.
123971         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
123972         prevent type checking.
123973         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
123974         cast the value to (void *): assigning a `foo *' to a `void *'
123975         variable is valid.
123976         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
123978 2000-11-16  Jim Meyering  <meyering@lucent.com>
123980         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
123982 2000-11-11  Jim Meyering  <meyering@lucent.com>
123984         * lib/error.c: Add a couple #includes, merging from GNU libc version.
123986 2000-11-10  Jim Meyering  <meyering@lucent.com>
123988         * lib/obstack.h: Update from GNU libc.
123989         * lib/obstack.c: Likewise.
123991 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
123993         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
123995 2000-11-06  Paul Eggert  <eggert@twinsun.com>
123997         * lib/getusershell.c (setusershell): Use rewind rather than
123998         fseek/fseeko, to avoid configuration hassles with fseeko.
123999         Don't bother opening SHELLS_FILE if shellstream is NULL;
124000         it's not necessary.
124002 2000-11-05  Jim Meyering  <meyering@lucent.com>
124004         * lib/makepath.h (make_dir): Declare.
124005         * lib/makepath.c (make_dir): Remove `static' attribute.
124006         Tweak a comment.
124008 2000-11-04  Jim Meyering  <meyering@lucent.com>
124010         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
124012 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
124014         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
124015         last one in a bucket, advance to the next bucket.
124017 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
124019         * lib/fnmatch.c: Do not comment out all the code if we are using
124020         the GNU C library, because in some cases we are replacing buggy
124021         code in the GNU C library itself.
124023 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
124025         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
124026         (regex_compile): Catch bogus \(\1\).
124028 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124030         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
124031         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
124032         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
124034 2000-10-30  Paul Eggert  <eggert@twinsun.com>
124036         * lib/error.h, getline.h, modechange.h:
124037         Remove "2000" from Copyright line, as the file hasn't been
124038         changed this year other than in the copyright notice.
124040         * lib/xalloc.h: Add "2000" to Copyright line, as this file
124041         was changed this year.
124043 2000-10-29  Jim Meyering  <meyering@lucent.com>
124045         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
124046         renaming.
124047         * m4/ls-mntd-fs.m4: Likewise
124049 2000-10-29  Jim Meyering  <meyering@lucent.com>
124051         * lib/xstat.in: Fix grammar in comment.
124053 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
124055         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
124056         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
124057         doesn't define __restrict_arr.
124059 2000-10-28  Jim Meyering  <meyering@lucent.com>
124061         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
124062         (jm_PREREQ_MEMCHR): New function.
124064 2000-10-28  Jim Meyering  <meyering@lucent.com>
124066         * lib/memchr.c: Update from libc.
124067         Adjust for portability:
124068         [HAVE_STDLIB_H]: Include stdlib.h.
124069         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
124070         Undef __memchr, too.
124071         [!weak_alias]: Define __memchr to memchr.
124073         * lib/regex.c: Update from libc.
124074         * lib/regex.h: Likewise.
124075         * lib/getopt1.c: Likewise.
124076         * lib/memcmp.c: Likewise.
124078         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
124079         Avoid using fseek, when possible -- it's broken by design.
124080         Patch by Ulrich Drepper.
124082 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
124084         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
124085         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
124086         Giving in to popular pressure to shut up the compiler with casts.
124088 2000-10-26  Jim Meyering  <meyering@lucent.com>
124090         * lib/strftime.c: Update from libc.
124092 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
124094         * regex.c: More `unsigned char' -> `re_char' changes.
124095         Also change several `int' into `re_wchar_t'.
124096         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
124097         (PUSH_FAILURE_POINTER): Don't cast any more.
124098         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
124099         We want GCC to complain, since this piece of code makes
124100         re_match non-reentrant, which *should* be fixed.
124101         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
124102         (EXTEND_BUFFER): Use RETALLOC.
124103         (SET_LIST_BIT): Don't cast.
124104         (re_wchar_t): New type.
124105         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
124106         that those two functions will always properly return.
124107         (IMMEDIATE_QUIT_CHECK): Cast to void.
124108         (analyse_first): Use recursion rather than an explicit stack.
124109         (re_compile_fastmap): Can't fail anymore.
124110         (re_search_2): Don't check re_compile_fastmap for failure.
124111         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
124112         Now also sets the new value (passed in a new argument).
124113         (re_match_2_internal): Use it.
124114         Also, use a new var `reg' of type size_t when looping through regs
124115         rather than reuse the inappropriate `mcnt'.
124117 2000-10-25  Jim Meyering  <meyering@lucent.com>
124119         * lib/obstack.c: Update from libc.
124121 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
124123         * regex.c (regex_compile): Change the way of handling a range from
124124         a char less than 256 to a char not less than 256.
124126 2000-10-24  Andrew Innes  <andrewi@gnu.org>
124128         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
124129         NT-Emacs only.
124130         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
124131         so that re_search functions only quit when callers expect them to.
124133 2000-10-23  Jim Meyering  <meyering@lucent.com>
124135         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
124136         wrong.  That set_locale call must not have any side effects.
124137         From Paul Eggert.
124139 2000-10-22  Jim Meyering  <meyering@lucent.com>
124141         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
124142         [CYCLIC]: Remove now-unused definition.
124144         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
124145         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
124146         Suggestion from Ulrich Drepper.
124148 2000-10-21  Jim Meyering  <meyering@lucent.com>
124150         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
124151         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
124152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
124154 2000-10-21  Jim Meyering  <meyering@lucent.com>
124156         * lib/dirname.c (memrchr): Declare if necessary.
124157         (dir_name): Remove the restriction that there be no
124158         trailing slashes.  Now, this code skips past them, effectively
124159         ignoring them.
124160         [TEST_DIRNAME] (main): New unit tests.
124162         * lib/memrchr.c: New file from GNU libc.
124163         Undef __memrchr, too.
124164         [!weak_alias]: Define __memrchr to memrchr.
124165         Guard weak_alias use with `#ifdef weak_alias'.
124167 2000-10-21  Jim Meyering  <meyering@lucent.com>
124169         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
124170         (dir_name): Use dir_name_r.
124171         * lib/dirname.h (dir_name_r): Declare it.
124173 2000-10-17  Jim Meyering  <meyering@lucent.com>
124175         * lib/quote.h (PARAMS): Define and use.
124176         Reported by Akim Demaille.
124178         * lib/getopt.c: Update from libc.
124180 2000-10-16  Jim Meyering  <meyering@lucent.com>
124182         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
124183         setlocale.
124184         From Jan Fedak.
124186 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
124188         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
124190 2000-09-25  Jim Meyering  <meyering@lucent.com>
124192         * lib/md5.h (rol): Define (from GnuPG).
124194         * lib/sha.c: Give credit (GnuPG) where due.
124195         (M): Use rol rather than open-coding it.
124196         Add a FIXME comment.
124198 2000-09-21  Jim Meyering  <meyering@lucent.com>
124200         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
124201         Reported by Michael Stone.
124203 2000-09-20  Jim Meyering  <meyering@lucent.com>
124205         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
124206         (noinst_HEADERS): Add sha.h.
124207         Based on code from Scott G. Miller and from GnuPG.
124209 2000-09-18  Jim Meyering  <meyering@lucent.com>
124211         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
124212         LIBS. Otherwise, everyone ends up linking with -lelf for some
124213         configurations.
124214         Reported by Mike Stone.
124216 2000-09-15  Jim Meyering  <meyering@lucent.com>
124218         * lib/regex.c: Update from libc.
124220 2000-09-10  Jim Meyering  <meyering@lucent.com>
124222         * lib/getopt.c (_getopt_internal): Update from glibc.
124224 2000-09-09  Jim Meyering  <meyering@lucent.com>
124226         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
124227         think it should be used as a general replacement for isascii.
124228         * lib/fnmatch.c: Likewise.
124229         * lib/mbswidth.c: Likewise
124230         * lib/regex.c: Likewise.
124232         Don't use atoi.
124233         * lib/userspec.c: Include sys/param.h and limits.h.
124234         Include xstrtol.h.
124235         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
124236         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
124237         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
124238         UID, GID.  Check range.
124240 2000-09-06  Jim Meyering  <meyering@lucent.com>
124242         * lib/getopt.c (_getopt_internal): Update from glibc.
124244 2000-08-30  Jim Meyering  <meyering@lucent.com>
124246         * lib/strftime.c: Merge in changes from GNU libc.
124248 2000-08-26  Jim Meyering  <meyering@lucent.com>
124250         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
124251         * m4/fpending.m4: New file.
124253 2000-08-26  Jim Meyering  <meyering@lucent.com>
124255         * lib/closeout.c: Include "__fpending.h".
124256         (close_stdout_status): Return right away if there's nothing to flush.
124258         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
124259         * lib/__fpending.c: New file.
124260         * lib/__fpending.h: New file.
124262 2000-08-20  Jim Meyering  <meyering@lucent.com>
124264         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
124265         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
124266         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
124268 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
124270         Improve fileutils installation on systems where running
124271         programs (like install) can't be unlinked.
124272         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
124273         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
124275 2000-08-07  Paul Eggert  <eggert@twinsun.com>
124277         Standardize on "memory exhausted" instead of "Memory exhausted"
124278         or "virtual memory exhausted".
124279         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
124280         "virtual memory exhausted".
124281         * lib/same.c (same_name): Invoke xalloc_die instead of printing
124282         our own message.
124283         * lib/userspec.c (parse_user_spec): Likewise.
124284         * lib/bumpalloc.h: comment fix
124285         * lib/same.c, userspec.c: Include xalloc.h.
124287         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
124288         not char *const and pointing to a constant array.
124289         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
124290         (xrealloc): Comment fix.
124292         * lib/userspec.c (parse_user_spec):
124293         Don't translate a message until just before returning,
124294         to avoid unnecessary translation.
124296 2000-08-07  Jim Meyering  <meyering@lucent.com>
124298         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
124299         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
124300         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
124301         getgroups.c, gethostname.c, getopt.h, group-member.c,
124302         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
124303         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
124304         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
124305         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
124306         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
124307         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
124308         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
124309         yesno.c: Back out Copyright date changes for each file with no change
124310         this year.  This eases coordination with other programs using the same
124311         source code modules.  From Paul Eggert.
124313 2000-08-06  Paul Eggert  <eggert@twinsun.com>
124315         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
124316         not char, for compatibility with glibc 2.1.3 strftime.c.
124318 2000-08-03  Greg McGary  <greg@mcgary.org>
124320         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
124321         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
124322         (EXTEND_BUFFER): Use them.
124324 2000-08-01  Jim Meyering  <meyering@lucent.com>
124326         * lib/dirname.c (ISSLASH): Define.
124327         (BACKSLASH_IS_PATH_SEPARATOR): Define.
124328         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
124329         both `\' and `/' may be use as path separators.
124330         Based on a patch from Prashant TR.
124332 2000-07-31  Paul Eggert  <eggert@twinsun.com>
124334         * lib/quotearg.c (quotearg_n_options): Don't make the initial
124335         slot vector a constant, since it might get modified.
124337 2000-07-31  Jim Meyering  <meyering@lucent.com>
124339         * lib/xmalloc.c: Use `virtual memory exhausted', not
124340         `Memory exhausted'.
124341         * lib/obstack.c (print_and_abort): Likewise.
124343 2000-07-30  Paul Eggert  <eggert@twinsun.com>
124345         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
124346         buffer, so that the caller can always quote one small
124347         component of a "memory exhausted" message in slot 0.
124348         From a suggestion by Jim Meyering.
124350 2000-07-30  Jim Meyering  <meyering@lucent.com>
124352         * lib/makepath.c (make_path): Quote the other instance, too.
124354         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
124355         (STATIC_BUF_SIZE): Define.
124356         (quotearg_n_options): Use only statically allocated storage when
124357         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
124358         than STATIC_BUF_SIZE.
124360 2000-07-29  Jim Meyering  <meyering@lucent.com>
124362         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
124363         * lib/dirname.c (dir_name): Likewise.
124365         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
124366         `/'.
124368         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
124369         (dir_name): Assert that there are no trailing slashes.
124371 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
124373         * lib/mbswidth.h (mbswidth): Add a flags argument.
124374         (mbswidth): New declaration.
124375         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
124376         * lib/mbswidth.c (mbswidth): Add a flags argument.
124377         (mbsnwidth): New function.
124379 2000-07-24  Jim Meyering  <meyering@lucent.com>
124381         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
124383 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124385         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
124387 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124389         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
124390         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
124391         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
124392         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
124393         invoke multibyte primitives.
124395 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124397         * lib/quotearg.c:
124398         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
124399         so that mbstate_t is always defined.
124401         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
124402         be 1 in at least one GCC installation, and this configuration
124403         error is likely to be common.  Ignoring MB_LEN_MAX hurts
124404         performance on hosts that have mbrtowc but have only unibyte
124405         locales, but I assume these hosts are rare.
124407 2000-07-23  Paul Eggert  <eggert@twinsun.com>
124409         * lib/mbswidth.c (_XOPEN_SOURCE):
124410         Don't define; this causes problems on Solaris 7.
124411         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
124413 2000-07-23  Jim Meyering  <meyering@lucent.com>
124415         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
124416         too: getgrgid, getpwuid, getuid.
124418 2000-07-23  Jim Meyering  <meyering@lucent.com>
124420         * lib/basename.c (base_name): Add an assertion.
124422 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
124424         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
124425         shadow its mbsinit function.
124427 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124429         * lib/mbswidth.h: New file.
124430         * lib/mbswidth.c: New file.
124431         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
124432         (noinst_HEADERS): Add mbswidth.h.
124434 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
124436         * lib/config.charset: Add support for FreeBSD. Improve support for
124437         HP-UX and IRIX 6.
124439 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
124441         * m4/mbswidth.m4: New file.
124442         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
124444 2000-07-15  Jim Meyering  <meyering@lucent.com>
124446         * lib/makepath.c: Include quote.h.
124447         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
124448         corresponding argument in a `quote (...)' call.
124449         Give better diagnostics.
124451         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
124452         (noinst_HEADERS): Add quote.h.
124454         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
124455         from tar's src/misc.c.
124456         * lib/quote.h: New file.  Prototypes for same.
124458 2000-07-14  Paul Eggert  <eggert@twinsun.com>
124460         From a suggestion by Bruno Haible.
124461         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
124462         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
124463         to decide whether to define the BeOS workaround macro;
124464         this adjusts to the change to AC_MBSTATE_T.
124466 2000-07-14  Jim Meyering  <meyering@lucent.com>
124468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
124469         jm_AC_TYPE_UINTMAX_T.
124471 2000-07-13  Paul Eggert  <eggert@twinsun.com>
124473         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
124475         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
124476         quotearg_buffer_restyled): Add support for
124477         clocale_quoting_style.  Undo previous change to
124478         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
124479         and "{RIGHT QUOTATION MARK}" msgids.
124481 2000-07-10  Paul Eggert  <eggert@twinsun.com>
124483         From a suggestion by Bruno Haible.
124484         * m4/mbstate_t.m4 (AC_MBSTATE_T):
124485         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
124486         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
124487         and mbstate_t, to a single-part test that simply defines mbstate_t.
124488         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
124489         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
124491 2000-07-10  Jim Meyering  <meyering@lucent.com>
124493         * m4/strerror_r.m4: Mirror the correction made in autoconf.
124495         * m4/gnu-source.m4: Output to confdefs.h directly.
124496         Suggestion from Akim Demaille.
124498 2000-07-09  Paul Eggert  <eggert@twinsun.com>
124500         The old behavior of quoting `like this' doesn't look good with
124501         newer, ISO-style fonts.  See:
124502         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
124504         Instead, quote "like this" by default.  Let the translator
124505         tailor the locale-specific quoting behavior by providing
124506         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
124508         * lib/quotearg.c (N_): New macro.
124509         (gettext_default): New function.
124510         (quotearg_buffer_restyled): Use
124511         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
124512         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
124514 2000-07-09  Jim Meyering  <meyering@lucent.com>
124516         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
124517         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
124519         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
124520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
124522 2000-07-09  Jim Meyering  <meyering@lucent.com>
124524         * lib/Most files: Update copyright dates to include 2000.
124526 2000-07-08  Jim Meyering  <meyering@lucent.com>
124528         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
124529         if not defined.
124530         (xgethostname): Remove now-unnecessary #ifdef.
124531         Move declaration of `err' into loop where it's used.
124533 2000-07-05  Paul Eggert  <eggert@twinsun.com>
124534         and Bruno Haible  <haible@clisp.cons.org>
124536         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
124537         only if the test for an object-type mbstate_t fails.  This
124538         prevents us from mistakenly reporting that mbstate_t is a
124539         system object type after we "#define mbstate_t int" to work
124540         around its lack.
124542 2000-07-05  Paul Eggert  <eggert@twinsun.com>
124543         and Bruno Haible  <haible@clisp.cons.org>
124545         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
124547 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
124549         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
124550         to strerror_r.
124551         Include <ctype.h> for use of isalpha.
124553 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
124555         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
124556         by allocating a larger buffer. Test the gethostname return value for
124557         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
124558         returns an error and ENAMETOOLONG isn't defined.
124560 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
124562         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
124563         dimension.
124565 2000-07-04  Jim Meyering  <meyering@lucent.com>
124567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
124568         of the deprecated AC_CHECKING.
124570 2000-07-04  Jim Meyering  <meyering@lucent.com>
124572         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
124573         Reported by Bruno Haible.
124575 2000-07-04  Jim Meyering  <meyering@lucent.com>
124577         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
124578         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
124579         lacks mbrtowc.
124581 2000-07-03  Paul Eggert  <eggert@twinsun.com>
124583         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
124584         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
124586 2000-07-03  Paul Eggert  <eggert@twinsun.com>
124587         and Bruno Haible  <haible@clisp.cons.org>
124589         * lib/quotearg.c (mbrtowc):
124590         Assign to *pwc, and return 1 only if result is nonzero.
124591         (iswprint): Use ISPRINT when substituting our own mbrtowc.
124593 2000-07-03  Jim Meyering  <meyering@lucent.com>
124595         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
124597 2000-07-03  Jim Meyering  <meyering@lucent.com>
124599         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
124600         This is necessary to get a definition of e.g., UTMP_FILE on
124601         HP-UX 10.20.
124602         From Bob Proulx.
124604 2000-07-02  Jim Meyering  <meyering@lucent.com>
124606         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
124608         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
124609         AC_LIBOBJ(function_name).
124610         * m4/chown.m4: Likewise.
124611         * m4/fnmatch.m4: Likewise.
124612         * m4/ftruncate.m4: Likewise.
124613         * m4/getgroups.m4: Likewise.
124614         * m4/getline.m4: Likewise.
124615         * m4/group-member.m4: Likewise.
124616         * m4/jm-macros.m4: Likewise.
124617         * m4/lstat.m4: Likewise.
124618         * m4/malloc.m4: Likewise.
124619         * m4/memcmp.m4: Likewise.
124620         * m4/nanosleep.m4: Likewise.
124621         * m4/putenv.m4: Likewise.
124622         * m4/realloc.m4: Likewise.
124623         * m4/regex.m4: Likewise.
124624         * m4/stat.m4: Likewise.
124625         * m4/strftime.m4: Likewise.
124627 2000-07-02  Jim Meyering  <meyering@lucent.com>
124629         * lib/quotearg.c (mbstate_t): Don't define here.
124631 2000-07-02  Jim Meyering  <meyering@lucent.com>
124633         * lib/nanosleep.c (SIGCONT): Define if not already defined.
124635 2000-07-01  Jim Meyering  <meyering@lucent.com>
124637         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
124639 2000-07-01  Jim Meyering  <meyering@lucent.com>
124641         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
124642         problem.
124644 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
124646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
124647         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
124649 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
124651         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
124652         per change in ../m4/ls-mntd-fs.m4.
124653         (read_filesystem_list): Ignore symbolic links.
124655 2000-06-29  Jim Meyering  <meyering@lucent.com>
124657         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
124658         for declaration of strcmp.
124660         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
124662         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
124663         Avoid warning by casting result to `char *' to remove `const'.
124665 2000-06-28  Jim Meyering  <meyering@lucent.com>
124667         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
124668         included by quotearg.c, for which we perform this test.  From
124669         Bruno Haible.
124671 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
124673         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
124674         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
124675         <utmpx.h> exists, put readutmp.o into LIBOBJS.
124677 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
124679         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
124681 2000-06-26  Paul Eggert  <eggert@twinsun.com>
124683         savedir now sets errno on failure and invokes xmalloc to get memory.
124684         Fix a couple of other minor bugs while we're at it.
124686         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
124687         (NAMLEN): Remove macro.
124688         (malloc, realloc): Remove decls.
124689         (stpcpy): Likewise.
124690         ("xalloc.h"): Include.
124691         (NAME_SIZE_DEFAULT): New macro.
124692         (savedir): Use xmalloc / xrealloc to allocate memory.
124693         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
124694         Skip "" directory entries.
124695         Use strlen to calculate directory entry length, since the old method
124696         is rarely used these days and isn't worth supporting.
124697         Don't use a pointer after freeing it.
124698         Check for integer overflow when calculating allocation size.
124699         Use memcpy to copy entries, instead of stpcpy.
124700         Set errno properly when returning NULL.
124701         Check for readdir error.
124703 2000-06-26  Jim Meyering  <meyering@lucent.com>
124705         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
124707 2000-06-25  Jim Meyering  <meyering@lucent.com>
124709         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
124710         Linux header bug when _XOPEN_SOURCE is defined to 500.
124712 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
124714         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
124715         deficiency.
124717 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
124719         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
124720         Include xalloc.h.
124721         Don't include <stdlib.h>.  Don't declare malloc, realloc.
124723 2000-06-24  Jim Meyering  <meyering@lucent.com>
124725         * m4/strerror_r.m4: Revive this file -- to try out an experimental
124726         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
124727         for which strerror does return char*, but which lacks a conveniently
124728         accessible declaration of the function.  If the compile-test says
124729         strerror_r doesn't work, then resort to a `run'-test that works on
124730         BeOS and segfaults on DEC Unix.
124732 2000-06-24  Jim Meyering  <meyering@lucent.com>
124734         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
124736 2000-06-23  Paul Eggert  <eggert@twinsun.com>
124738         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
124739         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
124741 2000-06-23  Paul Eggert  <eggert@twinsun.com>
124743         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
124744         (mbrtowc, mbstate_t): Define substitutes if
124745         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
124746         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
124747         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
124749 2000-06-23  Jim Meyering  <meyering@lucent.com>
124751         * m4/afs.m4: Add missing AC_MSG_RESULT.
124752         Reported by Bruno Haible.
124754         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
124755         Suggestion from Bruno Haible.
124757 2000-06-23  Jim Meyering  <meyering@lucent.com>
124759         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
124761 2000-06-21  Jim Meyering  <meyering@lucent.com>
124763         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
124765 2000-06-21  Jim Meyering  <meyering@lucent.com>
124767         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
124768         (noinst_HEADERS): Add getstr.h.
124770         * lib/getline.c (getstr): Move into a separate file.
124771         * lib/getstr.c (getstr): New file, extracted from getline.c, with
124772         the following changes: new parameter, delim2; both delim[12]
124773         parameters have type `int', not `char'.  The latter would lose
124774         with 8-bit delimiters.
124775         * lib/getstr.h: New file.
124777 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
124779         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
124780         than 1024, return a memory chunk of least possible size, instead
124781         of size PATH_MAX + 2. In the loop, increment the size proportionally.
124782         Use free/xmalloc instead of xrealloc to avoid copying for very long
124783         paths.
124785 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
124787         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
124788         the empty string.
124790 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
124792         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
124793         address, not strdup.  Include <stdlib.h> and don't declare free().
124795 2000-06-19  Jim Meyering  <meyering@lucent.com>
124797         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
124799 2000-06-18  Jim Meyering  <meyering@lucent.com>
124801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
124803         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
124804         `checking whether...' message to be consistent with that of the
124805         lstat test.
124807 2000-06-18  Jim Meyering  <meyering@lucent.com>
124809         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
124810         Besides, these days every porting target provides a mkdir function.
124812         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
124813         needed. (this snippet comes from src/system.h).
124815 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
124817         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
124819 2000-06-15  Paul Eggert  <eggert@twinsun.com>
124821         * lib/human.c (adjust_value): New function.
124822         (human_readable_inexact): Apply rounding style even when
124823         printing approximate values.
124825 2000-06-14  Paul Eggert  <eggert@twinsun.com>
124827         * lib/human.c (human_readable_inexact): Allow an input block
124828         size that is not a multiple of the output block size, and vice versa.
124829         Reported by Piergiorgio Sartor.
124831 2000-06-14  Paul Eggert  <eggert@twinsun.com>
124833         * lib/getdate.y (get_date): Apply relative times after time
124834         zone indicator, not before.  Reported by Todd A. Jacobs.
124836 2000-06-13  Jim Meyering  <meyering@lucent.com>
124838         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
124840         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
124842 2000-06-12  Paul Eggert  <eggert@twinsun.com>
124844         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
124846 2000-06-12  Jim Meyering  <meyering@lucent.com>
124848         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
124849         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
124850         optional argument.
124851         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
124852         the optional argument, `lib'.
124854 2000-06-08  Jim Meyering  <meyering@lucent.com>
124856         * m4/largefile.m4: Remove file (now that it's part of autoconf).
124858 2000-06-04  Paul Eggert  <eggert@twinsun.com>
124860         Rewrite largefile configuration so that we don't need to run
124861         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
124862         AC_CANONICAL_HOST in configure.in -- jmm]
124864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
124865         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
124866         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
124867         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
124868         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
124869         All uses changed.
124870         Instead of inspecting the output of getconf, try to compile the
124871         test program without and with the macro definition.
124872         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
124873         for getconf.  Instead, check for the needed flags by compiling
124874         test programs.
124876 2000-06-04  Paul Eggert  <eggert@twinsun.com>
124878         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
124880 2000-06-04  Jim Meyering  <meyering@lucent.com>
124882         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
124883         SunOS 4.1.4 for which gid_t is an unsigned type.
124885 2000-06-03  Jim Meyering  <meyering@lucent.com>
124887         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
124888         now that autoconf requires that.
124890         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
124891         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
124892         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
124894 2000-06-03  Jim Meyering  <meyering@lucent.com>
124896         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
124898 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
124900         * m4/glibc21.m4: New file.
124901         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
124903 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
124905         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
124906         newer, don't install charset.alias.
124907         * lib/config.charset: Change the Linux/glibc rules so they become empty
124908         on glibc-2.1 or newer.
124910 2000-06-02  Jim Meyering  <meyering@lucent.com>
124912         * lib/mountlist.c: Back out last change.  Instead, do this...
124913         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
124914         me_dummy member using the same `ignore'-testing code.
124915         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
124916         fs_type strings.
124917         From Mark D. Roth.
124919 2000-05-29  Jim Meyering  <meyering@lucent.com>
124921         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
124922         mounts with the `ignore' attribute.  Based on a patch from
124923         Mark D. Roth.
124925 2000-05-28  Jim Meyering  <meyering@lucent.com>
124927         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
124928         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
124929         * m4/stat.m4: Likewise.
124930         * m4/lstat.m4: Likewise.
124931         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
124933         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
124934         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
124936 2000-05-26  Jim Meyering  <meyering@lucent.com>
124938         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
124940 2000-05-24  Jim Meyering  <meyering@lucent.com>
124942         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
124943         autoconf requires that.
124944         * m4/lib-check.m4: Likewise.
124945         * m4/jm-macros.m4: Likewise.
124946         * m4/strftime.m4: Likewise.
124948         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
124949         AC_CHECK_DECLS, now that autoconf requires that.
124951 2000-05-22  Jim Meyering  <meyering@lucent.com>
124953         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
124954         * m4/lstat.m4: Likewise.
124956 2000-05-22  Jim Meyering  <meyering@lucent.com>
124958         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
124960 2000-05-20  Jim Meyering  <meyering@lucent.com>
124962         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
124963         (jm_PREREQ): Use it.
124965 2000-05-18  Jim Meyering  <meyering@lucent.com>
124967         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
124968         back, too, since it may have been modified by allocate_entry.
124969         (hash_delete): Rewrite to use neither the assignment operator
124970         nor the comma operator in an if-expression.
124972 2000-05-15  Paul Eggert  <eggert@twinsun.com>
124974         * lib/closeout.c:
124975         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
124976         Remove; no longer needed.
124977         "quotearg.h": Add include.
124978         (file_name): Do not bother to explicitly initialize to NULL; it's less
124979         efficient on some hosts.
124980         (close_stdout_status): Remove test as to whether stdout was already
124981         closed; it breaks for the case "echo x | sort >&-".
124982         Quote file name colons.
124983         Do not assume that _("write error") lacks format strings.
124985 2000-05-15  Jim Meyering  <meyering@lucent.com>
124987         * lib/version-etc.c (version_etc_copyright): Update the copyright
124988         string used in all --version output.
124990 2000-05-14  Jim Meyering  <meyering@lucent.com>
124992         * lib/closeout.c (close_stdout_set_file_name): New function.
124993         (close_stdout_status): Use new file-scoped global.
124994         Return right away if fstat says the stdout file descriptor is invalid.
124995         * lib/closeout.h (close_stdout_set_file_name): Declare.
124997 2000-05-10  Jim Meyering  <meyering@lucent.com>
124999         * lib/closeout.c [default_exit_status]: New file-scoped variable.
125000         (close_stdout_set_status): New function.
125001         * lib/closeout.h (close_stdout_set_status): Declare.
125003 2000-05-09  Jim Meyering  <meyering@lucent.com>
125005         * m4/gettext.m4: Rename this...
125006         * m4/libintl.m4: ...to this.
125008 2000-05-08  Jim Meyering  <meyering@lucent.com>
125010         * lib/long-options.c: Don't include closeout.h.
125011         (parse_long_options): Don't call close_stdout for --version.
125013 2000-05-06  Paul Eggert  <eggert@twinsun.com>
125015         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
125016         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
125017         2.1.3 bug.  This avoids a clash when files like regex.c define
125018         _GNU_SOURCE.
125020 2000-05-06  Jim Meyering  <meyering@lucent.com>
125022         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
125023         (AC_REPLACE_FUNCS): Add strnlen.
125025         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
125026         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
125028         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
125029         AC_SEARCH_LIBS call for nanosleep.
125030         (LIB_NANOSLEEP): Set and AC_SUBST.
125032 2000-05-06  Jim Meyering  <meyering@lucent.com>
125034         * lib/strnlen.c: Undefine __strnlen and strnlen.
125035         [!weak_alias]: Define __strnlen to strnlen.
125037         * lib/atexit.c: New file, from libiberty.
125039 2000-05-06  Jim Meyering  <meyering@lucent.com>
125041         * lib/closeout.c (close_stdout_status): Also check for errors on the
125042         stderr stream.
125044 2000-05-05  Jim Meyering  <meyering@lucent.com>
125046         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
125047         AC_SEARCH_LIBS call for clock_gettime.
125048         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
125050         * m4/search-libs.m4: Update from autoconf.
125052         su doesn't work on Solaris 2.6.
125053         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
125054         <shadow.h>.  Reported by Dragos Harabor.
125056 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
125058         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
125059         memcpy instead of xmalloc, xrealloc, path_concat.
125060         (locale_charset): Treat empty environment variables as absent.
125061         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
125063 2000-05-04  Jim Meyering  <meyering@lucent.com>
125065         * lib/getopt.c: Update from glibc.
125066         * lib/obstack.c: Likewise.
125067         * lib/obstack.h: Likewise.
125068         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
125069         file
125071         * lib/regex.h: Likewise.
125072         * lib/strndup.c: Likewise.
125073         * lib/strnlen.c: New file, from glibc.
125075 2000-05-03  Jim Meyering  <meyering@lucent.com>
125077         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
125079 2000-05-02  Paul Eggert  <eggert@twinsun.com>
125081         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
125082         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
125083         compile-time test, rather than inspecting host and OS, to
125084         decide whether to define _LARGEFILE_SOURCE.
125086 2000-05-01  Jim Meyering  <meyering@lucent.com>
125088         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
125090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
125091         Based on a patch from Bruno Haible.
125093 2000-05-01  Jim Meyering  <meyering@lucent.com>
125095         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
125097 2000-04-29  Jim Meyering  <meyering@lucent.com>
125099         * lib/path-concat.c: Declare strdup only if it's not defined.
125100         * lib/canon-host.c: Likewise.
125102 2000-04-28  Jim Meyering  <meyering@lucent.com>
125104         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
125105         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
125106         is included first, then limits.h is included by locale.h by libintl.h.
125107         From John David Anglin.
125109 2000-04-25  Jim Meyering  <meyering@lucent.com>
125111         * lib/makepath.c (S_IRWXUGO): Define.
125112         (make_path): Always perform explicit chmod if MODE specifies any
125113         of the `special' permission bits.  Prompted by a bug report against
125114         install from Mate Wierdl and Joost van Baal.
125116 2000-04-18  Jim Meyering  <meyering@lucent.com>
125118         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
125119         (jm_PREREQ): Use it.
125121 2000-04-18  Jim Meyering  <meyering@lucent.com>
125123         * lib/README: New file.
125125         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
125126         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
125128 2000-04-17  Jim Meyering  <meyering@lucent.com>
125130         Get it right :-)
125131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
125132         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
125133         Suggestion from Akim Demaille.
125135 2000-04-17  Jim Meyering  <meyering@lucent.com>
125137         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
125138         the definition of it to rpl_strftime also defined-away the system's
125139         declaration.
125141 2000-04-15  Jim Meyering  <meyering@lucent.com>
125143         Use `C' to denote so-called `contiguous' files, the same way
125144         that tar does.
125145         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
125146         (ftypelet): Use S_ISCTG.
125147         From Michael Deutschmann.
125149 2000-04-14  Jim Meyering  <meyering@lucent.com>
125151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
125152         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
125153         clobbered.
125155 2000-04-14  Jim Meyering  <meyering@lucent.com>
125157         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
125159 2000-04-13  Jim Meyering  <meyering@lucent.com>
125161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
125162         AH_VERBATIM to insert required #ifndef into config.h.in.
125163         Suggestion from Akim Demaille.
125165 2000-04-12  Jim Meyering  <meyering@lucent.com>
125167         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
125168         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
125169         Christian Krackowizer.
125171         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
125172         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
125173         (AC_SYS_LARGEFILE): Require.
125174         (AM_C_PROTOTYPES): Require.
125176 2000-04-08  Jim Meyering  <meyering@lucent.com>
125178         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
125179         names don't conflict.  Reported by Eli Zaretskii.
125181 2000-04-07  Jim Meyering  <meyering@lucent.com>
125183         * lib/putenv.c: Move inclusion of errno.h so it follows that of
125184         sys/types.h, to work around system header problems on AIX 3.2.5.
125185         From Bruno Haible.
125187 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
125189         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
125190         bug.  Deal with the different error behavior of Irix iconv.
125192 2000-04-05  Paul Eggert  <eggert@twinsun.com>
125194         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
125195         IRIX if the installer said otherwise.
125197 2000-04-05  Jim Meyering  <meyering@lucent.com>
125199         Portability tweaks required for ultrix4.3.
125200         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
125201         (jm_CHECK_DECLS): Add getutent to the list of functions.
125202         (_jm_DECL_HEADERS): Add utmpx.h.
125203         From John David Anglin.
125205         * m4/strftime.m4: Back out the 2000-04-02 change.
125206         Instead of that change, simply undefine putenv in the test program.
125208 2000-04-05  Jim Meyering  <meyering@lucent.com>
125210         Portability tweaks required for ultrix4.3.
125211         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
125212         getutent.
125213         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
125214         * lib/canon-host.c: Declare strdup.
125215         * lib/path-concat.c: Likewise.
125216         From John David Anglin.
125218 2000-04-04  Jim Meyering  <meyering@lucent.com>
125220         Be more DOS 8.3-friendly.
125221         * lib/ref-add.sin: Renamed from ref-add.sed.in.
125222         * lib/ref-del.sin: Renamed from ref-del.sed.in.
125223         * lib/Makefile.am: Reflect renaming.
125224         Reported by Eli Zaretskii.
125226         Use a temporary file name that won't clash with `charset.alias'
125227         in the DOS 8.3 name space.
125228         * lib/Makefile.am (charset_tmp): Define.
125229         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
125230         (uninstall-local): Likewise.
125231         Reported by Eli Zaretskii.
125233 2000-04-03  Jim Meyering  <meyering@lucent.com>
125235         * m4/gettext.m4: Fix typo in comment.
125237         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
125238         textutils/configure.in).  Suggestion from Paul Eggert.
125239         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
125241 2000-04-02  Paul Eggert  <eggert@twinsun.com>
125243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
125244         variable in the shell rather than using putenv, which isn't
125245         portable.  This avoids the configure-time inter-test dependency
125246         on the potentially-renamed putenv function.
125248 2000-03-30  Paul Eggert  <eggert@twinsun.com>
125250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
125251         before checking struct stat.st_blksize, so that
125252         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
125254 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125256         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
125257         since strftime.c uses HAVE_STRFTIME to decide whether to use
125258         the underlying strftime.
125260 2000-03-29  Paul Eggert  <eggert@twinsun.com>
125262         * lib/time/strftime.c (my_strftime): Make sure we call the system
125263         strftime, not ourselves, when invoking the underlying strftime.
125265 2000-03-24  Jim Meyering  <meyering@lucent.com>
125267         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
125268         (charset_alias): Define.
125269         (install-exec-local): Factor out common code.
125270         (uninstall-local): Split lines longer than 80.
125271         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
125272         (SUFFIXES): Define.
125273         (.sed.in.sed): New rule.  Don't redirect directly to $@.
125274         (CLEANFILES): Add ref-add.sed and ref-del.sed.
125276 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
125278         * lib/config.charset: Output a line containing "Packages using this
125279         file".
125280         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
125281         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
125282         ref-del.sed): New rules.
125284 2000-03-17  Jim Meyering  <meyering@lucent.com>
125286         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
125287         Otherwise, include <strings.h>
125289 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
125291         * lib/unicodeio.c (utf8_wctomb): New function.
125292         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
125293         format instead of in UCS-4 with platform dependent endianness.
125295 2000-03-10  Jim Meyering  <meyering@lucent.com>
125297         * m4/lib-check.m4: Look for getspnam in -lgen, too.
125298         From Marco Franzen.
125300 2000-03-07  Paul Eggert  <eggert@twinsun.com>
125302         * lib/savedir.c (savedir): Work even if directory size is
125303         negative; this can happen with some screwy NFS configurations.
125305 2000-03-06  Jim Meyering  <meyering@lucent.com>
125307         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
125308         if it's NULL (because we ran out of memory).  From Bruno Haible.
125310 2000-03-05  Jim Meyering  <meyering@lucent.com>
125312         * lib/localcharset.c ("path-concat.h"): Include.
125313         (get_charset_aliases): Use path_concat instead of ANSI string
125314         concatenation.
125316         * lib/unicodeio.h (PARAMS): Define.
125317         Use it to guard prototype.
125319 2000-03-04  Jim Meyering  <meyering@lucent.com>
125321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
125322         for lib/localcharset.c.
125324 2000-03-04  Jim Meyering  <meyering@lucent.com>
125326         * lib/Makefile.am (install-exec-local): Create $(libdir) before
125327         installing into it.
125328         (uninstall-local): Uncomment this rule so `make distcheck' works
125329         once again.
125331         * lib/unicodeio.c (<errno.h>): Include it.
125332         (errno): Declare if not defined.
125334         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
125336         * lib/config.charset: New version, incorporating remarks from a linux
125337         i18n mailing list.  From Bruno Haible.
125339 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
125341         * m4/codeset.m4: New file.
125342         * m4/iconv.m4: New file.
125343         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
125345 2000-03-03  Jim Meyering  <meyering@lucent.com>
125347         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
125349 2000-03-02  Jim Meyering  <meyering@lucent.com>
125351         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
125352         the messages come out on separate lines.
125354         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
125355         rather than jm_CHECK_DECLARATIONS.
125356         * m4/decl.m4: Remove now-unused file.
125358         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
125359         geteuid.
125361 2000-03-02  Jim Meyering  <meyering@lucent.com>
125363         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
125365 2000-03-01  Jim Meyering  <meyering@lucent.com>
125367         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
125368         * lib/unicodeio.c: Likewise.
125370 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
125372         * lib/config.charset: New file.
125373         * lib/localcharset.c: New file.
125374         * lib/unicodeio.h, lib/unicodeio.c: New files.
125375         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
125376         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
125377         (noinst_HEADERS): Add unicodeio.h.
125378         (all-local, install-exec-local, charset.alias): New targets.
125380 2000-02-28  Paul Eggert  <eggert@twinsun.com>
125382         * lib/quotearg.c (ALERT_CHAR): New macro.
125383         (quotearg_buffer_restyled): Use it.
125385 2000-02-27  Jim Meyering  <meyering@lucent.com>
125387         * m4/check-decl.m4: Add getenv to the list.
125389 2000-02-27  Jim Meyering  <meyering@lucent.com>
125391         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
125392         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
125394         * lib/backupfile.c: Guard inclusion of stdlib.h with
125395         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
125396         Declare malloc if needed.
125398         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
125399         `#ifndef HAVE_DECL..'
125400         now that autoconf always defines the HAVE_DECL_ symbols.
125401         * lib/human.c: Likewise.
125402         * lib/same.c: Likewise.
125403         * lib/strtoumax.c: Likewise.
125405         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
125406         declaration check was not run.
125407         * lib/hash.c: Likewise.
125408         * lib/human.c: Likewise.
125409         * lib/same.c: Likewise.
125410         * lib/strtoumax.c: Likewise.
125412         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
125413         `.', then first look up the entire `.'-containing string as a login
125414         name.
125416 2000-02-23  Jim Meyering  <meyering@lucent.com>
125418         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
125419         in place of my hack.
125421 2000-02-18  Paul Eggert  <eggert@twinsun.com>
125423         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
125424         (textint): New typedef.
125425         (parser_control): Member year changed from int to textint.
125426         All uses changed.
125427         (YYSTYPE): Removed; replaced by %union with int and textint members.
125428         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
125429         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
125430         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
125431         (tSNUMBER, tUNUMBER): Now of type <textintval>.
125432         (date, number, to_year): Use width of number in digits, not its value,
125433         to determine whether it's a 2-digit year, or a 2-digit time.
125434         (yylex): Store number of digits of numeric tokens.
125435         Reported by John Kendall.
125437         (parser_control): Changed from struct parser_control to typedef (for
125438         consistency).  All uses changed.
125440         (tID): Removed; not used.
125441         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
125443 2000-02-14  Paul Eggert  <eggert@twinsun.com>
125445         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
125446         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
125448 2000-02-12  Jim Meyering  <meyering@lucent.com>
125450         * lib/userspec.c (ISDIGIT): Define it.
125451         (isdigit): Remove definition.
125452         (is_number): Use ISDIGIT, not isdigit.
125453         <libintl.h>: Include.
125454         (_ and N_): Define.
125455         (parse_user_spec): Mark translatable strings.
125457 2000-02-10  Jim Meyering  <meyering@lucent.com>
125459         With these changes, nanosleep.[ch] are finally enough like the other
125460         lib/* replacement files to compile on a few more losing systems.
125462         * lib/nanosleep.h: Don't include config.h.
125463         Remove prototype from declaration of nanosleep.
125464         (PARAMS): Remove now-unneeded definition.
125465         * lib/nanosleep.c: #undef nanosleep.
125466         (rpl_nanosleep): Rename from nanosleep.
125468 2000-02-10  Jim Meyering  <meyering@lucent.com>
125470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
125471         gnu_nanosleep to rpl_nanosleep.
125473 2000-02-09  Jim Meyering  <meyering@lucent.com>
125475         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
125476         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
125478 2000-02-08  Akim Demaille  <akim@epita.fr>
125480         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
125481         `[' and `]' and remove uses of `changequote'.
125482         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
125483         (AC_SYS_LARGEFILE): Likewise.
125484         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
125485         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
125486         of changequote.
125487         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
125488         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
125489         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
125490         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
125492 2000-02-05  Jim Meyering  <meyering@lucent.com>
125494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
125495         Remove explicit use of AC_HEADER_TIME.  It is required by
125496         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
125497         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
125498         in autoconf whereby the expansion of the latter ended up preceding
125499         the expansion of its prerequisite, AC_HEADER_TIME.
125500         Reported by Volker Borchert.
125502 2000-02-03  Jim Meyering  <meyering@lucent.com>
125504         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
125506 2000-02-03  Jim Meyering  <meyering@lucent.com>
125508         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
125509         rather than with `#if HAVE_UTMPNAME'.
125511 2000-02-02  Jim Meyering  <meyering@lucent.com>
125513         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
125514         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
125515         Reported by Eli Zaretskii.
125517 2000-02-01  Jim Meyering  <meyering@lucent.com>
125519         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
125521 2000-01-31  Jim Meyering  <meyering@lucent.com>
125523         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
125524         functions.  Add the time.h and sys/time.h headers along with the
125525         AC_REQUIRE'ment of AC_HEADER_TIME.
125527 2000-01-31  Jim Meyering  <meyering@lucent.com>
125529         * lib/nanosleep.h (nanosleep): Guard declaration with
125530         `#if ! HAVE_DECL_NANOSLEEP'.
125531         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
125532         the declaration in that vendor's sys/timers.h.
125533         Reported by Christian Krackowizer.
125535         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
125536         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
125537         (ISPRINT): Likewise.
125538         Reported by Tom Tromey.
125540 2000-01-30  Jim Meyering  <meyering@lucent.com>
125542         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
125544         * m4/prereq.m4 (utmp_includes): Define.
125545         Check for ut_user and ut_name members in both struct utmpx
125546         and struct utmp.
125548 2000-01-30  Jim Meyering  <meyering@lucent.com>
125550         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
125551         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
125552         header files where only utmpx.ut_user is declared.
125554         * lib/readutmp.h (UT_USER): Define.
125556 2000-01-29  Jim Meyering  <meyering@lucent.com>
125558         * m4/lib-check.m4: New file containing library-related checks from
125559         fileutils and sh-utils (textutils had none).
125561 2000-01-28  Jim Meyering  <meyering@lucent.com>
125563         * m4/perl.m4: Change format of warning message to look more like that
125564         from the missing script.  Suggestion from François Pinard.
125566 2000-01-25  Jim Meyering  <meyering@lucent.com>
125568         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
125569         well as time.h in the compile check.
125570         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
125571         Fix typo in cross-compiling case: s/yes/no/.
125573 2000-01-23  Jim Meyering  <meyering@lucent.com>
125575         * m4/jm-macros.m4: Move df-related tests here from
125576         fileutils/configure.in
125578         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
125579         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
125581         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
125582         s/space/ac_fsusage_space/.
125583         (jm_FILE_SYSTEM_USAGE): Take two parameters.
125585         * m4/ftruncate.m4: New file (derived from part of
125586         fileutils/configure.in).
125587         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
125588         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
125590         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
125591         AC_SUBST these here, rather than just in sh-util/configure.in, so
125592         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
125593         all the same.
125594         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
125595         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
125596         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
125597         (AC_SUBST(POW_LIBM)): Likewise.
125598         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
125600 2000-01-23  Jim Meyering  <meyering@lucent.com>
125602         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
125603         obstack.c.
125605 2000-01-22  Jim Meyering  <meyering@lucent.com>
125607         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
125609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
125611         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
125612         configure.in
125613         (AC_CHECK_HEADERS): Likewise for sh-utils.
125614         (AC_CHECK_HEADERS): Likewise for textutils.
125615         Merge the three lists of headers.
125617         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
125618         from fileutils' configure.in.
125620         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
125621         code. Moved tests into their own function (_jm_DECL_HEADERS) in
125622         check-decl.m4.
125624         * m4/check-decl.m4: Use #if rather than #ifdef.
125625         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
125626         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
125627         (_jm_DECL_HEADERS): Define new function.
125628         (jm_CHECK_DECLARATIONS): Require it.
125630 2000-01-22  Jim Meyering  <meyering@lucent.com>
125632         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
125633         [! HAVE_DECL_STRTOULL]: Declare strtoull.
125634         Required for some AIX systems.  Reported by Christian Krackowizer.
125635         [TESTING] (main): New function.
125637         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
125638         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
125639         letters.
125641         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
125642         iswprint.
125644         * lib/strverscmp.c (ISDIGIT): Define.
125645         (strverscmp): Use ISDIGIT, not isdigit.
125647 2000-01-19  Jim Meyering  <meyering@lucent.com>
125649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
125650         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
125651         defines `struct timespec' in <sys/time.h>
125653         * m4/c-bs-a.m4: Remove uses of changequote altogether.
125654         Thanks to Akim for explaining.
125656 2000-01-17  Paul Eggert  <eggert@twinsun.com>
125658         * lib/nanosleep.c (nanosleep):
125659         Don't use SA_INTERRUPT to decide whether to call sigaction, as
125660         POSIX.1 doesn't require SA_INTERRUPT and some systems
125661         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
125662         it's been part of POSIX.1 since day 1 (in 1988).
125664 2000-01-17  Jim Meyering  <meyering@lucent.com>
125666         * lib/interlock: Remove unused file.  Reported by François Pinard.
125668 2000-01-16  Paul Eggert  <eggert@twinsun.com>
125670         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
125671         alert, backslash, formfeed, and vertical tab unnecessarily in
125672         shell quoting style.
125674 2000-01-16  Jim Meyering  <meyering@lucent.com>
125676         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
125677         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
125678         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
125679         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
125681 2000-01-16  Jim Meyering  <meyering@lucent.com>
125683         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
125684         because the latter didn't work.
125686 2000-01-15  Jim Meyering  <meyering@lucent.com>
125688         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
125689         (AC_REPLACE_FUNCS): Add memcpy and memset.
125690         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
125691         Add strpbrk.
125692         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
125694 2000-01-12  Jim Meyering  <meyering@lucent.com>
125696         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
125697         (jm_PREREQ): Use it.
125698         (jm_PREREQ_READUTMP): New macro.
125699         (jm_PREREQ): Use it.
125701 2000-01-11  Paul Eggert  <eggert@twinsun.com>
125703         Quote multibyte characters correctly.
125704         * m4/c-bs-a.m4: New file.
125705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
125706         (jm_PREREQ): Use it.
125708 2000-01-11  Paul Eggert  <eggert@twinsun.com>
125710         * m4/uintmax_t.m4: Port to autoconf 2.13.
125712 2000-01-08  Jim Meyering  <meyering@ascend.com>
125714         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
125715         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
125717 2000-01-04  Jim Meyering  <meyering@ascend.com>
125719         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
125720         jm_STRUCT_DIRENT_D_TYPE.
125721         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
125722         jm_STRUCT_DIRENT_D_INO.
125723         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
125724         jm_STRUCT_UTIMBUF.
125725         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
125726         renamings.
125727         * m4/utime.m4: Likewise.
125729         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
125730         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
125732 2000-01-03  Paul Eggert  <eggert@twinsun.com>
125734         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
125735         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
125737 2000-01-02  Jim Meyering  <meyering@ascend.com>
125739         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
125740         remember if this is necessary.
125742 1999-12-26  Jim Meyering  <meyering@ascend.com>
125744         * m4/jm-macros.m4: Use it here.
125745         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
125747 1999-12-23  Jim Meyering  <meyering@ascend.com>
125749         * m4/jm-macros.m4: Check for clock_gettime (moved from
125750         fileutils/configure.in)
125751         Check for gettimeofday.
125753 1999-12-20  Jim Meyering  <meyering@ascend.com>
125755         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
125756         autoconf-2.14a-1999-12-20.
125758 1999-12-19  Jim Meyering  <meyering@ascend.com>
125760         * m4/lstat-slash.m4: New file.
125761         * m4/jm-macros.m4: Use the new macro:
125762         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
125764 1999-12-07  Jim Meyering  <meyering@ascend.com>
125766         * m4/perl.m4: Require that File::Compare be available, too.
125767         Too many systems seem to lack it.
125769         * m4/strftime.m4: Add checks for most of the cpp macros tested in
125770         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
125772 1999-11-18  Paul Eggert  <eggert@twinsun.com>
125774         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
125775         problem with the QNX 4.25 shell, which doesn't propagate exit
125776         status of failed commands inside shell assignments.
125778 1999-11-17  Jim Meyering  <meyering@ascend.com>
125780         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
125782 1999-11-07  Jim Meyering  <meyering@ascend.com>
125784         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
125786 1999-11-06  Jim Meyering  <meyering@ascend.com>
125788         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
125789         * m4/jm-macros.m4 (jm_MACROS): Use it here.
125791 1999-11-05  Jim Meyering  <meyering@ascend.com>
125793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
125794         configure.in of textutils, fileutils, and sh-utils into this one
125795         (shared between those packages) file.
125796         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
125797         AC_STRUCT_ST_BLKSIZE.
125799 1999-11-03  Jim Meyering  <meyering@ascend.com>
125801         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
125802         of AC_CHECK_TYPE checks includes unistd.h.
125803         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
125804         Suggestion from Akim Demaille.
125806 1999-10-30  Jim Meyering  <meyering@ascend.com>
125808         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
125809         m4-quoted string.
125810         * m4/ls-mntd-fs.m4: Likewise.
125811         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
125812         * m4/jm-winsz1.m4: Likewise.
125814         * m4/const.m4: Remove file, since the fix made it into the experimental
125815         version of autoconf.
125816         * m4/mktime.m4: Likewise.
125818         * m4/check-type.m4: Remove file, now that the latest version of
125819         AC_CHECK_TYPE takes a third arg to specify additional #includes.
125821         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
125822         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
125823         AC_CHECK_TYPE.
125825 1999-10-04  Jim Meyering  <meyering@ascend.com>
125827         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
125829 1999-09-22  Paul Eggert  <eggert@twinsun.com>
125831         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
125832         2.95.1 bug with HP-UX 10.20.
125834 1999-09-17  Jim Meyering  <meyering@ascend.com>
125836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
125837         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
125838         due to missing strdup (against sh-utils-2.0).
125840 1999-08-29  Jim Meyering  <meyering@ascend.com>
125842         * m4/jm-macros.m4: Require jm_BISON.
125843         * m4/bison.m4: New file.
125845 1999-08-17  Paul Eggert  <eggert@twinsun.com>
125847         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
125848         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
125850 1999-08-05  Jim Meyering  <meyering@ascend.com>
125852         * m4/getline.m4: Rename test file from conftestdata to conftest.data
125853         to avoid conflicts with `conftest' on 8+3 filesystems.
125854         Suggestion from Eli Zaretskii.
125856 1999-08-04  Jim Meyering  <meyering@ascend.com>
125858         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
125859         fileutils and sh-utils (textutils's getline test was inadequate).
125860         (AM_FUNC_GETLINE): Run this test.
125861         (AC_CHECK_FUNCS): Check for getdelim.
125862         Reported by Bob Proulx.
125864 1999-08-02  Jim Meyering  <meyering@ascend.com>
125866         * m4/jm-macros.m4: Add a comment.
125868 1999-08-01  Paul Eggert  <eggert@twinsun.com>
125870         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
125871         <inttypes.h> defines strtoumax as a macro (and not as a
125872         function).
125874 1999-08-01  Paul Eggert  <eggert@twinsun.com>
125876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
125877         that we can shift, multiply and divide unsigned long long
125878         values; Ultrix cc can't do it.
125880 1999-08-01  Paul Eggert  <eggert@twinsun.com>
125882         * m4/mktime.m4: New file, which is a preview of what should appear
125883         in the next public autoconf release.
125885 1999-08-01  Paul Eggert  <eggert@twinsun.com>
125887         * m4/lfs.m4: Remove this file.
125888         * m4/largefile.m4: New file.  It contains the old contents of
125889         lfs.m4, except that all names with prefix AC_LFS have been
125890         changed to use the prefix AC_SYS_LARGEFILE instead, to be
125891         compatible with future autoconf versions.  Also, some minor m4
125892         quoting problems have been fixed.
125894 1999-08-01  Paul Eggert  <eggert@twinsun.com>
125896         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
125897         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
125898         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
125899         and simplify the shell code.
125901 1999-08-01  Jim Meyering  <meyering@ascend.com>
125903         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
125904         m4.
125906 1999-07-20  Jim Meyering  <meyering@ascend.com>
125908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
125910 1999-07-15  Jim Meyering  <meyering@ascend.com>
125912         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
125914 1999-05-22  Jim Meyering  <meyering@ascend.com>
125916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
125918 1999-05-20  Jim Meyering  <meyering@ascend.com>
125920         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
125921         Add a colon after each `then' in case $4 is empty.
125923 1999-05-16  Jim Meyering  <meyering@ascend.com>
125925         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
125927 1999-05-10  Jim Meyering  <meyering@ascend.com>
125929         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
125931         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
125932         AC_FUNC_MKTIME.
125934 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
125936         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
125938 1999-05-04  Paul Eggert  <eggert@twinsun.com>
125940         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
125941         not CPPFLAGS, so that linking works correctly in IRIX.
125943 1999-04-30  Paul Eggert  <eggert@twinsun.com>
125945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
125947 1999-04-20  Paul Eggert  <eggert@twinsun.com>
125949         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
125950         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
125951         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
125952         jm_AC_TYPE_UNSIGNED_LONG_LONG.
125953         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
125955         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
125957 1999-04-20  Jim Meyering  <meyering@ascend.com>
125959         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
125960         AC_REPLACE xstroull if necessary.  From Paul Eggert.
125961         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
125963 1999-04-18  Jim Meyering  <meyering@ascend.com>
125965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
125966         * m4/jm-macros.m4: Use it.
125968 1999-04-06  Jim Meyering  <meyering@ascend.com>
125970         * m4/strftime.m4: Remove test for %f.
125972 1999-03-29  Jim Meyering  <meyering@ascend.com>
125974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
125975         superset of the AC_TYPE_* checks in the textutils, fileutils,
125976         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
125977         AC_TYPE_PID_T.
125979 1999-03-28  Jim Meyering  <meyering@ascend.com>
125981         * m4/jm-macros.m4: Define GNU_PACKAGE here.
125982         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
125983         replaced e.g., in the *.sh files of the sh-utils.
125985 1999-03-20  Jim Meyering  <meyering@ascend.com>
125987         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
125988         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
125989         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
125991 1999-03-19  Jim Meyering  <meyering@ascend.com>
125993         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
125995 1999-03-12  Jim Meyering  <meyering@ascend.com>
125997         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
125999 1999-03-07  Jim Meyering  <meyering@ascend.com>
126001         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
126002         declared.
126004 1999-02-17  Jim Meyering  <meyering@ascend.com>
126006         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
126007         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
126009 1999-02-07  Jim Meyering  <meyering@ascend.com>
126011         * m4/group-member.m4: New file -- extracted from sh-utils'
126012         configure.in.
126014         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
126015         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
126017 1999-02-06  Jim Meyering  <meyering@ascend.com>
126019         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
126020         * m4/fnmatch.m4: Likewise.
126021         * m4/getgroups.m4: Likewise.
126022         * m4/lstat.m4: Likewise.
126023         * m4/malloc.m4: Likewise.
126024         * m4/putenv.m4: Likewise.
126025         * m4/realloc.m4: Likewise.
126026         * m4/regex.m4: Likewise.
126027         * m4/stat.m4: Likewise.
126028         * m4/strftime.m4: Likewise.
126029         Suggestion from Alain Magloire.
126031         * m4/chown.m4: Use `.$ac_objext', not `.o'.
126032         * m4/fnmatch.m4: Likewise.
126033         * m4/getgroups.m4: Likewise.
126034         * m4/getline.m4: Likewise.
126035         * m4/lstat.m4: Likewise.
126036         * m4/malloc.m4: Likewise.
126037         * m4/memcmp.m4: Likewise.
126038         * m4/putenv.m4: Likewise.
126039         * m4/realloc.m4: Likewise.
126040         * m4/regex.m4: Likewise.
126041         * m4/stat.m4: Likewise.
126042         * m4/strftime.m4: Likewise.
126043         Suggestion from Alain Magloire.
126045         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
126046         an argument.
126048         * m4/regex.m4: Add a run-time Test for proper operation of
126049         re_compile_pattern.
126051 1999-01-31  Jim Meyering  <meyering@ascend.com>
126053         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
126055 1999-01-30  Jim Meyering  <meyering@ascend.com>
126057         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
126059         * m4/jm-mktime.m4: Make this a wrapper around the official
126060         AM_FUNC_MKTIME rather than my private copy, now that the official one
126061         is up to date.
126062         * m4/mktime.m4: Remove file.
126064         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
126065         * m4/uptime.m4: Likewise.
126066         * m4/uintmax_t.m4: Likewise.
126068 1999-01-28  Jim Meyering  <meyering@ascend.com>
126070         * m4/jm-macros.m4: Use jm_AFS.
126071         * m4/afs.m4: New file (from fileutils' configure.in).
126073         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
126074         * m4/chown.m4: Likewise.
126075         * m4/d-ino.m4: Likewise.
126076         * m4/d-type.m4: Likewise.
126077         * m4/fnmatch.m4: Likewise.
126078         * m4/getgroups.m4: Likewise.
126079         * m4/gettext.m4: Likewise.
126080         * m4/jm-mktime.m4: Likewise.
126081         * m4/jm-winsz2.m4: Likewise.
126082         * m4/lcmessage.m4: Likewise.
126083         * m4/ls-mntd-fs.m4: Likewise.
126084         * m4/malloc.m4: Likewise.
126085         * m4/memcmp.m4: Likewise.
126086         * m4/putenv.m4: Likewise.
126087         * m4/realloc.m4: Likewise.
126088         * m4/st_mtim.m4: Likewise.
126089         * m4/strftime.m4: Likewise.
126091 1999-01-16  Jim Meyering  <meyering@ascend.com>
126093         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
126094         (ARGMATCH_DIE_DECL): Define.
126096 1999-01-12  Jim Meyering  <meyering@ascend.com>
126098         * m4/Makefile.am.in: Rewrite to avoid using fmt.
126099         Reported by Lars Hecking.
126101 1999-01-10  Jim Meyering  <meyering@ascend.com>
126103         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
126104         gross kludge.
126105         * m4/inttypes_h.m4: Likewise.
126106         * m4/lstat.m4: Likewise.
126107         * m4/malloc.m4: Likewise.
126108         * m4/readdir.m4: Likewise.
126109         * m4/realloc.m4: Likewise.
126110         * m4/st_dm_mode.m4: Likewise.
126111         * m4/stat.m4: Likewise.
126112         * m4/utimbuf.m4: Likewise.
126113         * m4/utimes.m4: Likewise.
126115         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
126116         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
126117         comments in config.h.in are meaningful.
126119         * m4/jm-macros.m4: Require autoconf-2.13 here.
126121         * m4/regex.m4: By default, don't use the included regex.c on systems
126122         with glibc 2.  Suggestion from Uli Drepper.
126124 1999-01-02  Jim Meyering  <meyering@ascend.com>
126126         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
126128 1998-12-18  Jim Meyering  <meyering@ascend.com>
126130         * m4/Makefile.am.in (Makefile.am): Simplify rule.
126131         Based on a suggestion from Lars Hecking.
126133 1998-11-16  Paul Eggert  <eggert@twinsun.com>
126135         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
126137 1998-11-16  Jim Meyering  <meyering@ascend.com>
126139         * m4/lfs.m4: Double-quote the `uname...` expression.
126141 1998-11-14  Jim Meyering  <meyering@ascend.com>
126143         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
126144         * m4/stat.m4: Likewise.
126146 1998-11-03  Jim Meyering  <meyering@ascend.com>
126148         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
126149         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
126151 1998-10-18  Jim Meyering  <meyering@ascend.com>
126153         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
126155 1998-10-17  Jim Meyering  <meyering@ascend.com>
126157         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
126158         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
126159         calls for those previously hard-coded headers.  Instead, take a new
126160         parameter.
126161         (jm_CHECK_DECLARATIONS): Reflect interface change.
126162         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
126163         (jm_CHECK_DECL_LOCALTIME_R): New macro.
126165         * m4/mktime.m4: Test for spring-forward gap before long-running test.
126167 1998-10-14  Jim Meyering  <meyering@ascend.com>
126169         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
126170         instead of "TZ=America/Vancouver".  From Paul Eggert.
126172 1998-10-11  Jim Meyering  <meyering@ascend.com>
126174         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
126175         This adds a test for a recently added compatibility fix for mktime.c.
126176         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
126178 1998-09-27  Jim Meyering  <meyering@ascend.com>
126180         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
126182         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
126183         ../configure.in, including a change from Gordon Matzigkeit to allow
126184         cross-compiling for the Hurd.
126186         * m4/glibc.m4: New file/macro to test for the GNU C Library
126187         versions 1 and 2.  From Gordon Matzigkeit.
126188         Indent.
126190 1998-09-21  Jim Meyering  <meyering@ascend.com>
126192         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
126194 1998-08-18  Paul Eggert  <eggert@twinsun.com>
126196         Port nanosecond-resolution times to UnixWare 2.1.2 and
126197         pedantic Solaris 2.6.
126199         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
126200         AC_STRUCT_ST_MTIM.
126201         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
126202         Generate name of ns member, instead of just 1 or undef.
126203         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
126205 1998-08-15  Jim Meyering  <meyering@ascend.com>
126207         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
126208         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
126209         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
126210         instead of jm_TYPE_SSIZE_T.
126212 1998-08-12  Jim Meyering  <meyering@ascend.com>
126214         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
126216 1998-08-02  Jim Meyering  <meyering@ascend.com>
126218         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
126219         in acconfig.h manually.
126221 1998-07-31  Paul Eggert  <eggert@twinsun.com>
126223         * m4/st_mtim.m4: New file.
126225 1998-07-28  Jim Meyering  <meyering@ascend.com>
126227         * m4/utimes.m4: Undef stat.
126229 1998-07-25  Jim Meyering  <meyering@ascend.com>
126231         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
126232         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
126234 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
126236         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
126237         uid and gid actually remain unchanged.
126239 1998-07-07  Jim Meyering  <meyering@ascend.com>
126241         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
126243 1998-07-04  Jim Meyering  <meyering@ascend.com>
126245         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
126246         to prove that this macro can be used in packages without regex.c.
126248 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
126250         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
126251         is to be used.
126253 1998-07-03  Jim Meyering  <meyering@ascend.com>
126255         * m4/gettext.m4: Add -lintl if it's found to be necessary.
126257         * m4/gettext.m4: New file -- from gettext-0.10.35.
126258         * m4/lcmessage.m4: Likewise.
126259         * m4/progtest.m4: Likewise.
126261         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
126262         * m4/jm-macros.m4: Require the new macro.
126264 1998-06-29  Jim Meyering  <meyering@ascend.com>
126266         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
126267         for the definition of NGROUPS (used in a system header included
126268         by sys/mount.h).
126270 1998-06-28  Jim Meyering  <meyering@ascend.com>
126272         * m4/ls-mntd-fs.m4: New file.
126273         * m4/fstypename.m4: New file.
126275         * m4/jm-macros.m4: Require the new macro.
126276         * m4/jm-glibc-io.m4: New file.
126278 1998-05-19  Jim Meyering  <meyering@ascend.com>
126280         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
126281         * m4/lchown.m4: New file.
126283         * m4/Makefile.am.in: New file.
126284         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
126286 1998-05-14  Jim Meyering  <meyering@ascend.com>
126288         * m4/Makefile.am (EXTRA_DIST): Add them.
126289         * m4/jm-macros.m4: New file.
126290         * m4/utimbuf.m4: New file.
126292 1998-05-12  Jim Meyering  <meyering@ascend.com>
126294         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
126296 1998-05-11  Jim Meyering  <meyering@ascend.com>
126298         * m4/isc-posix.m4: New file.
126300 1998-05-10  Jim Meyering  <meyering@ascend.com>
126302         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
126304 1998-05-09  Jim Meyering  <meyering@ascend.com>
126306         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
126307         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
126308         with automake.
126310         * m4/ssize_t.m4: New file.
126311         * m4/mktime.m4: Remove file -- the new automake has this now.
126313 1998-04-26  Jim Meyering  <meyering@ascend.com>
126315         * m4/assert.m4: New file.
126316         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
126318 1998-04-05  Jim Meyering  <meyering@ascend.com>
126320         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
126321         (jm_PREREQ): Use it here.
126323 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
126325         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
126326         in acconfig.h.
126328 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
126330         * m4/prereq.m4: New file.
126331         * m4/error.m4: New file.
126332         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
126334 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
126336         * m4/getline.m4: Don't set am_cv_func_working_getline before the
126337         cache-check for the same variable -- that defeated the purpose of
126338         the test; the test program was never run.  This was a problem only
126339         on systems with losing getline functions -- HP-UX 10.20 is one.
126340         Reported by Bjorn Helgaas.
126342 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
126344         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
126346 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
126348         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
126350         * m4/const.m4: New file.  Use an initializer in this declaration
126351         typedef int charset[2]; const charset x;
126352         Reported by Bob Glickstein.
126354 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
126356         * m4/chown.m4: Fix reversed types on -1 args to chown.
126357         From Kaveh Ghazi.
126359 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
126361         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
126362         Add lseek and memchr.
126364         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
126365         T.E.Dickey <dickey@clark.net> said that some older preprocessors
126366         have a 20-character limit on names.
126368 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
126370         * m4/inttypes_h.m4: New file.
126371         * m4/uintmax_t.m4: New file.
126372         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
126375         -----
126377         Local Variables:
126378         coding: utf-8
126379         End:
126381         Copyright (C) 1997-2020 Free Software Foundation, Inc.
126383         Copying and distribution of this file, with or without
126384         modification, are permitted provided the copyright notice
126385         and this notice are preserved.